From bf31b40bbb010b34d311fbe6115b6a83bb8efe2e Mon Sep 17 00:00:00 2001 From: oci-dex-release-bot Date: Tue, 30 Jan 2024 12:37:29 +0000 Subject: [PATCH] Releasing version 3.33.0 --- CHANGELOG.md | 12 + bmc-accessgovernancecp/pom.xml | 4 +- .../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/pom.xml | 2 +- bmc-adm/pom.xml | 4 +- bmc-aianomalydetection/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-apigateway/pom.xml | 4 +- bmc-apmconfig/pom.xml | 4 +- bmc-apmcontrolplane/pom.xml | 4 +- bmc-apmsynthetics/pom.xml | 4 +- bmc-apmtraces/pom.xml | 4 +- bmc-applicationmigration/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-bds/pom.xml | 4 +- bmc-blockchain/pom.xml | 4 +- bmc-bom/pom.xml | 306 +++--- bmc-budget/pom.xml | 4 +- bmc-capacitymanagement/pom.xml | 21 + .../CapacityManagement.java | 403 +++++++ .../CapacityManagementAsync.java | 382 +++++++ .../CapacityManagementAsyncClient.java | 959 +++++++++++++++++ .../CapacityManagementClient.java | 983 +++++++++++++++++ .../CapacityManagementPaginators.java | 810 ++++++++++++++ .../CapacityManagementWaiters.java | 369 +++++++ .../CreateOccAvailabilityCatalogDetails.java | 472 +++++++++ .../CreateOccCapacityRequestDetails.java | 707 +++++++++++++ .../model/MetadataDetails.java | 181 ++++ .../capacitymanagement/model/Namespace.java | 51 + .../model/OccAvailabilityCatalog.java | 844 +++++++++++++++ .../OccAvailabilityCatalogCollection.java | 134 +++ .../model/OccAvailabilityCatalogSummary.java | 722 +++++++++++++ .../model/OccAvailabilityCollection.java | 133 +++ .../model/OccAvailabilitySummary.java | 568 ++++++++++ .../model/OccCapacityRequest.java | 997 ++++++++++++++++++ .../model/OccCapacityRequestBaseDetails.java | 240 +++++ .../model/OccCapacityRequestCollection.java | 133 +++ .../OccCapacityRequestComputeDetails.java | 259 +++++ .../model/OccCapacityRequestSummary.java | 854 +++++++++++++++ .../capacitymanagement/model/OccCustomer.java | 338 ++++++ .../model/OccCustomerGroup.java | 730 +++++++++++++ .../model/OccCustomerGroupCollection.java | 133 +++ .../model/OccCustomerGroupSummary.java | 597 +++++++++++ .../model/PatchInsertInstruction.java | 287 +++++ .../model/PatchInsertMultipleInstruction.java | 290 +++++ .../model/PatchInstruction.java | 163 +++ .../model/PatchMergeInstruction.java | 152 +++ .../model/PatchMoveInstruction.java | 247 +++++ .../model/PatchOccCapacityRequestDetails.java | 133 +++ .../model/PatchProhibitInstruction.java | 166 +++ .../model/PatchRemoveInstruction.java | 113 ++ .../model/PatchReplaceInstruction.java | 149 +++ .../model/PatchRequireInstruction.java | 164 +++ .../capacitymanagement/model/SortOrder.java | 40 + ...dateInternalOccCapacityRequestDetails.java | 216 ++++ .../UpdateOccAvailabilityCatalogDetails.java | 265 +++++ .../UpdateOccCapacityRequestDetails.java | 303 ++++++ .../CreateOccAvailabilityCatalogRequest.java | 294 ++++++ .../CreateOccCapacityRequestRequest.java | 293 +++++ .../DeleteOccAvailabilityCatalogRequest.java | 256 +++++ .../DeleteOccCapacityRequestRequest.java | 253 +++++ ...tOccAvailabilityCatalogContentRequest.java | 310 ++++++ .../GetOccAvailabilityCatalogRequest.java | 210 ++++ .../GetOccCapacityRequestRequest.java | 206 ++++ .../requests/GetOccCustomerGroupRequest.java | 204 ++++ .../ListOccAvailabilitiesRequest.java | 521 +++++++++ ...ccAvailabilityCatalogsInternalRequest.java | 541 ++++++++++ .../ListOccAvailabilityCatalogsRequest.java | 505 +++++++++ ...istOccCapacityRequestsInternalRequest.java | 570 ++++++++++ .../ListOccCapacityRequestsRequest.java | 535 ++++++++++ .../ListOccCustomerGroupsRequest.java | 485 +++++++++ .../PatchOccCapacityRequestRequest.java | 318 ++++++ .../PublishOccAvailabilityCatalogRequest.java | 308 ++++++ ...dateInternalOccCapacityRequestRequest.java | 326 ++++++ .../UpdateOccAvailabilityCatalogRequest.java | 321 ++++++ .../UpdateOccCapacityRequestRequest.java | 318 ++++++ .../CreateOccAvailabilityCatalogResponse.java | 268 +++++ .../CreateOccCapacityRequestResponse.java | 264 +++++ .../DeleteOccAvailabilityCatalogResponse.java | 184 ++++ .../DeleteOccCapacityRequestResponse.java | 184 ++++ ...OccAvailabilityCatalogContentResponse.java | 177 ++++ .../GetOccAvailabilityCatalogResponse.java | 218 ++++ .../GetOccCapacityRequestResponse.java | 213 ++++ .../GetOccCustomerGroupResponse.java | 211 ++++ .../ListOccAvailabilitiesResponse.java | 235 +++++ ...cAvailabilityCatalogsInternalResponse.java | 240 +++++ .../ListOccAvailabilityCatalogsResponse.java | 238 +++++ ...stOccCapacityRequestsInternalResponse.java | 237 +++++ .../ListOccCapacityRequestsResponse.java | 237 +++++ .../ListOccCustomerGroupsResponse.java | 236 +++++ .../PatchOccCapacityRequestResponse.java | 214 ++++ ...PublishOccAvailabilityCatalogResponse.java | 138 +++ ...ateInternalOccCapacityRequestResponse.java | 261 +++++ .../UpdateOccAvailabilityCatalogResponse.java | 264 +++++ .../UpdateOccCapacityRequestResponse.java | 260 +++++ .../reflect-config.json | 528 ++++++++++ .../bmc/capacitymanagement/client.properties | 9 + bmc-certificates/pom.xml | 4 +- bmc-certificatesmanagement/pom.xml | 4 +- bmc-cims/pom.xml | 4 +- bmc-circuitbreaker/pom.xml | 3 +- bmc-cloudbridge/pom.xml | 4 +- bmc-cloudguard/pom.xml | 4 +- bmc-cloudmigrations/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-core/pom.xml | 6 +- bmc-dashboardservice/pom.xml | 4 +- bmc-database/pom.xml | 6 +- bmc-databasemanagement/pom.xml | 4 +- .../bmc/databasemanagement/DbManagement.java | 115 ++ .../databasemanagement/DbManagementAsync.java | 116 ++ .../DbManagementAsyncClient.java | 293 +++++ .../DbManagementClient.java | 267 +++++ .../DbManagementPaginators.java | 121 +++ .../DbManagementWaiters.java | 105 ++ .../DiagnosabilityAsyncClient.java | 4 + .../DiagnosabilityClient.java | 4 + .../PerfhubAsyncClient.java | 1 + .../bmc/databasemanagement/PerfhubClient.java | 1 + .../SqlTuningAsyncClient.java | 7 + .../databasemanagement/SqlTuningClient.java | 7 + .../model/AddDataFilesDetails.java | 33 +- .../model/BasicNamedCredentialContent.java | 265 +++++ .../ChangeDatabaseParametersDetails.java | 35 +- ...angeNamedCredentialCompartmentDetails.java | 145 +++ .../model/ChangePlanRetentionDetails.java | 39 +- .../model/ChangeSpaceBudgetDetails.java | 39 +- ...angeSqlPlanBaselinesAttributesDetails.java | 39 +- .../model/CloneSqlTuningTaskDetails.java | 39 +- ...nfigureAutomaticCaptureFiltersDetails.java | 37 +- ...eAutomaticSpmEvolveAdvisorTaskDetails.java | 38 +- .../model/CreateNamedCredentialDetails.java | 389 +++++++ .../model/CreateSqlJobDetails.java | 47 + .../model/CreateSqlTuningSetDetails.java | 33 +- .../model/CreateTablespaceDetails.java | 33 +- .../model/DatabaseCredentialDetails.java | 132 +++ .../model/DatabaseCredentials.java | 4 +- .../model/DatabaseNamedCredentialDetails.java | 147 +++ .../DatabasePasswordCredentialDetails.java | 250 +++++ .../DatabaseSecretCredentialDetails.java | 262 +++++ ...bleAutomaticInitialPlanCaptureDetails.java | 41 +- ...eAutomaticSpmEvolveAdvisorTaskDetails.java | 41 +- ...yAutomaticSpmEvolveAdvisorTaskDetails.java | 40 +- .../DisableSqlPlanBaselinesUsageDetails.java | 41 +- .../model/DropSqlPlanBaselinesDetails.java | 47 +- .../model/DropSqlTuningSetDetails.java | 45 +- .../model/DropSqlTuningTaskDetails.java | 40 +- .../model/DropSqlsInSqlTuningSetDetails.java | 34 +- .../model/DropTablespaceDetails.java | 33 +- ...bleAutomaticInitialPlanCaptureDetails.java | 41 +- ...eAutomaticSpmEvolveAdvisorTaskDetails.java | 41 +- ...yAutomaticSpmEvolveAdvisorTaskDetails.java | 40 +- .../EnableSqlPlanBaselinesUsageDetails.java | 41 +- .../model/ExternalDatabaseConnectionInfo.java | 37 +- .../model/FetchSqlTuningSetDetails.java | 33 +- ...erStatisticsAdvisorRecommendationsJob.java | 36 +- .../LoadSqlPlanBaselinesFromAwrDetails.java | 39 +- ...qlPlanBaselinesFromCursorCacheDetails.java | 40 +- .../model/LoadSqlTuningSetDetails.java | 33 +- .../model/NamedCredential.java | 578 ++++++++++ .../model/NamedCredentialCollection.java | 133 +++ .../model/NamedCredentialContent.java | 78 ++ .../model/NamedCredentialContentType.java | 52 + .../model/NamedCredentialScope.java | 53 + .../model/NamedCredentialSummary.java | 515 +++++++++ .../model/NamedPreferredCredential.java | 189 ++++ .../model/PasswordSecretAccessMode.java | 53 + .../model/PreferredCredential.java | 3 + .../model/PreferredCredentialSummary.java | 54 +- .../model/PreferredCredentialType.java | 1 + .../model/RemoveDataFileDetails.java | 44 +- .../model/ResetDatabaseParametersDetails.java | 35 +- .../model/ResizeDataFileDetails.java | 33 +- .../model/ResourceType.java | 52 + .../model/SaveSqlTuningSetAsDetails.java | 33 +- .../bmc/databasemanagement/model/SqlJob.java | 51 +- .../model/StartSqlTuningTaskDetails.java | 33 +- .../model/TestNamedCredentialDetails.java | 146 +++ .../model/TestNamedCredentialStatus.java | 278 +++++ .../TestNamedPreferredCredentialDetails.java | 146 +++ .../model/TestPreferredCredentialDetails.java | 3 + .../model/UpdateNamedCredentialDetails.java | 245 +++++ ...UpdateNamedPreferredCredentialDetails.java | 146 +++ .../UpdatePreferredCredentialDetails.java | 3 + .../model/UpdateSqlJobDetails.java | 47 + .../model/UpdateTablespaceDetails.java | 33 +- .../model/ValidateBasicFilterDetails.java | 45 +- .../requests/AddmTasksRequest.java | 37 +- ...angeNamedCredentialCompartmentRequest.java | 385 +++++++ .../CreateNamedCredentialRequest.java | 283 +++++ .../DeleteNamedCredentialRequest.java | 251 +++++ .../requests/GenerateAwrSnapshotRequest.java | 38 +- .../requests/GetAwrDbReportRequest.java | 37 +- .../requests/GetAwrDbSqlReportRequest.java | 38 +- ...tExecutionPlanStatsComparisionRequest.java | 38 +- .../GetExternalAsmConfigurationRequest.java | 40 +- .../requests/GetNamedCredentialRequest.java | 202 ++++ ...izerStatisticsAdvisorExecutionRequest.java | 37 +- ...atisticsAdvisorExecutionScriptRequest.java | 37 +- ...rStatisticsCollectionOperationRequest.java | 37 +- .../requests/GetSqlExecutionPlanRequest.java | 37 +- ...etSqlPlanBaselineConfigurationRequest.java | 40 +- .../requests/GetSqlPlanBaselineRequest.java | 38 +- ...TuningAdvisorTaskSummaryReportRequest.java | 37 +- .../requests/GetTablespaceRequest.java | 38 +- .../requests/GetUserRequest.java | 37 +- .../requests/ListAlertLogsRequest.java | 37 +- .../requests/ListAttentionLogsRequest.java | 37 +- .../requests/ListAwrDbSnapshotsRequest.java | 37 +- .../requests/ListAwrDbsRequest.java | 38 +- .../ListConsumerGroupPrivilegesRequest.java | 37 +- .../ListCursorCacheStatementsRequest.java | 37 +- .../ListDataAccessContainersRequest.java | 37 +- .../ListDatabaseParametersRequest.java | 37 +- .../ListExternalAsmDiskGroupsRequest.java | 37 +- .../requests/ListExternalAsmUsersRequest.java | 37 +- .../ListExternalListenerServicesRequest.java | 37 +- .../requests/ListNamedCredentialsRequest.java | 498 +++++++++ .../requests/ListObjectPrivilegesRequest.java | 37 +- ...zerStatisticsAdvisorExecutionsRequest.java | 38 +- ...atisticsCollectionAggregationsRequest.java | 37 +- ...StatisticsCollectionOperationsRequest.java | 37 +- .../requests/ListProxiedForUsersRequest.java | 37 +- .../requests/ListProxyUsersRequest.java | 37 +- .../requests/ListRolesRequest.java | 37 +- .../ListSqlPlanBaselineJobsRequest.java | 37 +- .../requests/ListSqlPlanBaselinesRequest.java | 201 +++- ...stSqlTuningAdvisorTaskFindingsRequest.java | 38 +- ...ningAdvisorTaskRecommendationsRequest.java | 37 +- .../ListSqlTuningAdvisorTasksRequest.java | 37 +- .../requests/ListSqlTuningSetsRequest.java | 37 +- .../requests/ListSystemPrivilegesRequest.java | 37 +- .../requests/ListTableStatisticsRequest.java | 40 +- .../requests/ListTablespacesRequest.java | 37 +- .../requests/ListUsersRequest.java | 37 +- .../ModifySnapshotSettingsRequest.java | 37 +- .../requests/RunHistoricAddmRequest.java | 37 +- .../SummarizeAlertLogCountsRequest.java | 37 +- .../SummarizeAttentionLogCountsRequest.java | 37 +- .../SummarizeAwrDbCpuUsagesRequest.java | 37 +- .../SummarizeAwrDbMetricsRequest.java | 37 +- ...SummarizeAwrDbParameterChangesRequest.java | 37 +- .../SummarizeAwrDbParametersRequest.java | 38 +- .../SummarizeAwrDbSnapshotRangesRequest.java | 37 +- .../SummarizeAwrDbSysstatsRequest.java | 37 +- .../SummarizeAwrDbTopWaitEventsRequest.java | 37 +- ...SummarizeAwrDbWaitEventBucketsRequest.java | 37 +- .../SummarizeAwrDbWaitEventsRequest.java | 37 +- ...qlPlanBaselinesByLastExecutionRequest.java | 37 +- .../SummarizeSqlPlanBaselinesRequest.java | 38 +- .../requests/TestNamedCredentialRequest.java | 280 +++++ .../UpdateNamedCredentialRequest.java | 316 ++++++ ...ngeNamedCredentialCompartmentResponse.java | 139 +++ .../CreateNamedCredentialResponse.java | 244 +++++ .../DeleteNamedCredentialResponse.java | 136 +++ .../responses/GetNamedCredentialResponse.java | 211 ++++ .../ListNamedCredentialsResponse.java | 235 +++++ .../TestNamedCredentialResponse.java | 186 ++++ .../UpdateNamedCredentialResponse.java | 211 ++++ .../reflect-config.json | 272 +++++ bmc-databasemigration/pom.xml | 4 +- bmc-databasetools/pom.xml | 4 +- bmc-datacatalog/pom.xml | 4 +- bmc-dataflow/pom.xml | 4 +- bmc-dataintegration/pom.xml | 4 +- .../bmc/dataintegration/model/Connection.java | 4 + .../model/ConnectionDetails.java | 4 + .../model/ConnectionFromOAuth2.java | 516 +++++++++ .../model/ConnectionFromOAuth2Details.java | 488 +++++++++ .../model/ConnectionSummary.java | 4 + .../model/ConnectionSummaryFromOAuth2.java | 516 +++++++++ .../model/CreateConnectionDetails.java | 4 + .../model/CreateConnectionFromOAuth2.java | 443 ++++++++ .../model/CreateImportRequestDetails.java | 44 + .../model/ImportObjectMetadataSummary.java | 1 + .../dataintegration/model/ImportRequest.java | 44 + .../model/ImportRequestSummary.java | 44 + .../model/UpdateConnectionDetails.java | 4 + .../model/UpdateConnectionFromOAuth2.java | 458 ++++++++ .../reflect-config.json | 100 ++ bmc-datalabelingservice/pom.xml | 4 +- bmc-datalabelingservicedataplane/pom.xml | 4 +- bmc-datasafe/pom.xml | 4 +- bmc-datascience/pom.xml | 4 +- bmc-devops/pom.xml | 4 +- bmc-disasterrecovery/pom.xml | 4 +- bmc-dns/pom.xml | 6 +- .../src/main/java/com/oracle/bmc/dns/Dns.java | 30 +- .../java/com/oracle/bmc/dns/DnsClient.java | 5 - .../bmc/dns/model/CreateZoneBaseDetails.java | 16 +- .../requests/DeleteDomainRecordsRequest.java | 18 +- .../bmc/dns/requests/DeleteRRSetRequest.java | 18 +- .../bmc/dns/requests/DeleteZoneRequest.java | 18 +- .../dns/requests/GetDomainRecordsRequest.java | 18 +- .../bmc/dns/requests/GetRRSetRequest.java | 18 +- .../dns/requests/GetZoneContentRequest.java | 18 +- .../dns/requests/GetZoneRecordsRequest.java | 18 +- .../bmc/dns/requests/GetZoneRequest.java | 18 +- .../requests/PatchDomainRecordsRequest.java | 18 +- .../bmc/dns/requests/PatchRRSetRequest.java | 18 +- .../dns/requests/PatchZoneRecordsRequest.java | 18 +- .../requests/UpdateDomainRecordsRequest.java | 18 +- .../bmc/dns/requests/UpdateRRSetRequest.java | 18 +- .../requests/UpdateZoneRecordsRequest.java | 18 +- .../bmc/dns/requests/UpdateZoneRequest.java | 18 +- bmc-dts/pom.xml | 4 +- bmc-email/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 | 10 +- bmc-filestorage/pom.xml | 4 +- bmc-fleetsoftwareupdate/pom.xml | 4 +- bmc-full/pom.xml | 8 +- bmc-functions/pom.xml | 4 +- bmc-fusionapps/pom.xml | 4 +- bmc-generativeai/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-jms/pom.xml | 4 +- bmc-jmsjavadownloads/pom.xml | 4 +- bmc-keymanagement/pom.xml | 4 +- bmc-licensemanager/pom.xml | 4 +- bmc-limits/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-managementagent/pom.xml | 4 +- bmc-managementdashboard/pom.xml | 4 +- bmc-marketplace/pom.xml | 4 +- bmc-marketplacepublisher/pom.xml | 4 +- bmc-mediaservices/pom.xml | 4 +- bmc-monitoring/pom.xml | 4 +- bmc-mysql/pom.xml | 4 +- bmc-networkfirewall/pom.xml | 4 +- bmc-networkloadbalancer/pom.xml | 7 +- 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 +- bmc-operatoraccesscontrol/pom.xml | 4 +- bmc-opsi/pom.xml | 4 +- bmc-optimizer/pom.xml | 4 +- bmc-osmanagement/pom.xml | 4 +- bmc-osmanagementhub/pom.xml | 4 +- bmc-ospgateway/pom.xml | 4 +- .../oracle/bmc/ospgateway/model/TaxInfo.java | 44 +- .../bmc/ospgateway/model/TaxTypeRule.java | 44 +- .../bmc/ospgateway/model/ValueSetEntity.java | 168 +++ .../reflect-config.json | 14 + 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 | 200 ++-- bmc-other-examples/pom.xml | 2 +- bmc-psql/pom.xml | 4 +- bmc-queue/pom.xml | 4 +- bmc-recovery/pom.xml | 4 +- bmc-redis/pom.xml | 4 +- bmc-resourcemanager/pom.xml | 4 +- bmc-resourcesearch/pom.xml | 4 +- bmc-rover/pom.xml | 4 +- bmc-sch/pom.xml | 4 +- bmc-secrets/pom.xml | 4 +- bmc-servicecatalog/pom.xml | 4 +- bmc-servicemanagerproxy/pom.xml | 4 +- bmc-servicemesh/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-workrequests/pom.xml | 4 +- pom.xml | 3 +- 431 files changed, 42847 insertions(+), 971 deletions(-) create mode 100644 bmc-capacitymanagement/pom.xml create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagement.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagementAsync.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagementAsyncClient.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagementClient.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagementPaginators.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagementWaiters.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/CreateOccAvailabilityCatalogDetails.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/CreateOccCapacityRequestDetails.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/MetadataDetails.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/Namespace.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccAvailabilityCatalog.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccAvailabilityCatalogCollection.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccAvailabilityCatalogSummary.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccAvailabilityCollection.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccAvailabilitySummary.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCapacityRequest.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCapacityRequestBaseDetails.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCapacityRequestCollection.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCapacityRequestComputeDetails.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCapacityRequestSummary.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCustomer.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCustomerGroup.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCustomerGroupCollection.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCustomerGroupSummary.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchInsertInstruction.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchInsertMultipleInstruction.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchInstruction.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchMergeInstruction.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchMoveInstruction.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchOccCapacityRequestDetails.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchProhibitInstruction.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchRemoveInstruction.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchReplaceInstruction.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchRequireInstruction.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/SortOrder.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/UpdateInternalOccCapacityRequestDetails.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/UpdateOccAvailabilityCatalogDetails.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/UpdateOccCapacityRequestDetails.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/CreateOccAvailabilityCatalogRequest.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/CreateOccCapacityRequestRequest.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/DeleteOccAvailabilityCatalogRequest.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/DeleteOccCapacityRequestRequest.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/GetOccAvailabilityCatalogContentRequest.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/GetOccAvailabilityCatalogRequest.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/GetOccCapacityRequestRequest.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/GetOccCustomerGroupRequest.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccAvailabilitiesRequest.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccAvailabilityCatalogsInternalRequest.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccAvailabilityCatalogsRequest.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccCapacityRequestsInternalRequest.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccCapacityRequestsRequest.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccCustomerGroupsRequest.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/PatchOccCapacityRequestRequest.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/PublishOccAvailabilityCatalogRequest.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/UpdateInternalOccCapacityRequestRequest.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/UpdateOccAvailabilityCatalogRequest.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/UpdateOccCapacityRequestRequest.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/CreateOccAvailabilityCatalogResponse.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/CreateOccCapacityRequestResponse.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/DeleteOccAvailabilityCatalogResponse.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/DeleteOccCapacityRequestResponse.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/GetOccAvailabilityCatalogContentResponse.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/GetOccAvailabilityCatalogResponse.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/GetOccCapacityRequestResponse.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/GetOccCustomerGroupResponse.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/ListOccAvailabilitiesResponse.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/ListOccAvailabilityCatalogsInternalResponse.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/ListOccAvailabilityCatalogsResponse.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/ListOccCapacityRequestsInternalResponse.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/ListOccCapacityRequestsResponse.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/ListOccCustomerGroupsResponse.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/PatchOccCapacityRequestResponse.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/PublishOccAvailabilityCatalogResponse.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/UpdateInternalOccCapacityRequestResponse.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/UpdateOccAvailabilityCatalogResponse.java create mode 100644 bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/UpdateOccCapacityRequestResponse.java create mode 100644 bmc-capacitymanagement/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-capacitymanagement/reflect-config.json create mode 100644 bmc-capacitymanagement/src/main/resources/com/oracle/bmc/capacitymanagement/client.properties create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/BasicNamedCredentialContent.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ChangeNamedCredentialCompartmentDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateNamedCredentialDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseCredentialDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseNamedCredentialDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabasePasswordCredentialDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseSecretCredentialDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/NamedCredential.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/NamedCredentialCollection.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/NamedCredentialContent.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/NamedCredentialContentType.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/NamedCredentialScope.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/NamedCredentialSummary.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/NamedPreferredCredential.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/PasswordSecretAccessMode.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ResourceType.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/TestNamedCredentialDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/TestNamedCredentialStatus.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/TestNamedPreferredCredentialDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateNamedCredentialDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateNamedPreferredCredentialDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ChangeNamedCredentialCompartmentRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/CreateNamedCredentialRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DeleteNamedCredentialRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetNamedCredentialRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListNamedCredentialsRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/TestNamedCredentialRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateNamedCredentialRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/ChangeNamedCredentialCompartmentResponse.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/CreateNamedCredentialResponse.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DeleteNamedCredentialResponse.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/GetNamedCredentialResponse.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/ListNamedCredentialsResponse.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/TestNamedCredentialResponse.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/UpdateNamedCredentialResponse.java create mode 100644 bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOAuth2.java create mode 100644 bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOAuth2Details.java create mode 100644 bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromOAuth2.java create mode 100644 bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromOAuth2.java create mode 100644 bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromOAuth2.java create mode 100644 bmc-ospgateway/src/main/java/com/oracle/bmc/ospgateway/model/ValueSetEntity.java diff --git a/CHANGELOG.md b/CHANGELOG.md index 92ac0f48309..829bbb438df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,18 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/). +## 3.33.0 - 2024-01-30 +### Added +- Support for OCI Control Center service +- Support for giro value set for address rules in the Oracle Store Platform service +- Support for giro in tax information for subscriptions in the Oracle Store Platform service +- Support for REST connectivity with Oath2 in the Data Integration service +- Support for resolver rules limit increase in the DNS service +- Support for named credentials in the Database Management service + +### Breaking Changes +- Default retry disabled on the operations of the DNS service + ## 3.32.1 - 2024-01-23 ### Added - Support for the Generative AI service diff --git a/bmc-accessgovernancecp/pom.xml b/bmc-accessgovernancecp/pom.xml index ac85c15117b..f37c2ad807b 100644 --- a/bmc-accessgovernancecp/pom.xml +++ b/bmc-accessgovernancecp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-accessgovernancecp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml b/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml index 7949779098c..7eca7515bc4 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.32.1 + 3.33.0 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.32.1 + 3.33.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.32.1 + 3.33.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 21035c8f183..ca09c0ef089 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.32.1 + 3.33.0 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.32.1 + 3.33.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.32.1 + 3.33.0 pom import diff --git a/bmc-addons/bmc-apache-connector-provider/pom.xml b/bmc-addons/bmc-apache-connector-provider/pom.xml index 51b39bee94f..776090b4eb9 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.32.1 + 3.33.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-addons/bmc-oke-workload-identity/pom.xml b/bmc-addons/bmc-oke-workload-identity/pom.xml index b181948dead..e0c797f77b8 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.32.1 + 3.33.0 4.0.0 @@ -38,25 +38,25 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 compile com.oracle.oci.sdk oci-java-sdk-core - 3.32.1 + 3.33.0 test com.oracle.oci.sdk oci-java-sdk-identity - 3.32.1 + 3.33.0 test com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.32.1 + 3.33.0 test diff --git a/bmc-addons/bmc-resteasy-client-configurator/pom.xml b/bmc-addons/bmc-resteasy-client-configurator/pom.xml index f33e7524bf3..b906f2889bb 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.32.1 + 3.33.0 ../pom.xml @@ -23,7 +23,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.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 ccaa7ca6484..d78e2f1b9ec 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.32.1 + 3.33.0 ../pom.xml 4.0.0 @@ -39,13 +39,13 @@ com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.32.1 + 3.33.0 compile com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.32.1 + 3.33.0 compile diff --git a/bmc-addons/bmc-sasl/pom.xml b/bmc-addons/bmc-sasl/pom.xml index 91b4eadd118..02e028d0de3 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.32.1 + 3.33.0 ../pom.xml @@ -60,7 +60,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-addons/pom.xml b/bmc-addons/pom.xml index abefa1e28c4..590631a8599 100644 --- a/bmc-addons/pom.xml +++ b/bmc-addons/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml diff --git a/bmc-adm/pom.xml b/bmc-adm/pom.xml index 4a824c334b4..53819f32901 100644 --- a/bmc-adm/pom.xml +++ b/bmc-adm/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-adm @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-aianomalydetection/pom.xml b/bmc-aianomalydetection/pom.xml index ebd596bd5f7..c4dba853920 100644 --- a/bmc-aianomalydetection/pom.xml +++ b/bmc-aianomalydetection/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-aianomalydetection @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-aidocument/pom.xml b/bmc-aidocument/pom.xml index 852b576084f..8ed34328efe 100644 --- a/bmc-aidocument/pom.xml +++ b/bmc-aidocument/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-aidocument @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-ailanguage/pom.xml b/bmc-ailanguage/pom.xml index 2660b27c4fa..0159e99a950 100644 --- a/bmc-ailanguage/pom.xml +++ b/bmc-ailanguage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-ailanguage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-aispeech/pom.xml b/bmc-aispeech/pom.xml index 2e4f9e38a83..b285a267441 100644 --- a/bmc-aispeech/pom.xml +++ b/bmc-aispeech/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-aispeech @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-aivision/pom.xml b/bmc-aivision/pom.xml index 85d4be7fafb..c4373e088c3 100644 --- a/bmc-aivision/pom.xml +++ b/bmc-aivision/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-aivision @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-analytics/pom.xml b/bmc-analytics/pom.xml index fb8b1dba09d..c97d027b03c 100644 --- a/bmc-analytics/pom.xml +++ b/bmc-analytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-analytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-announcementsservice/pom.xml b/bmc-announcementsservice/pom.xml index ffa4cc3932a..edcd2fad54f 100644 --- a/bmc-announcementsservice/pom.xml +++ b/bmc-announcementsservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-announcementsservice @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-apigateway/pom.xml b/bmc-apigateway/pom.xml index ef901f874a5..941877cadb5 100644 --- a/bmc-apigateway/pom.xml +++ b/bmc-apigateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-apigateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-apmconfig/pom.xml b/bmc-apmconfig/pom.xml index f949c565729..2d2d3144c25 100644 --- a/bmc-apmconfig/pom.xml +++ b/bmc-apmconfig/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-apmconfig @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-apmcontrolplane/pom.xml b/bmc-apmcontrolplane/pom.xml index c99be85f682..aa6e03101ed 100644 --- a/bmc-apmcontrolplane/pom.xml +++ b/bmc-apmcontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-apmcontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-apmsynthetics/pom.xml b/bmc-apmsynthetics/pom.xml index a05e6284435..a42820d30fb 100644 --- a/bmc-apmsynthetics/pom.xml +++ b/bmc-apmsynthetics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-apmsynthetics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-apmtraces/pom.xml b/bmc-apmtraces/pom.xml index 38a6c8ecd6c..9763f3f33a7 100644 --- a/bmc-apmtraces/pom.xml +++ b/bmc-apmtraces/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-apmtraces @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-applicationmigration/pom.xml b/bmc-applicationmigration/pom.xml index 9044a7f13d8..a329f07a783 100644 --- a/bmc-applicationmigration/pom.xml +++ b/bmc-applicationmigration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-applicationmigration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-appmgmtcontrol/pom.xml b/bmc-appmgmtcontrol/pom.xml index a9d993f53d6..27344f710ba 100644 --- a/bmc-appmgmtcontrol/pom.xml +++ b/bmc-appmgmtcontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-appmgmtcontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-artifacts/pom.xml b/bmc-artifacts/pom.xml index c7610cbafd0..a92ac1cf842 100644 --- a/bmc-artifacts/pom.xml +++ b/bmc-artifacts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-artifacts @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-audit/pom.xml b/bmc-audit/pom.xml index b8f1d666ee5..5c34cdc3e98 100644 --- a/bmc-audit/pom.xml +++ b/bmc-audit/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-autoscaling/pom.xml b/bmc-autoscaling/pom.xml index 1072d480f13..2dc88af8308 100644 --- a/bmc-autoscaling/pom.xml +++ b/bmc-autoscaling/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-autoscaling @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-bastion/pom.xml b/bmc-bastion/pom.xml index ca1b74f739e..2c1c335ab69 100644 --- a/bmc-bastion/pom.xml +++ b/bmc-bastion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-bastion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-bds/pom.xml b/bmc-bds/pom.xml index 55a4a5022cd..ae2633488ac 100644 --- a/bmc-bds/pom.xml +++ b/bmc-bds/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-bds @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-blockchain/pom.xml b/bmc-blockchain/pom.xml index 849a9063876..b4b698c4627 100644 --- a/bmc-blockchain/pom.xml +++ b/bmc-blockchain/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-blockchain @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-bom/pom.xml b/bmc-bom/pom.xml index 0d088d4ad5a..b565c0387a0 100644 --- a/bmc-bom/pom.xml +++ b/bmc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk - 3.32.1 + 3.33.0 oci-java-sdk-bom pom Oracle Cloud Infrastructure SDK - BOM @@ -38,891 +38,897 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-shaded-full - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-audit - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-containerengine - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-core - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-database - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-dns - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-email - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-filestorage - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-identity - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-loadbalancer - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-objectstorage - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.32.1 + 3.33.0 com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.32.1 + 3.33.0 com.oracle.oci.sdk oci-java-sdk-addons-resteasy-client-configurator - 3.32.1 + 3.33.0 com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.32.1 + 3.33.0 com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.32.1 + 3.33.0 com.oracle.oci.sdk oci-java-sdk-addons-sasl-oke-workload-identity - 3.32.1 + 3.33.0 com.oracle.oci.sdk oci-java-sdk-resourcesearch - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-addons-apache - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-announcementsservice - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-healthchecks - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-waas - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-streaming - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-resourcemanager - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-monitoring - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-ons - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-autoscaling - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-budget - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-workrequests - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-limits - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-functions - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-events - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-dts - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-oce - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-oda - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-analytics - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-integration - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-osmanagement - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-marketplace - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-apigateway - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-applicationmigration - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-datacatalog - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-dataflow - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-datascience - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-nosql - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-secrets - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-vault - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-bds - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-encryption - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-cims - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-datasafe - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-mysql - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-dataintegration - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-ocvp - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-usageapi - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-blockchain - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-loggingingestion - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-logging - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-loganalytics - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-managementdashboard - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-sch - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-loggingsearch - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-managementagent - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-cloudguard - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-opsi - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-computeinstanceagent - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-optimizer - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-tenantmanagercontrolplane - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-rover - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-databasemanagement - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-artifacts - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-apmsynthetics - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-goldengate - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-apmcontrolplane - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-apmtraces - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-networkloadbalancer - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-vulnerabilityscanning - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-databasemigration - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-servicecatalog - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-ailanguage - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-operatoraccesscontrol - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-bastion - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-genericartifactscontent - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-jms - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-devops - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-aianomalydetection - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-datalabelingservice - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-datalabelingservicedataplane - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-apmconfig - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-waf - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-certificates - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-certificatesmanagement - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-usage - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-databasetools - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-servicemanagerproxy - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-appmgmtcontrol - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-ospgateway - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-identitydataplane - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-visualbuilder - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-osubusage - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-osubsubscription - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-osuborganizationsubscription - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-osubbillingschedule - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-dashboardservice - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-threatintelligence - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-aivision - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-aispeech - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-stackmonitoring - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-servicemesh - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-adm - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-licensemanager - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-onesubscription - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-governancerulescontrolplane - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-waa - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-networkfirewall - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-vnmonitoring - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-emwarehouse - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-lockbox - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-fusionapps - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-mediaservices - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-opa - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-opensearch - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-cloudmigrations - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-cloudbridge - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-disasterrecovery - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-containerinstances - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-aidocument - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-queue - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-recovery - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-vbsinst - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-identitydomains - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-accessgovernancecp - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-ocicontrolcenter - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-osmanagementhub - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-fleetsoftwareupdate - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-computecloudatcustomer - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-marketplacepublisher - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-redis - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-jmsjavadownloads - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-psql - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-generativeai - 3.32.1 + 3.33.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.32.1 + 3.33.0 + false + + + com.oracle.oci.sdk + oci-java-sdk-capacitymanagement + 3.33.0 false diff --git a/bmc-budget/pom.xml b/bmc-budget/pom.xml index 93ccbb545e2..6c7da74c516 100644 --- a/bmc-budget/pom.xml +++ b/bmc-budget/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-budget @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-capacitymanagement/pom.xml b/bmc-capacitymanagement/pom.xml new file mode 100644 index 00000000000..b814b4bf7e4 --- /dev/null +++ b/bmc-capacitymanagement/pom.xml @@ -0,0 +1,21 @@ + + + 4.0.0 + + com.oracle.oci.sdk + oci-java-sdk + 3.33.0 + ../pom.xml + + oci-java-sdk-capacitymanagement + Oracle Cloud Infrastructure SDK - Capacity Management + This project contains the SDK used for Oracle Cloud Infrastructure Capacity Management + https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm + + + com.oracle.oci.sdk + oci-java-sdk-common + 3.33.0 + + + \ No newline at end of file diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagement.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagement.java new file mode 100644 index 00000000000..2ad8382eccf --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagement.java @@ -0,0 +1,403 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement; + +import com.oracle.bmc.capacitymanagement.requests.*; +import com.oracle.bmc.capacitymanagement.responses.*; + +/** + * A description of the OciControlCenterCp API 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: 20231107") +public interface CapacityManagement 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); + + /** + * Create availability catalog + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

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

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

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

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

Example: Click here to see how to use + * GetOccAvailabilityCatalog API. + */ + GetOccAvailabilityCatalogResponse getOccAvailabilityCatalog( + GetOccAvailabilityCatalogRequest request); + + /** + * Returns the binary contents of the availability catalog. Can be saved as a csv file. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

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

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

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

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

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

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

Example: Click here to see how to use + * ListOccCapacityRequests API. + */ + ListOccCapacityRequestsResponse listOccCapacityRequests(ListOccCapacityRequestsRequest request); + + /** + * An internal api to list all capacity requests. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

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

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

Example: Click here to see how to use + * PatchOccCapacityRequest API. + */ + PatchOccCapacityRequestResponse patchOccCapacityRequest(PatchOccCapacityRequestRequest request); + + /** + * Publishes the version of availability catalog specified by the operator. This makes that + * catalog version visible to customers. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * PublishOccAvailabilityCatalog API. + */ + PublishOccAvailabilityCatalogResponse publishOccAvailabilityCatalog( + PublishOccAvailabilityCatalogRequest request); + + /** + * The internal api to update the capacity request. This api will be used by operators for + * updating the capacity request to either completed, resubmitted or rejected. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * UpdateInternalOccCapacityRequest API. + */ + UpdateInternalOccCapacityRequestResponse updateInternalOccCapacityRequest( + UpdateInternalOccCapacityRequestRequest request); + + /** + * The request to update the availability catalog. Currently only freeform tags can be updated + * via this api. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * UpdateOccAvailabilityCatalog API. + */ + UpdateOccAvailabilityCatalogResponse updateOccAvailabilityCatalog( + UpdateOccAvailabilityCatalogRequest request); + + /** + * The request to update the capacity request. The user can perform actions like closing a + * partially completed request so that it doesn't go ahead for full completion. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * UpdateOccCapacityRequest API. + */ + UpdateOccCapacityRequestResponse updateOccCapacityRequest( + UpdateOccCapacityRequestRequest request); + + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + CapacityManagementWaiters 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. + */ + CapacityManagementPaginators getPaginators(); +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagementAsync.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagementAsync.java new file mode 100644 index 00000000000..7ce48025339 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagementAsync.java @@ -0,0 +1,382 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement; + +import com.oracle.bmc.capacitymanagement.requests.*; +import com.oracle.bmc.capacitymanagement.responses.*; + +/** A description of the OciControlCenterCp API */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public interface CapacityManagementAsync 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); + + /** + * Create availability catalog + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future createOccAvailabilityCatalog( + CreateOccAvailabilityCatalogRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateOccAvailabilityCatalogRequest, + CreateOccAvailabilityCatalogResponse> + handler); + + /** + * Create Capacity Request. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future createOccCapacityRequest( + CreateOccCapacityRequestRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateOccCapacityRequestRequest, CreateOccCapacityRequestResponse> + handler); + + /** + * Deletes the availability catalog resource. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future deleteOccAvailabilityCatalog( + DeleteOccAvailabilityCatalogRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteOccAvailabilityCatalogRequest, + DeleteOccAvailabilityCatalogResponse> + handler); + + /** + * Deletes the capacity request resource. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future deleteOccCapacityRequest( + DeleteOccCapacityRequestRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteOccCapacityRequestRequest, DeleteOccCapacityRequestResponse> + handler); + + /** + * Get details about availability catalog. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getOccAvailabilityCatalog( + GetOccAvailabilityCatalogRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetOccAvailabilityCatalogRequest, GetOccAvailabilityCatalogResponse> + handler); + + /** + * Returns the binary contents of the availability catalog. Can be saved as a csv file. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + getOccAvailabilityCatalogContent( + GetOccAvailabilityCatalogContentRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetOccAvailabilityCatalogContentRequest, + GetOccAvailabilityCatalogContentResponse> + handler); + + /** + * Get details about the capacity request. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getOccCapacityRequest( + GetOccCapacityRequestRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetOccCapacityRequestRequest, GetOccCapacityRequestResponse> + handler); + + /** + * Gets information about the specified customer group. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getOccCustomerGroup( + GetOccCustomerGroupRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetOccCustomerGroupRequest, GetOccCustomerGroupResponse> + handler); + + /** + * Lists availabilities for a particular availability catalog. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listOccAvailabilities( + ListOccAvailabilitiesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListOccAvailabilitiesRequest, ListOccAvailabilitiesResponse> + handler); + + /** + * Lists all availability catalogs. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listOccAvailabilityCatalogs( + ListOccAvailabilityCatalogsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListOccAvailabilityCatalogsRequest, ListOccAvailabilityCatalogsResponse> + handler); + + /** + * An internal api to list availability catalogs. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + listOccAvailabilityCatalogsInternal( + ListOccAvailabilityCatalogsInternalRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListOccAvailabilityCatalogsInternalRequest, + ListOccAvailabilityCatalogsInternalResponse> + handler); + + /** + * Lists all capacity requests. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listOccCapacityRequests( + ListOccCapacityRequestsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListOccCapacityRequestsRequest, ListOccCapacityRequestsResponse> + handler); + + /** + * An internal api to list all capacity requests. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + listOccCapacityRequestsInternal( + ListOccCapacityRequestsInternalRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListOccCapacityRequestsInternalRequest, + ListOccCapacityRequestsInternalResponse> + handler); + + /** + * Lists all the customer groups. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listOccCustomerGroups( + ListOccCustomerGroupsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListOccCustomerGroupsRequest, ListOccCustomerGroupsResponse> + handler); + + /** + * Updates the OccCapacityRequest by evaluating a sequence of instructions. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future patchOccCapacityRequest( + PatchOccCapacityRequestRequest request, + com.oracle.bmc.responses.AsyncHandler< + PatchOccCapacityRequestRequest, PatchOccCapacityRequestResponse> + handler); + + /** + * Publishes the version of availability catalog specified by the operator. This makes that + * catalog version visible to customers. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + publishOccAvailabilityCatalog( + PublishOccAvailabilityCatalogRequest request, + com.oracle.bmc.responses.AsyncHandler< + PublishOccAvailabilityCatalogRequest, + PublishOccAvailabilityCatalogResponse> + handler); + + /** + * The internal api to update the capacity request. This api will be used by operators for + * updating the capacity request to either completed, resubmitted or rejected. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + updateInternalOccCapacityRequest( + UpdateInternalOccCapacityRequestRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateInternalOccCapacityRequestRequest, + UpdateInternalOccCapacityRequestResponse> + handler); + + /** + * The request to update the availability catalog. Currently only freeform tags can be updated + * via this api. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future updateOccAvailabilityCatalog( + UpdateOccAvailabilityCatalogRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateOccAvailabilityCatalogRequest, + UpdateOccAvailabilityCatalogResponse> + handler); + + /** + * The request to update the capacity request. The user can perform actions like closing a + * partially completed request so that it doesn't go ahead for full completion. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future updateOccCapacityRequest( + UpdateOccCapacityRequestRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateOccCapacityRequestRequest, UpdateOccCapacityRequestResponse> + handler); +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagementAsyncClient.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagementAsyncClient.java new file mode 100644 index 00000000000..fd5094ff1ac --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagementAsyncClient.java @@ -0,0 +1,959 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.capacitymanagement.requests.*; +import com.oracle.bmc.capacitymanagement.responses.*; + +import java.util.Objects; + +/** + * Async client implementation for CapacityManagement 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: 20231107") +public class CapacityManagementAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient + implements CapacityManagementAsync { + /** Service instance for CapacityManagement. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName("CAPACITYMANAGEMENT") + .serviceEndpointPrefix("") + .serviceEndpointTemplate( + "https://control-center-cp.{region}.oci.{secondLevelDomain}") + .endpointServiceName("control-center-cp") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(CapacityManagementAsyncClient.class); + + CapacityManagementAsyncClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + this(builder, authenticationDetailsProvider, true); + } + + CapacityManagementAsyncClient( + 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( + "CapacityManagementAsyncClient", "getOccAvailabilityCatalogContent")); + } + } + + /** + * 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, CapacityManagementAsyncClient> { + private boolean isStreamWarningEnabled = true; + + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "capacitymanagement"; + com.oracle.bmc.internal.Alloy.throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Enable/disable the stream warnings for the client + * + * @param isStreamWarningEnabled executorService + * @return this builder + */ + public Builder isStreamWarningEnabled(boolean isStreamWarningEnabled) { + this.isStreamWarningEnabled = isStreamWarningEnabled; + return this; + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public CapacityManagementAsyncClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new CapacityManagementAsyncClient( + 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 + createOccAvailabilityCatalog( + CreateOccAvailabilityCatalogRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateOccAvailabilityCatalogRequest, + CreateOccAvailabilityCatalogResponse> + handler) { + Objects.requireNonNull( + request.getCreateOccAvailabilityCatalogDetails(), + "createOccAvailabilityCatalogDetails is required"); + + return clientCall(request, CreateOccAvailabilityCatalogResponse::builder) + .logger(LOG, "createOccAvailabilityCatalog") + .serviceDetails("CapacityManagement", "CreateOccAvailabilityCatalog", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateOccAvailabilityCatalogRequest::builder) + .basePath("/20231107") + .appendPathParam("occAvailabilityCatalogs") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog.class, + CreateOccAvailabilityCatalogResponse.Builder::occAvailabilityCatalog) + .handleResponseHeaderString( + "etag", CreateOccAvailabilityCatalogResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + CreateOccAvailabilityCatalogResponse.Builder::opcRequestId) + .handleResponseHeaderInteger( + "retry-after", CreateOccAvailabilityCatalogResponse.Builder::retryAfter) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future createOccCapacityRequest( + CreateOccCapacityRequestRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateOccCapacityRequestRequest, CreateOccCapacityRequestResponse> + handler) { + Objects.requireNonNull( + request.getCreateOccCapacityRequestDetails(), + "createOccCapacityRequestDetails is required"); + + return clientCall(request, CreateOccCapacityRequestResponse::builder) + .logger(LOG, "createOccCapacityRequest") + .serviceDetails("CapacityManagement", "CreateOccCapacityRequest", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateOccCapacityRequestRequest::builder) + .basePath("/20231107") + .appendPathParam("occCapacityRequests") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.capacitymanagement.model.OccCapacityRequest.class, + CreateOccCapacityRequestResponse.Builder::occCapacityRequest) + .handleResponseHeaderString("etag", CreateOccCapacityRequestResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreateOccCapacityRequestResponse.Builder::opcRequestId) + .handleResponseHeaderInteger( + "retry-after", CreateOccCapacityRequestResponse.Builder::retryAfter) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + deleteOccAvailabilityCatalog( + DeleteOccAvailabilityCatalogRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteOccAvailabilityCatalogRequest, + DeleteOccAvailabilityCatalogResponse> + handler) { + + Validate.notBlank( + request.getOccAvailabilityCatalogId(), + "occAvailabilityCatalogId must not be blank"); + + return clientCall(request, DeleteOccAvailabilityCatalogResponse::builder) + .logger(LOG, "deleteOccAvailabilityCatalog") + .serviceDetails("CapacityManagement", "DeleteOccAvailabilityCatalog", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteOccAvailabilityCatalogRequest::builder) + .basePath("/20231107") + .appendPathParam("occAvailabilityCatalogs") + .appendPathParam(request.getOccAvailabilityCatalogId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", + DeleteOccAvailabilityCatalogResponse.Builder::opcRequestId) + .handleResponseHeaderInteger( + "retry-after", DeleteOccAvailabilityCatalogResponse.Builder::retryAfter) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future deleteOccCapacityRequest( + DeleteOccCapacityRequestRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteOccCapacityRequestRequest, DeleteOccCapacityRequestResponse> + handler) { + + Validate.notBlank( + request.getOccCapacityRequestId(), "occCapacityRequestId must not be blank"); + + return clientCall(request, DeleteOccCapacityRequestResponse::builder) + .logger(LOG, "deleteOccCapacityRequest") + .serviceDetails("CapacityManagement", "DeleteOccCapacityRequest", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteOccCapacityRequestRequest::builder) + .basePath("/20231107") + .appendPathParam("occCapacityRequests") + .appendPathParam(request.getOccCapacityRequestId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", DeleteOccCapacityRequestResponse.Builder::opcRequestId) + .handleResponseHeaderInteger( + "retry-after", DeleteOccCapacityRequestResponse.Builder::retryAfter) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getOccAvailabilityCatalog( + GetOccAvailabilityCatalogRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetOccAvailabilityCatalogRequest, GetOccAvailabilityCatalogResponse> + handler) { + + Validate.notBlank( + request.getOccAvailabilityCatalogId(), + "occAvailabilityCatalogId must not be blank"); + + return clientCall(request, GetOccAvailabilityCatalogResponse::builder) + .logger(LOG, "getOccAvailabilityCatalog") + .serviceDetails("CapacityManagement", "GetOccAvailabilityCatalog", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetOccAvailabilityCatalogRequest::builder) + .basePath("/20231107") + .appendPathParam("occAvailabilityCatalogs") + .appendPathParam(request.getOccAvailabilityCatalogId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog.class, + GetOccAvailabilityCatalogResponse.Builder::occAvailabilityCatalog) + .handleResponseHeaderString("etag", GetOccAvailabilityCatalogResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetOccAvailabilityCatalogResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + getOccAvailabilityCatalogContent( + GetOccAvailabilityCatalogContentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetOccAvailabilityCatalogContentRequest, + GetOccAvailabilityCatalogContentResponse> + handler) { + + Validate.notBlank( + request.getOccAvailabilityCatalogId(), + "occAvailabilityCatalogId must not be blank"); + + return clientCall(request, GetOccAvailabilityCatalogContentResponse::builder) + .logger(LOG, "getOccAvailabilityCatalogContent") + .serviceDetails("CapacityManagement", "GetOccAvailabilityCatalogContent", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetOccAvailabilityCatalogContentRequest::builder) + .basePath("/20231107") + .appendPathParam("occAvailabilityCatalogs") + .appendPathParam(request.getOccAvailabilityCatalogId()) + .appendPathParam("content") + .accept("application/binary") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleBody( + java.io.InputStream.class, + GetOccAvailabilityCatalogContentResponse.Builder::inputStream) + .handleResponseHeaderString( + "opc-request-id", + GetOccAvailabilityCatalogContentResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getOccCapacityRequest( + GetOccCapacityRequestRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetOccCapacityRequestRequest, GetOccCapacityRequestResponse> + handler) { + + Validate.notBlank( + request.getOccCapacityRequestId(), "occCapacityRequestId must not be blank"); + + return clientCall(request, GetOccCapacityRequestResponse::builder) + .logger(LOG, "getOccCapacityRequest") + .serviceDetails("CapacityManagement", "GetOccCapacityRequest", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetOccCapacityRequestRequest::builder) + .basePath("/20231107") + .appendPathParam("occCapacityRequests") + .appendPathParam(request.getOccCapacityRequestId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.capacitymanagement.model.OccCapacityRequest.class, + GetOccCapacityRequestResponse.Builder::occCapacityRequest) + .handleResponseHeaderString("etag", GetOccCapacityRequestResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetOccCapacityRequestResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getOccCustomerGroup( + GetOccCustomerGroupRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetOccCustomerGroupRequest, GetOccCustomerGroupResponse> + handler) { + + Validate.notBlank(request.getOccCustomerGroupId(), "occCustomerGroupId must not be blank"); + + return clientCall(request, GetOccCustomerGroupResponse::builder) + .logger(LOG, "getOccCustomerGroup") + .serviceDetails("CapacityManagement", "GetOccCustomerGroup", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetOccCustomerGroupRequest::builder) + .basePath("/20231107") + .appendPathParam("occCustomerGroups") + .appendPathParam(request.getOccCustomerGroupId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.capacitymanagement.model.OccCustomerGroup.class, + GetOccCustomerGroupResponse.Builder::occCustomerGroup) + .handleResponseHeaderString("etag", GetOccCustomerGroupResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetOccCustomerGroupResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listOccAvailabilities( + ListOccAvailabilitiesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListOccAvailabilitiesRequest, ListOccAvailabilitiesResponse> + handler) { + + Validate.notBlank( + request.getOccAvailabilityCatalogId(), + "occAvailabilityCatalogId must not be blank"); + + return clientCall(request, ListOccAvailabilitiesResponse::builder) + .logger(LOG, "listOccAvailabilities") + .serviceDetails("CapacityManagement", "ListOccAvailabilities", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListOccAvailabilitiesRequest::builder) + .basePath("/20231107") + .appendPathParam("occAvailabilityCatalogs") + .appendPathParam(request.getOccAvailabilityCatalogId()) + .appendPathParam("occAvailabilities") + .appendQueryParam( + "dateExpectedCapacityHandover", request.getDateExpectedCapacityHandover()) + .appendQueryParam("resourceName", request.getResourceName()) + .appendEnumQueryParam("resourceType", request.getResourceType()) + .appendEnumQueryParam("workloadType", request.getWorkloadType()) + .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.capacitymanagement.model.OccAvailabilityCollection.class, + ListOccAvailabilitiesResponse.Builder::occAvailabilityCollection) + .handleResponseHeaderString( + "opc-request-id", ListOccAvailabilitiesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListOccAvailabilitiesResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listOccAvailabilityCatalogs( + ListOccAvailabilityCatalogsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListOccAvailabilityCatalogsRequest, + ListOccAvailabilityCatalogsResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListOccAvailabilityCatalogsResponse::builder) + .logger(LOG, "listOccAvailabilityCatalogs") + .serviceDetails("CapacityManagement", "ListOccAvailabilityCatalogs", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListOccAvailabilityCatalogsRequest::builder) + .basePath("/20231107") + .appendPathParam("occAvailabilityCatalogs") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("namespace", request.getNamespace()) + .appendQueryParam("id", request.getId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendEnumQueryParam("catalogState", request.getCatalogState()) + .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.capacitymanagement.model.OccAvailabilityCatalogCollection + .class, + ListOccAvailabilityCatalogsResponse.Builder + ::occAvailabilityCatalogCollection) + .handleResponseHeaderString( + "opc-request-id", ListOccAvailabilityCatalogsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListOccAvailabilityCatalogsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listOccAvailabilityCatalogsInternal( + ListOccAvailabilityCatalogsInternalRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListOccAvailabilityCatalogsInternalRequest, + ListOccAvailabilityCatalogsInternalResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListOccAvailabilityCatalogsInternalResponse::builder) + .logger(LOG, "listOccAvailabilityCatalogsInternal") + .serviceDetails("CapacityManagement", "ListOccAvailabilityCatalogsInternal", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListOccAvailabilityCatalogsInternalRequest::builder) + .basePath("/20231107") + .appendPathParam("internal") + .appendPathParam("occAvailabilityCatalogs") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("namespace", request.getNamespace()) + .appendQueryParam("id", request.getId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendEnumQueryParam("catalogState", request.getCatalogState()) + .appendQueryParam("occCustomerGroupId", request.getOccCustomerGroupId()) + .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.capacitymanagement.model.OccAvailabilityCatalogCollection + .class, + ListOccAvailabilityCatalogsInternalResponse.Builder + ::occAvailabilityCatalogCollection) + .handleResponseHeaderString( + "opc-request-id", + ListOccAvailabilityCatalogsInternalResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListOccAvailabilityCatalogsInternalResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listOccCapacityRequests( + ListOccCapacityRequestsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListOccCapacityRequestsRequest, ListOccCapacityRequestsResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListOccCapacityRequestsResponse::builder) + .logger(LOG, "listOccCapacityRequests") + .serviceDetails("CapacityManagement", "ListOccCapacityRequests", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListOccCapacityRequestsRequest::builder) + .basePath("/20231107") + .appendPathParam("occCapacityRequests") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("occAvailabilityCatalogId", request.getOccAvailabilityCatalogId()) + .appendEnumQueryParam("namespace", request.getNamespace()) + .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.capacitymanagement.model.OccCapacityRequestCollection.class, + ListOccCapacityRequestsResponse.Builder::occCapacityRequestCollection) + .handleResponseHeaderString( + "opc-request-id", ListOccCapacityRequestsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListOccCapacityRequestsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listOccCapacityRequestsInternal( + ListOccCapacityRequestsInternalRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListOccCapacityRequestsInternalRequest, + ListOccCapacityRequestsInternalResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListOccCapacityRequestsInternalResponse::builder) + .logger(LOG, "listOccCapacityRequestsInternal") + .serviceDetails("CapacityManagement", "ListOccCapacityRequestsInternal", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListOccCapacityRequestsInternalRequest::builder) + .basePath("/20231107") + .appendPathParam("internal") + .appendPathParam("occCapacityRequests") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("occCustomerGroupId", request.getOccCustomerGroupId()) + .appendQueryParam("occAvailabilityCatalogId", request.getOccAvailabilityCatalogId()) + .appendEnumQueryParam("namespace", request.getNamespace()) + .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.capacitymanagement.model.OccCapacityRequestCollection.class, + ListOccCapacityRequestsInternalResponse.Builder + ::occCapacityRequestCollection) + .handleResponseHeaderString( + "opc-request-id", + ListOccCapacityRequestsInternalResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListOccCapacityRequestsInternalResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listOccCustomerGroups( + ListOccCustomerGroupsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListOccCustomerGroupsRequest, ListOccCustomerGroupsResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListOccCustomerGroupsResponse::builder) + .logger(LOG, "listOccCustomerGroups") + .serviceDetails("CapacityManagement", "ListOccCustomerGroups", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListOccCustomerGroupsRequest::builder) + .basePath("/20231107") + .appendPathParam("occCustomerGroups") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("status", request.getStatus()) + .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.capacitymanagement.model.OccCustomerGroupCollection.class, + ListOccCustomerGroupsResponse.Builder::occCustomerGroupCollection) + .handleResponseHeaderString( + "opc-request-id", ListOccCustomerGroupsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListOccCustomerGroupsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future patchOccCapacityRequest( + PatchOccCapacityRequestRequest request, + final com.oracle.bmc.responses.AsyncHandler< + PatchOccCapacityRequestRequest, PatchOccCapacityRequestResponse> + handler) { + Objects.requireNonNull( + request.getPatchOccCapacityRequestDetails(), + "patchOccCapacityRequestDetails is required"); + + Validate.notBlank( + request.getOccCapacityRequestId(), "occCapacityRequestId must not be blank"); + + return clientCall(request, PatchOccCapacityRequestResponse::builder) + .logger(LOG, "patchOccCapacityRequest") + .serviceDetails("CapacityManagement", "PatchOccCapacityRequest", "") + .method(com.oracle.bmc.http.client.Method.PATCH) + .requestBuilder(PatchOccCapacityRequestRequest::builder) + .basePath("/20231107") + .appendPathParam("occCapacityRequests") + .appendPathParam(request.getOccCapacityRequestId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.capacitymanagement.model.OccCapacityRequest.class, + PatchOccCapacityRequestResponse.Builder::occCapacityRequest) + .handleResponseHeaderString( + "opc-request-id", PatchOccCapacityRequestResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", PatchOccCapacityRequestResponse.Builder::etag) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + publishOccAvailabilityCatalog( + PublishOccAvailabilityCatalogRequest request, + final com.oracle.bmc.responses.AsyncHandler< + PublishOccAvailabilityCatalogRequest, + PublishOccAvailabilityCatalogResponse> + handler) { + + Validate.notBlank( + request.getOccAvailabilityCatalogId(), + "occAvailabilityCatalogId must not be blank"); + + return clientCall(request, PublishOccAvailabilityCatalogResponse::builder) + .logger(LOG, "publishOccAvailabilityCatalog") + .serviceDetails("CapacityManagement", "PublishOccAvailabilityCatalog", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(PublishOccAvailabilityCatalogRequest::builder) + .basePath("/20231107") + .appendPathParam("occAvailabilityCatalogs") + .appendPathParam(request.getOccAvailabilityCatalogId()) + .appendPathParam("actions") + .appendPathParam("publish") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleResponseHeaderString( + "opc-request-id", + PublishOccAvailabilityCatalogResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + updateInternalOccCapacityRequest( + UpdateInternalOccCapacityRequestRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateInternalOccCapacityRequestRequest, + UpdateInternalOccCapacityRequestResponse> + handler) { + Objects.requireNonNull( + request.getUpdateInternalOccCapacityRequestDetails(), + "updateInternalOccCapacityRequestDetails is required"); + + Validate.notBlank( + request.getOccCapacityRequestId(), "occCapacityRequestId must not be blank"); + + return clientCall(request, UpdateInternalOccCapacityRequestResponse::builder) + .logger(LOG, "updateInternalOccCapacityRequest") + .serviceDetails("CapacityManagement", "UpdateInternalOccCapacityRequest", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateInternalOccCapacityRequestRequest::builder) + .basePath("/20231107") + .appendPathParam("internal") + .appendPathParam("occCapacityRequests") + .appendPathParam(request.getOccCapacityRequestId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.capacitymanagement.model.OccCapacityRequest.class, + UpdateInternalOccCapacityRequestResponse.Builder::occCapacityRequest) + .handleResponseHeaderString( + "etag", UpdateInternalOccCapacityRequestResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + UpdateInternalOccCapacityRequestResponse.Builder::opcRequestId) + .handleResponseHeaderInteger( + "retry-after", UpdateInternalOccCapacityRequestResponse.Builder::retryAfter) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + updateOccAvailabilityCatalog( + UpdateOccAvailabilityCatalogRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateOccAvailabilityCatalogRequest, + UpdateOccAvailabilityCatalogResponse> + handler) { + Objects.requireNonNull( + request.getUpdateOccAvailabilityCatalogDetails(), + "updateOccAvailabilityCatalogDetails is required"); + + Validate.notBlank( + request.getOccAvailabilityCatalogId(), + "occAvailabilityCatalogId must not be blank"); + + return clientCall(request, UpdateOccAvailabilityCatalogResponse::builder) + .logger(LOG, "updateOccAvailabilityCatalog") + .serviceDetails("CapacityManagement", "UpdateOccAvailabilityCatalog", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateOccAvailabilityCatalogRequest::builder) + .basePath("/20231107") + .appendPathParam("occAvailabilityCatalogs") + .appendPathParam(request.getOccAvailabilityCatalogId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog.class, + UpdateOccAvailabilityCatalogResponse.Builder::occAvailabilityCatalog) + .handleResponseHeaderString( + "etag", UpdateOccAvailabilityCatalogResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + UpdateOccAvailabilityCatalogResponse.Builder::opcRequestId) + .handleResponseHeaderInteger( + "retry-after", UpdateOccAvailabilityCatalogResponse.Builder::retryAfter) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future updateOccCapacityRequest( + UpdateOccCapacityRequestRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateOccCapacityRequestRequest, UpdateOccCapacityRequestResponse> + handler) { + Objects.requireNonNull( + request.getUpdateOccCapacityRequestDetails(), + "updateOccCapacityRequestDetails is required"); + + Validate.notBlank( + request.getOccCapacityRequestId(), "occCapacityRequestId must not be blank"); + + return clientCall(request, UpdateOccCapacityRequestResponse::builder) + .logger(LOG, "updateOccCapacityRequest") + .serviceDetails("CapacityManagement", "UpdateOccCapacityRequest", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateOccCapacityRequestRequest::builder) + .basePath("/20231107") + .appendPathParam("occCapacityRequests") + .appendPathParam(request.getOccCapacityRequestId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.capacitymanagement.model.OccCapacityRequest.class, + UpdateOccCapacityRequestResponse.Builder::occCapacityRequest) + .handleResponseHeaderString("etag", UpdateOccCapacityRequestResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", UpdateOccCapacityRequestResponse.Builder::opcRequestId) + .handleResponseHeaderInteger( + "retry-after", UpdateOccCapacityRequestResponse.Builder::retryAfter) + .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 CapacityManagementAsyncClient( + 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 CapacityManagementAsyncClient( + 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 CapacityManagementAsyncClient( + 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 CapacityManagementAsyncClient( + 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 CapacityManagementAsyncClient( + 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 CapacityManagementAsyncClient( + 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 CapacityManagementAsyncClient( + 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-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagementClient.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagementClient.java new file mode 100644 index 00000000000..2bba1986a01 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagementClient.java @@ -0,0 +1,983 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.capacitymanagement.requests.*; +import com.oracle.bmc.capacitymanagement.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: 20231107") +public class CapacityManagementClient extends com.oracle.bmc.http.internal.BaseSyncClient + implements CapacityManagement { + /** Service instance for CapacityManagement. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName("CAPACITYMANAGEMENT") + .serviceEndpointPrefix("") + .serviceEndpointTemplate( + "https://control-center-cp.{region}.oci.{secondLevelDomain}") + .endpointServiceName("control-center-cp") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(CapacityManagementClient.class); + + private final CapacityManagementWaiters waiters; + + private final CapacityManagementPaginators paginators; + + CapacityManagementClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + java.util.concurrent.ExecutorService executorService) { + this(builder, authenticationDetailsProvider, executorService, true); + } + + CapacityManagementClient( + 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("CapacityManagement-waiters-%d") + .build()); + threadPoolExecutor.allowCoreThreadTimeOut(true); + + executorService = threadPoolExecutor; + } + this.waiters = new CapacityManagementWaiters(executorService, this); + + this.paginators = new CapacityManagementPaginators(this); + if (isStreamWarningEnabled && com.oracle.bmc.util.StreamUtils.isExtraStreamLogsEnabled()) { + LOG.warn( + com.oracle.bmc.util.StreamUtils.getStreamWarningMessage( + "CapacityManagementClient", "getOccAvailabilityCatalogContent")); + } + } + + /** + * 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 = "capacitymanagement"; + com.oracle.bmc.internal.Alloy.throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Set the ExecutorService for the client to be created. + * + * @param executorService executorService + * @return this builder + */ + public Builder executorService(java.util.concurrent.ExecutorService executorService) { + this.executorService = executorService; + return this; + } + + /** + * Enable/disable the stream warnings for the client + * + * @param isStreamWarningEnabled executorService + * @return this builder + */ + public Builder isStreamWarningEnabled(boolean isStreamWarningEnabled) { + this.isStreamWarningEnabled = isStreamWarningEnabled; + return this; + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public CapacityManagementClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new CapacityManagementClient( + 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 CreateOccAvailabilityCatalogResponse createOccAvailabilityCatalog( + CreateOccAvailabilityCatalogRequest request) { + Objects.requireNonNull( + request.getCreateOccAvailabilityCatalogDetails(), + "createOccAvailabilityCatalogDetails is required"); + + return clientCall(request, CreateOccAvailabilityCatalogResponse::builder) + .logger(LOG, "createOccAvailabilityCatalog") + .serviceDetails("CapacityManagement", "CreateOccAvailabilityCatalog", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateOccAvailabilityCatalogRequest::builder) + .basePath("/20231107") + .appendPathParam("occAvailabilityCatalogs") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog.class, + CreateOccAvailabilityCatalogResponse.Builder::occAvailabilityCatalog) + .handleResponseHeaderString( + "etag", CreateOccAvailabilityCatalogResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + CreateOccAvailabilityCatalogResponse.Builder::opcRequestId) + .handleResponseHeaderInteger( + "retry-after", CreateOccAvailabilityCatalogResponse.Builder::retryAfter) + .callSync(); + } + + @Override + public CreateOccCapacityRequestResponse createOccCapacityRequest( + CreateOccCapacityRequestRequest request) { + Objects.requireNonNull( + request.getCreateOccCapacityRequestDetails(), + "createOccCapacityRequestDetails is required"); + + return clientCall(request, CreateOccCapacityRequestResponse::builder) + .logger(LOG, "createOccCapacityRequest") + .serviceDetails("CapacityManagement", "CreateOccCapacityRequest", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateOccCapacityRequestRequest::builder) + .basePath("/20231107") + .appendPathParam("occCapacityRequests") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.capacitymanagement.model.OccCapacityRequest.class, + CreateOccCapacityRequestResponse.Builder::occCapacityRequest) + .handleResponseHeaderString("etag", CreateOccCapacityRequestResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreateOccCapacityRequestResponse.Builder::opcRequestId) + .handleResponseHeaderInteger( + "retry-after", CreateOccCapacityRequestResponse.Builder::retryAfter) + .callSync(); + } + + @Override + public DeleteOccAvailabilityCatalogResponse deleteOccAvailabilityCatalog( + DeleteOccAvailabilityCatalogRequest request) { + + Validate.notBlank( + request.getOccAvailabilityCatalogId(), + "occAvailabilityCatalogId must not be blank"); + + return clientCall(request, DeleteOccAvailabilityCatalogResponse::builder) + .logger(LOG, "deleteOccAvailabilityCatalog") + .serviceDetails("CapacityManagement", "DeleteOccAvailabilityCatalog", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteOccAvailabilityCatalogRequest::builder) + .basePath("/20231107") + .appendPathParam("occAvailabilityCatalogs") + .appendPathParam(request.getOccAvailabilityCatalogId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-request-id", + DeleteOccAvailabilityCatalogResponse.Builder::opcRequestId) + .handleResponseHeaderInteger( + "retry-after", DeleteOccAvailabilityCatalogResponse.Builder::retryAfter) + .callSync(); + } + + @Override + public DeleteOccCapacityRequestResponse deleteOccCapacityRequest( + DeleteOccCapacityRequestRequest request) { + + Validate.notBlank( + request.getOccCapacityRequestId(), "occCapacityRequestId must not be blank"); + + return clientCall(request, DeleteOccCapacityRequestResponse::builder) + .logger(LOG, "deleteOccCapacityRequest") + .serviceDetails("CapacityManagement", "DeleteOccCapacityRequest", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteOccCapacityRequestRequest::builder) + .basePath("/20231107") + .appendPathParam("occCapacityRequests") + .appendPathParam(request.getOccCapacityRequestId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-request-id", DeleteOccCapacityRequestResponse.Builder::opcRequestId) + .handleResponseHeaderInteger( + "retry-after", DeleteOccCapacityRequestResponse.Builder::retryAfter) + .callSync(); + } + + @Override + public GetOccAvailabilityCatalogResponse getOccAvailabilityCatalog( + GetOccAvailabilityCatalogRequest request) { + + Validate.notBlank( + request.getOccAvailabilityCatalogId(), + "occAvailabilityCatalogId must not be blank"); + + return clientCall(request, GetOccAvailabilityCatalogResponse::builder) + .logger(LOG, "getOccAvailabilityCatalog") + .serviceDetails("CapacityManagement", "GetOccAvailabilityCatalog", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetOccAvailabilityCatalogRequest::builder) + .basePath("/20231107") + .appendPathParam("occAvailabilityCatalogs") + .appendPathParam(request.getOccAvailabilityCatalogId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog.class, + GetOccAvailabilityCatalogResponse.Builder::occAvailabilityCatalog) + .handleResponseHeaderString("etag", GetOccAvailabilityCatalogResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetOccAvailabilityCatalogResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetOccAvailabilityCatalogContentResponse getOccAvailabilityCatalogContent( + GetOccAvailabilityCatalogContentRequest request) { + + Validate.notBlank( + request.getOccAvailabilityCatalogId(), + "occAvailabilityCatalogId must not be blank"); + + return clientCall(request, GetOccAvailabilityCatalogContentResponse::builder) + .logger(LOG, "getOccAvailabilityCatalogContent") + .serviceDetails("CapacityManagement", "GetOccAvailabilityCatalogContent", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetOccAvailabilityCatalogContentRequest::builder) + .basePath("/20231107") + .appendPathParam("occAvailabilityCatalogs") + .appendPathParam(request.getOccAvailabilityCatalogId()) + .appendPathParam("content") + .accept("application/binary") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .handleBody( + java.io.InputStream.class, + GetOccAvailabilityCatalogContentResponse.Builder::inputStream) + .handleResponseHeaderString( + "opc-request-id", + GetOccAvailabilityCatalogContentResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetOccCapacityRequestResponse getOccCapacityRequest( + GetOccCapacityRequestRequest request) { + + Validate.notBlank( + request.getOccCapacityRequestId(), "occCapacityRequestId must not be blank"); + + return clientCall(request, GetOccCapacityRequestResponse::builder) + .logger(LOG, "getOccCapacityRequest") + .serviceDetails("CapacityManagement", "GetOccCapacityRequest", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetOccCapacityRequestRequest::builder) + .basePath("/20231107") + .appendPathParam("occCapacityRequests") + .appendPathParam(request.getOccCapacityRequestId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.capacitymanagement.model.OccCapacityRequest.class, + GetOccCapacityRequestResponse.Builder::occCapacityRequest) + .handleResponseHeaderString("etag", GetOccCapacityRequestResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetOccCapacityRequestResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetOccCustomerGroupResponse getOccCustomerGroup(GetOccCustomerGroupRequest request) { + + Validate.notBlank(request.getOccCustomerGroupId(), "occCustomerGroupId must not be blank"); + + return clientCall(request, GetOccCustomerGroupResponse::builder) + .logger(LOG, "getOccCustomerGroup") + .serviceDetails("CapacityManagement", "GetOccCustomerGroup", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetOccCustomerGroupRequest::builder) + .basePath("/20231107") + .appendPathParam("occCustomerGroups") + .appendPathParam(request.getOccCustomerGroupId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.capacitymanagement.model.OccCustomerGroup.class, + GetOccCustomerGroupResponse.Builder::occCustomerGroup) + .handleResponseHeaderString("etag", GetOccCustomerGroupResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetOccCustomerGroupResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListOccAvailabilitiesResponse listOccAvailabilities( + ListOccAvailabilitiesRequest request) { + + Validate.notBlank( + request.getOccAvailabilityCatalogId(), + "occAvailabilityCatalogId must not be blank"); + + return clientCall(request, ListOccAvailabilitiesResponse::builder) + .logger(LOG, "listOccAvailabilities") + .serviceDetails("CapacityManagement", "ListOccAvailabilities", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListOccAvailabilitiesRequest::builder) + .basePath("/20231107") + .appendPathParam("occAvailabilityCatalogs") + .appendPathParam(request.getOccAvailabilityCatalogId()) + .appendPathParam("occAvailabilities") + .appendQueryParam( + "dateExpectedCapacityHandover", request.getDateExpectedCapacityHandover()) + .appendQueryParam("resourceName", request.getResourceName()) + .appendEnumQueryParam("resourceType", request.getResourceType()) + .appendEnumQueryParam("workloadType", request.getWorkloadType()) + .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.capacitymanagement.model.OccAvailabilityCollection.class, + ListOccAvailabilitiesResponse.Builder::occAvailabilityCollection) + .handleResponseHeaderString( + "opc-request-id", ListOccAvailabilitiesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListOccAvailabilitiesResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListOccAvailabilityCatalogsResponse listOccAvailabilityCatalogs( + ListOccAvailabilityCatalogsRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListOccAvailabilityCatalogsResponse::builder) + .logger(LOG, "listOccAvailabilityCatalogs") + .serviceDetails("CapacityManagement", "ListOccAvailabilityCatalogs", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListOccAvailabilityCatalogsRequest::builder) + .basePath("/20231107") + .appendPathParam("occAvailabilityCatalogs") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("namespace", request.getNamespace()) + .appendQueryParam("id", request.getId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendEnumQueryParam("catalogState", request.getCatalogState()) + .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.capacitymanagement.model.OccAvailabilityCatalogCollection + .class, + ListOccAvailabilityCatalogsResponse.Builder + ::occAvailabilityCatalogCollection) + .handleResponseHeaderString( + "opc-request-id", ListOccAvailabilityCatalogsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListOccAvailabilityCatalogsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListOccAvailabilityCatalogsInternalResponse listOccAvailabilityCatalogsInternal( + ListOccAvailabilityCatalogsInternalRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListOccAvailabilityCatalogsInternalResponse::builder) + .logger(LOG, "listOccAvailabilityCatalogsInternal") + .serviceDetails("CapacityManagement", "ListOccAvailabilityCatalogsInternal", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListOccAvailabilityCatalogsInternalRequest::builder) + .basePath("/20231107") + .appendPathParam("internal") + .appendPathParam("occAvailabilityCatalogs") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("namespace", request.getNamespace()) + .appendQueryParam("id", request.getId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendEnumQueryParam("catalogState", request.getCatalogState()) + .appendQueryParam("occCustomerGroupId", request.getOccCustomerGroupId()) + .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.capacitymanagement.model.OccAvailabilityCatalogCollection + .class, + ListOccAvailabilityCatalogsInternalResponse.Builder + ::occAvailabilityCatalogCollection) + .handleResponseHeaderString( + "opc-request-id", + ListOccAvailabilityCatalogsInternalResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListOccAvailabilityCatalogsInternalResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListOccCapacityRequestsResponse listOccCapacityRequests( + ListOccCapacityRequestsRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListOccCapacityRequestsResponse::builder) + .logger(LOG, "listOccCapacityRequests") + .serviceDetails("CapacityManagement", "ListOccCapacityRequests", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListOccCapacityRequestsRequest::builder) + .basePath("/20231107") + .appendPathParam("occCapacityRequests") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("occAvailabilityCatalogId", request.getOccAvailabilityCatalogId()) + .appendEnumQueryParam("namespace", request.getNamespace()) + .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.capacitymanagement.model.OccCapacityRequestCollection.class, + ListOccCapacityRequestsResponse.Builder::occCapacityRequestCollection) + .handleResponseHeaderString( + "opc-request-id", ListOccCapacityRequestsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListOccCapacityRequestsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListOccCapacityRequestsInternalResponse listOccCapacityRequestsInternal( + ListOccCapacityRequestsInternalRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListOccCapacityRequestsInternalResponse::builder) + .logger(LOG, "listOccCapacityRequestsInternal") + .serviceDetails("CapacityManagement", "ListOccCapacityRequestsInternal", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListOccCapacityRequestsInternalRequest::builder) + .basePath("/20231107") + .appendPathParam("internal") + .appendPathParam("occCapacityRequests") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("occCustomerGroupId", request.getOccCustomerGroupId()) + .appendQueryParam("occAvailabilityCatalogId", request.getOccAvailabilityCatalogId()) + .appendEnumQueryParam("namespace", request.getNamespace()) + .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.capacitymanagement.model.OccCapacityRequestCollection.class, + ListOccCapacityRequestsInternalResponse.Builder + ::occCapacityRequestCollection) + .handleResponseHeaderString( + "opc-request-id", + ListOccCapacityRequestsInternalResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListOccCapacityRequestsInternalResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListOccCustomerGroupsResponse listOccCustomerGroups( + ListOccCustomerGroupsRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListOccCustomerGroupsResponse::builder) + .logger(LOG, "listOccCustomerGroups") + .serviceDetails("CapacityManagement", "ListOccCustomerGroups", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListOccCustomerGroupsRequest::builder) + .basePath("/20231107") + .appendPathParam("occCustomerGroups") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("status", request.getStatus()) + .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.capacitymanagement.model.OccCustomerGroupCollection.class, + ListOccCustomerGroupsResponse.Builder::occCustomerGroupCollection) + .handleResponseHeaderString( + "opc-request-id", ListOccCustomerGroupsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListOccCustomerGroupsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public PatchOccCapacityRequestResponse patchOccCapacityRequest( + PatchOccCapacityRequestRequest request) { + Objects.requireNonNull( + request.getPatchOccCapacityRequestDetails(), + "patchOccCapacityRequestDetails is required"); + + Validate.notBlank( + request.getOccCapacityRequestId(), "occCapacityRequestId must not be blank"); + + return clientCall(request, PatchOccCapacityRequestResponse::builder) + .logger(LOG, "patchOccCapacityRequest") + .serviceDetails("CapacityManagement", "PatchOccCapacityRequest", "") + .method(com.oracle.bmc.http.client.Method.PATCH) + .requestBuilder(PatchOccCapacityRequestRequest::builder) + .basePath("/20231107") + .appendPathParam("occCapacityRequests") + .appendPathParam(request.getOccCapacityRequestId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.capacitymanagement.model.OccCapacityRequest.class, + PatchOccCapacityRequestResponse.Builder::occCapacityRequest) + .handleResponseHeaderString( + "opc-request-id", PatchOccCapacityRequestResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", PatchOccCapacityRequestResponse.Builder::etag) + .callSync(); + } + + @Override + public PublishOccAvailabilityCatalogResponse publishOccAvailabilityCatalog( + PublishOccAvailabilityCatalogRequest request) { + + Validate.notBlank( + request.getOccAvailabilityCatalogId(), + "occAvailabilityCatalogId must not be blank"); + + return clientCall(request, PublishOccAvailabilityCatalogResponse::builder) + .logger(LOG, "publishOccAvailabilityCatalog") + .serviceDetails("CapacityManagement", "PublishOccAvailabilityCatalog", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(PublishOccAvailabilityCatalogRequest::builder) + .basePath("/20231107") + .appendPathParam("occAvailabilityCatalogs") + .appendPathParam(request.getOccAvailabilityCatalogId()) + .appendPathParam("actions") + .appendPathParam("publish") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-request-id", + PublishOccAvailabilityCatalogResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public UpdateInternalOccCapacityRequestResponse updateInternalOccCapacityRequest( + UpdateInternalOccCapacityRequestRequest request) { + Objects.requireNonNull( + request.getUpdateInternalOccCapacityRequestDetails(), + "updateInternalOccCapacityRequestDetails is required"); + + Validate.notBlank( + request.getOccCapacityRequestId(), "occCapacityRequestId must not be blank"); + + return clientCall(request, UpdateInternalOccCapacityRequestResponse::builder) + .logger(LOG, "updateInternalOccCapacityRequest") + .serviceDetails("CapacityManagement", "UpdateInternalOccCapacityRequest", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateInternalOccCapacityRequestRequest::builder) + .basePath("/20231107") + .appendPathParam("internal") + .appendPathParam("occCapacityRequests") + .appendPathParam(request.getOccCapacityRequestId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.capacitymanagement.model.OccCapacityRequest.class, + UpdateInternalOccCapacityRequestResponse.Builder::occCapacityRequest) + .handleResponseHeaderString( + "etag", UpdateInternalOccCapacityRequestResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + UpdateInternalOccCapacityRequestResponse.Builder::opcRequestId) + .handleResponseHeaderInteger( + "retry-after", UpdateInternalOccCapacityRequestResponse.Builder::retryAfter) + .callSync(); + } + + @Override + public UpdateOccAvailabilityCatalogResponse updateOccAvailabilityCatalog( + UpdateOccAvailabilityCatalogRequest request) { + Objects.requireNonNull( + request.getUpdateOccAvailabilityCatalogDetails(), + "updateOccAvailabilityCatalogDetails is required"); + + Validate.notBlank( + request.getOccAvailabilityCatalogId(), + "occAvailabilityCatalogId must not be blank"); + + return clientCall(request, UpdateOccAvailabilityCatalogResponse::builder) + .logger(LOG, "updateOccAvailabilityCatalog") + .serviceDetails("CapacityManagement", "UpdateOccAvailabilityCatalog", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateOccAvailabilityCatalogRequest::builder) + .basePath("/20231107") + .appendPathParam("occAvailabilityCatalogs") + .appendPathParam(request.getOccAvailabilityCatalogId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog.class, + UpdateOccAvailabilityCatalogResponse.Builder::occAvailabilityCatalog) + .handleResponseHeaderString( + "etag", UpdateOccAvailabilityCatalogResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + UpdateOccAvailabilityCatalogResponse.Builder::opcRequestId) + .handleResponseHeaderInteger( + "retry-after", UpdateOccAvailabilityCatalogResponse.Builder::retryAfter) + .callSync(); + } + + @Override + public UpdateOccCapacityRequestResponse updateOccCapacityRequest( + UpdateOccCapacityRequestRequest request) { + Objects.requireNonNull( + request.getUpdateOccCapacityRequestDetails(), + "updateOccCapacityRequestDetails is required"); + + Validate.notBlank( + request.getOccCapacityRequestId(), "occCapacityRequestId must not be blank"); + + return clientCall(request, UpdateOccCapacityRequestResponse::builder) + .logger(LOG, "updateOccCapacityRequest") + .serviceDetails("CapacityManagement", "UpdateOccCapacityRequest", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateOccCapacityRequestRequest::builder) + .basePath("/20231107") + .appendPathParam("occCapacityRequests") + .appendPathParam(request.getOccCapacityRequestId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.capacitymanagement.model.OccCapacityRequest.class, + UpdateOccCapacityRequestResponse.Builder::occCapacityRequest) + .handleResponseHeaderString("etag", UpdateOccCapacityRequestResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", UpdateOccCapacityRequestResponse.Builder::opcRequestId) + .handleResponseHeaderInteger( + "retry-after", UpdateOccCapacityRequestResponse.Builder::retryAfter) + .callSync(); + } + + @Override + public CapacityManagementWaiters getWaiters() { + return waiters; + } + + @Override + public CapacityManagementPaginators 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 CapacityManagementClient( + 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 CapacityManagementClient( + 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 CapacityManagementClient( + 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 CapacityManagementClient( + 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 CapacityManagementClient( + 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 CapacityManagementClient( + 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 CapacityManagementClient( + 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 CapacityManagementClient( + 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-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagementPaginators.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagementPaginators.java new file mode 100644 index 00000000000..f1ea8881632 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagementPaginators.java @@ -0,0 +1,810 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement; + +import com.oracle.bmc.capacitymanagement.requests.*; +import com.oracle.bmc.capacitymanagement.responses.*; + +/** + * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface + * to any list operations of CapacityManagement where multiple pages of data may be fetched. Two + * styles of iteration are supported: + * + *

+ * + * These iterables abstract away the need to write code to manually handle pagination via looping + * and using the page tokens. They will automatically fetch more data from the service when + * required. + * + *

As an example, if we were using the ListUsers operation in IdentityService, then the {@link + * java.lang.Iterable} returned by calling a ResponseIterator method would iterate over the + * ListUsersResponse objects returned by each ListUsers call, whereas the {@link java.lang.Iterable} + * returned by calling a RecordIterator method would iterate over the User records and we don't have + * to deal with ListUsersResponse objects at all. In either case, pagination will be automatically + * handled so we can iterate until there are no more responses or no more resources/records + * available. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class CapacityManagementPaginators { + private final CapacityManagement client; + + public CapacityManagementPaginators(CapacityManagement client) { + this.client = client; + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listOccAvailabilities 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 listOccAvailabilitiesResponseIterator( + final ListOccAvailabilitiesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListOccAvailabilitiesRequest.Builder, + ListOccAvailabilitiesRequest, + ListOccAvailabilitiesResponse>( + new java.util.function.Supplier() { + @Override + public ListOccAvailabilitiesRequest.Builder get() { + return ListOccAvailabilitiesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListOccAvailabilitiesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOccAvailabilitiesRequest.Builder>, + ListOccAvailabilitiesRequest>() { + @Override + public ListOccAvailabilitiesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOccAvailabilitiesRequest.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< + ListOccAvailabilitiesRequest, ListOccAvailabilitiesResponse>() { + @Override + public ListOccAvailabilitiesResponse apply( + ListOccAvailabilitiesRequest request) { + return client.listOccAvailabilities(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.capacitymanagement.model.OccAvailabilitySummary} objects contained in + * responses from the listOccAvailabilities 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.capacitymanagement.model.OccAvailabilitySummary} objects contained in + * responses received from the service. + */ + public Iterable + listOccAvailabilitiesRecordIterator(final ListOccAvailabilitiesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListOccAvailabilitiesRequest.Builder, + ListOccAvailabilitiesRequest, + ListOccAvailabilitiesResponse, + com.oracle.bmc.capacitymanagement.model.OccAvailabilitySummary>( + new java.util.function.Supplier() { + @Override + public ListOccAvailabilitiesRequest.Builder get() { + return ListOccAvailabilitiesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListOccAvailabilitiesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOccAvailabilitiesRequest.Builder>, + ListOccAvailabilitiesRequest>() { + @Override + public ListOccAvailabilitiesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOccAvailabilitiesRequest.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< + ListOccAvailabilitiesRequest, ListOccAvailabilitiesResponse>() { + @Override + public ListOccAvailabilitiesResponse apply( + ListOccAvailabilitiesRequest request) { + return client.listOccAvailabilities(request); + } + }, + new java.util.function.Function< + ListOccAvailabilitiesResponse, + java.util.List< + com.oracle.bmc.capacitymanagement.model.OccAvailabilitySummary>>() { + @Override + public java.util.List< + com.oracle.bmc.capacitymanagement.model.OccAvailabilitySummary> + apply(ListOccAvailabilitiesResponse response) { + return response.getOccAvailabilityCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listOccAvailabilityCatalogs 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 + listOccAvailabilityCatalogsResponseIterator( + final ListOccAvailabilityCatalogsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListOccAvailabilityCatalogsRequest.Builder, + ListOccAvailabilityCatalogsRequest, + ListOccAvailabilityCatalogsResponse>( + new java.util.function.Supplier() { + @Override + public ListOccAvailabilityCatalogsRequest.Builder get() { + return ListOccAvailabilityCatalogsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListOccAvailabilityCatalogsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOccAvailabilityCatalogsRequest.Builder>, + ListOccAvailabilityCatalogsRequest>() { + @Override + public ListOccAvailabilityCatalogsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOccAvailabilityCatalogsRequest.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< + ListOccAvailabilityCatalogsRequest, ListOccAvailabilityCatalogsResponse>() { + @Override + public ListOccAvailabilityCatalogsResponse apply( + ListOccAvailabilityCatalogsRequest request) { + return client.listOccAvailabilityCatalogs(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalogSummary} objects contained in + * responses from the listOccAvailabilityCatalogs 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.capacitymanagement.model.OccAvailabilityCatalogSummary} objects contained + * in responses received from the service. + */ + public Iterable + listOccAvailabilityCatalogsRecordIterator( + final ListOccAvailabilityCatalogsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListOccAvailabilityCatalogsRequest.Builder, + ListOccAvailabilityCatalogsRequest, + ListOccAvailabilityCatalogsResponse, + com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalogSummary>( + new java.util.function.Supplier() { + @Override + public ListOccAvailabilityCatalogsRequest.Builder get() { + return ListOccAvailabilityCatalogsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListOccAvailabilityCatalogsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOccAvailabilityCatalogsRequest.Builder>, + ListOccAvailabilityCatalogsRequest>() { + @Override + public ListOccAvailabilityCatalogsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOccAvailabilityCatalogsRequest.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< + ListOccAvailabilityCatalogsRequest, ListOccAvailabilityCatalogsResponse>() { + @Override + public ListOccAvailabilityCatalogsResponse apply( + ListOccAvailabilityCatalogsRequest request) { + return client.listOccAvailabilityCatalogs(request); + } + }, + new java.util.function.Function< + ListOccAvailabilityCatalogsResponse, + java.util.List< + com.oracle.bmc.capacitymanagement.model + .OccAvailabilityCatalogSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.capacitymanagement.model + .OccAvailabilityCatalogSummary> + apply(ListOccAvailabilityCatalogsResponse response) { + return response.getOccAvailabilityCatalogCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listOccAvailabilityCatalogsInternal 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 + listOccAvailabilityCatalogsInternalResponseIterator( + final ListOccAvailabilityCatalogsInternalRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListOccAvailabilityCatalogsInternalRequest.Builder, + ListOccAvailabilityCatalogsInternalRequest, + ListOccAvailabilityCatalogsInternalResponse>( + new java.util.function.Supplier< + ListOccAvailabilityCatalogsInternalRequest.Builder>() { + @Override + public ListOccAvailabilityCatalogsInternalRequest.Builder get() { + return ListOccAvailabilityCatalogsInternalRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListOccAvailabilityCatalogsInternalResponse, String>() { + @Override + public String apply(ListOccAvailabilityCatalogsInternalResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOccAvailabilityCatalogsInternalRequest.Builder>, + ListOccAvailabilityCatalogsInternalRequest>() { + @Override + public ListOccAvailabilityCatalogsInternalRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOccAvailabilityCatalogsInternalRequest.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< + ListOccAvailabilityCatalogsInternalRequest, + ListOccAvailabilityCatalogsInternalResponse>() { + @Override + public ListOccAvailabilityCatalogsInternalResponse apply( + ListOccAvailabilityCatalogsInternalRequest request) { + return client.listOccAvailabilityCatalogsInternal(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalogSummary} objects contained in + * responses from the listOccAvailabilityCatalogsInternal 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.capacitymanagement.model.OccAvailabilityCatalogSummary} objects contained + * in responses received from the service. + */ + public Iterable + listOccAvailabilityCatalogsInternalRecordIterator( + final ListOccAvailabilityCatalogsInternalRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListOccAvailabilityCatalogsInternalRequest.Builder, + ListOccAvailabilityCatalogsInternalRequest, + ListOccAvailabilityCatalogsInternalResponse, + com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalogSummary>( + new java.util.function.Supplier< + ListOccAvailabilityCatalogsInternalRequest.Builder>() { + @Override + public ListOccAvailabilityCatalogsInternalRequest.Builder get() { + return ListOccAvailabilityCatalogsInternalRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListOccAvailabilityCatalogsInternalResponse, String>() { + @Override + public String apply(ListOccAvailabilityCatalogsInternalResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOccAvailabilityCatalogsInternalRequest.Builder>, + ListOccAvailabilityCatalogsInternalRequest>() { + @Override + public ListOccAvailabilityCatalogsInternalRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOccAvailabilityCatalogsInternalRequest.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< + ListOccAvailabilityCatalogsInternalRequest, + ListOccAvailabilityCatalogsInternalResponse>() { + @Override + public ListOccAvailabilityCatalogsInternalResponse apply( + ListOccAvailabilityCatalogsInternalRequest request) { + return client.listOccAvailabilityCatalogsInternal(request); + } + }, + new java.util.function.Function< + ListOccAvailabilityCatalogsInternalResponse, + java.util.List< + com.oracle.bmc.capacitymanagement.model + .OccAvailabilityCatalogSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.capacitymanagement.model + .OccAvailabilityCatalogSummary> + apply(ListOccAvailabilityCatalogsInternalResponse response) { + return response.getOccAvailabilityCatalogCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listOccCapacityRequests 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 listOccCapacityRequestsResponseIterator( + final ListOccCapacityRequestsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListOccCapacityRequestsRequest.Builder, + ListOccCapacityRequestsRequest, + ListOccCapacityRequestsResponse>( + new java.util.function.Supplier() { + @Override + public ListOccCapacityRequestsRequest.Builder get() { + return ListOccCapacityRequestsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListOccCapacityRequestsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOccCapacityRequestsRequest.Builder>, + ListOccCapacityRequestsRequest>() { + @Override + public ListOccCapacityRequestsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOccCapacityRequestsRequest.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< + ListOccCapacityRequestsRequest, ListOccCapacityRequestsResponse>() { + @Override + public ListOccCapacityRequestsResponse apply( + ListOccCapacityRequestsRequest request) { + return client.listOccCapacityRequests(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.capacitymanagement.model.OccCapacityRequestSummary} objects contained in + * responses from the listOccCapacityRequests 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.capacitymanagement.model.OccCapacityRequestSummary} objects contained in + * responses received from the service. + */ + public Iterable + listOccCapacityRequestsRecordIterator(final ListOccCapacityRequestsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListOccCapacityRequestsRequest.Builder, + ListOccCapacityRequestsRequest, + ListOccCapacityRequestsResponse, + com.oracle.bmc.capacitymanagement.model.OccCapacityRequestSummary>( + new java.util.function.Supplier() { + @Override + public ListOccCapacityRequestsRequest.Builder get() { + return ListOccCapacityRequestsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListOccCapacityRequestsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOccCapacityRequestsRequest.Builder>, + ListOccCapacityRequestsRequest>() { + @Override + public ListOccCapacityRequestsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOccCapacityRequestsRequest.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< + ListOccCapacityRequestsRequest, ListOccCapacityRequestsResponse>() { + @Override + public ListOccCapacityRequestsResponse apply( + ListOccCapacityRequestsRequest request) { + return client.listOccCapacityRequests(request); + } + }, + new java.util.function.Function< + ListOccCapacityRequestsResponse, + java.util.List< + com.oracle.bmc.capacitymanagement.model + .OccCapacityRequestSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.capacitymanagement.model + .OccCapacityRequestSummary> + apply(ListOccCapacityRequestsResponse response) { + return response.getOccCapacityRequestCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listOccCapacityRequestsInternal 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 + listOccCapacityRequestsInternalResponseIterator( + final ListOccCapacityRequestsInternalRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListOccCapacityRequestsInternalRequest.Builder, + ListOccCapacityRequestsInternalRequest, + ListOccCapacityRequestsInternalResponse>( + new java.util.function.Supplier() { + @Override + public ListOccCapacityRequestsInternalRequest.Builder get() { + return ListOccCapacityRequestsInternalRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListOccCapacityRequestsInternalResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOccCapacityRequestsInternalRequest.Builder>, + ListOccCapacityRequestsInternalRequest>() { + @Override + public ListOccCapacityRequestsInternalRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOccCapacityRequestsInternalRequest.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< + ListOccCapacityRequestsInternalRequest, + ListOccCapacityRequestsInternalResponse>() { + @Override + public ListOccCapacityRequestsInternalResponse apply( + ListOccCapacityRequestsInternalRequest request) { + return client.listOccCapacityRequestsInternal(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.capacitymanagement.model.OccCapacityRequestSummary} objects contained in + * responses from the listOccCapacityRequestsInternal 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.capacitymanagement.model.OccCapacityRequestSummary} objects contained in + * responses received from the service. + */ + public Iterable + listOccCapacityRequestsInternalRecordIterator( + final ListOccCapacityRequestsInternalRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListOccCapacityRequestsInternalRequest.Builder, + ListOccCapacityRequestsInternalRequest, + ListOccCapacityRequestsInternalResponse, + com.oracle.bmc.capacitymanagement.model.OccCapacityRequestSummary>( + new java.util.function.Supplier() { + @Override + public ListOccCapacityRequestsInternalRequest.Builder get() { + return ListOccCapacityRequestsInternalRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListOccCapacityRequestsInternalResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOccCapacityRequestsInternalRequest.Builder>, + ListOccCapacityRequestsInternalRequest>() { + @Override + public ListOccCapacityRequestsInternalRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOccCapacityRequestsInternalRequest.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< + ListOccCapacityRequestsInternalRequest, + ListOccCapacityRequestsInternalResponse>() { + @Override + public ListOccCapacityRequestsInternalResponse apply( + ListOccCapacityRequestsInternalRequest request) { + return client.listOccCapacityRequestsInternal(request); + } + }, + new java.util.function.Function< + ListOccCapacityRequestsInternalResponse, + java.util.List< + com.oracle.bmc.capacitymanagement.model + .OccCapacityRequestSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.capacitymanagement.model + .OccCapacityRequestSummary> + apply(ListOccCapacityRequestsInternalResponse response) { + return response.getOccCapacityRequestCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listOccCustomerGroups 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 listOccCustomerGroupsResponseIterator( + final ListOccCustomerGroupsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListOccCustomerGroupsRequest.Builder, + ListOccCustomerGroupsRequest, + ListOccCustomerGroupsResponse>( + new java.util.function.Supplier() { + @Override + public ListOccCustomerGroupsRequest.Builder get() { + return ListOccCustomerGroupsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListOccCustomerGroupsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOccCustomerGroupsRequest.Builder>, + ListOccCustomerGroupsRequest>() { + @Override + public ListOccCustomerGroupsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOccCustomerGroupsRequest.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< + ListOccCustomerGroupsRequest, ListOccCustomerGroupsResponse>() { + @Override + public ListOccCustomerGroupsResponse apply( + ListOccCustomerGroupsRequest request) { + return client.listOccCustomerGroups(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.capacitymanagement.model.OccCustomerGroupSummary} objects contained in + * responses from the listOccCustomerGroups 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.capacitymanagement.model.OccCustomerGroupSummary} objects contained in + * responses received from the service. + */ + public Iterable + listOccCustomerGroupsRecordIterator(final ListOccCustomerGroupsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListOccCustomerGroupsRequest.Builder, + ListOccCustomerGroupsRequest, + ListOccCustomerGroupsResponse, + com.oracle.bmc.capacitymanagement.model.OccCustomerGroupSummary>( + new java.util.function.Supplier() { + @Override + public ListOccCustomerGroupsRequest.Builder get() { + return ListOccCustomerGroupsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListOccCustomerGroupsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOccCustomerGroupsRequest.Builder>, + ListOccCustomerGroupsRequest>() { + @Override + public ListOccCustomerGroupsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOccCustomerGroupsRequest.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< + ListOccCustomerGroupsRequest, ListOccCustomerGroupsResponse>() { + @Override + public ListOccCustomerGroupsResponse apply( + ListOccCustomerGroupsRequest request) { + return client.listOccCustomerGroups(request); + } + }, + new java.util.function.Function< + ListOccCustomerGroupsResponse, + java.util.List< + com.oracle.bmc.capacitymanagement.model + .OccCustomerGroupSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.capacitymanagement.model.OccCustomerGroupSummary> + apply(ListOccCustomerGroupsResponse response) { + return response.getOccCustomerGroupCollection().getItems(); + } + }); + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagementWaiters.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagementWaiters.java new file mode 100644 index 00000000000..efda19d8f1b --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/CapacityManagementWaiters.java @@ -0,0 +1,369 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement; + +import com.oracle.bmc.capacitymanagement.requests.*; +import com.oracle.bmc.capacitymanagement.responses.*; + +/** + * Collection of helper methods to produce {@link com.oracle.bmc.waiter.Waiter}s for different + * resources of CapacityManagement. + * + *

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: 20231107") +public class CapacityManagementWaiters { + private final java.util.concurrent.ExecutorService executorService; + private final CapacityManagement client; + + public CapacityManagementWaiters( + java.util.concurrent.ExecutorService executorService, CapacityManagement 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< + GetOccAvailabilityCatalogRequest, GetOccAvailabilityCatalogResponse> + forOccAvailabilityCatalog( + GetOccAvailabilityCatalogRequest request, + com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog.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 forOccAvailabilityCatalog( + 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< + GetOccAvailabilityCatalogRequest, GetOccAvailabilityCatalogResponse> + forOccAvailabilityCatalog( + GetOccAvailabilityCatalogRequest request, + com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog.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 forOccAvailabilityCatalog( + 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< + GetOccAvailabilityCatalogRequest, GetOccAvailabilityCatalogResponse> + forOccAvailabilityCatalog( + GetOccAvailabilityCatalogRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog.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 forOccAvailabilityCatalog( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for OccAvailabilityCatalog. + private com.oracle.bmc.waiter.Waiter< + GetOccAvailabilityCatalogRequest, GetOccAvailabilityCatalogResponse> + forOccAvailabilityCatalog( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetOccAvailabilityCatalogRequest request, + final com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog + .LifecycleState + ... + targetStates) { + final java.util.Set< + com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog + .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< + GetOccAvailabilityCatalogRequest, + GetOccAvailabilityCatalogResponse>() { + @Override + public GetOccAvailabilityCatalogResponse apply( + GetOccAvailabilityCatalogRequest request) { + return client.getOccAvailabilityCatalog(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetOccAvailabilityCatalogResponse response) { + return targetStatesSet.contains( + response.getOccAvailabilityCatalog().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog + .LifecycleState.Deleted)), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forOccCapacityRequest( + GetOccCapacityRequestRequest request, + com.oracle.bmc.capacitymanagement.model.OccCapacityRequest.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 forOccCapacityRequest( + 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 + forOccCapacityRequest( + GetOccCapacityRequestRequest request, + com.oracle.bmc.capacitymanagement.model.OccCapacityRequest.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 forOccCapacityRequest( + 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 + forOccCapacityRequest( + GetOccCapacityRequestRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.capacitymanagement.model.OccCapacityRequest.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 forOccCapacityRequest( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for OccCapacityRequest. + private com.oracle.bmc.waiter.Waiter< + GetOccCapacityRequestRequest, GetOccCapacityRequestResponse> + forOccCapacityRequest( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetOccCapacityRequestRequest request, + final com.oracle.bmc.capacitymanagement.model.OccCapacityRequest.LifecycleState + ... + targetStates) { + final java.util.Set< + com.oracle.bmc.capacitymanagement.model.OccCapacityRequest.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< + GetOccCapacityRequestRequest, GetOccCapacityRequestResponse>() { + @Override + public GetOccCapacityRequestResponse apply( + GetOccCapacityRequestRequest request) { + return client.getOccCapacityRequest(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetOccCapacityRequestResponse response) { + return targetStatesSet.contains( + response.getOccCapacityRequest().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.capacitymanagement.model.OccCapacityRequest + .LifecycleState.Deleted)), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forOccCustomerGroup( + GetOccCustomerGroupRequest request, + com.oracle.bmc.capacitymanagement.model.OccCustomerGroup.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 forOccCustomerGroup( + 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 + forOccCustomerGroup( + GetOccCustomerGroupRequest request, + com.oracle.bmc.capacitymanagement.model.OccCustomerGroup.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 forOccCustomerGroup( + 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 + forOccCustomerGroup( + GetOccCustomerGroupRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.capacitymanagement.model.OccCustomerGroup.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 forOccCustomerGroup( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for OccCustomerGroup. + private com.oracle.bmc.waiter.Waiter + forOccCustomerGroup( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetOccCustomerGroupRequest request, + final com.oracle.bmc.capacitymanagement.model.OccCustomerGroup.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< + GetOccCustomerGroupRequest, GetOccCustomerGroupResponse>() { + @Override + public GetOccCustomerGroupResponse apply( + GetOccCustomerGroupRequest request) { + return client.getOccCustomerGroup(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetOccCustomerGroupResponse response) { + return targetStatesSet.contains( + response.getOccCustomerGroup().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.capacitymanagement.model.OccCustomerGroup + .LifecycleState.Deleted)), + request); + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/CreateOccAvailabilityCatalogDetails.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/CreateOccAvailabilityCatalogDetails.java new file mode 100644 index 00000000000..7cbc287d10c --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/CreateOccAvailabilityCatalogDetails.java @@ -0,0 +1,472 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.model; + +/** + * Details about the create request for the availability catalog.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateOccAvailabilityCatalogDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateOccAvailabilityCatalogDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "occCustomerGroupId", + "namespace", + "compartmentId", + "base64EncodedCatalogDetails", + "metadataDetails", + "displayName", + "description", + "freeformTags", + "definedTags" + }) + public CreateOccAvailabilityCatalogDetails( + String occCustomerGroupId, + Namespace namespace, + String compartmentId, + String base64EncodedCatalogDetails, + MetadataDetails metadataDetails, + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.occCustomerGroupId = occCustomerGroupId; + this.namespace = namespace; + this.compartmentId = compartmentId; + this.base64EncodedCatalogDetails = base64EncodedCatalogDetails; + this.metadataDetails = metadataDetails; + this.displayName = displayName; + this.description = description; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the customer group. */ + @com.fasterxml.jackson.annotation.JsonProperty("occCustomerGroupId") + private String occCustomerGroupId; + + /** + * The OCID of the customer group. + * + * @param occCustomerGroupId the value to set + * @return this builder + */ + public Builder occCustomerGroupId(String occCustomerGroupId) { + this.occCustomerGroupId = occCustomerGroupId; + this.__explicitlySet__.add("occCustomerGroupId"); + return this; + } + /** + * The name of the OCI service in consideration. For example, Compute, Exadata, and so on. + */ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private Namespace namespace; + + /** + * The name of the OCI service in consideration. For example, Compute, Exadata, and so on. + * + * @param namespace the value to set + * @return this builder + */ + public Builder namespace(Namespace namespace) { + this.namespace = namespace; + this.__explicitlySet__.add("namespace"); + return this; + } + /** + * Since all resources are at tenancy level hence this will be the ocid of the tenancy where + * operation is to be performed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Since all resources are at tenancy level hence this will be the ocid of the tenancy where + * operation is to be performed. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The base 64 encoded string corresponding to the catalog file contents. */ + @com.fasterxml.jackson.annotation.JsonProperty("base64EncodedCatalogDetails") + private String base64EncodedCatalogDetails; + + /** + * The base 64 encoded string corresponding to the catalog file contents. + * + * @param base64EncodedCatalogDetails the value to set + * @return this builder + */ + public Builder base64EncodedCatalogDetails(String base64EncodedCatalogDetails) { + this.base64EncodedCatalogDetails = base64EncodedCatalogDetails; + this.__explicitlySet__.add("base64EncodedCatalogDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadataDetails") + private MetadataDetails metadataDetails; + + public Builder metadataDetails(MetadataDetails metadataDetails) { + this.metadataDetails = metadataDetails; + this.__explicitlySet__.add("metadataDetails"); + return this; + } + /** The display name of the availability catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the availability catalog. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Additional information about the availability catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Additional information about the availability catalog. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + 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 CreateOccAvailabilityCatalogDetails build() { + CreateOccAvailabilityCatalogDetails model = + new CreateOccAvailabilityCatalogDetails( + this.occCustomerGroupId, + this.namespace, + this.compartmentId, + this.base64EncodedCatalogDetails, + this.metadataDetails, + this.displayName, + this.description, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOccAvailabilityCatalogDetails model) { + if (model.wasPropertyExplicitlySet("occCustomerGroupId")) { + this.occCustomerGroupId(model.getOccCustomerGroupId()); + } + if (model.wasPropertyExplicitlySet("namespace")) { + this.namespace(model.getNamespace()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("base64EncodedCatalogDetails")) { + this.base64EncodedCatalogDetails(model.getBase64EncodedCatalogDetails()); + } + if (model.wasPropertyExplicitlySet("metadataDetails")) { + this.metadataDetails(model.getMetadataDetails()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the customer group. */ + @com.fasterxml.jackson.annotation.JsonProperty("occCustomerGroupId") + private final String occCustomerGroupId; + + /** + * The OCID of the customer group. + * + * @return the value + */ + public String getOccCustomerGroupId() { + return occCustomerGroupId; + } + + /** The name of the OCI service in consideration. For example, Compute, Exadata, and so on. */ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private final Namespace namespace; + + /** + * The name of the OCI service in consideration. For example, Compute, Exadata, and so on. + * + * @return the value + */ + public Namespace getNamespace() { + return namespace; + } + + /** + * Since all resources are at tenancy level hence this will be the ocid of the tenancy where + * operation is to be performed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Since all resources are at tenancy level hence this will be the ocid of the tenancy where + * operation is to be performed. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The base 64 encoded string corresponding to the catalog file contents. */ + @com.fasterxml.jackson.annotation.JsonProperty("base64EncodedCatalogDetails") + private final String base64EncodedCatalogDetails; + + /** + * The base 64 encoded string corresponding to the catalog file contents. + * + * @return the value + */ + public String getBase64EncodedCatalogDetails() { + return base64EncodedCatalogDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadataDetails") + private final MetadataDetails metadataDetails; + + public MetadataDetails getMetadataDetails() { + return metadataDetails; + } + + /** The display name of the availability catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the availability catalog. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Additional information about the availability catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Additional information about the availability catalog. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** + * 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("CreateOccAvailabilityCatalogDetails("); + sb.append("super=").append(super.toString()); + sb.append("occCustomerGroupId=").append(String.valueOf(this.occCustomerGroupId)); + sb.append(", namespace=").append(String.valueOf(this.namespace)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", base64EncodedCatalogDetails=") + .append(String.valueOf(this.base64EncodedCatalogDetails)); + sb.append(", metadataDetails=").append(String.valueOf(this.metadataDetails)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOccAvailabilityCatalogDetails)) { + return false; + } + + CreateOccAvailabilityCatalogDetails other = (CreateOccAvailabilityCatalogDetails) o; + return java.util.Objects.equals(this.occCustomerGroupId, other.occCustomerGroupId) + && java.util.Objects.equals(this.namespace, other.namespace) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals( + this.base64EncodedCatalogDetails, other.base64EncodedCatalogDetails) + && java.util.Objects.equals(this.metadataDetails, other.metadataDetails) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.occCustomerGroupId == null + ? 43 + : this.occCustomerGroupId.hashCode()); + result = (result * PRIME) + (this.namespace == null ? 43 : this.namespace.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.base64EncodedCatalogDetails == null + ? 43 + : this.base64EncodedCatalogDetails.hashCode()); + result = + (result * PRIME) + + (this.metadataDetails == null ? 43 : this.metadataDetails.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/CreateOccCapacityRequestDetails.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/CreateOccCapacityRequestDetails.java new file mode 100644 index 00000000000..5b2c0d92fc6 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/CreateOccCapacityRequestDetails.java @@ -0,0 +1,707 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.model; + +/** + * Details about the create request for the capacity request.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateOccCapacityRequestDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateOccCapacityRequestDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "occAvailabilityCatalogId", + "namespace", + "region", + "displayName", + "description", + "freeformTags", + "definedTags", + "lifecycleDetails", + "availabilityDomain", + "dateExpectedCapacityHandover", + "requestState", + "details" + }) + public CreateOccCapacityRequestDetails( + String compartmentId, + String occAvailabilityCatalogId, + Namespace namespace, + String region, + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + String lifecycleDetails, + String availabilityDomain, + java.util.Date dateExpectedCapacityHandover, + RequestState requestState, + java.util.List details) { + super(); + this.compartmentId = compartmentId; + this.occAvailabilityCatalogId = occAvailabilityCatalogId; + this.namespace = namespace; + this.region = region; + this.displayName = displayName; + this.description = description; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.lifecycleDetails = lifecycleDetails; + this.availabilityDomain = availabilityDomain; + this.dateExpectedCapacityHandover = dateExpectedCapacityHandover; + this.requestState = requestState; + this.details = details; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Since all resources are at tenancy level hence this will be the ocid of the tenancy where + * operation is to be performed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Since all resources are at tenancy level hence this will be the ocid of the tenancy where + * operation is to be performed. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The OCID of the availability catalog against which capacity request is made. */ + @com.fasterxml.jackson.annotation.JsonProperty("occAvailabilityCatalogId") + private String occAvailabilityCatalogId; + + /** + * The OCID of the availability catalog against which capacity request is made. + * + * @param occAvailabilityCatalogId the value to set + * @return this builder + */ + public Builder occAvailabilityCatalogId(String occAvailabilityCatalogId) { + this.occAvailabilityCatalogId = occAvailabilityCatalogId; + this.__explicitlySet__.add("occAvailabilityCatalogId"); + return this; + } + /** + * The name of the OCI service in consideration. For example, Compute, Exadata, and so on. + */ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private Namespace namespace; + + /** + * The name of the OCI service in consideration. For example, Compute, Exadata, and so on. + * + * @param namespace the value to set + * @return this builder + */ + public Builder namespace(Namespace namespace) { + this.namespace = namespace; + this.__explicitlySet__.add("namespace"); + return this; + } + /** The name of the region for which the capacity request is made. */ + @com.fasterxml.jackson.annotation.JsonProperty("region") + private String region; + + /** + * The name of the region for which the capacity request is made. + * + * @param region the value to set + * @return this builder + */ + public Builder region(String region) { + this.region = region; + this.__explicitlySet__.add("region"); + return this; + } + /** + * An user-friendly name for the capacity request. Does not have to be unique, and it's + * changeable. Avoid entering confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * An user-friendly name for the capacity request. Does not have to be unique, and it's + * changeable. Avoid entering confidential information. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Meaningful text about the capacity request. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Meaningful text about the capacity request. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + 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; + } + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in a Failed State. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in a Failed State. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * The availability domain (AD) for which the capacity request is made. If this is specified + * then the capacity will be validated and fulfilled within the scope of this AD. + */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private String availabilityDomain; + + /** + * The availability domain (AD) for which the capacity request is made. If this is specified + * then the capacity will be validated and fulfilled within the scope of this AD. + * + * @param availabilityDomain the value to set + * @return this builder + */ + public Builder availabilityDomain(String availabilityDomain) { + this.availabilityDomain = availabilityDomain; + this.__explicitlySet__.add("availabilityDomain"); + return this; + } + /** + * The date by which the capacity requested by customers before dateFinalCustomerOrder needs + * to be fulfilled. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dateExpectedCapacityHandover") + private java.util.Date dateExpectedCapacityHandover; + + /** + * The date by which the capacity requested by customers before dateFinalCustomerOrder needs + * to be fulfilled. + * + * @param dateExpectedCapacityHandover the value to set + * @return this builder + */ + public Builder dateExpectedCapacityHandover(java.util.Date dateExpectedCapacityHandover) { + this.dateExpectedCapacityHandover = dateExpectedCapacityHandover; + this.__explicitlySet__.add("dateExpectedCapacityHandover"); + return this; + } + /** The subset of request states available for creating the capacity request. */ + @com.fasterxml.jackson.annotation.JsonProperty("requestState") + private RequestState requestState; + + /** + * The subset of request states available for creating the capacity request. + * + * @param requestState the value to set + * @return this builder + */ + public Builder requestState(RequestState requestState) { + this.requestState = requestState; + this.__explicitlySet__.add("requestState"); + return this; + } + /** A list of different resources requested by the user. */ + @com.fasterxml.jackson.annotation.JsonProperty("details") + private java.util.List details; + + /** + * A list of different resources requested by the user. + * + * @param details the value to set + * @return this builder + */ + public Builder details(java.util.List details) { + this.details = details; + this.__explicitlySet__.add("details"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateOccCapacityRequestDetails build() { + CreateOccCapacityRequestDetails model = + new CreateOccCapacityRequestDetails( + this.compartmentId, + this.occAvailabilityCatalogId, + this.namespace, + this.region, + this.displayName, + this.description, + this.freeformTags, + this.definedTags, + this.lifecycleDetails, + this.availabilityDomain, + this.dateExpectedCapacityHandover, + this.requestState, + this.details); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOccCapacityRequestDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("occAvailabilityCatalogId")) { + this.occAvailabilityCatalogId(model.getOccAvailabilityCatalogId()); + } + if (model.wasPropertyExplicitlySet("namespace")) { + this.namespace(model.getNamespace()); + } + if (model.wasPropertyExplicitlySet("region")) { + this.region(model.getRegion()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("availabilityDomain")) { + this.availabilityDomain(model.getAvailabilityDomain()); + } + if (model.wasPropertyExplicitlySet("dateExpectedCapacityHandover")) { + this.dateExpectedCapacityHandover(model.getDateExpectedCapacityHandover()); + } + if (model.wasPropertyExplicitlySet("requestState")) { + this.requestState(model.getRequestState()); + } + if (model.wasPropertyExplicitlySet("details")) { + this.details(model.getDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Since all resources are at tenancy level hence this will be the ocid of the tenancy where + * operation is to be performed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Since all resources are at tenancy level hence this will be the ocid of the tenancy where + * operation is to be performed. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The OCID of the availability catalog against which capacity request is made. */ + @com.fasterxml.jackson.annotation.JsonProperty("occAvailabilityCatalogId") + private final String occAvailabilityCatalogId; + + /** + * The OCID of the availability catalog against which capacity request is made. + * + * @return the value + */ + public String getOccAvailabilityCatalogId() { + return occAvailabilityCatalogId; + } + + /** The name of the OCI service in consideration. For example, Compute, Exadata, and so on. */ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private final Namespace namespace; + + /** + * The name of the OCI service in consideration. For example, Compute, Exadata, and so on. + * + * @return the value + */ + public Namespace getNamespace() { + return namespace; + } + + /** The name of the region for which the capacity request is made. */ + @com.fasterxml.jackson.annotation.JsonProperty("region") + private final String region; + + /** + * The name of the region for which the capacity request is made. + * + * @return the value + */ + public String getRegion() { + return region; + } + + /** + * An user-friendly name for the capacity request. Does not have to be unique, and it's + * changeable. Avoid entering confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * An user-friendly name for the capacity request. Does not have to be unique, and it's + * changeable. Avoid entering confidential information. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Meaningful text about the capacity request. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Meaningful text about the capacity request. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** + * 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; + } + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in a Failed State. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in a Failed State. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * The availability domain (AD) for which the capacity request is made. If this is specified + * then the capacity will be validated and fulfilled within the scope of this AD. + */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private final String availabilityDomain; + + /** + * The availability domain (AD) for which the capacity request is made. If this is specified + * then the capacity will be validated and fulfilled within the scope of this AD. + * + * @return the value + */ + public String getAvailabilityDomain() { + return availabilityDomain; + } + + /** + * The date by which the capacity requested by customers before dateFinalCustomerOrder needs to + * be fulfilled. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dateExpectedCapacityHandover") + private final java.util.Date dateExpectedCapacityHandover; + + /** + * The date by which the capacity requested by customers before dateFinalCustomerOrder needs to + * be fulfilled. + * + * @return the value + */ + public java.util.Date getDateExpectedCapacityHandover() { + return dateExpectedCapacityHandover; + } + + /** The subset of request states available for creating the capacity request. */ + public enum RequestState implements com.oracle.bmc.http.internal.BmcEnum { + Created("CREATED"), + Submitted("SUBMITTED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RequestState v : RequestState.values()) { + map.put(v.getValue(), v); + } + } + + RequestState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RequestState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid RequestState: " + key); + } + }; + /** The subset of request states available for creating the capacity request. */ + @com.fasterxml.jackson.annotation.JsonProperty("requestState") + private final RequestState requestState; + + /** + * The subset of request states available for creating the capacity request. + * + * @return the value + */ + public RequestState getRequestState() { + return requestState; + } + + /** A list of different resources requested by the user. */ + @com.fasterxml.jackson.annotation.JsonProperty("details") + private final java.util.List details; + + /** + * A list of different resources requested by the user. + * + * @return the value + */ + public java.util.List getDetails() { + return details; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOccCapacityRequestDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", occAvailabilityCatalogId=") + .append(String.valueOf(this.occAvailabilityCatalogId)); + sb.append(", namespace=").append(String.valueOf(this.namespace)); + sb.append(", region=").append(String.valueOf(this.region)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); + sb.append(", dateExpectedCapacityHandover=") + .append(String.valueOf(this.dateExpectedCapacityHandover)); + sb.append(", requestState=").append(String.valueOf(this.requestState)); + sb.append(", details=").append(String.valueOf(this.details)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOccCapacityRequestDetails)) { + return false; + } + + CreateOccCapacityRequestDetails other = (CreateOccCapacityRequestDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals( + this.occAvailabilityCatalogId, other.occAvailabilityCatalogId) + && java.util.Objects.equals(this.namespace, other.namespace) + && java.util.Objects.equals(this.region, other.region) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) + && java.util.Objects.equals( + this.dateExpectedCapacityHandover, other.dateExpectedCapacityHandover) + && java.util.Objects.equals(this.requestState, other.requestState) + && java.util.Objects.equals(this.details, other.details) + && 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.occAvailabilityCatalogId == null + ? 43 + : this.occAvailabilityCatalogId.hashCode()); + result = (result * PRIME) + (this.namespace == null ? 43 : this.namespace.hashCode()); + result = (result * PRIME) + (this.region == null ? 43 : this.region.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.availabilityDomain == null + ? 43 + : this.availabilityDomain.hashCode()); + result = + (result * PRIME) + + (this.dateExpectedCapacityHandover == null + ? 43 + : this.dateExpectedCapacityHandover.hashCode()); + result = (result * PRIME) + (this.requestState == null ? 43 : this.requestState.hashCode()); + result = (result * PRIME) + (this.details == null ? 43 : this.details.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/MetadataDetails.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/MetadataDetails.java new file mode 100644 index 00000000000..1fe217b90fa --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/MetadataDetails.java @@ -0,0 +1,181 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.model; + +/** + * Used for representing the metadata of the catalog. This denotes the version and format of the CSV + * file for parsing.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = MetadataDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class MetadataDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"formatVersion"}) + public MetadataDetails(FormatVersion formatVersion) { + super(); + this.formatVersion = formatVersion; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The version for the format of the catalog file being uploaded. */ + @com.fasterxml.jackson.annotation.JsonProperty("formatVersion") + private FormatVersion formatVersion; + + /** + * The version for the format of the catalog file being uploaded. + * + * @param formatVersion the value to set + * @return this builder + */ + public Builder formatVersion(FormatVersion formatVersion) { + this.formatVersion = formatVersion; + this.__explicitlySet__.add("formatVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MetadataDetails build() { + MetadataDetails model = new MetadataDetails(this.formatVersion); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MetadataDetails model) { + if (model.wasPropertyExplicitlySet("formatVersion")) { + this.formatVersion(model.getFormatVersion()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The version for the format of the catalog file being uploaded. */ + public enum FormatVersion implements com.oracle.bmc.http.internal.BmcEnum { + V1("V1"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(FormatVersion.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (FormatVersion v : FormatVersion.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + FormatVersion(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static FormatVersion create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'FormatVersion', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The version for the format of the catalog file being uploaded. */ + @com.fasterxml.jackson.annotation.JsonProperty("formatVersion") + private final FormatVersion formatVersion; + + /** + * The version for the format of the catalog file being uploaded. + * + * @return the value + */ + public FormatVersion getFormatVersion() { + return formatVersion; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MetadataDetails("); + sb.append("super=").append(super.toString()); + sb.append("formatVersion=").append(String.valueOf(this.formatVersion)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MetadataDetails)) { + return false; + } + + MetadataDetails other = (MetadataDetails) o; + return java.util.Objects.equals(this.formatVersion, other.formatVersion) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.formatVersion == null ? 43 : this.formatVersion.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/Namespace.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/Namespace.java new file mode 100644 index 00000000000..ac1e61c710a --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/Namespace.java @@ -0,0 +1,51 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.model; + +/** The name of the OCI service in consideration. For example, Compute, Exadata, and so on. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public enum Namespace implements com.oracle.bmc.http.internal.BmcEnum { + Compute("COMPUTE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Namespace.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Namespace v : Namespace.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Namespace(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Namespace create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Namespace', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccAvailabilityCatalog.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccAvailabilityCatalog.java new file mode 100644 index 00000000000..5803d712f2c --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccAvailabilityCatalog.java @@ -0,0 +1,844 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.model; + +/** + * Details of the availability catalog resource.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OccAvailabilityCatalog.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OccAvailabilityCatalog + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "namespace", + "compartmentId", + "displayName", + "description", + "occCustomerGroupId", + "catalogState", + "metadataDetails", + "timeCreated", + "timeUpdated", + "lifecycleState", + "lifecycleDetails", + "freeformTags", + "definedTags", + "systemTags", + "details" + }) + public OccAvailabilityCatalog( + String id, + Namespace namespace, + String compartmentId, + String displayName, + String description, + String occCustomerGroupId, + CatalogState catalogState, + MetadataDetails metadataDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + java.util.List details) { + super(); + this.id = id; + this.namespace = namespace; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.description = description; + this.occCustomerGroupId = occCustomerGroupId; + this.catalogState = catalogState; + this.metadataDetails = metadataDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + this.details = details; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the availability catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the availability catalog. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The name of the OCI service in consideration. For example, Compute, Exadata, and so on. + */ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private Namespace namespace; + + /** + * The name of the OCI service in consideration. For example, Compute, Exadata, and so on. + * + * @param namespace the value to set + * @return this builder + */ + public Builder namespace(Namespace namespace) { + this.namespace = namespace; + this.__explicitlySet__.add("namespace"); + return this; + } + /** The OCID of the tenancy where the availability catalog resides. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the tenancy where the availability catalog resides. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** A user-friendly name for the availability catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name for the availability catalog. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Text information about the availability catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Text information about the availability catalog. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** The customer group OCID to which the availability catalog belongs. */ + @com.fasterxml.jackson.annotation.JsonProperty("occCustomerGroupId") + private String occCustomerGroupId; + + /** + * The customer group OCID to which the availability catalog belongs. + * + * @param occCustomerGroupId the value to set + * @return this builder + */ + public Builder occCustomerGroupId(String occCustomerGroupId) { + this.occCustomerGroupId = occCustomerGroupId; + this.__explicitlySet__.add("occCustomerGroupId"); + return this; + } + /** The different states associated with the availability catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("catalogState") + private CatalogState catalogState; + + /** + * The different states associated with the availability catalog. + * + * @param catalogState the value to set + * @return this builder + */ + public Builder catalogState(CatalogState catalogState) { + this.catalogState = catalogState; + this.__explicitlySet__.add("catalogState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadataDetails") + private MetadataDetails metadataDetails; + + public Builder metadataDetails(MetadataDetails metadataDetails) { + this.metadataDetails = metadataDetails; + this.__explicitlySet__.add("metadataDetails"); + return this; + } + /** The time when the availability catalog was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time when the availability catalog was created. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time when the availability catalog was last updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time when the availability catalog was last updated. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** The current lifecycle state of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current lifecycle state of the resource. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in a Failed State. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in a Failed State. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * 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; + } + /** Details about capacity available for different resources in catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("details") + private java.util.List details; + + /** + * Details about capacity available for different resources in catalog. + * + * @param details the value to set + * @return this builder + */ + public Builder details(java.util.List details) { + this.details = details; + this.__explicitlySet__.add("details"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OccAvailabilityCatalog build() { + OccAvailabilityCatalog model = + new OccAvailabilityCatalog( + this.id, + this.namespace, + this.compartmentId, + this.displayName, + this.description, + this.occCustomerGroupId, + this.catalogState, + this.metadataDetails, + this.timeCreated, + this.timeUpdated, + this.lifecycleState, + this.lifecycleDetails, + this.freeformTags, + this.definedTags, + this.systemTags, + this.details); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OccAvailabilityCatalog model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("namespace")) { + this.namespace(model.getNamespace()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("occCustomerGroupId")) { + this.occCustomerGroupId(model.getOccCustomerGroupId()); + } + if (model.wasPropertyExplicitlySet("catalogState")) { + this.catalogState(model.getCatalogState()); + } + if (model.wasPropertyExplicitlySet("metadataDetails")) { + this.metadataDetails(model.getMetadataDetails()); + } + 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("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("details")) { + this.details(model.getDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the availability catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the availability catalog. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The name of the OCI service in consideration. For example, Compute, Exadata, and so on. */ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private final Namespace namespace; + + /** + * The name of the OCI service in consideration. For example, Compute, Exadata, and so on. + * + * @return the value + */ + public Namespace getNamespace() { + return namespace; + } + + /** The OCID of the tenancy where the availability catalog resides. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the tenancy where the availability catalog resides. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** A user-friendly name for the availability catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name for the availability catalog. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Text information about the availability catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Text information about the availability catalog. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** The customer group OCID to which the availability catalog belongs. */ + @com.fasterxml.jackson.annotation.JsonProperty("occCustomerGroupId") + private final String occCustomerGroupId; + + /** + * The customer group OCID to which the availability catalog belongs. + * + * @return the value + */ + public String getOccCustomerGroupId() { + return occCustomerGroupId; + } + + /** The different states associated with the availability catalog. */ + public enum CatalogState implements com.oracle.bmc.http.internal.BmcEnum { + NotUploaded("NOT_UPLOADED"), + UploadFailed("UPLOAD_FAILED"), + Staged("STAGED"), + Published("PUBLISHED"), + Outdated("OUTDATED"), + 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(CatalogState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CatalogState v : CatalogState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + CatalogState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CatalogState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'CatalogState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The different states associated with the availability catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("catalogState") + private final CatalogState catalogState; + + /** + * The different states associated with the availability catalog. + * + * @return the value + */ + public CatalogState getCatalogState() { + return catalogState; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadataDetails") + private final MetadataDetails metadataDetails; + + public MetadataDetails getMetadataDetails() { + return metadataDetails; + } + + /** The time when the availability catalog was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time when the availability catalog was created. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time when the availability catalog was last updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time when the availability catalog was last updated. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** The current lifecycle state of the resource. */ + 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 lifecycle state of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current lifecycle state of the resource. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in a Failed State. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in a Failed State. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * 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; + } + + /** Details about capacity available for different resources in catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("details") + private final java.util.List details; + + /** + * Details about capacity available for different resources in catalog. + * + * @return the value + */ + public java.util.List getDetails() { + return details; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OccAvailabilityCatalog("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", namespace=").append(String.valueOf(this.namespace)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", occCustomerGroupId=").append(String.valueOf(this.occCustomerGroupId)); + sb.append(", catalogState=").append(String.valueOf(this.catalogState)); + sb.append(", metadataDetails=").append(String.valueOf(this.metadataDetails)); + 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(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", details=").append(String.valueOf(this.details)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OccAvailabilityCatalog)) { + return false; + } + + OccAvailabilityCatalog other = (OccAvailabilityCatalog) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.namespace, other.namespace) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.occCustomerGroupId, other.occCustomerGroupId) + && java.util.Objects.equals(this.catalogState, other.catalogState) + && java.util.Objects.equals(this.metadataDetails, other.metadataDetails) + && 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.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.details, other.details) + && 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.namespace == null ? 43 : this.namespace.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.occCustomerGroupId == null + ? 43 + : this.occCustomerGroupId.hashCode()); + result = (result * PRIME) + (this.catalogState == null ? 43 : this.catalogState.hashCode()); + result = + (result * PRIME) + + (this.metadataDetails == null ? 43 : this.metadataDetails.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.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + (this.details == null ? 43 : this.details.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccAvailabilityCatalogCollection.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccAvailabilityCatalogCollection.java new file mode 100644 index 00000000000..6113a6cd437 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccAvailabilityCatalogCollection.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.model; + +/** + * A list of availability catalogs.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OccAvailabilityCatalogCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OccAvailabilityCatalogCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public OccAvailabilityCatalogCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** An array of availability catalogs. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * An array of availability catalogs. + * + * @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 OccAvailabilityCatalogCollection build() { + OccAvailabilityCatalogCollection model = + new OccAvailabilityCatalogCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OccAvailabilityCatalogCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** An array of availability catalogs. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * An array of availability catalogs. + * + * @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("OccAvailabilityCatalogCollection("); + 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 OccAvailabilityCatalogCollection)) { + return false; + } + + OccAvailabilityCatalogCollection other = (OccAvailabilityCatalogCollection) 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-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccAvailabilityCatalogSummary.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccAvailabilityCatalogSummary.java new file mode 100644 index 00000000000..b9fac3e9b78 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccAvailabilityCatalogSummary.java @@ -0,0 +1,722 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.model; + +/** + * A catalog containing resource availability details for a customer.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OccAvailabilityCatalogSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OccAvailabilityCatalogSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "namespace", + "compartmentId", + "displayName", + "description", + "occCustomerGroupId", + "catalogState", + "metadataDetails", + "timeCreated", + "timeUpdated", + "lifecycleState", + "lifecycleDetails", + "freeformTags", + "definedTags", + "systemTags" + }) + public OccAvailabilityCatalogSummary( + String id, + Namespace namespace, + String compartmentId, + String displayName, + String description, + String occCustomerGroupId, + OccAvailabilityCatalog.CatalogState catalogState, + MetadataDetails metadataDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + OccAvailabilityCatalog.LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.namespace = namespace; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.description = description; + this.occCustomerGroupId = occCustomerGroupId; + this.catalogState = catalogState; + this.metadataDetails = metadataDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the availability catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the availability catalog. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The name of the OCI service in consideration. For example, Compute, Exadata, and so on. + */ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private Namespace namespace; + + /** + * The name of the OCI service in consideration. For example, Compute, Exadata, and so on. + * + * @param namespace the value to set + * @return this builder + */ + public Builder namespace(Namespace namespace) { + this.namespace = namespace; + this.__explicitlySet__.add("namespace"); + return this; + } + /** The OCID of the tenancy where the availability catalog resides. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the tenancy where the availability catalog resides. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * An user-friendly name for the availability catalog. Does not have to be unique, and it's + * changeable. Avoid entering confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * An user-friendly name for the availability catalog. Does not have to be unique, and it's + * changeable. Avoid entering confidential information. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Text information about the availability catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Text information about the availability catalog. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** The Customer Group OCID to which the availability catalog belongs. */ + @com.fasterxml.jackson.annotation.JsonProperty("occCustomerGroupId") + private String occCustomerGroupId; + + /** + * The Customer Group OCID to which the availability catalog belongs. + * + * @param occCustomerGroupId the value to set + * @return this builder + */ + public Builder occCustomerGroupId(String occCustomerGroupId) { + this.occCustomerGroupId = occCustomerGroupId; + this.__explicitlySet__.add("occCustomerGroupId"); + return this; + } + /** + * Represents whether this version of the availability catalog has been made available to + * the customer. The state is No by default. + */ + @com.fasterxml.jackson.annotation.JsonProperty("catalogState") + private OccAvailabilityCatalog.CatalogState catalogState; + + /** + * Represents whether this version of the availability catalog has been made available to + * the customer. The state is No by default. + * + * @param catalogState the value to set + * @return this builder + */ + public Builder catalogState(OccAvailabilityCatalog.CatalogState catalogState) { + this.catalogState = catalogState; + this.__explicitlySet__.add("catalogState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadataDetails") + private MetadataDetails metadataDetails; + + public Builder metadataDetails(MetadataDetails metadataDetails) { + this.metadataDetails = metadataDetails; + this.__explicitlySet__.add("metadataDetails"); + return this; + } + /** The time when the availability catalog was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time when the availability catalog was created. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time when the availability catalog was last updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time when the availability catalog was last updated. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** The current lifecycle state of the customer group. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private OccAvailabilityCatalog.LifecycleState lifecycleState; + + /** + * The current lifecycle state of the customer group. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(OccAvailabilityCatalog.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in a Failed State. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in a Failed State. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * 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 OccAvailabilityCatalogSummary build() { + OccAvailabilityCatalogSummary model = + new OccAvailabilityCatalogSummary( + this.id, + this.namespace, + this.compartmentId, + this.displayName, + this.description, + this.occCustomerGroupId, + this.catalogState, + this.metadataDetails, + this.timeCreated, + this.timeUpdated, + this.lifecycleState, + this.lifecycleDetails, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OccAvailabilityCatalogSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("namespace")) { + this.namespace(model.getNamespace()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("occCustomerGroupId")) { + this.occCustomerGroupId(model.getOccCustomerGroupId()); + } + if (model.wasPropertyExplicitlySet("catalogState")) { + this.catalogState(model.getCatalogState()); + } + if (model.wasPropertyExplicitlySet("metadataDetails")) { + this.metadataDetails(model.getMetadataDetails()); + } + 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("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the availability catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the availability catalog. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The name of the OCI service in consideration. For example, Compute, Exadata, and so on. */ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private final Namespace namespace; + + /** + * The name of the OCI service in consideration. For example, Compute, Exadata, and so on. + * + * @return the value + */ + public Namespace getNamespace() { + return namespace; + } + + /** The OCID of the tenancy where the availability catalog resides. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the tenancy where the availability catalog resides. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * An user-friendly name for the availability catalog. Does not have to be unique, and it's + * changeable. Avoid entering confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * An user-friendly name for the availability catalog. Does not have to be unique, and it's + * changeable. Avoid entering confidential information. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Text information about the availability catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Text information about the availability catalog. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** The Customer Group OCID to which the availability catalog belongs. */ + @com.fasterxml.jackson.annotation.JsonProperty("occCustomerGroupId") + private final String occCustomerGroupId; + + /** + * The Customer Group OCID to which the availability catalog belongs. + * + * @return the value + */ + public String getOccCustomerGroupId() { + return occCustomerGroupId; + } + + /** + * Represents whether this version of the availability catalog has been made available to the + * customer. The state is No by default. + */ + @com.fasterxml.jackson.annotation.JsonProperty("catalogState") + private final OccAvailabilityCatalog.CatalogState catalogState; + + /** + * Represents whether this version of the availability catalog has been made available to the + * customer. The state is No by default. + * + * @return the value + */ + public OccAvailabilityCatalog.CatalogState getCatalogState() { + return catalogState; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadataDetails") + private final MetadataDetails metadataDetails; + + public MetadataDetails getMetadataDetails() { + return metadataDetails; + } + + /** The time when the availability catalog was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time when the availability catalog was created. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time when the availability catalog was last updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time when the availability catalog was last updated. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** The current lifecycle state of the customer group. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final OccAvailabilityCatalog.LifecycleState lifecycleState; + + /** + * The current lifecycle state of the customer group. + * + * @return the value + */ + public OccAvailabilityCatalog.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in a Failed State. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in a Failed State. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * 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("OccAvailabilityCatalogSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", namespace=").append(String.valueOf(this.namespace)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", occCustomerGroupId=").append(String.valueOf(this.occCustomerGroupId)); + sb.append(", catalogState=").append(String.valueOf(this.catalogState)); + sb.append(", metadataDetails=").append(String.valueOf(this.metadataDetails)); + 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(", 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 OccAvailabilityCatalogSummary)) { + return false; + } + + OccAvailabilityCatalogSummary other = (OccAvailabilityCatalogSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.namespace, other.namespace) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.occCustomerGroupId, other.occCustomerGroupId) + && java.util.Objects.equals(this.catalogState, other.catalogState) + && java.util.Objects.equals(this.metadataDetails, other.metadataDetails) + && 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.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.namespace == null ? 43 : this.namespace.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.occCustomerGroupId == null + ? 43 + : this.occCustomerGroupId.hashCode()); + result = (result * PRIME) + (this.catalogState == null ? 43 : this.catalogState.hashCode()); + result = + (result * PRIME) + + (this.metadataDetails == null ? 43 : this.metadataDetails.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.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-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccAvailabilityCollection.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccAvailabilityCollection.java new file mode 100644 index 00000000000..88988ad426e --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccAvailabilityCollection.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.model; + +/** + * A list of capacity constraints.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OccAvailabilityCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OccAvailabilityCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public OccAvailabilityCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** An array of capacity constraints. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * An array of capacity constraints. + * + * @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 OccAvailabilityCollection build() { + OccAvailabilityCollection model = new OccAvailabilityCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OccAvailabilityCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** An array of capacity constraints. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * An array of capacity constraints. + * + * @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("OccAvailabilityCollection("); + 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 OccAvailabilityCollection)) { + return false; + } + + OccAvailabilityCollection other = (OccAvailabilityCollection) 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-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccAvailabilitySummary.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccAvailabilitySummary.java new file mode 100644 index 00000000000..dc9ebf921ee --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccAvailabilitySummary.java @@ -0,0 +1,568 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.model; + +/** + * The details about the available capacity and constraints for different resource types present in + * the availability catalog.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OccAvailabilitySummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OccAvailabilitySummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "catalogId", + "namespace", + "dateFinalCustomerOrder", + "dateExpectedCapacityHandover", + "resourceType", + "workloadType", + "resourceName", + "availableQuantity", + "unit" + }) + public OccAvailabilitySummary( + String catalogId, + Namespace namespace, + java.util.Date dateFinalCustomerOrder, + java.util.Date dateExpectedCapacityHandover, + ResourceType resourceType, + WorkloadType workloadType, + String resourceName, + Long availableQuantity, + String unit) { + super(); + this.catalogId = catalogId; + this.namespace = namespace; + this.dateFinalCustomerOrder = dateFinalCustomerOrder; + this.dateExpectedCapacityHandover = dateExpectedCapacityHandover; + this.resourceType = resourceType; + this.workloadType = workloadType; + this.resourceName = resourceName; + this.availableQuantity = availableQuantity; + this.unit = unit; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the availability catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("catalogId") + private String catalogId; + + /** + * The OCID of the availability catalog. + * + * @param catalogId the value to set + * @return this builder + */ + public Builder catalogId(String catalogId) { + this.catalogId = catalogId; + this.__explicitlySet__.add("catalogId"); + return this; + } + /** + * The name of the OCI service in consideration. For example, Compute, Exadata, and so on. + */ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private Namespace namespace; + + /** + * The name of the OCI service in consideration. For example, Compute, Exadata, and so on. + * + * @param namespace the value to set + * @return this builder + */ + public Builder namespace(Namespace namespace) { + this.namespace = namespace; + this.__explicitlySet__.add("namespace"); + return this; + } + /** + * The date by which the customer must place the order to have their capacity requirements + * met by the customer handover date. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dateFinalCustomerOrder") + private java.util.Date dateFinalCustomerOrder; + + /** + * The date by which the customer must place the order to have their capacity requirements + * met by the customer handover date. + * + * @param dateFinalCustomerOrder the value to set + * @return this builder + */ + public Builder dateFinalCustomerOrder(java.util.Date dateFinalCustomerOrder) { + this.dateFinalCustomerOrder = dateFinalCustomerOrder; + this.__explicitlySet__.add("dateFinalCustomerOrder"); + return this; + } + /** + * The date by which the capacity requested by customers before dateFinalCustomerOrder needs + * to be fulfilled. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dateExpectedCapacityHandover") + private java.util.Date dateExpectedCapacityHandover; + + /** + * The date by which the capacity requested by customers before dateFinalCustomerOrder needs + * to be fulfilled. + * + * @param dateExpectedCapacityHandover the value to set + * @return this builder + */ + public Builder dateExpectedCapacityHandover(java.util.Date dateExpectedCapacityHandover) { + this.dateExpectedCapacityHandover = dateExpectedCapacityHandover; + this.__explicitlySet__.add("dateExpectedCapacityHandover"); + return this; + } + /** The different types of resources against which customers can place capacity requests. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceType") + private ResourceType resourceType; + + /** + * The different types of resources against which customers can place capacity requests. + * + * @param resourceType the value to set + * @return this builder + */ + public Builder resourceType(ResourceType resourceType) { + this.resourceType = resourceType; + this.__explicitlySet__.add("resourceType"); + return this; + } + /** The type of workload (Generic/ROW). */ + @com.fasterxml.jackson.annotation.JsonProperty("workloadType") + private WorkloadType workloadType; + + /** + * The type of workload (Generic/ROW). + * + * @param workloadType the value to set + * @return this builder + */ + public Builder workloadType(WorkloadType workloadType) { + this.workloadType = workloadType; + this.__explicitlySet__.add("workloadType"); + return this; + } + /** The name of the resource that the customer can request. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceName") + private String resourceName; + + /** + * The name of the resource that the customer can request. + * + * @param resourceName the value to set + * @return this builder + */ + public Builder resourceName(String resourceName) { + this.resourceName = resourceName; + this.__explicitlySet__.add("resourceName"); + return this; + } + /** The quantity of available resource that the customer can request. */ + @com.fasterxml.jackson.annotation.JsonProperty("availableQuantity") + private Long availableQuantity; + + /** + * The quantity of available resource that the customer can request. + * + * @param availableQuantity the value to set + * @return this builder + */ + public Builder availableQuantity(Long availableQuantity) { + this.availableQuantity = availableQuantity; + this.__explicitlySet__.add("availableQuantity"); + return this; + } + /** The unit in which the resource available is measured. */ + @com.fasterxml.jackson.annotation.JsonProperty("unit") + private String unit; + + /** + * The unit in which the resource available is measured. + * + * @param unit the value to set + * @return this builder + */ + public Builder unit(String unit) { + this.unit = unit; + this.__explicitlySet__.add("unit"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OccAvailabilitySummary build() { + OccAvailabilitySummary model = + new OccAvailabilitySummary( + this.catalogId, + this.namespace, + this.dateFinalCustomerOrder, + this.dateExpectedCapacityHandover, + this.resourceType, + this.workloadType, + this.resourceName, + this.availableQuantity, + this.unit); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OccAvailabilitySummary model) { + if (model.wasPropertyExplicitlySet("catalogId")) { + this.catalogId(model.getCatalogId()); + } + if (model.wasPropertyExplicitlySet("namespace")) { + this.namespace(model.getNamespace()); + } + if (model.wasPropertyExplicitlySet("dateFinalCustomerOrder")) { + this.dateFinalCustomerOrder(model.getDateFinalCustomerOrder()); + } + if (model.wasPropertyExplicitlySet("dateExpectedCapacityHandover")) { + this.dateExpectedCapacityHandover(model.getDateExpectedCapacityHandover()); + } + if (model.wasPropertyExplicitlySet("resourceType")) { + this.resourceType(model.getResourceType()); + } + if (model.wasPropertyExplicitlySet("workloadType")) { + this.workloadType(model.getWorkloadType()); + } + if (model.wasPropertyExplicitlySet("resourceName")) { + this.resourceName(model.getResourceName()); + } + if (model.wasPropertyExplicitlySet("availableQuantity")) { + this.availableQuantity(model.getAvailableQuantity()); + } + if (model.wasPropertyExplicitlySet("unit")) { + this.unit(model.getUnit()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the availability catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("catalogId") + private final String catalogId; + + /** + * The OCID of the availability catalog. + * + * @return the value + */ + public String getCatalogId() { + return catalogId; + } + + /** The name of the OCI service in consideration. For example, Compute, Exadata, and so on. */ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private final Namespace namespace; + + /** + * The name of the OCI service in consideration. For example, Compute, Exadata, and so on. + * + * @return the value + */ + public Namespace getNamespace() { + return namespace; + } + + /** + * The date by which the customer must place the order to have their capacity requirements met + * by the customer handover date. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dateFinalCustomerOrder") + private final java.util.Date dateFinalCustomerOrder; + + /** + * The date by which the customer must place the order to have their capacity requirements met + * by the customer handover date. + * + * @return the value + */ + public java.util.Date getDateFinalCustomerOrder() { + return dateFinalCustomerOrder; + } + + /** + * The date by which the capacity requested by customers before dateFinalCustomerOrder needs to + * be fulfilled. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dateExpectedCapacityHandover") + private final java.util.Date dateExpectedCapacityHandover; + + /** + * The date by which the capacity requested by customers before dateFinalCustomerOrder needs to + * be fulfilled. + * + * @return the value + */ + public java.util.Date getDateExpectedCapacityHandover() { + return dateExpectedCapacityHandover; + } + + /** The different types of resources against which customers can place capacity requests. */ + public enum ResourceType implements com.oracle.bmc.http.internal.BmcEnum { + ServerHw("SERVER_HW"), + CapacityConstraint("CAPACITY_CONSTRAINT"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ResourceType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ResourceType v : ResourceType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ResourceType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ResourceType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ResourceType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The different types of resources against which customers can place capacity requests. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceType") + private final ResourceType resourceType; + + /** + * The different types of resources against which customers can place capacity requests. + * + * @return the value + */ + public ResourceType getResourceType() { + return resourceType; + } + + /** The type of workload (Generic/ROW). */ + public enum WorkloadType implements com.oracle.bmc.http.internal.BmcEnum { + Generic("GENERIC"), + Row("ROW"), + UsProd("US_PROD"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(WorkloadType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (WorkloadType v : WorkloadType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + WorkloadType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static WorkloadType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'WorkloadType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The type of workload (Generic/ROW). */ + @com.fasterxml.jackson.annotation.JsonProperty("workloadType") + private final WorkloadType workloadType; + + /** + * The type of workload (Generic/ROW). + * + * @return the value + */ + public WorkloadType getWorkloadType() { + return workloadType; + } + + /** The name of the resource that the customer can request. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceName") + private final String resourceName; + + /** + * The name of the resource that the customer can request. + * + * @return the value + */ + public String getResourceName() { + return resourceName; + } + + /** The quantity of available resource that the customer can request. */ + @com.fasterxml.jackson.annotation.JsonProperty("availableQuantity") + private final Long availableQuantity; + + /** + * The quantity of available resource that the customer can request. + * + * @return the value + */ + public Long getAvailableQuantity() { + return availableQuantity; + } + + /** The unit in which the resource available is measured. */ + @com.fasterxml.jackson.annotation.JsonProperty("unit") + private final String unit; + + /** + * The unit in which the resource available is measured. + * + * @return the value + */ + public String getUnit() { + return unit; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OccAvailabilitySummary("); + sb.append("super=").append(super.toString()); + sb.append("catalogId=").append(String.valueOf(this.catalogId)); + sb.append(", namespace=").append(String.valueOf(this.namespace)); + sb.append(", dateFinalCustomerOrder=").append(String.valueOf(this.dateFinalCustomerOrder)); + sb.append(", dateExpectedCapacityHandover=") + .append(String.valueOf(this.dateExpectedCapacityHandover)); + sb.append(", resourceType=").append(String.valueOf(this.resourceType)); + sb.append(", workloadType=").append(String.valueOf(this.workloadType)); + sb.append(", resourceName=").append(String.valueOf(this.resourceName)); + sb.append(", availableQuantity=").append(String.valueOf(this.availableQuantity)); + sb.append(", unit=").append(String.valueOf(this.unit)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OccAvailabilitySummary)) { + return false; + } + + OccAvailabilitySummary other = (OccAvailabilitySummary) o; + return java.util.Objects.equals(this.catalogId, other.catalogId) + && java.util.Objects.equals(this.namespace, other.namespace) + && java.util.Objects.equals( + this.dateFinalCustomerOrder, other.dateFinalCustomerOrder) + && java.util.Objects.equals( + this.dateExpectedCapacityHandover, other.dateExpectedCapacityHandover) + && java.util.Objects.equals(this.resourceType, other.resourceType) + && java.util.Objects.equals(this.workloadType, other.workloadType) + && java.util.Objects.equals(this.resourceName, other.resourceName) + && java.util.Objects.equals(this.availableQuantity, other.availableQuantity) + && java.util.Objects.equals(this.unit, other.unit) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.catalogId == null ? 43 : this.catalogId.hashCode()); + result = (result * PRIME) + (this.namespace == null ? 43 : this.namespace.hashCode()); + result = + (result * PRIME) + + (this.dateFinalCustomerOrder == null + ? 43 + : this.dateFinalCustomerOrder.hashCode()); + result = + (result * PRIME) + + (this.dateExpectedCapacityHandover == null + ? 43 + : this.dateExpectedCapacityHandover.hashCode()); + result = (result * PRIME) + (this.resourceType == null ? 43 : this.resourceType.hashCode()); + result = (result * PRIME) + (this.workloadType == null ? 43 : this.workloadType.hashCode()); + result = (result * PRIME) + (this.resourceName == null ? 43 : this.resourceName.hashCode()); + result = + (result * PRIME) + + (this.availableQuantity == null ? 43 : this.availableQuantity.hashCode()); + result = (result * PRIME) + (this.unit == null ? 43 : this.unit.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCapacityRequest.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCapacityRequest.java new file mode 100644 index 00000000000..0e79fd5fb75 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCapacityRequest.java @@ -0,0 +1,997 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.model; + +/** + * A single request of some quantity of a specific server type, in a specific location and expected + * delivery date. The maximum amount possible to request is the smallest number between the number + * of servers available for purchase and the number of servers allowed by the constraints (For + * example, power, network, physical space, and so on).
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OccCapacityRequest.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OccCapacityRequest + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "occAvailabilityCatalogId", + "displayName", + "description", + "namespace", + "occCustomerGroupId", + "region", + "availabilityDomain", + "dateExpectedCapacityHandover", + "requestState", + "timeCreated", + "timeUpdated", + "lifecycleState", + "lifecycleDetails", + "freeformTags", + "definedTags", + "systemTags", + "details" + }) + public OccCapacityRequest( + String id, + String compartmentId, + String occAvailabilityCatalogId, + String displayName, + String description, + Namespace namespace, + String occCustomerGroupId, + String region, + String availabilityDomain, + java.util.Date dateExpectedCapacityHandover, + RequestState requestState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + java.util.List details) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.occAvailabilityCatalogId = occAvailabilityCatalogId; + this.displayName = displayName; + this.description = description; + this.namespace = namespace; + this.occCustomerGroupId = occCustomerGroupId; + this.region = region; + this.availabilityDomain = availabilityDomain; + this.dateExpectedCapacityHandover = dateExpectedCapacityHandover; + this.requestState = requestState; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + this.details = details; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the capacity request. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the capacity request. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The OCID of the tenancy from which the request was made. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the tenancy from which the request was made. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The OCID of the availability catalog against which the capacity request was placed. */ + @com.fasterxml.jackson.annotation.JsonProperty("occAvailabilityCatalogId") + private String occAvailabilityCatalogId; + + /** + * The OCID of the availability catalog against which the capacity request was placed. + * + * @param occAvailabilityCatalogId the value to set + * @return this builder + */ + public Builder occAvailabilityCatalogId(String occAvailabilityCatalogId) { + this.occAvailabilityCatalogId = occAvailabilityCatalogId; + this.__explicitlySet__.add("occAvailabilityCatalogId"); + return this; + } + /** The display name of the capacity request. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the capacity request. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Meaningful text about the capacity request. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Meaningful text about the capacity request. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The name of the OCI service in consideration. For example, Compute, Exadata, and so on. + */ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private Namespace namespace; + + /** + * The name of the OCI service in consideration. For example, Compute, Exadata, and so on. + * + * @param namespace the value to set + * @return this builder + */ + public Builder namespace(Namespace namespace) { + this.namespace = namespace; + this.__explicitlySet__.add("namespace"); + return this; + } + /** The OCID of the customer group to which this customer belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("occCustomerGroupId") + private String occCustomerGroupId; + + /** + * The OCID of the customer group to which this customer belongs to. + * + * @param occCustomerGroupId the value to set + * @return this builder + */ + public Builder occCustomerGroupId(String occCustomerGroupId) { + this.occCustomerGroupId = occCustomerGroupId; + this.__explicitlySet__.add("occCustomerGroupId"); + return this; + } + /** The name of the region for which the capacity request was made. */ + @com.fasterxml.jackson.annotation.JsonProperty("region") + private String region; + + /** + * The name of the region for which the capacity request was made. + * + * @param region the value to set + * @return this builder + */ + public Builder region(String region) { + this.region = region; + this.__explicitlySet__.add("region"); + return this; + } + /** The availability domain (AD) for which the capacity request was made. */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private String availabilityDomain; + + /** + * The availability domain (AD) for which the capacity request was made. + * + * @param availabilityDomain the value to set + * @return this builder + */ + public Builder availabilityDomain(String availabilityDomain) { + this.availabilityDomain = availabilityDomain; + this.__explicitlySet__.add("availabilityDomain"); + return this; + } + /** + * The date by which the capacity requested by customers before dateFinalCustomerOrder needs + * to be fulfilled. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dateExpectedCapacityHandover") + private java.util.Date dateExpectedCapacityHandover; + + /** + * The date by which the capacity requested by customers before dateFinalCustomerOrder needs + * to be fulfilled. + * + * @param dateExpectedCapacityHandover the value to set + * @return this builder + */ + public Builder dateExpectedCapacityHandover(java.util.Date dateExpectedCapacityHandover) { + this.dateExpectedCapacityHandover = dateExpectedCapacityHandover; + this.__explicitlySet__.add("dateExpectedCapacityHandover"); + return this; + } + /** The different states the capacity request goes through. */ + @com.fasterxml.jackson.annotation.JsonProperty("requestState") + private RequestState requestState; + + /** + * The different states the capacity request goes through. + * + * @param requestState the value to set + * @return this builder + */ + public Builder requestState(RequestState requestState) { + this.requestState = requestState; + this.__explicitlySet__.add("requestState"); + return this; + } + /** The time when the capacity request was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time when the capacity request was created. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time when the capacity request was updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time when the capacity request was updated. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** The current lifecycle state of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current lifecycle state of the resource. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in a Failed State. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in a Failed State. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * 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; + } + /** A list of resources requested as part of this request */ + @com.fasterxml.jackson.annotation.JsonProperty("details") + private java.util.List details; + + /** + * A list of resources requested as part of this request + * + * @param details the value to set + * @return this builder + */ + public Builder details(java.util.List details) { + this.details = details; + this.__explicitlySet__.add("details"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OccCapacityRequest build() { + OccCapacityRequest model = + new OccCapacityRequest( + this.id, + this.compartmentId, + this.occAvailabilityCatalogId, + this.displayName, + this.description, + this.namespace, + this.occCustomerGroupId, + this.region, + this.availabilityDomain, + this.dateExpectedCapacityHandover, + this.requestState, + this.timeCreated, + this.timeUpdated, + this.lifecycleState, + this.lifecycleDetails, + this.freeformTags, + this.definedTags, + this.systemTags, + this.details); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OccCapacityRequest model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("occAvailabilityCatalogId")) { + this.occAvailabilityCatalogId(model.getOccAvailabilityCatalogId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("namespace")) { + this.namespace(model.getNamespace()); + } + if (model.wasPropertyExplicitlySet("occCustomerGroupId")) { + this.occCustomerGroupId(model.getOccCustomerGroupId()); + } + if (model.wasPropertyExplicitlySet("region")) { + this.region(model.getRegion()); + } + if (model.wasPropertyExplicitlySet("availabilityDomain")) { + this.availabilityDomain(model.getAvailabilityDomain()); + } + if (model.wasPropertyExplicitlySet("dateExpectedCapacityHandover")) { + this.dateExpectedCapacityHandover(model.getDateExpectedCapacityHandover()); + } + if (model.wasPropertyExplicitlySet("requestState")) { + this.requestState(model.getRequestState()); + } + 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("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("details")) { + this.details(model.getDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the capacity request. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the capacity request. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The OCID of the tenancy from which the request was made. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the tenancy from which the request was made. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The OCID of the availability catalog against which the capacity request was placed. */ + @com.fasterxml.jackson.annotation.JsonProperty("occAvailabilityCatalogId") + private final String occAvailabilityCatalogId; + + /** + * The OCID of the availability catalog against which the capacity request was placed. + * + * @return the value + */ + public String getOccAvailabilityCatalogId() { + return occAvailabilityCatalogId; + } + + /** The display name of the capacity request. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the capacity request. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Meaningful text about the capacity request. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Meaningful text about the capacity request. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** The name of the OCI service in consideration. For example, Compute, Exadata, and so on. */ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private final Namespace namespace; + + /** + * The name of the OCI service in consideration. For example, Compute, Exadata, and so on. + * + * @return the value + */ + public Namespace getNamespace() { + return namespace; + } + + /** The OCID of the customer group to which this customer belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("occCustomerGroupId") + private final String occCustomerGroupId; + + /** + * The OCID of the customer group to which this customer belongs to. + * + * @return the value + */ + public String getOccCustomerGroupId() { + return occCustomerGroupId; + } + + /** The name of the region for which the capacity request was made. */ + @com.fasterxml.jackson.annotation.JsonProperty("region") + private final String region; + + /** + * The name of the region for which the capacity request was made. + * + * @return the value + */ + public String getRegion() { + return region; + } + + /** The availability domain (AD) for which the capacity request was made. */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private final String availabilityDomain; + + /** + * The availability domain (AD) for which the capacity request was made. + * + * @return the value + */ + public String getAvailabilityDomain() { + return availabilityDomain; + } + + /** + * The date by which the capacity requested by customers before dateFinalCustomerOrder needs to + * be fulfilled. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dateExpectedCapacityHandover") + private final java.util.Date dateExpectedCapacityHandover; + + /** + * The date by which the capacity requested by customers before dateFinalCustomerOrder needs to + * be fulfilled. + * + * @return the value + */ + public java.util.Date getDateExpectedCapacityHandover() { + return dateExpectedCapacityHandover; + } + + /** The different states the capacity request goes through. */ + public enum RequestState implements com.oracle.bmc.http.internal.BmcEnum { + Created("CREATED"), + Submitted("SUBMITTED"), + Rejected("REJECTED"), + InProgress("IN_PROGRESS"), + Completed("COMPLETED"), + PartiallyCompleted("PARTIALLY_COMPLETED"), + Cancelled("CANCELLED"), + 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(RequestState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RequestState v : RequestState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + RequestState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RequestState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'RequestState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The different states the capacity request goes through. */ + @com.fasterxml.jackson.annotation.JsonProperty("requestState") + private final RequestState requestState; + + /** + * The different states the capacity request goes through. + * + * @return the value + */ + public RequestState getRequestState() { + return requestState; + } + + /** The time when the capacity request was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time when the capacity request was created. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time when the capacity request was updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time when the capacity request was updated. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** The current lifecycle state of the resource. */ + 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 lifecycle state of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current lifecycle state of the resource. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in a Failed State. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in a Failed State. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * 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; + } + + /** A list of resources requested as part of this request */ + @com.fasterxml.jackson.annotation.JsonProperty("details") + private final java.util.List details; + + /** + * A list of resources requested as part of this request + * + * @return the value + */ + public java.util.List getDetails() { + return details; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OccCapacityRequest("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", occAvailabilityCatalogId=") + .append(String.valueOf(this.occAvailabilityCatalogId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", namespace=").append(String.valueOf(this.namespace)); + sb.append(", occCustomerGroupId=").append(String.valueOf(this.occCustomerGroupId)); + sb.append(", region=").append(String.valueOf(this.region)); + sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); + sb.append(", dateExpectedCapacityHandover=") + .append(String.valueOf(this.dateExpectedCapacityHandover)); + sb.append(", requestState=").append(String.valueOf(this.requestState)); + 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(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", details=").append(String.valueOf(this.details)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OccCapacityRequest)) { + return false; + } + + OccCapacityRequest other = (OccCapacityRequest) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals( + this.occAvailabilityCatalogId, other.occAvailabilityCatalogId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.namespace, other.namespace) + && java.util.Objects.equals(this.occCustomerGroupId, other.occCustomerGroupId) + && java.util.Objects.equals(this.region, other.region) + && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) + && java.util.Objects.equals( + this.dateExpectedCapacityHandover, other.dateExpectedCapacityHandover) + && java.util.Objects.equals(this.requestState, other.requestState) + && 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.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.details, other.details) + && 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.occAvailabilityCatalogId == null + ? 43 + : this.occAvailabilityCatalogId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.namespace == null ? 43 : this.namespace.hashCode()); + result = + (result * PRIME) + + (this.occCustomerGroupId == null + ? 43 + : this.occCustomerGroupId.hashCode()); + result = (result * PRIME) + (this.region == null ? 43 : this.region.hashCode()); + result = + (result * PRIME) + + (this.availabilityDomain == null + ? 43 + : this.availabilityDomain.hashCode()); + result = + (result * PRIME) + + (this.dateExpectedCapacityHandover == null + ? 43 + : this.dateExpectedCapacityHandover.hashCode()); + result = (result * PRIME) + (this.requestState == null ? 43 : this.requestState.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.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + (this.details == null ? 43 : this.details.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCapacityRequestBaseDetails.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCapacityRequestBaseDetails.java new file mode 100644 index 00000000000..d0e5ebb9212 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCapacityRequestBaseDetails.java @@ -0,0 +1,240 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.model; + +/** + * The details of the create capacity request. This model serves as a base for different namespaces. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "resourceType", + defaultImpl = OccCapacityRequestBaseDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = OccCapacityRequestComputeDetails.class, + name = "SERVER_HW") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class OccCapacityRequestBaseDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "workloadType", + "expectedHandoverQuantity", + "dateExpectedHandover", + "actualHandoverQuantity", + "dateActualHandover" + }) + protected OccCapacityRequestBaseDetails( + OccAvailabilitySummary.WorkloadType workloadType, + Long expectedHandoverQuantity, + java.util.Date dateExpectedHandover, + Long actualHandoverQuantity, + java.util.Date dateActualHandover) { + super(); + this.workloadType = workloadType; + this.expectedHandoverQuantity = expectedHandoverQuantity; + this.dateExpectedHandover = dateExpectedHandover; + this.actualHandoverQuantity = actualHandoverQuantity; + this.dateActualHandover = dateActualHandover; + } + + /** The type of the workload (Generic/ROW). */ + @com.fasterxml.jackson.annotation.JsonProperty("workloadType") + private final OccAvailabilitySummary.WorkloadType workloadType; + + /** + * The type of the workload (Generic/ROW). + * + * @return the value + */ + public OccAvailabilitySummary.WorkloadType getWorkloadType() { + return workloadType; + } + + /** The incremental quantity of resources supplied as the provisioning is underway. */ + @com.fasterxml.jackson.annotation.JsonProperty("expectedHandoverQuantity") + private final Long expectedHandoverQuantity; + + /** + * The incremental quantity of resources supplied as the provisioning is underway. + * + * @return the value + */ + public Long getExpectedHandoverQuantity() { + return expectedHandoverQuantity; + } + + /** The date on which the latest increment to supplied quantity of resources was delivered. */ + @com.fasterxml.jackson.annotation.JsonProperty("dateExpectedHandover") + private final java.util.Date dateExpectedHandover; + + /** + * The date on which the latest increment to supplied quantity of resources was delivered. + * + * @return the value + */ + public java.util.Date getDateExpectedHandover() { + return dateExpectedHandover; + } + + /** The actual handed over quantity of resources at the time of request resolution. */ + @com.fasterxml.jackson.annotation.JsonProperty("actualHandoverQuantity") + private final Long actualHandoverQuantity; + + /** + * The actual handed over quantity of resources at the time of request resolution. + * + * @return the value + */ + public Long getActualHandoverQuantity() { + return actualHandoverQuantity; + } + + /** The date on which the actual handover quantity of resources is delivered. */ + @com.fasterxml.jackson.annotation.JsonProperty("dateActualHandover") + private final java.util.Date dateActualHandover; + + /** + * The date on which the actual handover quantity of resources is delivered. + * + * @return the value + */ + public java.util.Date getDateActualHandover() { + return dateActualHandover; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OccCapacityRequestBaseDetails("); + sb.append("super=").append(super.toString()); + sb.append("workloadType=").append(String.valueOf(this.workloadType)); + sb.append(", expectedHandoverQuantity=") + .append(String.valueOf(this.expectedHandoverQuantity)); + sb.append(", dateExpectedHandover=").append(String.valueOf(this.dateExpectedHandover)); + sb.append(", actualHandoverQuantity=").append(String.valueOf(this.actualHandoverQuantity)); + sb.append(", dateActualHandover=").append(String.valueOf(this.dateActualHandover)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OccCapacityRequestBaseDetails)) { + return false; + } + + OccCapacityRequestBaseDetails other = (OccCapacityRequestBaseDetails) o; + return java.util.Objects.equals(this.workloadType, other.workloadType) + && java.util.Objects.equals( + this.expectedHandoverQuantity, other.expectedHandoverQuantity) + && java.util.Objects.equals(this.dateExpectedHandover, other.dateExpectedHandover) + && java.util.Objects.equals( + this.actualHandoverQuantity, other.actualHandoverQuantity) + && java.util.Objects.equals(this.dateActualHandover, other.dateActualHandover) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.workloadType == null ? 43 : this.workloadType.hashCode()); + result = + (result * PRIME) + + (this.expectedHandoverQuantity == null + ? 43 + : this.expectedHandoverQuantity.hashCode()); + result = + (result * PRIME) + + (this.dateExpectedHandover == null + ? 43 + : this.dateExpectedHandover.hashCode()); + result = + (result * PRIME) + + (this.actualHandoverQuantity == null + ? 43 + : this.actualHandoverQuantity.hashCode()); + result = + (result * PRIME) + + (this.dateActualHandover == null + ? 43 + : this.dateActualHandover.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** The type of the resource against which the user wants to place a capacity request. */ + public enum ResourceType implements com.oracle.bmc.http.internal.BmcEnum { + ServerHw("SERVER_HW"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ResourceType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ResourceType v : ResourceType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ResourceType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ResourceType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ResourceType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCapacityRequestCollection.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCapacityRequestCollection.java new file mode 100644 index 00000000000..7e3d7d6b91d --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCapacityRequestCollection.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.model; + +/** + * A list of capacity requests.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OccCapacityRequestCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OccCapacityRequestCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public OccCapacityRequestCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** An array of capacity requests. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * An array of capacity requests. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OccCapacityRequestCollection build() { + OccCapacityRequestCollection model = new OccCapacityRequestCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OccCapacityRequestCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** An array of capacity requests. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * An array of capacity requests. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OccCapacityRequestCollection("); + 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 OccCapacityRequestCollection)) { + return false; + } + + OccCapacityRequestCollection other = (OccCapacityRequestCollection) 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-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCapacityRequestComputeDetails.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCapacityRequestComputeDetails.java new file mode 100644 index 00000000000..aaca8b455b8 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCapacityRequestComputeDetails.java @@ -0,0 +1,259 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.model; + +/** + * The details about the compute servers required for creating a capacity request.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OccCapacityRequestComputeDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "resourceType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OccCapacityRequestComputeDetails extends OccCapacityRequestBaseDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("workloadType") + private OccAvailabilitySummary.WorkloadType workloadType; + + public Builder workloadType(OccAvailabilitySummary.WorkloadType workloadType) { + this.workloadType = workloadType; + this.__explicitlySet__.add("workloadType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("expectedHandoverQuantity") + private Long expectedHandoverQuantity; + + public Builder expectedHandoverQuantity(Long expectedHandoverQuantity) { + this.expectedHandoverQuantity = expectedHandoverQuantity; + this.__explicitlySet__.add("expectedHandoverQuantity"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dateExpectedHandover") + private java.util.Date dateExpectedHandover; + + public Builder dateExpectedHandover(java.util.Date dateExpectedHandover) { + this.dateExpectedHandover = dateExpectedHandover; + this.__explicitlySet__.add("dateExpectedHandover"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("actualHandoverQuantity") + private Long actualHandoverQuantity; + + public Builder actualHandoverQuantity(Long actualHandoverQuantity) { + this.actualHandoverQuantity = actualHandoverQuantity; + this.__explicitlySet__.add("actualHandoverQuantity"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dateActualHandover") + private java.util.Date dateActualHandover; + + public Builder dateActualHandover(java.util.Date dateActualHandover) { + this.dateActualHandover = dateActualHandover; + this.__explicitlySet__.add("dateActualHandover"); + return this; + } + /** + * The name of the COMPUTE server shape for which the request is made. Do not use + * CAPACITY_CONSTRAINT as the resource name. + */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceName") + private String resourceName; + + /** + * The name of the COMPUTE server shape for which the request is made. Do not use + * CAPACITY_CONSTRAINT as the resource name. + * + * @param resourceName the value to set + * @return this builder + */ + public Builder resourceName(String resourceName) { + this.resourceName = resourceName; + this.__explicitlySet__.add("resourceName"); + return this; + } + /** The number of compute server's with name required by the user. */ + @com.fasterxml.jackson.annotation.JsonProperty("demandQuantity") + private Long demandQuantity; + + /** + * The number of compute server's with name required by the user. + * + * @param demandQuantity the value to set + * @return this builder + */ + public Builder demandQuantity(Long demandQuantity) { + this.demandQuantity = demandQuantity; + this.__explicitlySet__.add("demandQuantity"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OccCapacityRequestComputeDetails build() { + OccCapacityRequestComputeDetails model = + new OccCapacityRequestComputeDetails( + this.workloadType, + this.expectedHandoverQuantity, + this.dateExpectedHandover, + this.actualHandoverQuantity, + this.dateActualHandover, + this.resourceName, + this.demandQuantity); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OccCapacityRequestComputeDetails model) { + if (model.wasPropertyExplicitlySet("workloadType")) { + this.workloadType(model.getWorkloadType()); + } + if (model.wasPropertyExplicitlySet("expectedHandoverQuantity")) { + this.expectedHandoverQuantity(model.getExpectedHandoverQuantity()); + } + if (model.wasPropertyExplicitlySet("dateExpectedHandover")) { + this.dateExpectedHandover(model.getDateExpectedHandover()); + } + if (model.wasPropertyExplicitlySet("actualHandoverQuantity")) { + this.actualHandoverQuantity(model.getActualHandoverQuantity()); + } + if (model.wasPropertyExplicitlySet("dateActualHandover")) { + this.dateActualHandover(model.getDateActualHandover()); + } + if (model.wasPropertyExplicitlySet("resourceName")) { + this.resourceName(model.getResourceName()); + } + if (model.wasPropertyExplicitlySet("demandQuantity")) { + this.demandQuantity(model.getDemandQuantity()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public OccCapacityRequestComputeDetails( + OccAvailabilitySummary.WorkloadType workloadType, + Long expectedHandoverQuantity, + java.util.Date dateExpectedHandover, + Long actualHandoverQuantity, + java.util.Date dateActualHandover, + String resourceName, + Long demandQuantity) { + super( + workloadType, + expectedHandoverQuantity, + dateExpectedHandover, + actualHandoverQuantity, + dateActualHandover); + this.resourceName = resourceName; + this.demandQuantity = demandQuantity; + } + + /** + * The name of the COMPUTE server shape for which the request is made. Do not use + * CAPACITY_CONSTRAINT as the resource name. + */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceName") + private final String resourceName; + + /** + * The name of the COMPUTE server shape for which the request is made. Do not use + * CAPACITY_CONSTRAINT as the resource name. + * + * @return the value + */ + public String getResourceName() { + return resourceName; + } + + /** The number of compute server's with name required by the user. */ + @com.fasterxml.jackson.annotation.JsonProperty("demandQuantity") + private final Long demandQuantity; + + /** + * The number of compute server's with name required by the user. + * + * @return the value + */ + public Long getDemandQuantity() { + return demandQuantity; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OccCapacityRequestComputeDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", resourceName=").append(String.valueOf(this.resourceName)); + sb.append(", demandQuantity=").append(String.valueOf(this.demandQuantity)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OccCapacityRequestComputeDetails)) { + return false; + } + + OccCapacityRequestComputeDetails other = (OccCapacityRequestComputeDetails) o; + return java.util.Objects.equals(this.resourceName, other.resourceName) + && java.util.Objects.equals(this.demandQuantity, other.demandQuantity) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.resourceName == null ? 43 : this.resourceName.hashCode()); + result = + (result * PRIME) + + (this.demandQuantity == null ? 43 : this.demandQuantity.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCapacityRequestSummary.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCapacityRequestSummary.java new file mode 100644 index 00000000000..b905f2b86b9 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCapacityRequestSummary.java @@ -0,0 +1,854 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.model; + +/** + * A summary model for the capacity request model.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OccCapacityRequestSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OccCapacityRequestSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "occAvailabilityCatalogId", + "displayName", + "description", + "namespace", + "occCustomerGroupId", + "region", + "availabilityDomain", + "dateExpectedCapacityHandover", + "requestState", + "timeCreated", + "timeUpdated", + "lifecycleState", + "lifecycleDetails", + "freeformTags", + "definedTags", + "systemTags" + }) + public OccCapacityRequestSummary( + String id, + String compartmentId, + String occAvailabilityCatalogId, + String displayName, + String description, + Namespace namespace, + String occCustomerGroupId, + String region, + String availabilityDomain, + java.util.Date dateExpectedCapacityHandover, + OccCapacityRequest.RequestState requestState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + OccCapacityRequest.LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.occAvailabilityCatalogId = occAvailabilityCatalogId; + this.displayName = displayName; + this.description = description; + this.namespace = namespace; + this.occCustomerGroupId = occCustomerGroupId; + this.region = region; + this.availabilityDomain = availabilityDomain; + this.dateExpectedCapacityHandover = dateExpectedCapacityHandover; + this.requestState = requestState; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the capacity request. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the capacity request. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The OCID of the tenancy from which the request was made. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the tenancy from which the request was made. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The OCID of the availability catalog against which the capacity request was placed. */ + @com.fasterxml.jackson.annotation.JsonProperty("occAvailabilityCatalogId") + private String occAvailabilityCatalogId; + + /** + * The OCID of the availability catalog against which the capacity request was placed. + * + * @param occAvailabilityCatalogId the value to set + * @return this builder + */ + public Builder occAvailabilityCatalogId(String occAvailabilityCatalogId) { + this.occAvailabilityCatalogId = occAvailabilityCatalogId; + this.__explicitlySet__.add("occAvailabilityCatalogId"); + return this; + } + /** The display name of the capacity request. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the capacity request. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Meaningful text about the capacity request. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Meaningful text about the capacity request. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The name of the OCI service in consideration. For example, Compute, Exadata, and so on. + */ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private Namespace namespace; + + /** + * The name of the OCI service in consideration. For example, Compute, Exadata, and so on. + * + * @param namespace the value to set + * @return this builder + */ + public Builder namespace(Namespace namespace) { + this.namespace = namespace; + this.__explicitlySet__.add("namespace"); + return this; + } + /** The OCID of the customer group to which this customer belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("occCustomerGroupId") + private String occCustomerGroupId; + + /** + * The OCID of the customer group to which this customer belongs to. + * + * @param occCustomerGroupId the value to set + * @return this builder + */ + public Builder occCustomerGroupId(String occCustomerGroupId) { + this.occCustomerGroupId = occCustomerGroupId; + this.__explicitlySet__.add("occCustomerGroupId"); + return this; + } + /** The name of the region for which the capacity request was made. */ + @com.fasterxml.jackson.annotation.JsonProperty("region") + private String region; + + /** + * The name of the region for which the capacity request was made. + * + * @param region the value to set + * @return this builder + */ + public Builder region(String region) { + this.region = region; + this.__explicitlySet__.add("region"); + return this; + } + /** The availability domain (AD) for which the capacity request was made. */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private String availabilityDomain; + + /** + * The availability domain (AD) for which the capacity request was made. + * + * @param availabilityDomain the value to set + * @return this builder + */ + public Builder availabilityDomain(String availabilityDomain) { + this.availabilityDomain = availabilityDomain; + this.__explicitlySet__.add("availabilityDomain"); + return this; + } + /** + * The date by which the capacity requested by customers before dateFinalCustomerOrder needs + * to be fulfilled. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dateExpectedCapacityHandover") + private java.util.Date dateExpectedCapacityHandover; + + /** + * The date by which the capacity requested by customers before dateFinalCustomerOrder needs + * to be fulfilled. + * + * @param dateExpectedCapacityHandover the value to set + * @return this builder + */ + public Builder dateExpectedCapacityHandover(java.util.Date dateExpectedCapacityHandover) { + this.dateExpectedCapacityHandover = dateExpectedCapacityHandover; + this.__explicitlySet__.add("dateExpectedCapacityHandover"); + return this; + } + /** A list of states through which the capacity request goes by. */ + @com.fasterxml.jackson.annotation.JsonProperty("requestState") + private OccCapacityRequest.RequestState requestState; + + /** + * A list of states through which the capacity request goes by. + * + * @param requestState the value to set + * @return this builder + */ + public Builder requestState(OccCapacityRequest.RequestState requestState) { + this.requestState = requestState; + this.__explicitlySet__.add("requestState"); + return this; + } + /** The time when the capacity request was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time when the capacity request was created. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time when the capacity request was updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time when the capacity request was updated. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** The current lifecycle state of the customer group. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private OccCapacityRequest.LifecycleState lifecycleState; + + /** + * The current lifecycle state of the customer group. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(OccCapacityRequest.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in a Failed State. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in a Failed State. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * 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 OccCapacityRequestSummary build() { + OccCapacityRequestSummary model = + new OccCapacityRequestSummary( + this.id, + this.compartmentId, + this.occAvailabilityCatalogId, + this.displayName, + this.description, + this.namespace, + this.occCustomerGroupId, + this.region, + this.availabilityDomain, + this.dateExpectedCapacityHandover, + this.requestState, + this.timeCreated, + this.timeUpdated, + this.lifecycleState, + this.lifecycleDetails, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OccCapacityRequestSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("occAvailabilityCatalogId")) { + this.occAvailabilityCatalogId(model.getOccAvailabilityCatalogId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("namespace")) { + this.namespace(model.getNamespace()); + } + if (model.wasPropertyExplicitlySet("occCustomerGroupId")) { + this.occCustomerGroupId(model.getOccCustomerGroupId()); + } + if (model.wasPropertyExplicitlySet("region")) { + this.region(model.getRegion()); + } + if (model.wasPropertyExplicitlySet("availabilityDomain")) { + this.availabilityDomain(model.getAvailabilityDomain()); + } + if (model.wasPropertyExplicitlySet("dateExpectedCapacityHandover")) { + this.dateExpectedCapacityHandover(model.getDateExpectedCapacityHandover()); + } + if (model.wasPropertyExplicitlySet("requestState")) { + this.requestState(model.getRequestState()); + } + 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("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the capacity request. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the capacity request. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The OCID of the tenancy from which the request was made. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the tenancy from which the request was made. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The OCID of the availability catalog against which the capacity request was placed. */ + @com.fasterxml.jackson.annotation.JsonProperty("occAvailabilityCatalogId") + private final String occAvailabilityCatalogId; + + /** + * The OCID of the availability catalog against which the capacity request was placed. + * + * @return the value + */ + public String getOccAvailabilityCatalogId() { + return occAvailabilityCatalogId; + } + + /** The display name of the capacity request. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the capacity request. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Meaningful text about the capacity request. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Meaningful text about the capacity request. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** The name of the OCI service in consideration. For example, Compute, Exadata, and so on. */ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private final Namespace namespace; + + /** + * The name of the OCI service in consideration. For example, Compute, Exadata, and so on. + * + * @return the value + */ + public Namespace getNamespace() { + return namespace; + } + + /** The OCID of the customer group to which this customer belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("occCustomerGroupId") + private final String occCustomerGroupId; + + /** + * The OCID of the customer group to which this customer belongs to. + * + * @return the value + */ + public String getOccCustomerGroupId() { + return occCustomerGroupId; + } + + /** The name of the region for which the capacity request was made. */ + @com.fasterxml.jackson.annotation.JsonProperty("region") + private final String region; + + /** + * The name of the region for which the capacity request was made. + * + * @return the value + */ + public String getRegion() { + return region; + } + + /** The availability domain (AD) for which the capacity request was made. */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private final String availabilityDomain; + + /** + * The availability domain (AD) for which the capacity request was made. + * + * @return the value + */ + public String getAvailabilityDomain() { + return availabilityDomain; + } + + /** + * The date by which the capacity requested by customers before dateFinalCustomerOrder needs to + * be fulfilled. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dateExpectedCapacityHandover") + private final java.util.Date dateExpectedCapacityHandover; + + /** + * The date by which the capacity requested by customers before dateFinalCustomerOrder needs to + * be fulfilled. + * + * @return the value + */ + public java.util.Date getDateExpectedCapacityHandover() { + return dateExpectedCapacityHandover; + } + + /** A list of states through which the capacity request goes by. */ + @com.fasterxml.jackson.annotation.JsonProperty("requestState") + private final OccCapacityRequest.RequestState requestState; + + /** + * A list of states through which the capacity request goes by. + * + * @return the value + */ + public OccCapacityRequest.RequestState getRequestState() { + return requestState; + } + + /** The time when the capacity request was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time when the capacity request was created. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time when the capacity request was updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time when the capacity request was updated. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** The current lifecycle state of the customer group. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final OccCapacityRequest.LifecycleState lifecycleState; + + /** + * The current lifecycle state of the customer group. + * + * @return the value + */ + public OccCapacityRequest.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in a Failed State. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in a Failed State. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * 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("OccCapacityRequestSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", occAvailabilityCatalogId=") + .append(String.valueOf(this.occAvailabilityCatalogId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", namespace=").append(String.valueOf(this.namespace)); + sb.append(", occCustomerGroupId=").append(String.valueOf(this.occCustomerGroupId)); + sb.append(", region=").append(String.valueOf(this.region)); + sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); + sb.append(", dateExpectedCapacityHandover=") + .append(String.valueOf(this.dateExpectedCapacityHandover)); + sb.append(", requestState=").append(String.valueOf(this.requestState)); + 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(", 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 OccCapacityRequestSummary)) { + return false; + } + + OccCapacityRequestSummary other = (OccCapacityRequestSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals( + this.occAvailabilityCatalogId, other.occAvailabilityCatalogId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.namespace, other.namespace) + && java.util.Objects.equals(this.occCustomerGroupId, other.occCustomerGroupId) + && java.util.Objects.equals(this.region, other.region) + && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) + && java.util.Objects.equals( + this.dateExpectedCapacityHandover, other.dateExpectedCapacityHandover) + && java.util.Objects.equals(this.requestState, other.requestState) + && 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.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.occAvailabilityCatalogId == null + ? 43 + : this.occAvailabilityCatalogId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.namespace == null ? 43 : this.namespace.hashCode()); + result = + (result * PRIME) + + (this.occCustomerGroupId == null + ? 43 + : this.occCustomerGroupId.hashCode()); + result = (result * PRIME) + (this.region == null ? 43 : this.region.hashCode()); + result = + (result * PRIME) + + (this.availabilityDomain == null + ? 43 + : this.availabilityDomain.hashCode()); + result = + (result * PRIME) + + (this.dateExpectedCapacityHandover == null + ? 43 + : this.dateExpectedCapacityHandover.hashCode()); + result = (result * PRIME) + (this.requestState == null ? 43 : this.requestState.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.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-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCustomer.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCustomer.java new file mode 100644 index 00000000000..aca4ced3684 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCustomer.java @@ -0,0 +1,338 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.model; + +/** + * The details about the customer.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OccCustomer.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OccCustomer extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "occCustomerGroupId", + "tenancyId", + "displayName", + "description", + "status" + }) + public OccCustomer( + String occCustomerGroupId, + String tenancyId, + String displayName, + String description, + Status status) { + super(); + this.occCustomerGroupId = occCustomerGroupId; + this.tenancyId = tenancyId; + this.displayName = displayName; + this.description = description; + this.status = status; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the customer group. */ + @com.fasterxml.jackson.annotation.JsonProperty("occCustomerGroupId") + private String occCustomerGroupId; + + /** + * The OCID of the customer group. + * + * @param occCustomerGroupId the value to set + * @return this builder + */ + public Builder occCustomerGroupId(String occCustomerGroupId) { + this.occCustomerGroupId = occCustomerGroupId; + this.__explicitlySet__.add("occCustomerGroupId"); + return this; + } + /** The OCID of the tenancy belonging to the customer. */ + @com.fasterxml.jackson.annotation.JsonProperty("tenancyId") + private String tenancyId; + + /** + * The OCID of the tenancy belonging to the customer. + * + * @param tenancyId the value to set + * @return this builder + */ + public Builder tenancyId(String tenancyId) { + this.tenancyId = tenancyId; + this.__explicitlySet__.add("tenancyId"); + return this; + } + /** The display name for the customer */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name for the customer + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The description about the customer group. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description about the customer group. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** To determine whether the customer is enabled/disabled. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Status status; + + /** + * To determine whether the customer is enabled/disabled. + * + * @param status the value to set + * @return this builder + */ + public Builder status(Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OccCustomer build() { + OccCustomer model = + new OccCustomer( + this.occCustomerGroupId, + this.tenancyId, + this.displayName, + this.description, + this.status); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OccCustomer model) { + if (model.wasPropertyExplicitlySet("occCustomerGroupId")) { + this.occCustomerGroupId(model.getOccCustomerGroupId()); + } + if (model.wasPropertyExplicitlySet("tenancyId")) { + this.tenancyId(model.getTenancyId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the customer group. */ + @com.fasterxml.jackson.annotation.JsonProperty("occCustomerGroupId") + private final String occCustomerGroupId; + + /** + * The OCID of the customer group. + * + * @return the value + */ + public String getOccCustomerGroupId() { + return occCustomerGroupId; + } + + /** The OCID of the tenancy belonging to the customer. */ + @com.fasterxml.jackson.annotation.JsonProperty("tenancyId") + private final String tenancyId; + + /** + * The OCID of the tenancy belonging to the customer. + * + * @return the value + */ + public String getTenancyId() { + return tenancyId; + } + + /** The display name for the customer */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name for the customer + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The description about the customer group. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description about the customer group. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** To determine whether the customer is enabled/disabled. */ + public enum Status implements com.oracle.bmc.http.internal.BmcEnum { + Enabled("ENABLED"), + Disabled("DISABLED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Status.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Status v : Status.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Status(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Status create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Status', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** To determine whether the customer is enabled/disabled. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final Status status; + + /** + * To determine whether the customer is enabled/disabled. + * + * @return the value + */ + public Status getStatus() { + return status; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OccCustomer("); + sb.append("super=").append(super.toString()); + sb.append("occCustomerGroupId=").append(String.valueOf(this.occCustomerGroupId)); + sb.append(", tenancyId=").append(String.valueOf(this.tenancyId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OccCustomer)) { + return false; + } + + OccCustomer other = (OccCustomer) o; + return java.util.Objects.equals(this.occCustomerGroupId, other.occCustomerGroupId) + && java.util.Objects.equals(this.tenancyId, other.tenancyId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.status, other.status) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.occCustomerGroupId == null + ? 43 + : this.occCustomerGroupId.hashCode()); + result = (result * PRIME) + (this.tenancyId == null ? 43 : this.tenancyId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCustomerGroup.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCustomerGroup.java new file mode 100644 index 00000000000..7cae787b33a --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCustomerGroup.java @@ -0,0 +1,730 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.model; + +/** + * Details of the customer group resource.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OccCustomerGroup.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OccCustomerGroup + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "description", + "timeCreated", + "timeUpdated", + "status", + "lifecycleState", + "lifecycleDetails", + "freeformTags", + "definedTags", + "systemTags", + "customersList" + }) + public OccCustomerGroup( + String id, + String compartmentId, + String displayName, + String description, + java.util.Date timeCreated, + java.util.Date timeUpdated, + Status status, + LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + java.util.List customersList) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.description = description; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.status = status; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + this.customersList = customersList; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the customer group. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the customer group. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The OCID of the tenancy containing the customer group. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the tenancy containing the customer group. + * + * @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 the customer group. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the customer group. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The description about the customer group. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description about the customer group. + * + * @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 when the customer group was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time when the customer group was created. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time when the customer group was last updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time when the customer group was last updated. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** To determine whether the customer group is enabled/disabled. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Status status; + + /** + * To determine whether the customer group is enabled/disabled. + * + * @param status the value to set + * @return this builder + */ + public Builder status(Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** The current lifecycle state of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current lifecycle state of the resource. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in a Failed State. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in a Failed State. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * 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; + } + /** A list containing all the customers that belong to this customer group */ + @com.fasterxml.jackson.annotation.JsonProperty("customersList") + private java.util.List customersList; + + /** + * A list containing all the customers that belong to this customer group + * + * @param customersList the value to set + * @return this builder + */ + public Builder customersList(java.util.List customersList) { + this.customersList = customersList; + this.__explicitlySet__.add("customersList"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OccCustomerGroup build() { + OccCustomerGroup model = + new OccCustomerGroup( + this.id, + this.compartmentId, + this.displayName, + this.description, + this.timeCreated, + this.timeUpdated, + this.status, + this.lifecycleState, + this.lifecycleDetails, + this.freeformTags, + this.definedTags, + this.systemTags, + this.customersList); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OccCustomerGroup model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("customersList")) { + this.customersList(model.getCustomersList()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the customer group. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the customer group. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The OCID of the tenancy containing the customer group. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the tenancy containing the customer group. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The display name of the customer group. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the customer group. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The description about the customer group. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description about the customer group. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** The time when the customer group was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time when the customer group was created. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time when the customer group was last updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time when the customer group was last updated. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** To determine whether the customer group is enabled/disabled. */ + public enum Status implements com.oracle.bmc.http.internal.BmcEnum { + Enabled("ENABLED"), + Disabled("DISABLED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Status.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Status v : Status.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Status(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Status create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Status', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** To determine whether the customer group is enabled/disabled. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final Status status; + + /** + * To determine whether the customer group is enabled/disabled. + * + * @return the value + */ + public Status getStatus() { + return status; + } + + /** The current lifecycle state of the resource. */ + 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 lifecycle state of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current lifecycle state of the resource. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in a Failed State. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in a Failed State. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * 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; + } + + /** A list containing all the customers that belong to this customer group */ + @com.fasterxml.jackson.annotation.JsonProperty("customersList") + private final java.util.List customersList; + + /** + * A list containing all the customers that belong to this customer group + * + * @return the value + */ + public java.util.List getCustomersList() { + return customersList; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OccCustomerGroup("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", customersList=").append(String.valueOf(this.customersList)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OccCustomerGroup)) { + return false; + } + + OccCustomerGroup other = (OccCustomerGroup) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.customersList, other.customersList) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = + (result * PRIME) + + (this.customersList == null ? 43 : this.customersList.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCustomerGroupCollection.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCustomerGroupCollection.java new file mode 100644 index 00000000000..76a309b4a7e --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCustomerGroupCollection.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.model; + +/** + * A list of customer groups.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OccCustomerGroupCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OccCustomerGroupCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public OccCustomerGroupCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** An array of customer groups. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * An array of customer groups. + * + * @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 OccCustomerGroupCollection build() { + OccCustomerGroupCollection model = new OccCustomerGroupCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OccCustomerGroupCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** An array of customer groups. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * An array of customer groups. + * + * @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("OccCustomerGroupCollection("); + 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 OccCustomerGroupCollection)) { + return false; + } + + OccCustomerGroupCollection other = (OccCustomerGroupCollection) 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-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCustomerGroupSummary.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCustomerGroupSummary.java new file mode 100644 index 00000000000..5d279c1dd49 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/OccCustomerGroupSummary.java @@ -0,0 +1,597 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.model; + +/** + * A customer group is a resource that represents the portion of the capacity reserved for a + * customer or a group of customers to facilitate their capacity bookings.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OccCustomerGroupSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OccCustomerGroupSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "description", + "timeCreated", + "timeUpdated", + "status", + "lifecycleState", + "lifecycleDetails", + "freeformTags", + "definedTags", + "systemTags" + }) + public OccCustomerGroupSummary( + String id, + String compartmentId, + String displayName, + String description, + java.util.Date timeCreated, + java.util.Date timeUpdated, + OccCustomerGroup.Status status, + OccCustomerGroup.LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.description = description; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.status = status; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the customer group. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the customer group. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The OCID of the tenancy containing the customer group. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the tenancy containing the customer group. + * + * @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 the customer group. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the customer group. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The description about the customer group. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description about the customer group. + * + * @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 when the customer group was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time when the customer group was created. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time when the customer group was last updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time when the customer group was last updated. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** The status (enabled/disabled) of the customer group. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private OccCustomerGroup.Status status; + + /** + * The status (enabled/disabled) of the customer group. + * + * @param status the value to set + * @return this builder + */ + public Builder status(OccCustomerGroup.Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** The current lifecycle state of the customer group. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private OccCustomerGroup.LifecycleState lifecycleState; + + /** + * The current lifecycle state of the customer group. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(OccCustomerGroup.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in a Failed State. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in a Failed State. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * 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 OccCustomerGroupSummary build() { + OccCustomerGroupSummary model = + new OccCustomerGroupSummary( + this.id, + this.compartmentId, + this.displayName, + this.description, + this.timeCreated, + this.timeUpdated, + this.status, + this.lifecycleState, + this.lifecycleDetails, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OccCustomerGroupSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the customer group. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the customer group. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The OCID of the tenancy containing the customer group. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the tenancy containing the customer group. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The display name of the customer group. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the customer group. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The description about the customer group. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description about the customer group. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** The time when the customer group was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time when the customer group was created. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time when the customer group was last updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time when the customer group was last updated. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** The status (enabled/disabled) of the customer group. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final OccCustomerGroup.Status status; + + /** + * The status (enabled/disabled) of the customer group. + * + * @return the value + */ + public OccCustomerGroup.Status getStatus() { + return status; + } + + /** The current lifecycle state of the customer group. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final OccCustomerGroup.LifecycleState lifecycleState; + + /** + * The current lifecycle state of the customer group. + * + * @return the value + */ + public OccCustomerGroup.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in a Failed State. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in a Failed State. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * 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("OccCustomerGroupSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", 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 OccCustomerGroupSummary)) { + return false; + } + + OccCustomerGroupSummary other = (OccCustomerGroupSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchInsertInstruction.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchInsertInstruction.java new file mode 100644 index 00000000000..2f5fa561ee6 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchInsertInstruction.java @@ -0,0 +1,287 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.model; + +/** + * An operation that inserts a value into an array, shifting array items as necessary and handling + * NOT_FOUND exceptions by creating the implied containing structure.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PatchInsertInstruction.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "operation") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PatchInsertInstruction extends PatchInstruction { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("selection") + private String selection; + + public Builder selection(String selection) { + this.selection = selection; + this.__explicitlySet__.add("selection"); + return this; + } + /** A value to be inserted into the target. */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private Object value; + + /** + * A value to be inserted into the target. + * + * @param value the value to set + * @return this builder + */ + public Builder value(Object value) { + this.value = value; + this.__explicitlySet__.add("value"); + return this; + } + /** + * A selection to be evaluated against the array for identifying a particular reference item + * within it, with the same format and semantics as {@code selection}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("selectedItem") + private String selectedItem; + + /** + * A selection to be evaluated against the array for identifying a particular reference item + * within it, with the same format and semantics as {@code selection}. + * + * @param selectedItem the value to set + * @return this builder + */ + public Builder selectedItem(String selectedItem) { + this.selectedItem = selectedItem; + this.__explicitlySet__.add("selectedItem"); + return this; + } + /** + * Where to insert the value, relative to the first item matched by {@code selectedItem}. If + * {@code selectedItem} is unspecified, then "BEFORE" specifies insertion at the first + * position in an array and "AFTER" specifies insertion at the last position. If {@code + * selectedItem} is specified but results in an empty selection, then both values specify + * insertion at the last position. + */ + @com.fasterxml.jackson.annotation.JsonProperty("position") + private Position position; + + /** + * Where to insert the value, relative to the first item matched by {@code selectedItem}. If + * {@code selectedItem} is unspecified, then "BEFORE" specifies insertion at the first + * position in an array and "AFTER" specifies insertion at the last position. If {@code + * selectedItem} is specified but results in an empty selection, then both values specify + * insertion at the last position. + * + * @param position the value to set + * @return this builder + */ + public Builder position(Position position) { + this.position = position; + this.__explicitlySet__.add("position"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PatchInsertInstruction build() { + PatchInsertInstruction model = + new PatchInsertInstruction( + this.selection, this.value, this.selectedItem, this.position); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PatchInsertInstruction model) { + if (model.wasPropertyExplicitlySet("selection")) { + this.selection(model.getSelection()); + } + if (model.wasPropertyExplicitlySet("value")) { + this.value(model.getValue()); + } + if (model.wasPropertyExplicitlySet("selectedItem")) { + this.selectedItem(model.getSelectedItem()); + } + if (model.wasPropertyExplicitlySet("position")) { + this.position(model.getPosition()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PatchInsertInstruction( + String selection, Object value, String selectedItem, Position position) { + super(selection); + this.value = value; + this.selectedItem = selectedItem; + this.position = position; + } + + /** A value to be inserted into the target. */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final Object value; + + /** + * A value to be inserted into the target. + * + * @return the value + */ + public Object getValue() { + return value; + } + + /** + * A selection to be evaluated against the array for identifying a particular reference item + * within it, with the same format and semantics as {@code selection}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("selectedItem") + private final String selectedItem; + + /** + * A selection to be evaluated against the array for identifying a particular reference item + * within it, with the same format and semantics as {@code selection}. + * + * @return the value + */ + public String getSelectedItem() { + return selectedItem; + } + + /** + * Where to insert the value, relative to the first item matched by {@code selectedItem}. If + * {@code selectedItem} is unspecified, then "BEFORE" specifies insertion at the first position + * in an array and "AFTER" specifies insertion at the last position. If {@code selectedItem} is + * specified but results in an empty selection, then both values specify insertion at the last + * position. + */ + public enum Position implements com.oracle.bmc.http.internal.BmcEnum { + Before("BEFORE"), + After("AFTER"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Position v : Position.values()) { + map.put(v.getValue(), v); + } + } + + Position(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Position create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Position: " + key); + } + }; + /** + * Where to insert the value, relative to the first item matched by {@code selectedItem}. If + * {@code selectedItem} is unspecified, then "BEFORE" specifies insertion at the first position + * in an array and "AFTER" specifies insertion at the last position. If {@code selectedItem} is + * specified but results in an empty selection, then both values specify insertion at the last + * position. + */ + @com.fasterxml.jackson.annotation.JsonProperty("position") + private final Position position; + + /** + * Where to insert the value, relative to the first item matched by {@code selectedItem}. If + * {@code selectedItem} is unspecified, then "BEFORE" specifies insertion at the first position + * in an array and "AFTER" specifies insertion at the last position. If {@code selectedItem} is + * specified but results in an empty selection, then both values specify insertion at the last + * position. + * + * @return the value + */ + public Position getPosition() { + return position; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PatchInsertInstruction("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", value=").append(String.valueOf(this.value)); + sb.append(", selectedItem=").append(String.valueOf(this.selectedItem)); + sb.append(", position=").append(String.valueOf(this.position)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PatchInsertInstruction)) { + return false; + } + + PatchInsertInstruction other = (PatchInsertInstruction) o; + return java.util.Objects.equals(this.value, other.value) + && java.util.Objects.equals(this.selectedItem, other.selectedItem) + && java.util.Objects.equals(this.position, other.position) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + result = (result * PRIME) + (this.selectedItem == null ? 43 : this.selectedItem.hashCode()); + result = (result * PRIME) + (this.position == null ? 43 : this.position.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchInsertMultipleInstruction.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchInsertMultipleInstruction.java new file mode 100644 index 00000000000..33393dcfa19 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchInsertMultipleInstruction.java @@ -0,0 +1,290 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.model; + +/** + * An operation that inserts multiple consecutive values into an array, shifting array items as + * necessary and handling NOT_FOUND exceptions by creating the implied containing structure.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PatchInsertMultipleInstruction.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "operation") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PatchInsertMultipleInstruction extends PatchInstruction { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("selection") + private String selection; + + public Builder selection(String selection) { + this.selection = selection; + this.__explicitlySet__.add("selection"); + return this; + } + /** A list of consecutive values to be inserted into the target. */ + @com.fasterxml.jackson.annotation.JsonProperty("values") + private java.util.List values; + + /** + * A list of consecutive values to be inserted into the target. + * + * @param values the value to set + * @return this builder + */ + public Builder values(java.util.List values) { + this.values = values; + this.__explicitlySet__.add("values"); + return this; + } + /** + * A selection to be evaluated against the array for identifying a particular reference item + * within it, with the same format and semantics as {@code selection}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("selectedItem") + private String selectedItem; + + /** + * A selection to be evaluated against the array for identifying a particular reference item + * within it, with the same format and semantics as {@code selection}. + * + * @param selectedItem the value to set + * @return this builder + */ + public Builder selectedItem(String selectedItem) { + this.selectedItem = selectedItem; + this.__explicitlySet__.add("selectedItem"); + return this; + } + /** + * Where to insert the values, relative to the first item matched by {@code selectedItem}. + * If {@code selectedItem} is unspecified, then "BEFORE" specifies insertion at the first + * position in an array and "AFTER" specifies insertion at the last position. If {@code + * selectedItem} is specified but results in an empty selection, then both values specify + * insertion at the last position. + */ + @com.fasterxml.jackson.annotation.JsonProperty("position") + private Position position; + + /** + * Where to insert the values, relative to the first item matched by {@code selectedItem}. + * If {@code selectedItem} is unspecified, then "BEFORE" specifies insertion at the first + * position in an array and "AFTER" specifies insertion at the last position. If {@code + * selectedItem} is specified but results in an empty selection, then both values specify + * insertion at the last position. + * + * @param position the value to set + * @return this builder + */ + public Builder position(Position position) { + this.position = position; + this.__explicitlySet__.add("position"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PatchInsertMultipleInstruction build() { + PatchInsertMultipleInstruction model = + new PatchInsertMultipleInstruction( + this.selection, this.values, this.selectedItem, this.position); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PatchInsertMultipleInstruction model) { + if (model.wasPropertyExplicitlySet("selection")) { + this.selection(model.getSelection()); + } + if (model.wasPropertyExplicitlySet("values")) { + this.values(model.getValues()); + } + if (model.wasPropertyExplicitlySet("selectedItem")) { + this.selectedItem(model.getSelectedItem()); + } + if (model.wasPropertyExplicitlySet("position")) { + this.position(model.getPosition()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PatchInsertMultipleInstruction( + String selection, + java.util.List values, + String selectedItem, + Position position) { + super(selection); + this.values = values; + this.selectedItem = selectedItem; + this.position = position; + } + + /** A list of consecutive values to be inserted into the target. */ + @com.fasterxml.jackson.annotation.JsonProperty("values") + private final java.util.List values; + + /** + * A list of consecutive values to be inserted into the target. + * + * @return the value + */ + public java.util.List getValues() { + return values; + } + + /** + * A selection to be evaluated against the array for identifying a particular reference item + * within it, with the same format and semantics as {@code selection}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("selectedItem") + private final String selectedItem; + + /** + * A selection to be evaluated against the array for identifying a particular reference item + * within it, with the same format and semantics as {@code selection}. + * + * @return the value + */ + public String getSelectedItem() { + return selectedItem; + } + + /** + * Where to insert the values, relative to the first item matched by {@code selectedItem}. If + * {@code selectedItem} is unspecified, then "BEFORE" specifies insertion at the first position + * in an array and "AFTER" specifies insertion at the last position. If {@code selectedItem} is + * specified but results in an empty selection, then both values specify insertion at the last + * position. + */ + public enum Position implements com.oracle.bmc.http.internal.BmcEnum { + Before("BEFORE"), + After("AFTER"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Position v : Position.values()) { + map.put(v.getValue(), v); + } + } + + Position(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Position create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Position: " + key); + } + }; + /** + * Where to insert the values, relative to the first item matched by {@code selectedItem}. If + * {@code selectedItem} is unspecified, then "BEFORE" specifies insertion at the first position + * in an array and "AFTER" specifies insertion at the last position. If {@code selectedItem} is + * specified but results in an empty selection, then both values specify insertion at the last + * position. + */ + @com.fasterxml.jackson.annotation.JsonProperty("position") + private final Position position; + + /** + * Where to insert the values, relative to the first item matched by {@code selectedItem}. If + * {@code selectedItem} is unspecified, then "BEFORE" specifies insertion at the first position + * in an array and "AFTER" specifies insertion at the last position. If {@code selectedItem} is + * specified but results in an empty selection, then both values specify insertion at the last + * position. + * + * @return the value + */ + public Position getPosition() { + return position; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PatchInsertMultipleInstruction("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", values=").append(String.valueOf(this.values)); + sb.append(", selectedItem=").append(String.valueOf(this.selectedItem)); + sb.append(", position=").append(String.valueOf(this.position)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PatchInsertMultipleInstruction)) { + return false; + } + + PatchInsertMultipleInstruction other = (PatchInsertMultipleInstruction) o; + return java.util.Objects.equals(this.values, other.values) + && java.util.Objects.equals(this.selectedItem, other.selectedItem) + && java.util.Objects.equals(this.position, other.position) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.values == null ? 43 : this.values.hashCode()); + result = (result * PRIME) + (this.selectedItem == null ? 43 : this.selectedItem.hashCode()); + result = (result * PRIME) + (this.position == null ? 43 : this.position.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchInstruction.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchInstruction.java new file mode 100644 index 00000000000..f1725c1dda2 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchInstruction.java @@ -0,0 +1,163 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.model; + +/** + * A single instruction to be included as part of Patch request content.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "operation", + defaultImpl = PatchInstruction.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PatchMoveInstruction.class, + name = "MOVE"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PatchRemoveInstruction.class, + name = "REMOVE"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PatchReplaceInstruction.class, + name = "REPLACE"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PatchInsertMultipleInstruction.class, + name = "INSERT_MULTIPLE"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PatchInsertInstruction.class, + name = "INSERT"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PatchRequireInstruction.class, + name = "REQUIRE"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PatchMergeInstruction.class, + name = "MERGE"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PatchProhibitInstruction.class, + name = "PROHIBIT") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class PatchInstruction extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"selection"}) + protected PatchInstruction(String selection) { + super(); + this.selection = selection; + } + + /** + * The set of values to which the operation applies as a [JMESPath + * expression](https://jmespath.org/specification.html) for evaluation against the context + * resource. An operation fails if the selection yields an exception, except as otherwise + * specified. Note that comparisons involving non-primitive values (objects or arrays) are not + * supported and will always evaluate to false. + */ + @com.fasterxml.jackson.annotation.JsonProperty("selection") + private final String selection; + + /** + * The set of values to which the operation applies as a [JMESPath + * expression](https://jmespath.org/specification.html) for evaluation against the context + * resource. An operation fails if the selection yields an exception, except as otherwise + * specified. Note that comparisons involving non-primitive values (objects or arrays) are not + * supported and will always evaluate to false. + * + * @return the value + */ + public String getSelection() { + return selection; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PatchInstruction("); + sb.append("super=").append(super.toString()); + sb.append("selection=").append(String.valueOf(this.selection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PatchInstruction)) { + return false; + } + + PatchInstruction other = (PatchInstruction) o; + return java.util.Objects.equals(this.selection, other.selection) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.selection == null ? 43 : this.selection.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** */ + public enum Operation implements com.oracle.bmc.http.internal.BmcEnum { + Require("REQUIRE"), + Prohibit("PROHIBIT"), + Replace("REPLACE"), + Insert("INSERT"), + Remove("REMOVE"), + Move("MOVE"), + Merge("MERGE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Operation v : Operation.values()) { + map.put(v.getValue(), v); + } + } + + Operation(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Operation create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Operation: " + key); + } + }; +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchMergeInstruction.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchMergeInstruction.java new file mode 100644 index 00000000000..87df27936a5 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchMergeInstruction.java @@ -0,0 +1,152 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.model; + +/** + * An operation that recursively updates items of the selection, or adding the value if the + * selection is empty. If the value is not an object, it is used directly, otherwise each key-value + * member is used to create or update a member of the same name in the target and the same process + * is applied recursively for each object-typed value (similar to [RFC + * 7396](https://tools.ietf.org/html/rfc7396#section-2) JSON Merge Patch, except that null values + * are copied rather than transformed into deletions). NOT_FOUND exceptions are handled by creating + * the implied containing structure. To avoid referential errors if an item's descendant is also in + * the selection, items of the selection are processed in order of decreasing depth.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PatchMergeInstruction.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "operation") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PatchMergeInstruction extends PatchInstruction { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("selection") + private String selection; + + public Builder selection(String selection) { + this.selection = selection; + this.__explicitlySet__.add("selection"); + return this; + } + /** A value to be merged into the target. */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private Object value; + + /** + * A value to be merged into the target. + * + * @param value the value to set + * @return this builder + */ + public Builder value(Object value) { + this.value = value; + this.__explicitlySet__.add("value"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PatchMergeInstruction build() { + PatchMergeInstruction model = new PatchMergeInstruction(this.selection, this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PatchMergeInstruction model) { + if (model.wasPropertyExplicitlySet("selection")) { + this.selection(model.getSelection()); + } + if (model.wasPropertyExplicitlySet("value")) { + this.value(model.getValue()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PatchMergeInstruction(String selection, Object value) { + super(selection); + this.value = value; + } + + /** A value to be merged into the target. */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final Object value; + + /** + * A value to be merged into the target. + * + * @return the value + */ + public Object getValue() { + return value; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PatchMergeInstruction("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", value=").append(String.valueOf(this.value)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PatchMergeInstruction)) { + return false; + } + + PatchMergeInstruction other = (PatchMergeInstruction) o; + return java.util.Objects.equals(this.value, other.value) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchMoveInstruction.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchMoveInstruction.java new file mode 100644 index 00000000000..1ebc2765eaf --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchMoveInstruction.java @@ -0,0 +1,247 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.model; + +/** + * An operation that "puts" values from elsewhere in the target, functionally equivalent to a single + * add and then a remove. The first item of the selection is replaced, or created if the selection + * is empty. NOT_FOUND exceptions in the selection are handled by creating the implied containing + * structure. This operation fails if the {@code from} selection yields any exceptions, or if an + * item is moved to any of its descendants.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PatchMoveInstruction.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "operation") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PatchMoveInstruction extends PatchInstruction { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("selection") + private String selection; + + public Builder selection(String selection) { + this.selection = selection; + this.__explicitlySet__.add("selection"); + return this; + } + /** + * The selection that is to be moved, with the same format and semantics as {@code + * selection}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("from") + private String from; + + /** + * The selection that is to be moved, with the same format and semantics as {@code + * selection}. + * + * @param from the value to set + * @return this builder + */ + public Builder from(String from) { + this.from = from; + this.__explicitlySet__.add("from"); + return this; + } + /** + * Where to insert the value in an array, relative to the first item in the selection. If + * there is no such item, then "BEFORE" specifies insertion at the first position in an + * array and "AFTER" specifies insertion at the last position. If the first item in the + * selection is not the child of an array, then this field has no effect. + */ + @com.fasterxml.jackson.annotation.JsonProperty("position") + private Position position; + + /** + * Where to insert the value in an array, relative to the first item in the selection. If + * there is no such item, then "BEFORE" specifies insertion at the first position in an + * array and "AFTER" specifies insertion at the last position. If the first item in the + * selection is not the child of an array, then this field has no effect. + * + * @param position the value to set + * @return this builder + */ + public Builder position(Position position) { + this.position = position; + this.__explicitlySet__.add("position"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PatchMoveInstruction build() { + PatchMoveInstruction model = + new PatchMoveInstruction(this.selection, this.from, this.position); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PatchMoveInstruction model) { + if (model.wasPropertyExplicitlySet("selection")) { + this.selection(model.getSelection()); + } + if (model.wasPropertyExplicitlySet("from")) { + this.from(model.getFrom()); + } + if (model.wasPropertyExplicitlySet("position")) { + this.position(model.getPosition()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PatchMoveInstruction(String selection, String from, Position position) { + super(selection); + this.from = from; + this.position = position; + } + + /** + * The selection that is to be moved, with the same format and semantics as {@code selection}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("from") + private final String from; + + /** + * The selection that is to be moved, with the same format and semantics as {@code selection}. + * + * @return the value + */ + public String getFrom() { + return from; + } + + /** + * Where to insert the value in an array, relative to the first item in the selection. If there + * is no such item, then "BEFORE" specifies insertion at the first position in an array and + * "AFTER" specifies insertion at the last position. If the first item in the selection is not + * the child of an array, then this field has no effect. + */ + public enum Position implements com.oracle.bmc.http.internal.BmcEnum { + At("AT"), + Before("BEFORE"), + After("AFTER"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Position v : Position.values()) { + map.put(v.getValue(), v); + } + } + + Position(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Position create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Position: " + key); + } + }; + /** + * Where to insert the value in an array, relative to the first item in the selection. If there + * is no such item, then "BEFORE" specifies insertion at the first position in an array and + * "AFTER" specifies insertion at the last position. If the first item in the selection is not + * the child of an array, then this field has no effect. + */ + @com.fasterxml.jackson.annotation.JsonProperty("position") + private final Position position; + + /** + * Where to insert the value in an array, relative to the first item in the selection. If there + * is no such item, then "BEFORE" specifies insertion at the first position in an array and + * "AFTER" specifies insertion at the last position. If the first item in the selection is not + * the child of an array, then this field has no effect. + * + * @return the value + */ + public Position getPosition() { + return position; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PatchMoveInstruction("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", from=").append(String.valueOf(this.from)); + sb.append(", position=").append(String.valueOf(this.position)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PatchMoveInstruction)) { + return false; + } + + PatchMoveInstruction other = (PatchMoveInstruction) o; + return java.util.Objects.equals(this.from, other.from) + && java.util.Objects.equals(this.position, other.position) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.from == null ? 43 : this.from.hashCode()); + result = (result * PRIME) + (this.position == null ? 43 : this.position.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchOccCapacityRequestDetails.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchOccCapacityRequestDetails.java new file mode 100644 index 00000000000..fc779e659d6 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchOccCapacityRequestDetails.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.model; + +/** + * CapacityRequest details to patch.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PatchOccCapacityRequestDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PatchOccCapacityRequestDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public PatchOccCapacityRequestDetails(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of patch instructions. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of patch instructions. + * + * @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 PatchOccCapacityRequestDetails build() { + PatchOccCapacityRequestDetails model = new PatchOccCapacityRequestDetails(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PatchOccCapacityRequestDetails 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 patch instructions. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of patch instructions. + * + * @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("PatchOccCapacityRequestDetails("); + 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 PatchOccCapacityRequestDetails)) { + return false; + } + + PatchOccCapacityRequestDetails other = (PatchOccCapacityRequestDetails) 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-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchProhibitInstruction.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchProhibitInstruction.java new file mode 100644 index 00000000000..c35f97a45a6 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchProhibitInstruction.java @@ -0,0 +1,166 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.model; + +/** + * A precondition operation that requires a selection to be empty, or optionally to be non-empty but + * include no item with a specified value (useful for asserting that a value does not exist before + * attempting to create it, avoiding accidental update). It fails if value is provided and the + * selection includes an item matching it, or if value is not provided and the selection is not + * empty, but ignores NOT_FOUND exceptions.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PatchProhibitInstruction.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "operation") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PatchProhibitInstruction extends PatchInstruction { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("selection") + private String selection; + + public Builder selection(String selection) { + this.selection = selection; + this.__explicitlySet__.add("selection"); + return this; + } + /** + * A value to be compared against each item of the selection. If this value is an object, + * then it matches any item that would be unaffected by applying this value as a merge + * operation. Otherwise, it matches any item to which it is equal according to the rules of + * [JSON Schema](https://tools.ietf.org/html/draft-handrews-json-schema-00#section-4.2.3). + */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private Object value; + + /** + * A value to be compared against each item of the selection. If this value is an object, + * then it matches any item that would be unaffected by applying this value as a merge + * operation. Otherwise, it matches any item to which it is equal according to the rules of + * [JSON Schema](https://tools.ietf.org/html/draft-handrews-json-schema-00#section-4.2.3). + * + * @param value the value to set + * @return this builder + */ + public Builder value(Object value) { + this.value = value; + this.__explicitlySet__.add("value"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PatchProhibitInstruction build() { + PatchProhibitInstruction model = + new PatchProhibitInstruction(this.selection, this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PatchProhibitInstruction model) { + if (model.wasPropertyExplicitlySet("selection")) { + this.selection(model.getSelection()); + } + if (model.wasPropertyExplicitlySet("value")) { + this.value(model.getValue()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PatchProhibitInstruction(String selection, Object value) { + super(selection); + this.value = value; + } + + /** + * A value to be compared against each item of the selection. If this value is an object, then + * it matches any item that would be unaffected by applying this value as a merge operation. + * Otherwise, it matches any item to which it is equal according to the rules of [JSON + * Schema](https://tools.ietf.org/html/draft-handrews-json-schema-00#section-4.2.3). + */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final Object value; + + /** + * A value to be compared against each item of the selection. If this value is an object, then + * it matches any item that would be unaffected by applying this value as a merge operation. + * Otherwise, it matches any item to which it is equal according to the rules of [JSON + * Schema](https://tools.ietf.org/html/draft-handrews-json-schema-00#section-4.2.3). + * + * @return the value + */ + public Object getValue() { + return value; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PatchProhibitInstruction("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", value=").append(String.valueOf(this.value)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PatchProhibitInstruction)) { + return false; + } + + PatchProhibitInstruction other = (PatchProhibitInstruction) o; + return java.util.Objects.equals(this.value, other.value) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchRemoveInstruction.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchRemoveInstruction.java new file mode 100644 index 00000000000..bfa2339d5ed --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchRemoveInstruction.java @@ -0,0 +1,113 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.model; + +/** + * An operation that deletes items, ignoring NOT_FOUND exceptions. To avoid referential errors if an + * item's descendant is also in the selection, items of the selection are processed in order of + * decreasing depth.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PatchRemoveInstruction.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "operation") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PatchRemoveInstruction extends PatchInstruction { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("selection") + private String selection; + + public Builder selection(String selection) { + this.selection = selection; + this.__explicitlySet__.add("selection"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PatchRemoveInstruction build() { + PatchRemoveInstruction model = new PatchRemoveInstruction(this.selection); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PatchRemoveInstruction model) { + if (model.wasPropertyExplicitlySet("selection")) { + this.selection(model.getSelection()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PatchRemoveInstruction(String selection) { + super(selection); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PatchRemoveInstruction("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PatchRemoveInstruction)) { + return false; + } + + PatchRemoveInstruction other = (PatchRemoveInstruction) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchReplaceInstruction.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchReplaceInstruction.java new file mode 100644 index 00000000000..05e4c547400 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchReplaceInstruction.java @@ -0,0 +1,149 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.model; + +/** + * An operation that "puts" a value, replacing every item of the selection with it, or creating it + * if the selection is empty. NOT_FOUND exceptions are handled by creating the implied containing + * structure (but note that this may put the target in an invalid state, which can be prevented by + * use of precondition operations). To avoid referential errors if an item's descendant is also in + * the selection, items of the selection are processed in order of decreasing depth.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PatchReplaceInstruction.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "operation") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PatchReplaceInstruction extends PatchInstruction { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("selection") + private String selection; + + public Builder selection(String selection) { + this.selection = selection; + this.__explicitlySet__.add("selection"); + return this; + } + /** A value to be added into the target. */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private Object value; + + /** + * A value to be added into the target. + * + * @param value the value to set + * @return this builder + */ + public Builder value(Object value) { + this.value = value; + this.__explicitlySet__.add("value"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PatchReplaceInstruction build() { + PatchReplaceInstruction model = new PatchReplaceInstruction(this.selection, this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PatchReplaceInstruction model) { + if (model.wasPropertyExplicitlySet("selection")) { + this.selection(model.getSelection()); + } + if (model.wasPropertyExplicitlySet("value")) { + this.value(model.getValue()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PatchReplaceInstruction(String selection, Object value) { + super(selection); + this.value = value; + } + + /** A value to be added into the target. */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final Object value; + + /** + * A value to be added into the target. + * + * @return the value + */ + public Object getValue() { + return value; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PatchReplaceInstruction("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", value=").append(String.valueOf(this.value)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PatchReplaceInstruction)) { + return false; + } + + PatchReplaceInstruction other = (PatchReplaceInstruction) o; + return java.util.Objects.equals(this.value, other.value) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchRequireInstruction.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchRequireInstruction.java new file mode 100644 index 00000000000..5c37cd4fa87 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/PatchRequireInstruction.java @@ -0,0 +1,164 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.model; + +/** + * A precondition operation that requires a selection to be non-empty, and optionally to include an + * item with a specified value (useful for asserting that a value exists before attempting to update + * it, avoiding accidental creation). It fails if the selection is empty, or if value is provided + * and no item of the selection matches it.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PatchRequireInstruction.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "operation") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PatchRequireInstruction extends PatchInstruction { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("selection") + private String selection; + + public Builder selection(String selection) { + this.selection = selection; + this.__explicitlySet__.add("selection"); + return this; + } + /** + * A value to be compared against each item of the selection. If this value is an object, + * then it matches any item that would be unaffected by applying this value as a merge + * operation. Otherwise, it matches any item to which it is equal according to the rules of + * [JSON Schema](https://tools.ietf.org/html/draft-handrews-json-schema-00#section-4.2.3). + */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private Object value; + + /** + * A value to be compared against each item of the selection. If this value is an object, + * then it matches any item that would be unaffected by applying this value as a merge + * operation. Otherwise, it matches any item to which it is equal according to the rules of + * [JSON Schema](https://tools.ietf.org/html/draft-handrews-json-schema-00#section-4.2.3). + * + * @param value the value to set + * @return this builder + */ + public Builder value(Object value) { + this.value = value; + this.__explicitlySet__.add("value"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PatchRequireInstruction build() { + PatchRequireInstruction model = new PatchRequireInstruction(this.selection, this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PatchRequireInstruction model) { + if (model.wasPropertyExplicitlySet("selection")) { + this.selection(model.getSelection()); + } + if (model.wasPropertyExplicitlySet("value")) { + this.value(model.getValue()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PatchRequireInstruction(String selection, Object value) { + super(selection); + this.value = value; + } + + /** + * A value to be compared against each item of the selection. If this value is an object, then + * it matches any item that would be unaffected by applying this value as a merge operation. + * Otherwise, it matches any item to which it is equal according to the rules of [JSON + * Schema](https://tools.ietf.org/html/draft-handrews-json-schema-00#section-4.2.3). + */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final Object value; + + /** + * A value to be compared against each item of the selection. If this value is an object, then + * it matches any item that would be unaffected by applying this value as a merge operation. + * Otherwise, it matches any item to which it is equal according to the rules of [JSON + * Schema](https://tools.ietf.org/html/draft-handrews-json-schema-00#section-4.2.3). + * + * @return the value + */ + public Object getValue() { + return value; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PatchRequireInstruction("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", value=").append(String.valueOf(this.value)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PatchRequireInstruction)) { + return false; + } + + PatchRequireInstruction other = (PatchRequireInstruction) o; + return java.util.Objects.equals(this.value, other.value) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/SortOrder.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/SortOrder.java new file mode 100644 index 00000000000..c620500c4e6 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/SortOrder.java @@ -0,0 +1,40 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.model; + +/** Sort orders. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public enum SortOrder implements com.oracle.bmc.http.internal.BmcEnum { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortOrder: " + key); + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/UpdateInternalOccCapacityRequestDetails.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/UpdateInternalOccCapacityRequestDetails.java new file mode 100644 index 00000000000..f74566b40d3 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/UpdateInternalOccCapacityRequestDetails.java @@ -0,0 +1,216 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.model; + +/** + * The details required for making an internal API update call for the capacity requests.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateInternalOccCapacityRequestDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateInternalOccCapacityRequestDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"requestState", "lifecycleDetails"}) + public UpdateInternalOccCapacityRequestDetails( + RequestState requestState, String lifecycleDetails) { + super(); + this.requestState = requestState; + this.lifecycleDetails = lifecycleDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The subset of request states available internally for updating the capacity request. */ + @com.fasterxml.jackson.annotation.JsonProperty("requestState") + private RequestState requestState; + + /** + * The subset of request states available internally for updating the capacity request. + * + * @param requestState the value to set + * @return this builder + */ + public Builder requestState(RequestState requestState) { + this.requestState = requestState; + this.__explicitlySet__.add("requestState"); + return this; + } + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in a Failed State. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in a Failed State. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateInternalOccCapacityRequestDetails build() { + UpdateInternalOccCapacityRequestDetails model = + new UpdateInternalOccCapacityRequestDetails( + this.requestState, this.lifecycleDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateInternalOccCapacityRequestDetails model) { + if (model.wasPropertyExplicitlySet("requestState")) { + this.requestState(model.getRequestState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The subset of request states available internally for updating the capacity request. */ + public enum RequestState implements com.oracle.bmc.http.internal.BmcEnum { + Resolved("RESOLVED"), + Rejected("REJECTED"), + InProgress("IN_PROGRESS"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RequestState v : RequestState.values()) { + map.put(v.getValue(), v); + } + } + + RequestState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RequestState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid RequestState: " + key); + } + }; + /** The subset of request states available internally for updating the capacity request. */ + @com.fasterxml.jackson.annotation.JsonProperty("requestState") + private final RequestState requestState; + + /** + * The subset of request states available internally for updating the capacity request. + * + * @return the value + */ + public RequestState getRequestState() { + return requestState; + } + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in a Failed State. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in a Failed State. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateInternalOccCapacityRequestDetails("); + sb.append("super=").append(super.toString()); + sb.append("requestState=").append(String.valueOf(this.requestState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateInternalOccCapacityRequestDetails)) { + return false; + } + + UpdateInternalOccCapacityRequestDetails other = (UpdateInternalOccCapacityRequestDetails) o; + return java.util.Objects.equals(this.requestState, other.requestState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.requestState == null ? 43 : this.requestState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/UpdateOccAvailabilityCatalogDetails.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/UpdateOccAvailabilityCatalogDetails.java new file mode 100644 index 00000000000..dfc696e7f66 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/UpdateOccAvailabilityCatalogDetails.java @@ -0,0 +1,265 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.model; + +/** + * Details about the update request for updating the availability catalogs.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateOccAvailabilityCatalogDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateOccAvailabilityCatalogDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"displayName", "description", "freeformTags", "definedTags"}) + public UpdateOccAvailabilityCatalogDetails( + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.description = description; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The display name of the availability catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the availability catalog. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Additional information about the availability catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Additional information about the availability catalog. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + 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 UpdateOccAvailabilityCatalogDetails build() { + UpdateOccAvailabilityCatalogDetails model = + new UpdateOccAvailabilityCatalogDetails( + this.displayName, + this.description, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateOccAvailabilityCatalogDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The display name of the availability catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the availability catalog. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Additional information about the availability catalog. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Additional information about the availability catalog. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** + * 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("UpdateOccAvailabilityCatalogDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateOccAvailabilityCatalogDetails)) { + return false; + } + + UpdateOccAvailabilityCatalogDetails other = (UpdateOccAvailabilityCatalogDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/UpdateOccCapacityRequestDetails.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/UpdateOccCapacityRequestDetails.java new file mode 100644 index 00000000000..d0c9c35466e --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/model/UpdateOccCapacityRequestDetails.java @@ -0,0 +1,303 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.model; + +/** + * The details required for making an update call for capacity requests.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateOccCapacityRequestDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateOccCapacityRequestDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "freeformTags", + "definedTags", + "requestState" + }) + public UpdateOccCapacityRequestDetails( + String displayName, + java.util.Map freeformTags, + java.util.Map> definedTags, + RequestState requestState) { + super(); + this.displayName = displayName; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.requestState = requestState; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The display name of the capacity request. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the capacity request. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** The subset of request states available for updating the capacity request. */ + @com.fasterxml.jackson.annotation.JsonProperty("requestState") + private RequestState requestState; + + /** + * The subset of request states available for updating the capacity request. + * + * @param requestState the value to set + * @return this builder + */ + public Builder requestState(RequestState requestState) { + this.requestState = requestState; + this.__explicitlySet__.add("requestState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateOccCapacityRequestDetails build() { + UpdateOccCapacityRequestDetails model = + new UpdateOccCapacityRequestDetails( + this.displayName, + this.freeformTags, + this.definedTags, + this.requestState); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateOccCapacityRequestDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("requestState")) { + this.requestState(model.getRequestState()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The display name of the capacity request. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the capacity request. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** The subset of request states available for updating the capacity request. */ + public enum RequestState implements com.oracle.bmc.http.internal.BmcEnum { + Submitted("SUBMITTED"), + Cancelled("CANCELLED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RequestState v : RequestState.values()) { + map.put(v.getValue(), v); + } + } + + RequestState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RequestState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid RequestState: " + key); + } + }; + /** The subset of request states available for updating the capacity request. */ + @com.fasterxml.jackson.annotation.JsonProperty("requestState") + private final RequestState requestState; + + /** + * The subset of request states available for updating the capacity request. + * + * @return the value + */ + public RequestState getRequestState() { + return requestState; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateOccCapacityRequestDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", requestState=").append(String.valueOf(this.requestState)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateOccCapacityRequestDetails)) { + return false; + } + + UpdateOccCapacityRequestDetails other = (UpdateOccCapacityRequestDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.requestState, other.requestState) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.requestState == null ? 43 : this.requestState.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/CreateOccAvailabilityCatalogRequest.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/CreateOccAvailabilityCatalogRequest.java new file mode 100644 index 00000000000..c6f5814af5a --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/CreateOccAvailabilityCatalogRequest.java @@ -0,0 +1,294 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.requests; + +import com.oracle.bmc.capacitymanagement.model.*; +/** + * Example: Click here to see how to use + * CreateOccAvailabilityCatalogRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class CreateOccAvailabilityCatalogRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.capacitymanagement.model.CreateOccAvailabilityCatalogDetails> { + + /** The request details for creating an availability catalog. */ + private com.oracle.bmc.capacitymanagement.model.CreateOccAvailabilityCatalogDetails + createOccAvailabilityCatalogDetails; + + /** The request details for creating an availability catalog. */ + public com.oracle.bmc.capacitymanagement.model.CreateOccAvailabilityCatalogDetails + getCreateOccAvailabilityCatalogDetails() { + return createOccAvailabilityCatalogDetails; + } + /** + * A token that uniquely identifies a request so it 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. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. 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.capacitymanagement.model.CreateOccAvailabilityCatalogDetails getBody$() { + return createOccAvailabilityCatalogDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateOccAvailabilityCatalogRequest, + com.oracle.bmc.capacitymanagement.model.CreateOccAvailabilityCatalogDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The request details for creating an availability catalog. */ + private com.oracle.bmc.capacitymanagement.model.CreateOccAvailabilityCatalogDetails + createOccAvailabilityCatalogDetails = null; + + /** + * The request details for creating an availability catalog. + * + * @param createOccAvailabilityCatalogDetails the value to set + * @return this builder instance + */ + public Builder createOccAvailabilityCatalogDetails( + com.oracle.bmc.capacitymanagement.model.CreateOccAvailabilityCatalogDetails + createOccAvailabilityCatalogDetails) { + this.createOccAvailabilityCatalogDetails = createOccAvailabilityCatalogDetails; + 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. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. 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(CreateOccAvailabilityCatalogRequest o) { + createOccAvailabilityCatalogDetails(o.getCreateOccAvailabilityCatalogDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateOccAvailabilityCatalogRequest 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 CreateOccAvailabilityCatalogRequest + */ + public CreateOccAvailabilityCatalogRequest build() { + CreateOccAvailabilityCatalogRequest 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.capacitymanagement.model.CreateOccAvailabilityCatalogDetails body) { + createOccAvailabilityCatalogDetails(body); + return this; + } + + /** + * Build the instance of CreateOccAvailabilityCatalogRequest 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 CreateOccAvailabilityCatalogRequest + */ + public CreateOccAvailabilityCatalogRequest buildWithoutInvocationCallback() { + CreateOccAvailabilityCatalogRequest request = new CreateOccAvailabilityCatalogRequest(); + request.createOccAvailabilityCatalogDetails = createOccAvailabilityCatalogDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateOccAvailabilityCatalogRequest(createOccAvailabilityCatalogDetails, + // 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() + .createOccAvailabilityCatalogDetails(createOccAvailabilityCatalogDetails) + .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(",createOccAvailabilityCatalogDetails=") + .append(String.valueOf(this.createOccAvailabilityCatalogDetails)); + 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 CreateOccAvailabilityCatalogRequest)) { + return false; + } + + CreateOccAvailabilityCatalogRequest other = (CreateOccAvailabilityCatalogRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createOccAvailabilityCatalogDetails, + other.createOccAvailabilityCatalogDetails) + && 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.createOccAvailabilityCatalogDetails == null + ? 43 + : this.createOccAvailabilityCatalogDetails.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-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/CreateOccCapacityRequestRequest.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/CreateOccCapacityRequestRequest.java new file mode 100644 index 00000000000..2c79a75f0d5 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/CreateOccCapacityRequestRequest.java @@ -0,0 +1,293 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.requests; + +import com.oracle.bmc.capacitymanagement.model.*; +/** + * Example: Click here to see how to use + * CreateOccCapacityRequestRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class CreateOccCapacityRequestRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.capacitymanagement.model.CreateOccCapacityRequestDetails> { + + /** The request details for creating a capacity request. */ + private com.oracle.bmc.capacitymanagement.model.CreateOccCapacityRequestDetails + createOccCapacityRequestDetails; + + /** The request details for creating a capacity request. */ + public com.oracle.bmc.capacitymanagement.model.CreateOccCapacityRequestDetails + getCreateOccCapacityRequestDetails() { + return createOccCapacityRequestDetails; + } + /** + * A token that uniquely identifies a request so it 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. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. 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.capacitymanagement.model.CreateOccCapacityRequestDetails getBody$() { + return createOccCapacityRequestDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateOccCapacityRequestRequest, + com.oracle.bmc.capacitymanagement.model.CreateOccCapacityRequestDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The request details for creating a capacity request. */ + private com.oracle.bmc.capacitymanagement.model.CreateOccCapacityRequestDetails + createOccCapacityRequestDetails = null; + + /** + * The request details for creating a capacity request. + * + * @param createOccCapacityRequestDetails the value to set + * @return this builder instance + */ + public Builder createOccCapacityRequestDetails( + com.oracle.bmc.capacitymanagement.model.CreateOccCapacityRequestDetails + createOccCapacityRequestDetails) { + this.createOccCapacityRequestDetails = createOccCapacityRequestDetails; + 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. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. 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(CreateOccCapacityRequestRequest o) { + createOccCapacityRequestDetails(o.getCreateOccCapacityRequestDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateOccCapacityRequestRequest 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 CreateOccCapacityRequestRequest + */ + public CreateOccCapacityRequestRequest build() { + CreateOccCapacityRequestRequest 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.capacitymanagement.model.CreateOccCapacityRequestDetails body) { + createOccCapacityRequestDetails(body); + return this; + } + + /** + * Build the instance of CreateOccCapacityRequestRequest 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 CreateOccCapacityRequestRequest + */ + public CreateOccCapacityRequestRequest buildWithoutInvocationCallback() { + CreateOccCapacityRequestRequest request = new CreateOccCapacityRequestRequest(); + request.createOccCapacityRequestDetails = createOccCapacityRequestDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateOccCapacityRequestRequest(createOccCapacityRequestDetails, 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() + .createOccCapacityRequestDetails(createOccCapacityRequestDetails) + .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(",createOccCapacityRequestDetails=") + .append(String.valueOf(this.createOccCapacityRequestDetails)); + 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 CreateOccCapacityRequestRequest)) { + return false; + } + + CreateOccCapacityRequestRequest other = (CreateOccCapacityRequestRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createOccCapacityRequestDetails, other.createOccCapacityRequestDetails) + && 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.createOccCapacityRequestDetails == null + ? 43 + : this.createOccCapacityRequestDetails.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-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/DeleteOccAvailabilityCatalogRequest.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/DeleteOccAvailabilityCatalogRequest.java new file mode 100644 index 00000000000..937999edc27 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/DeleteOccAvailabilityCatalogRequest.java @@ -0,0 +1,256 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.requests; + +import com.oracle.bmc.capacitymanagement.model.*; +/** + * Example: Click here to see how to use + * DeleteOccAvailabilityCatalogRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class DeleteOccAvailabilityCatalogRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the availability catalog. */ + private String occAvailabilityCatalogId; + + /** The OCID of the availability catalog. */ + public String getOccAvailabilityCatalogId() { + return occAvailabilityCatalogId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST 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. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. 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< + DeleteOccAvailabilityCatalogRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the availability catalog. */ + private String occAvailabilityCatalogId = null; + + /** + * The OCID of the availability catalog. + * + * @param occAvailabilityCatalogId the value to set + * @return this builder instance + */ + public Builder occAvailabilityCatalogId(String occAvailabilityCatalogId) { + this.occAvailabilityCatalogId = occAvailabilityCatalogId; + 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. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. 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(DeleteOccAvailabilityCatalogRequest o) { + occAvailabilityCatalogId(o.getOccAvailabilityCatalogId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteOccAvailabilityCatalogRequest 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 DeleteOccAvailabilityCatalogRequest + */ + public DeleteOccAvailabilityCatalogRequest build() { + DeleteOccAvailabilityCatalogRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteOccAvailabilityCatalogRequest 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 DeleteOccAvailabilityCatalogRequest + */ + public DeleteOccAvailabilityCatalogRequest buildWithoutInvocationCallback() { + DeleteOccAvailabilityCatalogRequest request = new DeleteOccAvailabilityCatalogRequest(); + request.occAvailabilityCatalogId = occAvailabilityCatalogId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteOccAvailabilityCatalogRequest(occAvailabilityCatalogId, 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() + .occAvailabilityCatalogId(occAvailabilityCatalogId) + .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(",occAvailabilityCatalogId=") + .append(String.valueOf(this.occAvailabilityCatalogId)); + 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 DeleteOccAvailabilityCatalogRequest)) { + return false; + } + + DeleteOccAvailabilityCatalogRequest other = (DeleteOccAvailabilityCatalogRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.occAvailabilityCatalogId, other.occAvailabilityCatalogId) + && 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.occAvailabilityCatalogId == null + ? 43 + : this.occAvailabilityCatalogId.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-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/DeleteOccCapacityRequestRequest.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/DeleteOccCapacityRequestRequest.java new file mode 100644 index 00000000000..2d46ffe15f6 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/DeleteOccCapacityRequestRequest.java @@ -0,0 +1,253 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.requests; + +import com.oracle.bmc.capacitymanagement.model.*; +/** + * Example: Click here to see how to use + * DeleteOccCapacityRequestRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class DeleteOccCapacityRequestRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the capacity request. */ + private String occCapacityRequestId; + + /** The OCID of the capacity request. */ + public String getOccCapacityRequestId() { + return occCapacityRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST 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. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. 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< + DeleteOccCapacityRequestRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the capacity request. */ + private String occCapacityRequestId = null; + + /** + * The OCID of the capacity request. + * + * @param occCapacityRequestId the value to set + * @return this builder instance + */ + public Builder occCapacityRequestId(String occCapacityRequestId) { + this.occCapacityRequestId = occCapacityRequestId; + 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. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. 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(DeleteOccCapacityRequestRequest o) { + occCapacityRequestId(o.getOccCapacityRequestId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteOccCapacityRequestRequest 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 DeleteOccCapacityRequestRequest + */ + public DeleteOccCapacityRequestRequest build() { + DeleteOccCapacityRequestRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteOccCapacityRequestRequest 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 DeleteOccCapacityRequestRequest + */ + public DeleteOccCapacityRequestRequest buildWithoutInvocationCallback() { + DeleteOccCapacityRequestRequest request = new DeleteOccCapacityRequestRequest(); + request.occCapacityRequestId = occCapacityRequestId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteOccCapacityRequestRequest(occCapacityRequestId, 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() + .occCapacityRequestId(occCapacityRequestId) + .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(",occCapacityRequestId=").append(String.valueOf(this.occCapacityRequestId)); + 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 DeleteOccCapacityRequestRequest)) { + return false; + } + + DeleteOccCapacityRequestRequest other = (DeleteOccCapacityRequestRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.occCapacityRequestId, other.occCapacityRequestId) + && 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.occCapacityRequestId == null + ? 43 + : this.occCapacityRequestId.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-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/GetOccAvailabilityCatalogContentRequest.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/GetOccAvailabilityCatalogContentRequest.java new file mode 100644 index 00000000000..8cfa558e047 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/GetOccAvailabilityCatalogContentRequest.java @@ -0,0 +1,310 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.requests; + +import com.oracle.bmc.capacitymanagement.model.*; +/** + * Example: Click here to see how to use + * GetOccAvailabilityCatalogContentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class GetOccAvailabilityCatalogContentRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the availability catalog. */ + private String occAvailabilityCatalogId; + + /** The OCID of the availability catalog. */ + public String getOccAvailabilityCatalogId() { + return occAvailabilityCatalogId; + } + /** + * A token that uniquely identifies a request so it 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. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetOccAvailabilityCatalogContentRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the availability catalog. */ + private String occAvailabilityCatalogId = null; + + /** + * The OCID of the availability catalog. + * + * @param occAvailabilityCatalogId the value to set + * @return this builder instance + */ + public Builder occAvailabilityCatalogId(String occAvailabilityCatalogId) { + this.occAvailabilityCatalogId = occAvailabilityCatalogId; + 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. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetOccAvailabilityCatalogContentRequest o) { + occAvailabilityCatalogId(o.getOccAvailabilityCatalogId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetOccAvailabilityCatalogContentRequest 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 GetOccAvailabilityCatalogContentRequest + */ + public GetOccAvailabilityCatalogContentRequest build() { + GetOccAvailabilityCatalogContentRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetOccAvailabilityCatalogContentRequest 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 GetOccAvailabilityCatalogContentRequest + */ + public GetOccAvailabilityCatalogContentRequest buildWithoutInvocationCallback() { + GetOccAvailabilityCatalogContentRequest request = + new GetOccAvailabilityCatalogContentRequest(); + request.occAvailabilityCatalogId = occAvailabilityCatalogId; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new GetOccAvailabilityCatalogContentRequest(occAvailabilityCatalogId, opcRetryToken, + // opcRequestId, ifMatch); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .occAvailabilityCatalogId(occAvailabilityCatalogId) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",occAvailabilityCatalogId=") + .append(String.valueOf(this.occAvailabilityCatalogId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetOccAvailabilityCatalogContentRequest)) { + return false; + } + + GetOccAvailabilityCatalogContentRequest other = (GetOccAvailabilityCatalogContentRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.occAvailabilityCatalogId, other.occAvailabilityCatalogId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.occAvailabilityCatalogId == null + ? 43 + : this.occAvailabilityCatalogId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/GetOccAvailabilityCatalogRequest.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/GetOccAvailabilityCatalogRequest.java new file mode 100644 index 00000000000..4a761ea234d --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/GetOccAvailabilityCatalogRequest.java @@ -0,0 +1,210 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.requests; + +import com.oracle.bmc.capacitymanagement.model.*; +/** + * Example: Click here to see how to use + * GetOccAvailabilityCatalogRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class GetOccAvailabilityCatalogRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the availability catalog. */ + private String occAvailabilityCatalogId; + + /** The OCID of the availability catalog. */ + public String getOccAvailabilityCatalogId() { + return occAvailabilityCatalogId; + } + /** + * The client request ID for tracing. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. 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< + GetOccAvailabilityCatalogRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the availability catalog. */ + private String occAvailabilityCatalogId = null; + + /** + * The OCID of the availability catalog. + * + * @param occAvailabilityCatalogId the value to set + * @return this builder instance + */ + public Builder occAvailabilityCatalogId(String occAvailabilityCatalogId) { + this.occAvailabilityCatalogId = occAvailabilityCatalogId; + return this; + } + + /** + * The client request ID for tracing. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. 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(GetOccAvailabilityCatalogRequest o) { + occAvailabilityCatalogId(o.getOccAvailabilityCatalogId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetOccAvailabilityCatalogRequest 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 GetOccAvailabilityCatalogRequest + */ + public GetOccAvailabilityCatalogRequest build() { + GetOccAvailabilityCatalogRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetOccAvailabilityCatalogRequest 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 GetOccAvailabilityCatalogRequest + */ + public GetOccAvailabilityCatalogRequest buildWithoutInvocationCallback() { + GetOccAvailabilityCatalogRequest request = new GetOccAvailabilityCatalogRequest(); + request.occAvailabilityCatalogId = occAvailabilityCatalogId; + request.opcRequestId = opcRequestId; + return request; + // new GetOccAvailabilityCatalogRequest(occAvailabilityCatalogId, 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() + .occAvailabilityCatalogId(occAvailabilityCatalogId) + .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(",occAvailabilityCatalogId=") + .append(String.valueOf(this.occAvailabilityCatalogId)); + 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 GetOccAvailabilityCatalogRequest)) { + return false; + } + + GetOccAvailabilityCatalogRequest other = (GetOccAvailabilityCatalogRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.occAvailabilityCatalogId, other.occAvailabilityCatalogId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.occAvailabilityCatalogId == null + ? 43 + : this.occAvailabilityCatalogId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/GetOccCapacityRequestRequest.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/GetOccCapacityRequestRequest.java new file mode 100644 index 00000000000..e3963d95e63 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/GetOccCapacityRequestRequest.java @@ -0,0 +1,206 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.requests; + +import com.oracle.bmc.capacitymanagement.model.*; +/** + * Example: Click here to see how to use + * GetOccCapacityRequestRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class GetOccCapacityRequestRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the capacity request. */ + private String occCapacityRequestId; + + /** The OCID of the capacity request. */ + public String getOccCapacityRequestId() { + return occCapacityRequestId; + } + /** + * The client request ID for tracing. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. 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< + GetOccCapacityRequestRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the capacity request. */ + private String occCapacityRequestId = null; + + /** + * The OCID of the capacity request. + * + * @param occCapacityRequestId the value to set + * @return this builder instance + */ + public Builder occCapacityRequestId(String occCapacityRequestId) { + this.occCapacityRequestId = occCapacityRequestId; + return this; + } + + /** + * The client request ID for tracing. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. 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(GetOccCapacityRequestRequest o) { + occCapacityRequestId(o.getOccCapacityRequestId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetOccCapacityRequestRequest 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 GetOccCapacityRequestRequest + */ + public GetOccCapacityRequestRequest build() { + GetOccCapacityRequestRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetOccCapacityRequestRequest 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 GetOccCapacityRequestRequest + */ + public GetOccCapacityRequestRequest buildWithoutInvocationCallback() { + GetOccCapacityRequestRequest request = new GetOccCapacityRequestRequest(); + request.occCapacityRequestId = occCapacityRequestId; + request.opcRequestId = opcRequestId; + return request; + // new GetOccCapacityRequestRequest(occCapacityRequestId, 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().occCapacityRequestId(occCapacityRequestId).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(",occCapacityRequestId=").append(String.valueOf(this.occCapacityRequestId)); + 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 GetOccCapacityRequestRequest)) { + return false; + } + + GetOccCapacityRequestRequest other = (GetOccCapacityRequestRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.occCapacityRequestId, other.occCapacityRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.occCapacityRequestId == null + ? 43 + : this.occCapacityRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/GetOccCustomerGroupRequest.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/GetOccCustomerGroupRequest.java new file mode 100644 index 00000000000..ea976c8cc68 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/GetOccCustomerGroupRequest.java @@ -0,0 +1,204 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.requests; + +import com.oracle.bmc.capacitymanagement.model.*; +/** + * Example: Click here to see how to use GetOccCustomerGroupRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class GetOccCustomerGroupRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the customer group. */ + private String occCustomerGroupId; + + /** The OCID of the customer group. */ + public String getOccCustomerGroupId() { + return occCustomerGroupId; + } + /** + * The client request ID for tracing. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. 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< + GetOccCustomerGroupRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the customer group. */ + private String occCustomerGroupId = null; + + /** + * The OCID of the customer group. + * + * @param occCustomerGroupId the value to set + * @return this builder instance + */ + public Builder occCustomerGroupId(String occCustomerGroupId) { + this.occCustomerGroupId = occCustomerGroupId; + return this; + } + + /** + * The client request ID for tracing. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. 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(GetOccCustomerGroupRequest o) { + occCustomerGroupId(o.getOccCustomerGroupId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetOccCustomerGroupRequest 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 GetOccCustomerGroupRequest + */ + public GetOccCustomerGroupRequest build() { + GetOccCustomerGroupRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetOccCustomerGroupRequest 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 GetOccCustomerGroupRequest + */ + public GetOccCustomerGroupRequest buildWithoutInvocationCallback() { + GetOccCustomerGroupRequest request = new GetOccCustomerGroupRequest(); + request.occCustomerGroupId = occCustomerGroupId; + request.opcRequestId = opcRequestId; + return request; + // new GetOccCustomerGroupRequest(occCustomerGroupId, 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().occCustomerGroupId(occCustomerGroupId).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(",occCustomerGroupId=").append(String.valueOf(this.occCustomerGroupId)); + 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 GetOccCustomerGroupRequest)) { + return false; + } + + GetOccCustomerGroupRequest other = (GetOccCustomerGroupRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.occCustomerGroupId, other.occCustomerGroupId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.occCustomerGroupId == null + ? 43 + : this.occCustomerGroupId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccAvailabilitiesRequest.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccAvailabilitiesRequest.java new file mode 100644 index 00000000000..42c0ad8f1bb --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccAvailabilitiesRequest.java @@ -0,0 +1,521 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.requests; + +import com.oracle.bmc.capacitymanagement.model.*; +/** + * Example: Click here to see how to use + * ListOccAvailabilitiesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class ListOccAvailabilitiesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the availability catalog. */ + private String occAvailabilityCatalogId; + + /** The OCID of the availability catalog. */ + public String getOccAvailabilityCatalogId() { + return occAvailabilityCatalogId; + } + /** + * The capacity handover date of the capacity constraint to filter the list of capacity + * constraints. + */ + private String dateExpectedCapacityHandover; + + /** + * The capacity handover date of the capacity constraint to filter the list of capacity + * constraints. + */ + public String getDateExpectedCapacityHandover() { + return dateExpectedCapacityHandover; + } + /** The name of the resource to filter the list of capacity constraints. */ + private String resourceName; + + /** The name of the resource to filter the list of capacity constraints. */ + public String getResourceName() { + return resourceName; + } + /** + * Resource type using which the capacity constraints of an availability catalog can be + * filtered. + */ + private com.oracle.bmc.capacitymanagement.model.OccAvailabilitySummary.ResourceType + resourceType; + + /** + * Resource type using which the capacity constraints of an availability catalog can be + * filtered. + */ + public com.oracle.bmc.capacitymanagement.model.OccAvailabilitySummary.ResourceType + getResourceType() { + return resourceType; + } + /** Workload type using the resources in an availability catalog can be filtered. */ + private com.oracle.bmc.capacitymanagement.model.OccAvailabilitySummary.WorkloadType + workloadType; + + /** Workload type using the resources in an availability catalog can be filtered. */ + public com.oracle.bmc.capacitymanagement.model.OccAvailabilitySummary.WorkloadType + getWorkloadType() { + return workloadType; + } + /** 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 + * {@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 + * {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** + * The client request ID for tracing. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.capacitymanagement.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.capacitymanagement.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. The default order for resource + * name is ascending. The default order for date of capacity handover is descending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. The default order for resource + * name is ascending. The default order for date of capacity handover is descending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + DateExpectedCapacityHandover("dateExpectedCapacityHandover"), + ResourceName("resourceName"), + ; + + 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. The default order for resource + * name is ascending. The default order for date of capacity handover is descending. + */ + public SortBy getSortBy() { + return sortBy; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListOccAvailabilitiesRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the availability catalog. */ + private String occAvailabilityCatalogId = null; + + /** + * The OCID of the availability catalog. + * + * @param occAvailabilityCatalogId the value to set + * @return this builder instance + */ + public Builder occAvailabilityCatalogId(String occAvailabilityCatalogId) { + this.occAvailabilityCatalogId = occAvailabilityCatalogId; + return this; + } + + /** + * The capacity handover date of the capacity constraint to filter the list of capacity + * constraints. + */ + private String dateExpectedCapacityHandover = null; + + /** + * The capacity handover date of the capacity constraint to filter the list of capacity + * constraints. + * + * @param dateExpectedCapacityHandover the value to set + * @return this builder instance + */ + public Builder dateExpectedCapacityHandover(String dateExpectedCapacityHandover) { + this.dateExpectedCapacityHandover = dateExpectedCapacityHandover; + return this; + } + + /** The name of the resource to filter the list of capacity constraints. */ + private String resourceName = null; + + /** + * The name of the resource to filter the list of capacity constraints. + * + * @param resourceName the value to set + * @return this builder instance + */ + public Builder resourceName(String resourceName) { + this.resourceName = resourceName; + return this; + } + + /** + * Resource type using which the capacity constraints of an availability catalog can be + * filtered. + */ + private com.oracle.bmc.capacitymanagement.model.OccAvailabilitySummary.ResourceType + resourceType = null; + + /** + * Resource type using which the capacity constraints of an availability catalog can be + * filtered. + * + * @param resourceType the value to set + * @return this builder instance + */ + public Builder resourceType( + com.oracle.bmc.capacitymanagement.model.OccAvailabilitySummary.ResourceType + resourceType) { + this.resourceType = resourceType; + return this; + } + + /** Workload type using the resources in an availability catalog can be filtered. */ + private com.oracle.bmc.capacitymanagement.model.OccAvailabilitySummary.WorkloadType + workloadType = null; + + /** + * Workload type using the resources in an availability catalog can be filtered. + * + * @param workloadType the value to set + * @return this builder instance + */ + public Builder workloadType( + com.oracle.bmc.capacitymanagement.model.OccAvailabilitySummary.WorkloadType + workloadType) { + this.workloadType = workloadType; + 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 {@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 {@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 client request ID for tracing. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. 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; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.capacitymanagement.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.capacitymanagement.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. The default order for resource + * name is ascending. The default order for date of capacity handover is descending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. The default order for resource + * name is ascending. The default order for date of capacity handover is descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListOccAvailabilitiesRequest o) { + occAvailabilityCatalogId(o.getOccAvailabilityCatalogId()); + dateExpectedCapacityHandover(o.getDateExpectedCapacityHandover()); + resourceName(o.getResourceName()); + resourceType(o.getResourceType()); + workloadType(o.getWorkloadType()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListOccAvailabilitiesRequest 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 ListOccAvailabilitiesRequest + */ + public ListOccAvailabilitiesRequest build() { + ListOccAvailabilitiesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListOccAvailabilitiesRequest 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 ListOccAvailabilitiesRequest + */ + public ListOccAvailabilitiesRequest buildWithoutInvocationCallback() { + ListOccAvailabilitiesRequest request = new ListOccAvailabilitiesRequest(); + request.occAvailabilityCatalogId = occAvailabilityCatalogId; + request.dateExpectedCapacityHandover = dateExpectedCapacityHandover; + request.resourceName = resourceName; + request.resourceType = resourceType; + request.workloadType = workloadType; + request.limit = limit; + request.page = page; + request.opcRequestId = opcRequestId; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + return request; + // new ListOccAvailabilitiesRequest(occAvailabilityCatalogId, + // dateExpectedCapacityHandover, resourceName, resourceType, workloadType, limit, page, + // opcRequestId, sortOrder, sortBy); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .occAvailabilityCatalogId(occAvailabilityCatalogId) + .dateExpectedCapacityHandover(dateExpectedCapacityHandover) + .resourceName(resourceName) + .resourceType(resourceType) + .workloadType(workloadType) + .limit(limit) + .page(page) + .opcRequestId(opcRequestId) + .sortOrder(sortOrder) + .sortBy(sortBy); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",occAvailabilityCatalogId=") + .append(String.valueOf(this.occAvailabilityCatalogId)); + sb.append(",dateExpectedCapacityHandover=") + .append(String.valueOf(this.dateExpectedCapacityHandover)); + sb.append(",resourceName=").append(String.valueOf(this.resourceName)); + sb.append(",resourceType=").append(String.valueOf(this.resourceType)); + sb.append(",workloadType=").append(String.valueOf(this.workloadType)); + 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(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListOccAvailabilitiesRequest)) { + return false; + } + + ListOccAvailabilitiesRequest other = (ListOccAvailabilitiesRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.occAvailabilityCatalogId, other.occAvailabilityCatalogId) + && java.util.Objects.equals( + this.dateExpectedCapacityHandover, other.dateExpectedCapacityHandover) + && java.util.Objects.equals(this.resourceName, other.resourceName) + && java.util.Objects.equals(this.resourceType, other.resourceType) + && java.util.Objects.equals(this.workloadType, other.workloadType) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.occAvailabilityCatalogId == null + ? 43 + : this.occAvailabilityCatalogId.hashCode()); + result = + (result * PRIME) + + (this.dateExpectedCapacityHandover == null + ? 43 + : this.dateExpectedCapacityHandover.hashCode()); + result = (result * PRIME) + (this.resourceName == null ? 43 : this.resourceName.hashCode()); + result = (result * PRIME) + (this.resourceType == null ? 43 : this.resourceType.hashCode()); + result = (result * PRIME) + (this.workloadType == null ? 43 : this.workloadType.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()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccAvailabilityCatalogsInternalRequest.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccAvailabilityCatalogsInternalRequest.java new file mode 100644 index 00000000000..3f21ef008a5 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccAvailabilityCatalogsInternalRequest.java @@ -0,0 +1,541 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.requests; + +import com.oracle.bmc.capacitymanagement.model.*; +/** + * Example: Click here to see how to use + * ListOccAvailabilityCatalogsInternalRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class ListOccAvailabilityCatalogsInternalRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The ocid of the compartment or tenancy in which resources are to be listed. This will also be + * used for authorization purposes. + */ + private String compartmentId; + + /** + * The ocid of the compartment or tenancy in which resources are to be listed. This will also be + * used for authorization purposes. + */ + public String getCompartmentId() { + return compartmentId; + } + /** The namespace by which we would filter the list. */ + private com.oracle.bmc.capacitymanagement.model.Namespace namespace; + + /** The namespace by which we would filter the list. */ + public com.oracle.bmc.capacitymanagement.model.Namespace getNamespace() { + return namespace; + } + /** The OCID of the availability catalog to filter the list of availability catalogs. */ + private String id; + + /** The OCID of the availability catalog to filter the list of availability catalogs. */ + public String getId() { + return id; + } + /** + * A filter to return only the resources that match the entire display name. The match is not + * case sensitive. + */ + private String displayName; + + /** + * A filter to return only the resources that match the entire display name. The match is not + * case sensitive. + */ + public String getDisplayName() { + return displayName; + } + /** Filter the list of availability catalogs based on the catalog state. */ + private com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog.CatalogState + catalogState; + + /** Filter the list of availability catalogs based on the catalog state. */ + public com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog.CatalogState + getCatalogState() { + return catalogState; + } + /** The customer group ocid by which we would filter the list. */ + private String occCustomerGroupId; + + /** The customer group ocid by which we would filter the list. */ + public String getOccCustomerGroupId() { + return occCustomerGroupId; + } + /** 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 + * {@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 + * {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** + * The client request ID for tracing. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.capacitymanagement.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.capacitymanagement.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. The default order for displayName + * is ascending. The default order for timeCreated is descending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. The default order for displayName + * is ascending. The default order for timeCreated is descending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + DisplayName("displayName"), + TimeCreated("timeCreated"), + ; + + 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. The default order for displayName + * is ascending. The default order for timeCreated is descending. + */ + public SortBy getSortBy() { + return sortBy; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListOccAvailabilityCatalogsInternalRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The ocid of the compartment or tenancy in which resources are to be listed. This will + * also be used for authorization purposes. + */ + private String compartmentId = null; + + /** + * The ocid of the compartment or tenancy in which resources are to be listed. This will + * also be used for authorization purposes. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** The namespace by which we would filter the list. */ + private com.oracle.bmc.capacitymanagement.model.Namespace namespace = null; + + /** + * The namespace by which we would filter the list. + * + * @param namespace the value to set + * @return this builder instance + */ + public Builder namespace(com.oracle.bmc.capacitymanagement.model.Namespace namespace) { + this.namespace = namespace; + return this; + } + + /** The OCID of the availability catalog to filter the list of availability catalogs. */ + private String id = null; + + /** + * The OCID of the availability catalog to filter the list of availability catalogs. + * + * @param id the value to set + * @return this builder instance + */ + public Builder id(String id) { + this.id = id; + return this; + } + + /** + * A filter to return only the resources that match the entire display name. The match is + * not case sensitive. + */ + private String displayName = null; + + /** + * A filter to return only the resources that match the entire display name. The match is + * not case sensitive. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** Filter the list of availability catalogs based on the catalog state. */ + private com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog.CatalogState + catalogState = null; + + /** + * Filter the list of availability catalogs based on the catalog state. + * + * @param catalogState the value to set + * @return this builder instance + */ + public Builder catalogState( + com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog.CatalogState + catalogState) { + this.catalogState = catalogState; + return this; + } + + /** The customer group ocid by which we would filter the list. */ + private String occCustomerGroupId = null; + + /** + * The customer group ocid by which we would filter the list. + * + * @param occCustomerGroupId the value to set + * @return this builder instance + */ + public Builder occCustomerGroupId(String occCustomerGroupId) { + this.occCustomerGroupId = occCustomerGroupId; + 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 {@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 {@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 client request ID for tracing. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. 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; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.capacitymanagement.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.capacitymanagement.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. The default order for + * displayName is ascending. The default order for timeCreated is descending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. The default order for + * displayName is ascending. The default order for timeCreated is descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListOccAvailabilityCatalogsInternalRequest o) { + compartmentId(o.getCompartmentId()); + namespace(o.getNamespace()); + id(o.getId()); + displayName(o.getDisplayName()); + catalogState(o.getCatalogState()); + occCustomerGroupId(o.getOccCustomerGroupId()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListOccAvailabilityCatalogsInternalRequest 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 ListOccAvailabilityCatalogsInternalRequest + */ + public ListOccAvailabilityCatalogsInternalRequest build() { + ListOccAvailabilityCatalogsInternalRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListOccAvailabilityCatalogsInternalRequest 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 ListOccAvailabilityCatalogsInternalRequest + */ + public ListOccAvailabilityCatalogsInternalRequest buildWithoutInvocationCallback() { + ListOccAvailabilityCatalogsInternalRequest request = + new ListOccAvailabilityCatalogsInternalRequest(); + request.compartmentId = compartmentId; + request.namespace = namespace; + request.id = id; + request.displayName = displayName; + request.catalogState = catalogState; + request.occCustomerGroupId = occCustomerGroupId; + request.limit = limit; + request.page = page; + request.opcRequestId = opcRequestId; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + return request; + // new ListOccAvailabilityCatalogsInternalRequest(compartmentId, namespace, id, + // displayName, catalogState, occCustomerGroupId, limit, page, opcRequestId, sortOrder, + // sortBy); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .namespace(namespace) + .id(id) + .displayName(displayName) + .catalogState(catalogState) + .occCustomerGroupId(occCustomerGroupId) + .limit(limit) + .page(page) + .opcRequestId(opcRequestId) + .sortOrder(sortOrder) + .sortBy(sortBy); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",namespace=").append(String.valueOf(this.namespace)); + sb.append(",id=").append(String.valueOf(this.id)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",catalogState=").append(String.valueOf(this.catalogState)); + sb.append(",occCustomerGroupId=").append(String.valueOf(this.occCustomerGroupId)); + 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(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListOccAvailabilityCatalogsInternalRequest)) { + return false; + } + + ListOccAvailabilityCatalogsInternalRequest other = + (ListOccAvailabilityCatalogsInternalRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.namespace, other.namespace) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.catalogState, other.catalogState) + && java.util.Objects.equals(this.occCustomerGroupId, other.occCustomerGroupId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.namespace == null ? 43 : this.namespace.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.catalogState == null ? 43 : this.catalogState.hashCode()); + result = + (result * PRIME) + + (this.occCustomerGroupId == null + ? 43 + : this.occCustomerGroupId.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()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccAvailabilityCatalogsRequest.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccAvailabilityCatalogsRequest.java new file mode 100644 index 00000000000..38a282339a5 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccAvailabilityCatalogsRequest.java @@ -0,0 +1,505 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.requests; + +import com.oracle.bmc.capacitymanagement.model.*; +/** + * Example: Click here to see how to use + * ListOccAvailabilityCatalogsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class ListOccAvailabilityCatalogsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The ocid of the compartment or tenancy in which resources are to be listed. This will also be + * used for authorization purposes. + */ + private String compartmentId; + + /** + * The ocid of the compartment or tenancy in which resources are to be listed. This will also be + * used for authorization purposes. + */ + public String getCompartmentId() { + return compartmentId; + } + /** The namespace by which we would filter the list. */ + private com.oracle.bmc.capacitymanagement.model.Namespace namespace; + + /** The namespace by which we would filter the list. */ + public com.oracle.bmc.capacitymanagement.model.Namespace getNamespace() { + return namespace; + } + /** The OCID of the availability catalog to filter the list of availability catalogs. */ + private String id; + + /** The OCID of the availability catalog to filter the list of availability catalogs. */ + public String getId() { + return id; + } + /** + * A filter to return only the resources that match the entire display name. The match is not + * case sensitive. + */ + private String displayName; + + /** + * A filter to return only the resources that match the entire display name. The match is not + * case sensitive. + */ + public String getDisplayName() { + return displayName; + } + /** Filter the list of availability catalogs based on the catalog state. */ + private com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog.CatalogState + catalogState; + + /** Filter the list of availability catalogs based on the catalog state. */ + public com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog.CatalogState + getCatalogState() { + return catalogState; + } + /** 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 + * {@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 + * {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** + * The client request ID for tracing. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.capacitymanagement.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.capacitymanagement.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. The default order for displayName + * is ascending. The default order for timeCreated is descending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. The default order for displayName + * is ascending. The default order for timeCreated is descending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + DisplayName("displayName"), + TimeCreated("timeCreated"), + ; + + 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. The default order for displayName + * is ascending. The default order for timeCreated is descending. + */ + public SortBy getSortBy() { + return sortBy; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListOccAvailabilityCatalogsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The ocid of the compartment or tenancy in which resources are to be listed. This will + * also be used for authorization purposes. + */ + private String compartmentId = null; + + /** + * The ocid of the compartment or tenancy in which resources are to be listed. This will + * also be used for authorization purposes. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** The namespace by which we would filter the list. */ + private com.oracle.bmc.capacitymanagement.model.Namespace namespace = null; + + /** + * The namespace by which we would filter the list. + * + * @param namespace the value to set + * @return this builder instance + */ + public Builder namespace(com.oracle.bmc.capacitymanagement.model.Namespace namespace) { + this.namespace = namespace; + return this; + } + + /** The OCID of the availability catalog to filter the list of availability catalogs. */ + private String id = null; + + /** + * The OCID of the availability catalog to filter the list of availability catalogs. + * + * @param id the value to set + * @return this builder instance + */ + public Builder id(String id) { + this.id = id; + return this; + } + + /** + * A filter to return only the resources that match the entire display name. The match is + * not case sensitive. + */ + private String displayName = null; + + /** + * A filter to return only the resources that match the entire display name. The match is + * not case sensitive. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** Filter the list of availability catalogs based on the catalog state. */ + private com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog.CatalogState + catalogState = null; + + /** + * Filter the list of availability catalogs based on the catalog state. + * + * @param catalogState the value to set + * @return this builder instance + */ + public Builder catalogState( + com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog.CatalogState + catalogState) { + this.catalogState = catalogState; + 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 {@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 {@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 client request ID for tracing. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. 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; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.capacitymanagement.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.capacitymanagement.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. The default order for + * displayName is ascending. The default order for timeCreated is descending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. The default order for + * displayName is ascending. The default order for timeCreated is descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListOccAvailabilityCatalogsRequest o) { + compartmentId(o.getCompartmentId()); + namespace(o.getNamespace()); + id(o.getId()); + displayName(o.getDisplayName()); + catalogState(o.getCatalogState()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListOccAvailabilityCatalogsRequest 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 ListOccAvailabilityCatalogsRequest + */ + public ListOccAvailabilityCatalogsRequest build() { + ListOccAvailabilityCatalogsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListOccAvailabilityCatalogsRequest 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 ListOccAvailabilityCatalogsRequest + */ + public ListOccAvailabilityCatalogsRequest buildWithoutInvocationCallback() { + ListOccAvailabilityCatalogsRequest request = new ListOccAvailabilityCatalogsRequest(); + request.compartmentId = compartmentId; + request.namespace = namespace; + request.id = id; + request.displayName = displayName; + request.catalogState = catalogState; + request.limit = limit; + request.page = page; + request.opcRequestId = opcRequestId; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + return request; + // new ListOccAvailabilityCatalogsRequest(compartmentId, namespace, id, displayName, + // catalogState, limit, page, opcRequestId, sortOrder, sortBy); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .namespace(namespace) + .id(id) + .displayName(displayName) + .catalogState(catalogState) + .limit(limit) + .page(page) + .opcRequestId(opcRequestId) + .sortOrder(sortOrder) + .sortBy(sortBy); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",namespace=").append(String.valueOf(this.namespace)); + sb.append(",id=").append(String.valueOf(this.id)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",catalogState=").append(String.valueOf(this.catalogState)); + 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(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListOccAvailabilityCatalogsRequest)) { + return false; + } + + ListOccAvailabilityCatalogsRequest other = (ListOccAvailabilityCatalogsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.namespace, other.namespace) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.catalogState, other.catalogState) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.namespace == null ? 43 : this.namespace.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.catalogState == null ? 43 : this.catalogState.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()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccCapacityRequestsInternalRequest.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccCapacityRequestsInternalRequest.java new file mode 100644 index 00000000000..d2681d2fc30 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccCapacityRequestsInternalRequest.java @@ -0,0 +1,570 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.requests; + +import com.oracle.bmc.capacitymanagement.model.*; +/** + * Example: Click here to see how to use + * ListOccCapacityRequestsInternalRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class ListOccCapacityRequestsInternalRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The ocid of the compartment or tenancy in which resources are to be listed. This will also be + * used for authorization purposes. + */ + private String compartmentId; + + /** + * The ocid of the compartment or tenancy in which resources are to be listed. This will also be + * used for authorization purposes. + */ + public String getCompartmentId() { + return compartmentId; + } + /** The customer group ocid by which we would filter the list. */ + private String occCustomerGroupId; + + /** The customer group ocid by which we would filter the list. */ + public String getOccCustomerGroupId() { + return occCustomerGroupId; + } + /** + * A filter to return the list of capacity requests based on the OCID of the availability + * catalog against which they were created. + */ + private String occAvailabilityCatalogId; + + /** + * A filter to return the list of capacity requests based on the OCID of the availability + * catalog against which they were created. + */ + public String getOccAvailabilityCatalogId() { + return occAvailabilityCatalogId; + } + /** The namespace by which we would filter the list. */ + private com.oracle.bmc.capacitymanagement.model.Namespace namespace; + + /** The namespace by which we would filter the list. */ + public com.oracle.bmc.capacitymanagement.model.Namespace getNamespace() { + return namespace; + } + /** + * A filter to return only the resources that match the entire display name. The match is not + * case sensitive. + */ + private String displayName; + + /** + * A filter to return only the resources that match the entire display name. The match is not + * case sensitive. + */ + public String getDisplayName() { + return displayName; + } + /** + * A filter to return the list of capacity requests based on the OCID of the capacity request. + * This is done for the users who have INSPECT permission on the resource but do not have READ + * permission. + */ + private String id; + + /** + * A filter to return the list of capacity requests based on the OCID of the capacity request. + * This is done for the users who have INSPECT permission on the resource but do not have READ + * permission. + */ + 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 + * {@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 + * {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** + * The client request ID for tracing. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.capacitymanagement.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.capacitymanagement.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. The default order for display name + * is ascending. The default order for time created is reverse chronological order(latest date + * at the top). + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. The default order for display name + * is ascending. The default order for time created is reverse chronological order(latest date + * at the top). + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + DisplayName("displayName"), + TimeCreated("timeCreated"), + ; + + 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. The default order for display name + * is ascending. The default order for time created is reverse chronological order(latest date + * at the top). + */ + public SortBy getSortBy() { + return sortBy; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListOccCapacityRequestsInternalRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The ocid of the compartment or tenancy in which resources are to be listed. This will + * also be used for authorization purposes. + */ + private String compartmentId = null; + + /** + * The ocid of the compartment or tenancy in which resources are to be listed. This will + * also be used for authorization purposes. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** The customer group ocid by which we would filter the list. */ + private String occCustomerGroupId = null; + + /** + * The customer group ocid by which we would filter the list. + * + * @param occCustomerGroupId the value to set + * @return this builder instance + */ + public Builder occCustomerGroupId(String occCustomerGroupId) { + this.occCustomerGroupId = occCustomerGroupId; + return this; + } + + /** + * A filter to return the list of capacity requests based on the OCID of the availability + * catalog against which they were created. + */ + private String occAvailabilityCatalogId = null; + + /** + * A filter to return the list of capacity requests based on the OCID of the availability + * catalog against which they were created. + * + * @param occAvailabilityCatalogId the value to set + * @return this builder instance + */ + public Builder occAvailabilityCatalogId(String occAvailabilityCatalogId) { + this.occAvailabilityCatalogId = occAvailabilityCatalogId; + return this; + } + + /** The namespace by which we would filter the list. */ + private com.oracle.bmc.capacitymanagement.model.Namespace namespace = null; + + /** + * The namespace by which we would filter the list. + * + * @param namespace the value to set + * @return this builder instance + */ + public Builder namespace(com.oracle.bmc.capacitymanagement.model.Namespace namespace) { + this.namespace = namespace; + return this; + } + + /** + * A filter to return only the resources that match the entire display name. The match is + * not case sensitive. + */ + private String displayName = null; + + /** + * A filter to return only the resources that match the entire display name. The match is + * not case sensitive. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * A filter to return the list of capacity requests based on the OCID of the capacity + * request. This is done for the users who have INSPECT permission on the resource but do + * not have READ permission. + */ + private String id = null; + + /** + * A filter to return the list of capacity requests based on the OCID of the capacity + * request. This is done for the users who have INSPECT permission on the resource but do + * not have READ permission. + * + * @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 {@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 {@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 client request ID for tracing. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. 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; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.capacitymanagement.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.capacitymanagement.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. The default order for display + * name is ascending. The default order for time created is reverse chronological + * order(latest date at the top). + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. The default order for display + * name is ascending. The default order for time created is reverse chronological + * order(latest date at the top). + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListOccCapacityRequestsInternalRequest o) { + compartmentId(o.getCompartmentId()); + occCustomerGroupId(o.getOccCustomerGroupId()); + occAvailabilityCatalogId(o.getOccAvailabilityCatalogId()); + namespace(o.getNamespace()); + displayName(o.getDisplayName()); + id(o.getId()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListOccCapacityRequestsInternalRequest 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 ListOccCapacityRequestsInternalRequest + */ + public ListOccCapacityRequestsInternalRequest build() { + ListOccCapacityRequestsInternalRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListOccCapacityRequestsInternalRequest 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 ListOccCapacityRequestsInternalRequest + */ + public ListOccCapacityRequestsInternalRequest buildWithoutInvocationCallback() { + ListOccCapacityRequestsInternalRequest request = + new ListOccCapacityRequestsInternalRequest(); + request.compartmentId = compartmentId; + request.occCustomerGroupId = occCustomerGroupId; + request.occAvailabilityCatalogId = occAvailabilityCatalogId; + request.namespace = namespace; + request.displayName = displayName; + request.id = id; + request.limit = limit; + request.page = page; + request.opcRequestId = opcRequestId; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + return request; + // new ListOccCapacityRequestsInternalRequest(compartmentId, occCustomerGroupId, + // occAvailabilityCatalogId, namespace, displayName, id, limit, page, opcRequestId, + // sortOrder, sortBy); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .occCustomerGroupId(occCustomerGroupId) + .occAvailabilityCatalogId(occAvailabilityCatalogId) + .namespace(namespace) + .displayName(displayName) + .id(id) + .limit(limit) + .page(page) + .opcRequestId(opcRequestId) + .sortOrder(sortOrder) + .sortBy(sortBy); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",occCustomerGroupId=").append(String.valueOf(this.occCustomerGroupId)); + sb.append(",occAvailabilityCatalogId=") + .append(String.valueOf(this.occAvailabilityCatalogId)); + sb.append(",namespace=").append(String.valueOf(this.namespace)); + 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(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListOccCapacityRequestsInternalRequest)) { + return false; + } + + ListOccCapacityRequestsInternalRequest other = (ListOccCapacityRequestsInternalRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.occCustomerGroupId, other.occCustomerGroupId) + && java.util.Objects.equals( + this.occAvailabilityCatalogId, other.occAvailabilityCatalogId) + && java.util.Objects.equals(this.namespace, other.namespace) + && 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.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.occCustomerGroupId == null + ? 43 + : this.occCustomerGroupId.hashCode()); + result = + (result * PRIME) + + (this.occAvailabilityCatalogId == null + ? 43 + : this.occAvailabilityCatalogId.hashCode()); + result = (result * PRIME) + (this.namespace == null ? 43 : this.namespace.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.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccCapacityRequestsRequest.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccCapacityRequestsRequest.java new file mode 100644 index 00000000000..50a519fec8a --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccCapacityRequestsRequest.java @@ -0,0 +1,535 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.requests; + +import com.oracle.bmc.capacitymanagement.model.*; +/** + * Example: Click here to see how to use + * ListOccCapacityRequestsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class ListOccCapacityRequestsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The ocid of the compartment or tenancy in which resources are to be listed. This will also be + * used for authorization purposes. + */ + private String compartmentId; + + /** + * The ocid of the compartment or tenancy in which resources are to be listed. This will also be + * used for authorization purposes. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * A filter to return the list of capacity requests based on the OCID of the availability + * catalog against which they were created. + */ + private String occAvailabilityCatalogId; + + /** + * A filter to return the list of capacity requests based on the OCID of the availability + * catalog against which they were created. + */ + public String getOccAvailabilityCatalogId() { + return occAvailabilityCatalogId; + } + /** The namespace by which we would filter the list. */ + private com.oracle.bmc.capacitymanagement.model.Namespace namespace; + + /** The namespace by which we would filter the list. */ + public com.oracle.bmc.capacitymanagement.model.Namespace getNamespace() { + return namespace; + } + /** + * A filter to return only the resources that match the entire display name. The match is not + * case sensitive. + */ + private String displayName; + + /** + * A filter to return only the resources that match the entire display name. The match is not + * case sensitive. + */ + public String getDisplayName() { + return displayName; + } + /** + * A filter to return the list of capacity requests based on the OCID of the capacity request. + * This is done for the users who have INSPECT permission on the resource but do not have READ + * permission. + */ + private String id; + + /** + * A filter to return the list of capacity requests based on the OCID of the capacity request. + * This is done for the users who have INSPECT permission on the resource but do not have READ + * permission. + */ + 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 + * {@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 + * {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** + * The client request ID for tracing. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.capacitymanagement.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.capacitymanagement.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. The default order for display name + * is ascending. The default order for time created is reverse chronological order(latest date + * at the top). + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. The default order for display name + * is ascending. The default order for time created is reverse chronological order(latest date + * at the top). + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + DisplayName("displayName"), + TimeCreated("timeCreated"), + ; + + 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. The default order for display name + * is ascending. The default order for time created is reverse chronological order(latest date + * at the top). + */ + public SortBy getSortBy() { + return sortBy; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListOccCapacityRequestsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The ocid of the compartment or tenancy in which resources are to be listed. This will + * also be used for authorization purposes. + */ + private String compartmentId = null; + + /** + * The ocid of the compartment or tenancy in which resources are to be listed. This will + * also be used for authorization purposes. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * A filter to return the list of capacity requests based on the OCID of the availability + * catalog against which they were created. + */ + private String occAvailabilityCatalogId = null; + + /** + * A filter to return the list of capacity requests based on the OCID of the availability + * catalog against which they were created. + * + * @param occAvailabilityCatalogId the value to set + * @return this builder instance + */ + public Builder occAvailabilityCatalogId(String occAvailabilityCatalogId) { + this.occAvailabilityCatalogId = occAvailabilityCatalogId; + return this; + } + + /** The namespace by which we would filter the list. */ + private com.oracle.bmc.capacitymanagement.model.Namespace namespace = null; + + /** + * The namespace by which we would filter the list. + * + * @param namespace the value to set + * @return this builder instance + */ + public Builder namespace(com.oracle.bmc.capacitymanagement.model.Namespace namespace) { + this.namespace = namespace; + return this; + } + + /** + * A filter to return only the resources that match the entire display name. The match is + * not case sensitive. + */ + private String displayName = null; + + /** + * A filter to return only the resources that match the entire display name. The match is + * not case sensitive. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * A filter to return the list of capacity requests based on the OCID of the capacity + * request. This is done for the users who have INSPECT permission on the resource but do + * not have READ permission. + */ + private String id = null; + + /** + * A filter to return the list of capacity requests based on the OCID of the capacity + * request. This is done for the users who have INSPECT permission on the resource but do + * not have READ permission. + * + * @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 {@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 {@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 client request ID for tracing. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. 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; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.capacitymanagement.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.capacitymanagement.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. The default order for display + * name is ascending. The default order for time created is reverse chronological + * order(latest date at the top). + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. The default order for display + * name is ascending. The default order for time created is reverse chronological + * order(latest date at the top). + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListOccCapacityRequestsRequest o) { + compartmentId(o.getCompartmentId()); + occAvailabilityCatalogId(o.getOccAvailabilityCatalogId()); + namespace(o.getNamespace()); + displayName(o.getDisplayName()); + id(o.getId()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListOccCapacityRequestsRequest 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 ListOccCapacityRequestsRequest + */ + public ListOccCapacityRequestsRequest build() { + ListOccCapacityRequestsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListOccCapacityRequestsRequest 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 ListOccCapacityRequestsRequest + */ + public ListOccCapacityRequestsRequest buildWithoutInvocationCallback() { + ListOccCapacityRequestsRequest request = new ListOccCapacityRequestsRequest(); + request.compartmentId = compartmentId; + request.occAvailabilityCatalogId = occAvailabilityCatalogId; + request.namespace = namespace; + request.displayName = displayName; + request.id = id; + request.limit = limit; + request.page = page; + request.opcRequestId = opcRequestId; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + return request; + // new ListOccCapacityRequestsRequest(compartmentId, occAvailabilityCatalogId, + // namespace, displayName, id, limit, page, opcRequestId, sortOrder, sortBy); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .occAvailabilityCatalogId(occAvailabilityCatalogId) + .namespace(namespace) + .displayName(displayName) + .id(id) + .limit(limit) + .page(page) + .opcRequestId(opcRequestId) + .sortOrder(sortOrder) + .sortBy(sortBy); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",occAvailabilityCatalogId=") + .append(String.valueOf(this.occAvailabilityCatalogId)); + sb.append(",namespace=").append(String.valueOf(this.namespace)); + 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(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListOccCapacityRequestsRequest)) { + return false; + } + + ListOccCapacityRequestsRequest other = (ListOccCapacityRequestsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals( + this.occAvailabilityCatalogId, other.occAvailabilityCatalogId) + && java.util.Objects.equals(this.namespace, other.namespace) + && 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.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.occAvailabilityCatalogId == null + ? 43 + : this.occAvailabilityCatalogId.hashCode()); + result = (result * PRIME) + (this.namespace == null ? 43 : this.namespace.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.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccCustomerGroupsRequest.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccCustomerGroupsRequest.java new file mode 100644 index 00000000000..1b4299f6bef --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/ListOccCustomerGroupsRequest.java @@ -0,0 +1,485 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.requests; + +import com.oracle.bmc.capacitymanagement.model.*; +/** + * Example: Click here to see how to use + * ListOccCustomerGroupsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class ListOccCustomerGroupsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The ocid of the compartment or tenancy in which resources are to be listed. This will also be + * used for authorization purposes. + */ + private String compartmentId; + + /** + * The ocid of the compartment or tenancy in which resources are to be listed. This will also be + * used for authorization purposes. + */ + public String getCompartmentId() { + return compartmentId; + } + /** A query filter to return the list result based on status. */ + private com.oracle.bmc.capacitymanagement.model.OccCustomerGroup.Status status; + + /** A query filter to return the list result based on status. */ + public com.oracle.bmc.capacitymanagement.model.OccCustomerGroup.Status getStatus() { + return status; + } + /** + * A filter to return only the resources that match the entire display name. The match is not + * case sensitive. + */ + private String displayName; + + /** + * A filter to return only the resources that match the entire display name. The match is not + * case sensitive. + */ + public String getDisplayName() { + return displayName; + } + /** + * A query filter to return the list result based on the customer group OCID. This is done for + * users who have INSPECT permission but do not have READ permission. + */ + private String id; + + /** + * A query filter to return the list result based on the customer group OCID. This is done for + * users who have INSPECT permission but do not have READ permission. + */ + 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 + * {@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 + * {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** + * The client request ID for tracing. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.capacitymanagement.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.capacitymanagement.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for name and + * compartment ID is ascending. Default order for time created is descending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for name and + * compartment ID is ascending. Default order for time created is descending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + CompartmentId("compartmentId"), + Name("name"), + TimeCreated("timeCreated"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for name and + * compartment ID is ascending. Default order for time created is descending. + */ + public SortBy getSortBy() { + return sortBy; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListOccCustomerGroupsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The ocid of the compartment or tenancy in which resources are to be listed. This will + * also be used for authorization purposes. + */ + private String compartmentId = null; + + /** + * The ocid of the compartment or tenancy in which resources are to be listed. This will + * also be used for authorization purposes. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** A query filter to return the list result based on status. */ + private com.oracle.bmc.capacitymanagement.model.OccCustomerGroup.Status status = null; + + /** + * A query filter to return the list result based on status. + * + * @param status the value to set + * @return this builder instance + */ + public Builder status( + com.oracle.bmc.capacitymanagement.model.OccCustomerGroup.Status status) { + this.status = status; + return this; + } + + /** + * A filter to return only the resources that match the entire display name. The match is + * not case sensitive. + */ + private String displayName = null; + + /** + * A filter to return only the resources that match the entire display name. The match is + * not case sensitive. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * A query filter to return the list result based on the customer group OCID. This is done + * for users who have INSPECT permission but do not have READ permission. + */ + private String id = null; + + /** + * A query filter to return the list result based on the customer group OCID. This is done + * for users who have INSPECT permission but do not have READ permission. + * + * @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 {@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 {@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 client request ID for tracing. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. 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; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.capacitymanagement.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.capacitymanagement.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for name and + * compartment ID is ascending. Default order for time created is descending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for name and + * compartment ID is ascending. Default order for time created is descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListOccCustomerGroupsRequest o) { + compartmentId(o.getCompartmentId()); + status(o.getStatus()); + displayName(o.getDisplayName()); + id(o.getId()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListOccCustomerGroupsRequest 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 ListOccCustomerGroupsRequest + */ + public ListOccCustomerGroupsRequest build() { + ListOccCustomerGroupsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListOccCustomerGroupsRequest 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 ListOccCustomerGroupsRequest + */ + public ListOccCustomerGroupsRequest buildWithoutInvocationCallback() { + ListOccCustomerGroupsRequest request = new ListOccCustomerGroupsRequest(); + request.compartmentId = compartmentId; + request.status = status; + request.displayName = displayName; + request.id = id; + request.limit = limit; + request.page = page; + request.opcRequestId = opcRequestId; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + return request; + // new ListOccCustomerGroupsRequest(compartmentId, status, displayName, id, limit, page, + // opcRequestId, sortOrder, sortBy); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .status(status) + .displayName(displayName) + .id(id) + .limit(limit) + .page(page) + .opcRequestId(opcRequestId) + .sortOrder(sortOrder) + .sortBy(sortBy); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",status=").append(String.valueOf(this.status)); + 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(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListOccCustomerGroupsRequest)) { + return false; + } + + ListOccCustomerGroupsRequest other = (ListOccCustomerGroupsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.status, other.status) + && 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.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.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.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/PatchOccCapacityRequestRequest.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/PatchOccCapacityRequestRequest.java new file mode 100644 index 00000000000..0c6770ebda0 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/PatchOccCapacityRequestRequest.java @@ -0,0 +1,318 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.requests; + +import com.oracle.bmc.capacitymanagement.model.*; +/** + * Example: Click here to see how to use + * PatchOccCapacityRequestRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class PatchOccCapacityRequestRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.capacitymanagement.model.PatchOccCapacityRequestDetails> { + + /** Request to update the properties of the capacity request. */ + private com.oracle.bmc.capacitymanagement.model.PatchOccCapacityRequestDetails + patchOccCapacityRequestDetails; + + /** Request to update the properties of the capacity request. */ + public com.oracle.bmc.capacitymanagement.model.PatchOccCapacityRequestDetails + getPatchOccCapacityRequestDetails() { + return patchOccCapacityRequestDetails; + } + /** The OCID of the capacity request. */ + private String occCapacityRequestId; + + /** The OCID of the capacity request. */ + public String getOccCapacityRequestId() { + return occCapacityRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST 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. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. 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.capacitymanagement.model.PatchOccCapacityRequestDetails getBody$() { + return patchOccCapacityRequestDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + PatchOccCapacityRequestRequest, + com.oracle.bmc.capacitymanagement.model.PatchOccCapacityRequestDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Request to update the properties of the capacity request. */ + private com.oracle.bmc.capacitymanagement.model.PatchOccCapacityRequestDetails + patchOccCapacityRequestDetails = null; + + /** + * Request to update the properties of the capacity request. + * + * @param patchOccCapacityRequestDetails the value to set + * @return this builder instance + */ + public Builder patchOccCapacityRequestDetails( + com.oracle.bmc.capacitymanagement.model.PatchOccCapacityRequestDetails + patchOccCapacityRequestDetails) { + this.patchOccCapacityRequestDetails = patchOccCapacityRequestDetails; + return this; + } + + /** The OCID of the capacity request. */ + private String occCapacityRequestId = null; + + /** + * The OCID of the capacity request. + * + * @param occCapacityRequestId the value to set + * @return this builder instance + */ + public Builder occCapacityRequestId(String occCapacityRequestId) { + this.occCapacityRequestId = occCapacityRequestId; + 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. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. 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(PatchOccCapacityRequestRequest o) { + patchOccCapacityRequestDetails(o.getPatchOccCapacityRequestDetails()); + occCapacityRequestId(o.getOccCapacityRequestId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of PatchOccCapacityRequestRequest 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 PatchOccCapacityRequestRequest + */ + public PatchOccCapacityRequestRequest build() { + PatchOccCapacityRequestRequest 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.capacitymanagement.model.PatchOccCapacityRequestDetails body) { + patchOccCapacityRequestDetails(body); + return this; + } + + /** + * Build the instance of PatchOccCapacityRequestRequest 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 PatchOccCapacityRequestRequest + */ + public PatchOccCapacityRequestRequest buildWithoutInvocationCallback() { + PatchOccCapacityRequestRequest request = new PatchOccCapacityRequestRequest(); + request.patchOccCapacityRequestDetails = patchOccCapacityRequestDetails; + request.occCapacityRequestId = occCapacityRequestId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new PatchOccCapacityRequestRequest(patchOccCapacityRequestDetails, + // occCapacityRequestId, 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() + .patchOccCapacityRequestDetails(patchOccCapacityRequestDetails) + .occCapacityRequestId(occCapacityRequestId) + .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(",patchOccCapacityRequestDetails=") + .append(String.valueOf(this.patchOccCapacityRequestDetails)); + sb.append(",occCapacityRequestId=").append(String.valueOf(this.occCapacityRequestId)); + 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 PatchOccCapacityRequestRequest)) { + return false; + } + + PatchOccCapacityRequestRequest other = (PatchOccCapacityRequestRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.patchOccCapacityRequestDetails, other.patchOccCapacityRequestDetails) + && java.util.Objects.equals(this.occCapacityRequestId, other.occCapacityRequestId) + && 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.patchOccCapacityRequestDetails == null + ? 43 + : this.patchOccCapacityRequestDetails.hashCode()); + result = + (result * PRIME) + + (this.occCapacityRequestId == null + ? 43 + : this.occCapacityRequestId.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-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/PublishOccAvailabilityCatalogRequest.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/PublishOccAvailabilityCatalogRequest.java new file mode 100644 index 00000000000..860340973dd --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/PublishOccAvailabilityCatalogRequest.java @@ -0,0 +1,308 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.requests; + +import com.oracle.bmc.capacitymanagement.model.*; +/** + * Example: Click here to see how to use + * PublishOccAvailabilityCatalogRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class PublishOccAvailabilityCatalogRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the availability catalog. */ + private String occAvailabilityCatalogId; + + /** The OCID of the availability catalog. */ + public String getOccAvailabilityCatalogId() { + return occAvailabilityCatalogId; + } + /** + * A token that uniquely identifies a request so it 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. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + PublishOccAvailabilityCatalogRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the availability catalog. */ + private String occAvailabilityCatalogId = null; + + /** + * The OCID of the availability catalog. + * + * @param occAvailabilityCatalogId the value to set + * @return this builder instance + */ + public Builder occAvailabilityCatalogId(String occAvailabilityCatalogId) { + this.occAvailabilityCatalogId = occAvailabilityCatalogId; + 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. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(PublishOccAvailabilityCatalogRequest o) { + occAvailabilityCatalogId(o.getOccAvailabilityCatalogId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of PublishOccAvailabilityCatalogRequest 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 PublishOccAvailabilityCatalogRequest + */ + public PublishOccAvailabilityCatalogRequest build() { + PublishOccAvailabilityCatalogRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of PublishOccAvailabilityCatalogRequest 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 PublishOccAvailabilityCatalogRequest + */ + public PublishOccAvailabilityCatalogRequest buildWithoutInvocationCallback() { + PublishOccAvailabilityCatalogRequest request = + new PublishOccAvailabilityCatalogRequest(); + request.occAvailabilityCatalogId = occAvailabilityCatalogId; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new PublishOccAvailabilityCatalogRequest(occAvailabilityCatalogId, opcRetryToken, + // opcRequestId, ifMatch); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .occAvailabilityCatalogId(occAvailabilityCatalogId) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",occAvailabilityCatalogId=") + .append(String.valueOf(this.occAvailabilityCatalogId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PublishOccAvailabilityCatalogRequest)) { + return false; + } + + PublishOccAvailabilityCatalogRequest other = (PublishOccAvailabilityCatalogRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.occAvailabilityCatalogId, other.occAvailabilityCatalogId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.occAvailabilityCatalogId == null + ? 43 + : this.occAvailabilityCatalogId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/UpdateInternalOccCapacityRequestRequest.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/UpdateInternalOccCapacityRequestRequest.java new file mode 100644 index 00000000000..fc2ddb6c018 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/UpdateInternalOccCapacityRequestRequest.java @@ -0,0 +1,326 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.requests; + +import com.oracle.bmc.capacitymanagement.model.*; +/** + * Example: Click here to see how to use + * UpdateInternalOccCapacityRequestRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class UpdateInternalOccCapacityRequestRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.capacitymanagement.model.UpdateInternalOccCapacityRequestDetails> { + + /** Request to update the properties of the capacity request. */ + private com.oracle.bmc.capacitymanagement.model.UpdateInternalOccCapacityRequestDetails + updateInternalOccCapacityRequestDetails; + + /** Request to update the properties of the capacity request. */ + public com.oracle.bmc.capacitymanagement.model.UpdateInternalOccCapacityRequestDetails + getUpdateInternalOccCapacityRequestDetails() { + return updateInternalOccCapacityRequestDetails; + } + /** The OCID of the capacity request. */ + private String occCapacityRequestId; + + /** The OCID of the capacity request. */ + public String getOccCapacityRequestId() { + return occCapacityRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST 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. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. 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.capacitymanagement.model.UpdateInternalOccCapacityRequestDetails + getBody$() { + return updateInternalOccCapacityRequestDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateInternalOccCapacityRequestRequest, + com.oracle.bmc.capacitymanagement.model + .UpdateInternalOccCapacityRequestDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Request to update the properties of the capacity request. */ + private com.oracle.bmc.capacitymanagement.model.UpdateInternalOccCapacityRequestDetails + updateInternalOccCapacityRequestDetails = null; + + /** + * Request to update the properties of the capacity request. + * + * @param updateInternalOccCapacityRequestDetails the value to set + * @return this builder instance + */ + public Builder updateInternalOccCapacityRequestDetails( + com.oracle.bmc.capacitymanagement.model.UpdateInternalOccCapacityRequestDetails + updateInternalOccCapacityRequestDetails) { + this.updateInternalOccCapacityRequestDetails = updateInternalOccCapacityRequestDetails; + return this; + } + + /** The OCID of the capacity request. */ + private String occCapacityRequestId = null; + + /** + * The OCID of the capacity request. + * + * @param occCapacityRequestId the value to set + * @return this builder instance + */ + public Builder occCapacityRequestId(String occCapacityRequestId) { + this.occCapacityRequestId = occCapacityRequestId; + 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. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. 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(UpdateInternalOccCapacityRequestRequest o) { + updateInternalOccCapacityRequestDetails(o.getUpdateInternalOccCapacityRequestDetails()); + occCapacityRequestId(o.getOccCapacityRequestId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateInternalOccCapacityRequestRequest 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 UpdateInternalOccCapacityRequestRequest + */ + public UpdateInternalOccCapacityRequestRequest build() { + UpdateInternalOccCapacityRequestRequest 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.capacitymanagement.model.UpdateInternalOccCapacityRequestDetails + body) { + updateInternalOccCapacityRequestDetails(body); + return this; + } + + /** + * Build the instance of UpdateInternalOccCapacityRequestRequest 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 UpdateInternalOccCapacityRequestRequest + */ + public UpdateInternalOccCapacityRequestRequest buildWithoutInvocationCallback() { + UpdateInternalOccCapacityRequestRequest request = + new UpdateInternalOccCapacityRequestRequest(); + request.updateInternalOccCapacityRequestDetails = + updateInternalOccCapacityRequestDetails; + request.occCapacityRequestId = occCapacityRequestId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateInternalOccCapacityRequestRequest(updateInternalOccCapacityRequestDetails, + // occCapacityRequestId, 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() + .updateInternalOccCapacityRequestDetails(updateInternalOccCapacityRequestDetails) + .occCapacityRequestId(occCapacityRequestId) + .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(",updateInternalOccCapacityRequestDetails=") + .append(String.valueOf(this.updateInternalOccCapacityRequestDetails)); + sb.append(",occCapacityRequestId=").append(String.valueOf(this.occCapacityRequestId)); + 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 UpdateInternalOccCapacityRequestRequest)) { + return false; + } + + UpdateInternalOccCapacityRequestRequest other = (UpdateInternalOccCapacityRequestRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.updateInternalOccCapacityRequestDetails, + other.updateInternalOccCapacityRequestDetails) + && java.util.Objects.equals(this.occCapacityRequestId, other.occCapacityRequestId) + && 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.updateInternalOccCapacityRequestDetails == null + ? 43 + : this.updateInternalOccCapacityRequestDetails.hashCode()); + result = + (result * PRIME) + + (this.occCapacityRequestId == null + ? 43 + : this.occCapacityRequestId.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-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/UpdateOccAvailabilityCatalogRequest.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/UpdateOccAvailabilityCatalogRequest.java new file mode 100644 index 00000000000..4758f7580af --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/UpdateOccAvailabilityCatalogRequest.java @@ -0,0 +1,321 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.requests; + +import com.oracle.bmc.capacitymanagement.model.*; +/** + * Example: Click here to see how to use + * UpdateOccAvailabilityCatalogRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class UpdateOccAvailabilityCatalogRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.capacitymanagement.model.UpdateOccAvailabilityCatalogDetails> { + + /** Request to update the properties of the availability catalog. */ + private com.oracle.bmc.capacitymanagement.model.UpdateOccAvailabilityCatalogDetails + updateOccAvailabilityCatalogDetails; + + /** Request to update the properties of the availability catalog. */ + public com.oracle.bmc.capacitymanagement.model.UpdateOccAvailabilityCatalogDetails + getUpdateOccAvailabilityCatalogDetails() { + return updateOccAvailabilityCatalogDetails; + } + /** The OCID of the availability catalog. */ + private String occAvailabilityCatalogId; + + /** The OCID of the availability catalog. */ + public String getOccAvailabilityCatalogId() { + return occAvailabilityCatalogId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST 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. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. 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.capacitymanagement.model.UpdateOccAvailabilityCatalogDetails getBody$() { + return updateOccAvailabilityCatalogDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateOccAvailabilityCatalogRequest, + com.oracle.bmc.capacitymanagement.model.UpdateOccAvailabilityCatalogDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Request to update the properties of the availability catalog. */ + private com.oracle.bmc.capacitymanagement.model.UpdateOccAvailabilityCatalogDetails + updateOccAvailabilityCatalogDetails = null; + + /** + * Request to update the properties of the availability catalog. + * + * @param updateOccAvailabilityCatalogDetails the value to set + * @return this builder instance + */ + public Builder updateOccAvailabilityCatalogDetails( + com.oracle.bmc.capacitymanagement.model.UpdateOccAvailabilityCatalogDetails + updateOccAvailabilityCatalogDetails) { + this.updateOccAvailabilityCatalogDetails = updateOccAvailabilityCatalogDetails; + return this; + } + + /** The OCID of the availability catalog. */ + private String occAvailabilityCatalogId = null; + + /** + * The OCID of the availability catalog. + * + * @param occAvailabilityCatalogId the value to set + * @return this builder instance + */ + public Builder occAvailabilityCatalogId(String occAvailabilityCatalogId) { + this.occAvailabilityCatalogId = occAvailabilityCatalogId; + 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. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. 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(UpdateOccAvailabilityCatalogRequest o) { + updateOccAvailabilityCatalogDetails(o.getUpdateOccAvailabilityCatalogDetails()); + occAvailabilityCatalogId(o.getOccAvailabilityCatalogId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateOccAvailabilityCatalogRequest 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 UpdateOccAvailabilityCatalogRequest + */ + public UpdateOccAvailabilityCatalogRequest build() { + UpdateOccAvailabilityCatalogRequest 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.capacitymanagement.model.UpdateOccAvailabilityCatalogDetails body) { + updateOccAvailabilityCatalogDetails(body); + return this; + } + + /** + * Build the instance of UpdateOccAvailabilityCatalogRequest 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 UpdateOccAvailabilityCatalogRequest + */ + public UpdateOccAvailabilityCatalogRequest buildWithoutInvocationCallback() { + UpdateOccAvailabilityCatalogRequest request = new UpdateOccAvailabilityCatalogRequest(); + request.updateOccAvailabilityCatalogDetails = updateOccAvailabilityCatalogDetails; + request.occAvailabilityCatalogId = occAvailabilityCatalogId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateOccAvailabilityCatalogRequest(updateOccAvailabilityCatalogDetails, + // occAvailabilityCatalogId, 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() + .updateOccAvailabilityCatalogDetails(updateOccAvailabilityCatalogDetails) + .occAvailabilityCatalogId(occAvailabilityCatalogId) + .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(",updateOccAvailabilityCatalogDetails=") + .append(String.valueOf(this.updateOccAvailabilityCatalogDetails)); + sb.append(",occAvailabilityCatalogId=") + .append(String.valueOf(this.occAvailabilityCatalogId)); + 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 UpdateOccAvailabilityCatalogRequest)) { + return false; + } + + UpdateOccAvailabilityCatalogRequest other = (UpdateOccAvailabilityCatalogRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.updateOccAvailabilityCatalogDetails, + other.updateOccAvailabilityCatalogDetails) + && java.util.Objects.equals( + this.occAvailabilityCatalogId, other.occAvailabilityCatalogId) + && 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.updateOccAvailabilityCatalogDetails == null + ? 43 + : this.updateOccAvailabilityCatalogDetails.hashCode()); + result = + (result * PRIME) + + (this.occAvailabilityCatalogId == null + ? 43 + : this.occAvailabilityCatalogId.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-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/UpdateOccCapacityRequestRequest.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/UpdateOccCapacityRequestRequest.java new file mode 100644 index 00000000000..2906909d5d1 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/requests/UpdateOccCapacityRequestRequest.java @@ -0,0 +1,318 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.requests; + +import com.oracle.bmc.capacitymanagement.model.*; +/** + * Example: Click here to see how to use + * UpdateOccCapacityRequestRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class UpdateOccCapacityRequestRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.capacitymanagement.model.UpdateOccCapacityRequestDetails> { + + /** Request to update the properties of the capacity request. */ + private com.oracle.bmc.capacitymanagement.model.UpdateOccCapacityRequestDetails + updateOccCapacityRequestDetails; + + /** Request to update the properties of the capacity request. */ + public com.oracle.bmc.capacitymanagement.model.UpdateOccCapacityRequestDetails + getUpdateOccCapacityRequestDetails() { + return updateOccCapacityRequestDetails; + } + /** The OCID of the capacity request. */ + private String occCapacityRequestId; + + /** The OCID of the capacity request. */ + public String getOccCapacityRequestId() { + return occCapacityRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST 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. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. 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.capacitymanagement.model.UpdateOccCapacityRequestDetails getBody$() { + return updateOccCapacityRequestDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateOccCapacityRequestRequest, + com.oracle.bmc.capacitymanagement.model.UpdateOccCapacityRequestDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Request to update the properties of the capacity request. */ + private com.oracle.bmc.capacitymanagement.model.UpdateOccCapacityRequestDetails + updateOccCapacityRequestDetails = null; + + /** + * Request to update the properties of the capacity request. + * + * @param updateOccCapacityRequestDetails the value to set + * @return this builder instance + */ + public Builder updateOccCapacityRequestDetails( + com.oracle.bmc.capacitymanagement.model.UpdateOccCapacityRequestDetails + updateOccCapacityRequestDetails) { + this.updateOccCapacityRequestDetails = updateOccCapacityRequestDetails; + return this; + } + + /** The OCID of the capacity request. */ + private String occCapacityRequestId = null; + + /** + * The OCID of the capacity request. + * + * @param occCapacityRequestId the value to set + * @return this builder instance + */ + public Builder occCapacityRequestId(String occCapacityRequestId) { + this.occCapacityRequestId = occCapacityRequestId; + 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. The only valid characters for request IDs are letters, + * numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. 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(UpdateOccCapacityRequestRequest o) { + updateOccCapacityRequestDetails(o.getUpdateOccCapacityRequestDetails()); + occCapacityRequestId(o.getOccCapacityRequestId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateOccCapacityRequestRequest 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 UpdateOccCapacityRequestRequest + */ + public UpdateOccCapacityRequestRequest build() { + UpdateOccCapacityRequestRequest 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.capacitymanagement.model.UpdateOccCapacityRequestDetails body) { + updateOccCapacityRequestDetails(body); + return this; + } + + /** + * Build the instance of UpdateOccCapacityRequestRequest 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 UpdateOccCapacityRequestRequest + */ + public UpdateOccCapacityRequestRequest buildWithoutInvocationCallback() { + UpdateOccCapacityRequestRequest request = new UpdateOccCapacityRequestRequest(); + request.updateOccCapacityRequestDetails = updateOccCapacityRequestDetails; + request.occCapacityRequestId = occCapacityRequestId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateOccCapacityRequestRequest(updateOccCapacityRequestDetails, + // occCapacityRequestId, 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() + .updateOccCapacityRequestDetails(updateOccCapacityRequestDetails) + .occCapacityRequestId(occCapacityRequestId) + .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(",updateOccCapacityRequestDetails=") + .append(String.valueOf(this.updateOccCapacityRequestDetails)); + sb.append(",occCapacityRequestId=").append(String.valueOf(this.occCapacityRequestId)); + 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 UpdateOccCapacityRequestRequest)) { + return false; + } + + UpdateOccCapacityRequestRequest other = (UpdateOccCapacityRequestRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.updateOccCapacityRequestDetails, other.updateOccCapacityRequestDetails) + && java.util.Objects.equals(this.occCapacityRequestId, other.occCapacityRequestId) + && 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.updateOccCapacityRequestDetails == null + ? 43 + : this.updateOccCapacityRequestDetails.hashCode()); + result = + (result * PRIME) + + (this.occCapacityRequestId == null + ? 43 + : this.occCapacityRequestId.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-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/CreateOccAvailabilityCatalogResponse.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/CreateOccAvailabilityCatalogResponse.java new file mode 100644 index 00000000000..689d4c6dd76 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/CreateOccAvailabilityCatalogResponse.java @@ -0,0 +1,268 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.responses; + +import com.oracle.bmc.capacitymanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class CreateOccAvailabilityCatalogResponse 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; + } + + /** + * 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 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. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + */ + private Integer retryAfter; + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + * + * @return the value + */ + public Integer getRetryAfter() { + return retryAfter; + } + + /** The returned {@code OccAvailabilityCatalog} instance. */ + private com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog occAvailabilityCatalog; + + /** + * The returned {@code OccAvailabilityCatalog} instance. + * + * @return the value + */ + public com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog + getOccAvailabilityCatalog() { + return occAvailabilityCatalog; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "retryAfter", + "occAvailabilityCatalog" + }) + private CreateOccAvailabilityCatalogResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + Integer retryAfter, + com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog occAvailabilityCatalog) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.retryAfter = retryAfter; + this.occAvailabilityCatalog = occAvailabilityCatalog; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + CreateOccAvailabilityCatalogResponse> { + 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; + } + + /** + * 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 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. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + */ + private Integer retryAfter; + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + * + * @param retryAfter the value to set + * @return this builder + */ + public Builder retryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + + /** The returned {@code OccAvailabilityCatalog} instance. */ + private com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog + occAvailabilityCatalog; + + /** + * The returned {@code OccAvailabilityCatalog} instance. + * + * @param occAvailabilityCatalog the value to set + * @return this builder + */ + public Builder occAvailabilityCatalog( + com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog + occAvailabilityCatalog) { + this.occAvailabilityCatalog = occAvailabilityCatalog; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateOccAvailabilityCatalogResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + retryAfter(o.getRetryAfter()); + occAvailabilityCatalog(o.getOccAvailabilityCatalog()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateOccAvailabilityCatalogResponse build() { + return new CreateOccAvailabilityCatalogResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + retryAfter, + occAvailabilityCatalog); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",retryAfter=").append(String.valueOf(retryAfter)); + sb.append(",occAvailabilityCatalog=").append(String.valueOf(occAvailabilityCatalog)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOccAvailabilityCatalogResponse)) { + return false; + } + + CreateOccAvailabilityCatalogResponse other = (CreateOccAvailabilityCatalogResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.retryAfter, other.retryAfter) + && java.util.Objects.equals( + this.occAvailabilityCatalog, other.occAvailabilityCatalog); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.retryAfter == null ? 43 : this.retryAfter.hashCode()); + result = + (result * PRIME) + + (this.occAvailabilityCatalog == null + ? 43 + : this.occAvailabilityCatalog.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/CreateOccCapacityRequestResponse.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/CreateOccCapacityRequestResponse.java new file mode 100644 index 00000000000..3fc8492f89b --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/CreateOccCapacityRequestResponse.java @@ -0,0 +1,264 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.responses; + +import com.oracle.bmc.capacitymanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class CreateOccCapacityRequestResponse 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; + } + + /** + * 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 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. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + */ + private Integer retryAfter; + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + * + * @return the value + */ + public Integer getRetryAfter() { + return retryAfter; + } + + /** The returned {@code OccCapacityRequest} instance. */ + private com.oracle.bmc.capacitymanagement.model.OccCapacityRequest occCapacityRequest; + + /** + * The returned {@code OccCapacityRequest} instance. + * + * @return the value + */ + public com.oracle.bmc.capacitymanagement.model.OccCapacityRequest getOccCapacityRequest() { + return occCapacityRequest; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "retryAfter", + "occCapacityRequest" + }) + private CreateOccCapacityRequestResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + Integer retryAfter, + com.oracle.bmc.capacitymanagement.model.OccCapacityRequest occCapacityRequest) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.retryAfter = retryAfter; + this.occCapacityRequest = occCapacityRequest; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + CreateOccCapacityRequestResponse> { + 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; + } + + /** + * 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 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. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + */ + private Integer retryAfter; + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + * + * @param retryAfter the value to set + * @return this builder + */ + public Builder retryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + + /** The returned {@code OccCapacityRequest} instance. */ + private com.oracle.bmc.capacitymanagement.model.OccCapacityRequest occCapacityRequest; + + /** + * The returned {@code OccCapacityRequest} instance. + * + * @param occCapacityRequest the value to set + * @return this builder + */ + public Builder occCapacityRequest( + com.oracle.bmc.capacitymanagement.model.OccCapacityRequest occCapacityRequest) { + this.occCapacityRequest = occCapacityRequest; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateOccCapacityRequestResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + retryAfter(o.getRetryAfter()); + occCapacityRequest(o.getOccCapacityRequest()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateOccCapacityRequestResponse build() { + return new CreateOccCapacityRequestResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + retryAfter, + occCapacityRequest); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",retryAfter=").append(String.valueOf(retryAfter)); + sb.append(",occCapacityRequest=").append(String.valueOf(occCapacityRequest)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOccCapacityRequestResponse)) { + return false; + } + + CreateOccCapacityRequestResponse other = (CreateOccCapacityRequestResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.retryAfter, other.retryAfter) + && java.util.Objects.equals(this.occCapacityRequest, other.occCapacityRequest); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.retryAfter == null ? 43 : this.retryAfter.hashCode()); + result = + (result * PRIME) + + (this.occCapacityRequest == null + ? 43 + : this.occCapacityRequest.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/DeleteOccAvailabilityCatalogResponse.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/DeleteOccAvailabilityCatalogResponse.java new file mode 100644 index 00000000000..1ca506e686b --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/DeleteOccAvailabilityCatalogResponse.java @@ -0,0 +1,184 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.responses; + +import com.oracle.bmc.capacitymanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class DeleteOccAvailabilityCatalogResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + */ + private Integer retryAfter; + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + * + * @return the value + */ + public Integer getRetryAfter() { + return retryAfter; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "retryAfter" + }) + private DeleteOccAvailabilityCatalogResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + Integer retryAfter) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.retryAfter = retryAfter; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + DeleteOccAvailabilityCatalogResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + */ + private Integer retryAfter; + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + * + * @param retryAfter the value to set + * @return this builder + */ + public Builder retryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteOccAvailabilityCatalogResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + retryAfter(o.getRetryAfter()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DeleteOccAvailabilityCatalogResponse build() { + return new DeleteOccAvailabilityCatalogResponse( + __httpStatusCode__, headers, opcRequestId, retryAfter); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",retryAfter=").append(String.valueOf(retryAfter)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteOccAvailabilityCatalogResponse)) { + return false; + } + + DeleteOccAvailabilityCatalogResponse other = (DeleteOccAvailabilityCatalogResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.retryAfter, other.retryAfter); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.retryAfter == null ? 43 : this.retryAfter.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/DeleteOccCapacityRequestResponse.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/DeleteOccCapacityRequestResponse.java new file mode 100644 index 00000000000..f503047d132 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/DeleteOccCapacityRequestResponse.java @@ -0,0 +1,184 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.responses; + +import com.oracle.bmc.capacitymanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class DeleteOccCapacityRequestResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + */ + private Integer retryAfter; + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + * + * @return the value + */ + public Integer getRetryAfter() { + return retryAfter; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "retryAfter" + }) + private DeleteOccCapacityRequestResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + Integer retryAfter) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.retryAfter = retryAfter; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + DeleteOccCapacityRequestResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + */ + private Integer retryAfter; + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + * + * @param retryAfter the value to set + * @return this builder + */ + public Builder retryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteOccCapacityRequestResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + retryAfter(o.getRetryAfter()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DeleteOccCapacityRequestResponse build() { + return new DeleteOccCapacityRequestResponse( + __httpStatusCode__, headers, opcRequestId, retryAfter); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",retryAfter=").append(String.valueOf(retryAfter)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteOccCapacityRequestResponse)) { + return false; + } + + DeleteOccCapacityRequestResponse other = (DeleteOccCapacityRequestResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.retryAfter, other.retryAfter); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.retryAfter == null ? 43 : this.retryAfter.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/GetOccAvailabilityCatalogContentResponse.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/GetOccAvailabilityCatalogContentResponse.java new file mode 100644 index 00000000000..23878a2dd72 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/GetOccAvailabilityCatalogContentResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.responses; + +import com.oracle.bmc.capacitymanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class GetOccAvailabilityCatalogContentResponse 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 GetOccAvailabilityCatalogContentResponse( + 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< + GetOccAvailabilityCatalogContentResponse> { + 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(GetOccAvailabilityCatalogContentResponse 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 GetOccAvailabilityCatalogContentResponse build() { + return new GetOccAvailabilityCatalogContentResponse( + __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 GetOccAvailabilityCatalogContentResponse)) { + return false; + } + + GetOccAvailabilityCatalogContentResponse other = + (GetOccAvailabilityCatalogContentResponse) 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-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/GetOccAvailabilityCatalogResponse.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/GetOccAvailabilityCatalogResponse.java new file mode 100644 index 00000000000..0536ba7ad4d --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/GetOccAvailabilityCatalogResponse.java @@ -0,0 +1,218 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.responses; + +import com.oracle.bmc.capacitymanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class GetOccAvailabilityCatalogResponse 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 OccAvailabilityCatalog} instance. */ + private com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog occAvailabilityCatalog; + + /** + * The returned {@code OccAvailabilityCatalog} instance. + * + * @return the value + */ + public com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog + getOccAvailabilityCatalog() { + return occAvailabilityCatalog; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "occAvailabilityCatalog" + }) + private GetOccAvailabilityCatalogResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog occAvailabilityCatalog) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.occAvailabilityCatalog = occAvailabilityCatalog; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetOccAvailabilityCatalogResponse> { + 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 OccAvailabilityCatalog} instance. */ + private com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog + occAvailabilityCatalog; + + /** + * The returned {@code OccAvailabilityCatalog} instance. + * + * @param occAvailabilityCatalog the value to set + * @return this builder + */ + public Builder occAvailabilityCatalog( + com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog + occAvailabilityCatalog) { + this.occAvailabilityCatalog = occAvailabilityCatalog; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetOccAvailabilityCatalogResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + occAvailabilityCatalog(o.getOccAvailabilityCatalog()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetOccAvailabilityCatalogResponse build() { + return new GetOccAvailabilityCatalogResponse( + __httpStatusCode__, headers, etag, opcRequestId, occAvailabilityCatalog); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",occAvailabilityCatalog=").append(String.valueOf(occAvailabilityCatalog)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetOccAvailabilityCatalogResponse)) { + return false; + } + + GetOccAvailabilityCatalogResponse other = (GetOccAvailabilityCatalogResponse) 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.occAvailabilityCatalog, other.occAvailabilityCatalog); + } + + @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.occAvailabilityCatalog == null + ? 43 + : this.occAvailabilityCatalog.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/GetOccCapacityRequestResponse.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/GetOccCapacityRequestResponse.java new file mode 100644 index 00000000000..3bb29c03222 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/GetOccCapacityRequestResponse.java @@ -0,0 +1,213 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.responses; + +import com.oracle.bmc.capacitymanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class GetOccCapacityRequestResponse 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 OccCapacityRequest} instance. */ + private com.oracle.bmc.capacitymanagement.model.OccCapacityRequest occCapacityRequest; + + /** + * The returned {@code OccCapacityRequest} instance. + * + * @return the value + */ + public com.oracle.bmc.capacitymanagement.model.OccCapacityRequest getOccCapacityRequest() { + return occCapacityRequest; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "occCapacityRequest" + }) + private GetOccCapacityRequestResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.capacitymanagement.model.OccCapacityRequest occCapacityRequest) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.occCapacityRequest = occCapacityRequest; + } + + 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 OccCapacityRequest} instance. */ + private com.oracle.bmc.capacitymanagement.model.OccCapacityRequest occCapacityRequest; + + /** + * The returned {@code OccCapacityRequest} instance. + * + * @param occCapacityRequest the value to set + * @return this builder + */ + public Builder occCapacityRequest( + com.oracle.bmc.capacitymanagement.model.OccCapacityRequest occCapacityRequest) { + this.occCapacityRequest = occCapacityRequest; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetOccCapacityRequestResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + occCapacityRequest(o.getOccCapacityRequest()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetOccCapacityRequestResponse build() { + return new GetOccCapacityRequestResponse( + __httpStatusCode__, headers, etag, opcRequestId, occCapacityRequest); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",occCapacityRequest=").append(String.valueOf(occCapacityRequest)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetOccCapacityRequestResponse)) { + return false; + } + + GetOccCapacityRequestResponse other = (GetOccCapacityRequestResponse) 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.occCapacityRequest, other.occCapacityRequest); + } + + @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.occCapacityRequest == null + ? 43 + : this.occCapacityRequest.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/GetOccCustomerGroupResponse.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/GetOccCustomerGroupResponse.java new file mode 100644 index 00000000000..e2be8ce256f --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/GetOccCustomerGroupResponse.java @@ -0,0 +1,211 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.responses; + +import com.oracle.bmc.capacitymanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class GetOccCustomerGroupResponse 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 OccCustomerGroup} instance. */ + private com.oracle.bmc.capacitymanagement.model.OccCustomerGroup occCustomerGroup; + + /** + * The returned {@code OccCustomerGroup} instance. + * + * @return the value + */ + public com.oracle.bmc.capacitymanagement.model.OccCustomerGroup getOccCustomerGroup() { + return occCustomerGroup; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "occCustomerGroup" + }) + private GetOccCustomerGroupResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.capacitymanagement.model.OccCustomerGroup occCustomerGroup) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.occCustomerGroup = occCustomerGroup; + } + + 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 OccCustomerGroup} instance. */ + private com.oracle.bmc.capacitymanagement.model.OccCustomerGroup occCustomerGroup; + + /** + * The returned {@code OccCustomerGroup} instance. + * + * @param occCustomerGroup the value to set + * @return this builder + */ + public Builder occCustomerGroup( + com.oracle.bmc.capacitymanagement.model.OccCustomerGroup occCustomerGroup) { + this.occCustomerGroup = occCustomerGroup; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetOccCustomerGroupResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + occCustomerGroup(o.getOccCustomerGroup()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetOccCustomerGroupResponse build() { + return new GetOccCustomerGroupResponse( + __httpStatusCode__, headers, etag, opcRequestId, occCustomerGroup); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",occCustomerGroup=").append(String.valueOf(occCustomerGroup)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetOccCustomerGroupResponse)) { + return false; + } + + GetOccCustomerGroupResponse other = (GetOccCustomerGroupResponse) 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.occCustomerGroup, other.occCustomerGroup); + } + + @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.occCustomerGroup == null ? 43 : this.occCustomerGroup.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/ListOccAvailabilitiesResponse.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/ListOccAvailabilitiesResponse.java new file mode 100644 index 00000000000..028f68d515a --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/ListOccAvailabilitiesResponse.java @@ -0,0 +1,235 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.responses; + +import com.oracle.bmc.capacitymanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class ListOccAvailabilitiesResponse 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 OccAvailabilityCollection} instance. */ + private com.oracle.bmc.capacitymanagement.model.OccAvailabilityCollection + occAvailabilityCollection; + + /** + * The returned {@code OccAvailabilityCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.capacitymanagement.model.OccAvailabilityCollection + getOccAvailabilityCollection() { + return occAvailabilityCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "occAvailabilityCollection" + }) + private ListOccAvailabilitiesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.capacitymanagement.model.OccAvailabilityCollection + occAvailabilityCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.occAvailabilityCollection = occAvailabilityCollection; + } + + 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 OccAvailabilityCollection} instance. */ + private com.oracle.bmc.capacitymanagement.model.OccAvailabilityCollection + occAvailabilityCollection; + + /** + * The returned {@code OccAvailabilityCollection} instance. + * + * @param occAvailabilityCollection the value to set + * @return this builder + */ + public Builder occAvailabilityCollection( + com.oracle.bmc.capacitymanagement.model.OccAvailabilityCollection + occAvailabilityCollection) { + this.occAvailabilityCollection = occAvailabilityCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListOccAvailabilitiesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + occAvailabilityCollection(o.getOccAvailabilityCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListOccAvailabilitiesResponse build() { + return new ListOccAvailabilitiesResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + occAvailabilityCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",occAvailabilityCollection=").append(String.valueOf(occAvailabilityCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListOccAvailabilitiesResponse)) { + return false; + } + + ListOccAvailabilitiesResponse other = (ListOccAvailabilitiesResponse) 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.occAvailabilityCollection, other.occAvailabilityCollection); + } + + @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.occAvailabilityCollection == null + ? 43 + : this.occAvailabilityCollection.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/ListOccAvailabilityCatalogsInternalResponse.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/ListOccAvailabilityCatalogsInternalResponse.java new file mode 100644 index 00000000000..568db2c0d97 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/ListOccAvailabilityCatalogsInternalResponse.java @@ -0,0 +1,240 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.responses; + +import com.oracle.bmc.capacitymanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class ListOccAvailabilityCatalogsInternalResponse + 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 OccAvailabilityCatalogCollection} instance. */ + private com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalogCollection + occAvailabilityCatalogCollection; + + /** + * The returned {@code OccAvailabilityCatalogCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalogCollection + getOccAvailabilityCatalogCollection() { + return occAvailabilityCatalogCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "occAvailabilityCatalogCollection" + }) + private ListOccAvailabilityCatalogsInternalResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalogCollection + occAvailabilityCatalogCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.occAvailabilityCatalogCollection = occAvailabilityCatalogCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListOccAvailabilityCatalogsInternalResponse> { + 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 OccAvailabilityCatalogCollection} instance. */ + private com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalogCollection + occAvailabilityCatalogCollection; + + /** + * The returned {@code OccAvailabilityCatalogCollection} instance. + * + * @param occAvailabilityCatalogCollection the value to set + * @return this builder + */ + public Builder occAvailabilityCatalogCollection( + com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalogCollection + occAvailabilityCatalogCollection) { + this.occAvailabilityCatalogCollection = occAvailabilityCatalogCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListOccAvailabilityCatalogsInternalResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + occAvailabilityCatalogCollection(o.getOccAvailabilityCatalogCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListOccAvailabilityCatalogsInternalResponse build() { + return new ListOccAvailabilityCatalogsInternalResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + occAvailabilityCatalogCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",occAvailabilityCatalogCollection=") + .append(String.valueOf(occAvailabilityCatalogCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListOccAvailabilityCatalogsInternalResponse)) { + return false; + } + + ListOccAvailabilityCatalogsInternalResponse other = + (ListOccAvailabilityCatalogsInternalResponse) 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.occAvailabilityCatalogCollection, + other.occAvailabilityCatalogCollection); + } + + @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.occAvailabilityCatalogCollection == null + ? 43 + : this.occAvailabilityCatalogCollection.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/ListOccAvailabilityCatalogsResponse.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/ListOccAvailabilityCatalogsResponse.java new file mode 100644 index 00000000000..45214806f07 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/ListOccAvailabilityCatalogsResponse.java @@ -0,0 +1,238 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.responses; + +import com.oracle.bmc.capacitymanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class ListOccAvailabilityCatalogsResponse 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 OccAvailabilityCatalogCollection} instance. */ + private com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalogCollection + occAvailabilityCatalogCollection; + + /** + * The returned {@code OccAvailabilityCatalogCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalogCollection + getOccAvailabilityCatalogCollection() { + return occAvailabilityCatalogCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "occAvailabilityCatalogCollection" + }) + private ListOccAvailabilityCatalogsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalogCollection + occAvailabilityCatalogCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.occAvailabilityCatalogCollection = occAvailabilityCatalogCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListOccAvailabilityCatalogsResponse> { + 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 OccAvailabilityCatalogCollection} instance. */ + private com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalogCollection + occAvailabilityCatalogCollection; + + /** + * The returned {@code OccAvailabilityCatalogCollection} instance. + * + * @param occAvailabilityCatalogCollection the value to set + * @return this builder + */ + public Builder occAvailabilityCatalogCollection( + com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalogCollection + occAvailabilityCatalogCollection) { + this.occAvailabilityCatalogCollection = occAvailabilityCatalogCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListOccAvailabilityCatalogsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + occAvailabilityCatalogCollection(o.getOccAvailabilityCatalogCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListOccAvailabilityCatalogsResponse build() { + return new ListOccAvailabilityCatalogsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + occAvailabilityCatalogCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",occAvailabilityCatalogCollection=") + .append(String.valueOf(occAvailabilityCatalogCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListOccAvailabilityCatalogsResponse)) { + return false; + } + + ListOccAvailabilityCatalogsResponse other = (ListOccAvailabilityCatalogsResponse) 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.occAvailabilityCatalogCollection, + other.occAvailabilityCatalogCollection); + } + + @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.occAvailabilityCatalogCollection == null + ? 43 + : this.occAvailabilityCatalogCollection.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/ListOccCapacityRequestsInternalResponse.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/ListOccCapacityRequestsInternalResponse.java new file mode 100644 index 00000000000..1ebfe9bc8dd --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/ListOccCapacityRequestsInternalResponse.java @@ -0,0 +1,237 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.responses; + +import com.oracle.bmc.capacitymanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class ListOccCapacityRequestsInternalResponse 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 OccCapacityRequestCollection} instance. */ + private com.oracle.bmc.capacitymanagement.model.OccCapacityRequestCollection + occCapacityRequestCollection; + + /** + * The returned {@code OccCapacityRequestCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.capacitymanagement.model.OccCapacityRequestCollection + getOccCapacityRequestCollection() { + return occCapacityRequestCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "occCapacityRequestCollection" + }) + private ListOccCapacityRequestsInternalResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.capacitymanagement.model.OccCapacityRequestCollection + occCapacityRequestCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.occCapacityRequestCollection = occCapacityRequestCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListOccCapacityRequestsInternalResponse> { + 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 OccCapacityRequestCollection} instance. */ + private com.oracle.bmc.capacitymanagement.model.OccCapacityRequestCollection + occCapacityRequestCollection; + + /** + * The returned {@code OccCapacityRequestCollection} instance. + * + * @param occCapacityRequestCollection the value to set + * @return this builder + */ + public Builder occCapacityRequestCollection( + com.oracle.bmc.capacitymanagement.model.OccCapacityRequestCollection + occCapacityRequestCollection) { + this.occCapacityRequestCollection = occCapacityRequestCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListOccCapacityRequestsInternalResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + occCapacityRequestCollection(o.getOccCapacityRequestCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListOccCapacityRequestsInternalResponse build() { + return new ListOccCapacityRequestsInternalResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + occCapacityRequestCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",occCapacityRequestCollection=") + .append(String.valueOf(occCapacityRequestCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListOccCapacityRequestsInternalResponse)) { + return false; + } + + ListOccCapacityRequestsInternalResponse other = (ListOccCapacityRequestsInternalResponse) 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.occCapacityRequestCollection, other.occCapacityRequestCollection); + } + + @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.occCapacityRequestCollection == null + ? 43 + : this.occCapacityRequestCollection.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/ListOccCapacityRequestsResponse.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/ListOccCapacityRequestsResponse.java new file mode 100644 index 00000000000..8449109ed21 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/ListOccCapacityRequestsResponse.java @@ -0,0 +1,237 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.responses; + +import com.oracle.bmc.capacitymanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class ListOccCapacityRequestsResponse 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 OccCapacityRequestCollection} instance. */ + private com.oracle.bmc.capacitymanagement.model.OccCapacityRequestCollection + occCapacityRequestCollection; + + /** + * The returned {@code OccCapacityRequestCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.capacitymanagement.model.OccCapacityRequestCollection + getOccCapacityRequestCollection() { + return occCapacityRequestCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "occCapacityRequestCollection" + }) + private ListOccCapacityRequestsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.capacitymanagement.model.OccCapacityRequestCollection + occCapacityRequestCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.occCapacityRequestCollection = occCapacityRequestCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListOccCapacityRequestsResponse> { + 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 OccCapacityRequestCollection} instance. */ + private com.oracle.bmc.capacitymanagement.model.OccCapacityRequestCollection + occCapacityRequestCollection; + + /** + * The returned {@code OccCapacityRequestCollection} instance. + * + * @param occCapacityRequestCollection the value to set + * @return this builder + */ + public Builder occCapacityRequestCollection( + com.oracle.bmc.capacitymanagement.model.OccCapacityRequestCollection + occCapacityRequestCollection) { + this.occCapacityRequestCollection = occCapacityRequestCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListOccCapacityRequestsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + occCapacityRequestCollection(o.getOccCapacityRequestCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListOccCapacityRequestsResponse build() { + return new ListOccCapacityRequestsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + occCapacityRequestCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",occCapacityRequestCollection=") + .append(String.valueOf(occCapacityRequestCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListOccCapacityRequestsResponse)) { + return false; + } + + ListOccCapacityRequestsResponse other = (ListOccCapacityRequestsResponse) 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.occCapacityRequestCollection, other.occCapacityRequestCollection); + } + + @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.occCapacityRequestCollection == null + ? 43 + : this.occCapacityRequestCollection.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/ListOccCustomerGroupsResponse.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/ListOccCustomerGroupsResponse.java new file mode 100644 index 00000000000..a5bf5a6f6de --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/ListOccCustomerGroupsResponse.java @@ -0,0 +1,236 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.responses; + +import com.oracle.bmc.capacitymanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class ListOccCustomerGroupsResponse 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 OccCustomerGroupCollection} instance. */ + private com.oracle.bmc.capacitymanagement.model.OccCustomerGroupCollection + occCustomerGroupCollection; + + /** + * The returned {@code OccCustomerGroupCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.capacitymanagement.model.OccCustomerGroupCollection + getOccCustomerGroupCollection() { + return occCustomerGroupCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "occCustomerGroupCollection" + }) + private ListOccCustomerGroupsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.capacitymanagement.model.OccCustomerGroupCollection + occCustomerGroupCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.occCustomerGroupCollection = occCustomerGroupCollection; + } + + 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 OccCustomerGroupCollection} instance. */ + private com.oracle.bmc.capacitymanagement.model.OccCustomerGroupCollection + occCustomerGroupCollection; + + /** + * The returned {@code OccCustomerGroupCollection} instance. + * + * @param occCustomerGroupCollection the value to set + * @return this builder + */ + public Builder occCustomerGroupCollection( + com.oracle.bmc.capacitymanagement.model.OccCustomerGroupCollection + occCustomerGroupCollection) { + this.occCustomerGroupCollection = occCustomerGroupCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListOccCustomerGroupsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + occCustomerGroupCollection(o.getOccCustomerGroupCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListOccCustomerGroupsResponse build() { + return new ListOccCustomerGroupsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + occCustomerGroupCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",occCustomerGroupCollection=") + .append(String.valueOf(occCustomerGroupCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListOccCustomerGroupsResponse)) { + return false; + } + + ListOccCustomerGroupsResponse other = (ListOccCustomerGroupsResponse) 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.occCustomerGroupCollection, other.occCustomerGroupCollection); + } + + @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.occCustomerGroupCollection == null + ? 43 + : this.occCustomerGroupCollection.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/PatchOccCapacityRequestResponse.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/PatchOccCapacityRequestResponse.java new file mode 100644 index 00000000000..a1a2c620565 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/PatchOccCapacityRequestResponse.java @@ -0,0 +1,214 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.responses; + +import com.oracle.bmc.capacitymanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class PatchOccCapacityRequestResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** The returned {@code OccCapacityRequest} instance. */ + private com.oracle.bmc.capacitymanagement.model.OccCapacityRequest occCapacityRequest; + + /** + * The returned {@code OccCapacityRequest} instance. + * + * @return the value + */ + public com.oracle.bmc.capacitymanagement.model.OccCapacityRequest getOccCapacityRequest() { + return occCapacityRequest; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "occCapacityRequest" + }) + private PatchOccCapacityRequestResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + com.oracle.bmc.capacitymanagement.model.OccCapacityRequest occCapacityRequest) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.occCapacityRequest = occCapacityRequest; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + PatchOccCapacityRequestResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** The returned {@code OccCapacityRequest} instance. */ + private com.oracle.bmc.capacitymanagement.model.OccCapacityRequest occCapacityRequest; + + /** + * The returned {@code OccCapacityRequest} instance. + * + * @param occCapacityRequest the value to set + * @return this builder + */ + public Builder occCapacityRequest( + com.oracle.bmc.capacitymanagement.model.OccCapacityRequest occCapacityRequest) { + this.occCapacityRequest = occCapacityRequest; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(PatchOccCapacityRequestResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + occCapacityRequest(o.getOccCapacityRequest()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public PatchOccCapacityRequestResponse build() { + return new PatchOccCapacityRequestResponse( + __httpStatusCode__, headers, opcRequestId, etag, occCapacityRequest); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",occCapacityRequest=").append(String.valueOf(occCapacityRequest)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PatchOccCapacityRequestResponse)) { + return false; + } + + PatchOccCapacityRequestResponse other = (PatchOccCapacityRequestResponse) 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.occCapacityRequest, other.occCapacityRequest); + } + + @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.occCapacityRequest == null + ? 43 + : this.occCapacityRequest.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/PublishOccAvailabilityCatalogResponse.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/PublishOccAvailabilityCatalogResponse.java new file mode 100644 index 00000000000..cf201d9b810 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/PublishOccAvailabilityCatalogResponse.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.responses; + +import com.oracle.bmc.capacitymanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class PublishOccAvailabilityCatalogResponse 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 PublishOccAvailabilityCatalogResponse( + 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< + PublishOccAvailabilityCatalogResponse> { + 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(PublishOccAvailabilityCatalogResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public PublishOccAvailabilityCatalogResponse build() { + return new PublishOccAvailabilityCatalogResponse( + __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 PublishOccAvailabilityCatalogResponse)) { + return false; + } + + PublishOccAvailabilityCatalogResponse other = (PublishOccAvailabilityCatalogResponse) 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-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/UpdateInternalOccCapacityRequestResponse.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/UpdateInternalOccCapacityRequestResponse.java new file mode 100644 index 00000000000..32b63000c68 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/UpdateInternalOccCapacityRequestResponse.java @@ -0,0 +1,261 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.responses; + +import com.oracle.bmc.capacitymanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class UpdateInternalOccCapacityRequestResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + */ + private Integer retryAfter; + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + * + * @return the value + */ + public Integer getRetryAfter() { + return retryAfter; + } + + /** The returned {@code OccCapacityRequest} instance. */ + private com.oracle.bmc.capacitymanagement.model.OccCapacityRequest occCapacityRequest; + + /** + * The returned {@code OccCapacityRequest} instance. + * + * @return the value + */ + public com.oracle.bmc.capacitymanagement.model.OccCapacityRequest getOccCapacityRequest() { + return occCapacityRequest; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "retryAfter", + "occCapacityRequest" + }) + private UpdateInternalOccCapacityRequestResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + Integer retryAfter, + com.oracle.bmc.capacitymanagement.model.OccCapacityRequest occCapacityRequest) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.retryAfter = retryAfter; + this.occCapacityRequest = occCapacityRequest; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + UpdateInternalOccCapacityRequestResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + */ + private Integer retryAfter; + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + * + * @param retryAfter the value to set + * @return this builder + */ + public Builder retryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + + /** The returned {@code OccCapacityRequest} instance. */ + private com.oracle.bmc.capacitymanagement.model.OccCapacityRequest occCapacityRequest; + + /** + * The returned {@code OccCapacityRequest} instance. + * + * @param occCapacityRequest the value to set + * @return this builder + */ + public Builder occCapacityRequest( + com.oracle.bmc.capacitymanagement.model.OccCapacityRequest occCapacityRequest) { + this.occCapacityRequest = occCapacityRequest; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateInternalOccCapacityRequestResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + retryAfter(o.getRetryAfter()); + occCapacityRequest(o.getOccCapacityRequest()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateInternalOccCapacityRequestResponse build() { + return new UpdateInternalOccCapacityRequestResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + retryAfter, + occCapacityRequest); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",retryAfter=").append(String.valueOf(retryAfter)); + sb.append(",occCapacityRequest=").append(String.valueOf(occCapacityRequest)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateInternalOccCapacityRequestResponse)) { + return false; + } + + UpdateInternalOccCapacityRequestResponse other = + (UpdateInternalOccCapacityRequestResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.retryAfter, other.retryAfter) + && java.util.Objects.equals(this.occCapacityRequest, other.occCapacityRequest); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.retryAfter == null ? 43 : this.retryAfter.hashCode()); + result = + (result * PRIME) + + (this.occCapacityRequest == null + ? 43 + : this.occCapacityRequest.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/UpdateOccAvailabilityCatalogResponse.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/UpdateOccAvailabilityCatalogResponse.java new file mode 100644 index 00000000000..759cfe1bc33 --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/UpdateOccAvailabilityCatalogResponse.java @@ -0,0 +1,264 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.responses; + +import com.oracle.bmc.capacitymanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class UpdateOccAvailabilityCatalogResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + */ + private Integer retryAfter; + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + * + * @return the value + */ + public Integer getRetryAfter() { + return retryAfter; + } + + /** The returned {@code OccAvailabilityCatalog} instance. */ + private com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog occAvailabilityCatalog; + + /** + * The returned {@code OccAvailabilityCatalog} instance. + * + * @return the value + */ + public com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog + getOccAvailabilityCatalog() { + return occAvailabilityCatalog; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "retryAfter", + "occAvailabilityCatalog" + }) + private UpdateOccAvailabilityCatalogResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + Integer retryAfter, + com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog occAvailabilityCatalog) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.retryAfter = retryAfter; + this.occAvailabilityCatalog = occAvailabilityCatalog; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + UpdateOccAvailabilityCatalogResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + */ + private Integer retryAfter; + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + * + * @param retryAfter the value to set + * @return this builder + */ + public Builder retryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + + /** The returned {@code OccAvailabilityCatalog} instance. */ + private com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog + occAvailabilityCatalog; + + /** + * The returned {@code OccAvailabilityCatalog} instance. + * + * @param occAvailabilityCatalog the value to set + * @return this builder + */ + public Builder occAvailabilityCatalog( + com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog + occAvailabilityCatalog) { + this.occAvailabilityCatalog = occAvailabilityCatalog; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateOccAvailabilityCatalogResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + retryAfter(o.getRetryAfter()); + occAvailabilityCatalog(o.getOccAvailabilityCatalog()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateOccAvailabilityCatalogResponse build() { + return new UpdateOccAvailabilityCatalogResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + retryAfter, + occAvailabilityCatalog); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",retryAfter=").append(String.valueOf(retryAfter)); + sb.append(",occAvailabilityCatalog=").append(String.valueOf(occAvailabilityCatalog)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateOccAvailabilityCatalogResponse)) { + return false; + } + + UpdateOccAvailabilityCatalogResponse other = (UpdateOccAvailabilityCatalogResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.retryAfter, other.retryAfter) + && java.util.Objects.equals( + this.occAvailabilityCatalog, other.occAvailabilityCatalog); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.retryAfter == null ? 43 : this.retryAfter.hashCode()); + result = + (result * PRIME) + + (this.occAvailabilityCatalog == null + ? 43 + : this.occAvailabilityCatalog.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/UpdateOccCapacityRequestResponse.java b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/UpdateOccCapacityRequestResponse.java new file mode 100644 index 00000000000..3ad634e3cae --- /dev/null +++ b/bmc-capacitymanagement/src/main/java/com/oracle/bmc/capacitymanagement/responses/UpdateOccCapacityRequestResponse.java @@ -0,0 +1,260 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.capacitymanagement.responses; + +import com.oracle.bmc.capacitymanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") +public class UpdateOccCapacityRequestResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + */ + private Integer retryAfter; + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + * + * @return the value + */ + public Integer getRetryAfter() { + return retryAfter; + } + + /** The returned {@code OccCapacityRequest} instance. */ + private com.oracle.bmc.capacitymanagement.model.OccCapacityRequest occCapacityRequest; + + /** + * The returned {@code OccCapacityRequest} instance. + * + * @return the value + */ + public com.oracle.bmc.capacitymanagement.model.OccCapacityRequest getOccCapacityRequest() { + return occCapacityRequest; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "retryAfter", + "occCapacityRequest" + }) + private UpdateOccCapacityRequestResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + Integer retryAfter, + com.oracle.bmc.capacitymanagement.model.OccCapacityRequest occCapacityRequest) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.retryAfter = retryAfter; + this.occCapacityRequest = occCapacityRequest; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + UpdateOccCapacityRequestResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + */ + private Integer retryAfter; + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + * + * @param retryAfter the value to set + * @return this builder + */ + public Builder retryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + + /** The returned {@code OccCapacityRequest} instance. */ + private com.oracle.bmc.capacitymanagement.model.OccCapacityRequest occCapacityRequest; + + /** + * The returned {@code OccCapacityRequest} instance. + * + * @param occCapacityRequest the value to set + * @return this builder + */ + public Builder occCapacityRequest( + com.oracle.bmc.capacitymanagement.model.OccCapacityRequest occCapacityRequest) { + this.occCapacityRequest = occCapacityRequest; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateOccCapacityRequestResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + retryAfter(o.getRetryAfter()); + occCapacityRequest(o.getOccCapacityRequest()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateOccCapacityRequestResponse build() { + return new UpdateOccCapacityRequestResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + retryAfter, + occCapacityRequest); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",retryAfter=").append(String.valueOf(retryAfter)); + sb.append(",occCapacityRequest=").append(String.valueOf(occCapacityRequest)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateOccCapacityRequestResponse)) { + return false; + } + + UpdateOccCapacityRequestResponse other = (UpdateOccCapacityRequestResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.retryAfter, other.retryAfter) + && java.util.Objects.equals(this.occCapacityRequest, other.occCapacityRequest); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.retryAfter == null ? 43 : this.retryAfter.hashCode()); + result = + (result * PRIME) + + (this.occCapacityRequest == null + ? 43 + : this.occCapacityRequest.hashCode()); + return result; + } +} diff --git a/bmc-capacitymanagement/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-capacitymanagement/reflect-config.json b/bmc-capacitymanagement/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-capacitymanagement/reflect-config.json new file mode 100644 index 00000000000..11c391c2a54 --- /dev/null +++ b/bmc-capacitymanagement/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-capacitymanagement/reflect-config.json @@ -0,0 +1,528 @@ +[ + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.CreateOccAvailabilityCatalogDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.CreateOccAvailabilityCatalogDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.CreateOccCapacityRequestDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.CreateOccCapacityRequestDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.CreateOccCapacityRequestDetails$RequestState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.MetadataDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.MetadataDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.MetadataDetails$FormatVersion", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.Namespace", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog$CatalogState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalog$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalogCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalogCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalogSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.OccAvailabilityCatalogSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.OccAvailabilityCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.OccAvailabilityCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.OccAvailabilitySummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.OccAvailabilitySummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.OccAvailabilitySummary$ResourceType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.OccAvailabilitySummary$WorkloadType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.OccCapacityRequest", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.OccCapacityRequest$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.OccCapacityRequest$RequestState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.OccCapacityRequest$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.OccCapacityRequestBaseDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.OccCapacityRequestBaseDetails$ResourceType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.OccCapacityRequestCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.OccCapacityRequestCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.OccCapacityRequestComputeDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.OccCapacityRequestComputeDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.OccCapacityRequestSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.OccCapacityRequestSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.OccCustomer", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.OccCustomer$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.OccCustomer$Status", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.OccCustomerGroup", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.OccCustomerGroup$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.OccCustomerGroup$Status", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.OccCustomerGroup$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.OccCustomerGroupCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.OccCustomerGroupCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.OccCustomerGroupSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.OccCustomerGroupSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.PatchInsertInstruction", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.PatchInsertInstruction$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.PatchInsertInstruction$Position", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.PatchInsertMultipleInstruction", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.PatchInsertMultipleInstruction$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.PatchInsertMultipleInstruction$Position", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.PatchInstruction", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.PatchInstruction$Operation", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.PatchMergeInstruction", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.PatchMergeInstruction$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.PatchMoveInstruction", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.PatchMoveInstruction$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.PatchMoveInstruction$Position", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.PatchOccCapacityRequestDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.PatchOccCapacityRequestDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.PatchProhibitInstruction", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.PatchProhibitInstruction$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.PatchRemoveInstruction", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.PatchRemoveInstruction$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.PatchReplaceInstruction", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.PatchReplaceInstruction$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.PatchRequireInstruction", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.PatchRequireInstruction$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.SortOrder", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.UpdateInternalOccCapacityRequestDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.UpdateInternalOccCapacityRequestDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.UpdateInternalOccCapacityRequestDetails$RequestState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.UpdateOccAvailabilityCatalogDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.UpdateOccAvailabilityCatalogDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.UpdateOccCapacityRequestDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.UpdateOccCapacityRequestDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.capacitymanagement.model.UpdateOccCapacityRequestDetails$RequestState", + "allDeclaredFields": true, + "allDeclaredMethods": true + } +] \ No newline at end of file diff --git a/bmc-capacitymanagement/src/main/resources/com/oracle/bmc/capacitymanagement/client.properties b/bmc-capacitymanagement/src/main/resources/com/oracle/bmc/capacitymanagement/client.properties new file mode 100644 index 00000000000..867508e8ed7 --- /dev/null +++ b/bmc-capacitymanagement/src/main/resources/com/oracle/bmc/capacitymanagement/client.properties @@ -0,0 +1,9 @@ +# +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +# + +java.client.codegen.version = 2.49 +java.minimum.client.codegen.version.from.client = 2.26 + +# @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") \ No newline at end of file diff --git a/bmc-certificates/pom.xml b/bmc-certificates/pom.xml index a0cc95ee64f..601733b70de 100644 --- a/bmc-certificates/pom.xml +++ b/bmc-certificates/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-certificates @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-certificatesmanagement/pom.xml b/bmc-certificatesmanagement/pom.xml index 0d4b47cfd68..9b949927418 100644 --- a/bmc-certificatesmanagement/pom.xml +++ b/bmc-certificatesmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-certificatesmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-cims/pom.xml b/bmc-cims/pom.xml index f5d5fb46dfd..b277a945f4b 100644 --- a/bmc-cims/pom.xml +++ b/bmc-cims/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-cims @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-circuitbreaker/pom.xml b/bmc-circuitbreaker/pom.xml index 86669b86b78..a94a9861081 100644 --- a/bmc-circuitbreaker/pom.xml +++ b/bmc-circuitbreaker/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-circuitbreaker @@ -15,7 +15,6 @@ https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm - diff --git a/bmc-cloudbridge/pom.xml b/bmc-cloudbridge/pom.xml index 87758b2085e..04249d1d10f 100644 --- a/bmc-cloudbridge/pom.xml +++ b/bmc-cloudbridge/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-cloudbridge @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-cloudguard/pom.xml b/bmc-cloudguard/pom.xml index 8cab2dd6af9..95b167f4684 100644 --- a/bmc-cloudguard/pom.xml +++ b/bmc-cloudguard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-cloudguard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-cloudmigrations/pom.xml b/bmc-cloudmigrations/pom.xml index 94cfb64e627..ab87a41616e 100644 --- a/bmc-cloudmigrations/pom.xml +++ b/bmc-cloudmigrations/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-cloudmigrations @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.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 ad1c9b4d6be..802d9bd518a 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.32.1 + 3.33.0 ../pom.xml @@ -68,7 +68,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.32.1 + 3.33.0 @@ -77,7 +77,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.32.1 + 3.33.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 d849deddb1b..9ac43e7db70 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.32.1 + 3.33.0 ../pom.xml @@ -70,7 +70,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.32.1 + 3.33.0 @@ -79,7 +79,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.32.1 + 3.33.0 jakarta.ws.rs diff --git a/bmc-common-httpclient-choices/pom.xml b/bmc-common-httpclient-choices/pom.xml index 28d7a068571..da11d7f323a 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.32.1 + 3.33.0 ../pom.xml diff --git a/bmc-common-httpclient/pom.xml b/bmc-common-httpclient/pom.xml index 593b5a436ff..4a8873fd1d2 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.32.1 + 3.33.0 ../pom.xml diff --git a/bmc-common/pom.xml b/bmc-common/pom.xml index b1e63de3a9b..3cf8d0c91f7 100644 --- a/bmc-common/pom.xml +++ b/bmc-common/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml @@ -67,18 +67,18 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.32.1 + 3.33.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.32.1 + 3.33.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.32.1 + 3.33.0 test diff --git a/bmc-computecloudatcustomer/pom.xml b/bmc-computecloudatcustomer/pom.xml index 08833077845..16f6fad3500 100644 --- a/bmc-computecloudatcustomer/pom.xml +++ b/bmc-computecloudatcustomer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-computecloudatcustomer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-computeinstanceagent/pom.xml b/bmc-computeinstanceagent/pom.xml index b42d11d42ca..66804f13b89 100644 --- a/bmc-computeinstanceagent/pom.xml +++ b/bmc-computeinstanceagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-computeinstanceagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-containerengine/pom.xml b/bmc-containerengine/pom.xml index 626e7f34760..2231a84fe6f 100644 --- a/bmc-containerengine/pom.xml +++ b/bmc-containerengine/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-containerinstances/pom.xml b/bmc-containerinstances/pom.xml index c37fe81af3a..d1554cb2bf5 100644 --- a/bmc-containerinstances/pom.xml +++ b/bmc-containerinstances/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-containerinstances @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-core/pom.xml b/bmc-core/pom.xml index ffc89277919..19d4c6388b7 100644 --- a/bmc-core/pom.xml +++ b/bmc-core/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.32.1 + 3.33.0 diff --git a/bmc-dashboardservice/pom.xml b/bmc-dashboardservice/pom.xml index 94f34592ed9..a8430e07672 100644 --- a/bmc-dashboardservice/pom.xml +++ b/bmc-dashboardservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-dashboardservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-database/pom.xml b/bmc-database/pom.xml index dafcb75bc08..c97d319cf92 100644 --- a/bmc-database/pom.xml +++ b/bmc-database/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.32.1 + 3.33.0 diff --git a/bmc-databasemanagement/pom.xml b/bmc-databasemanagement/pom.xml index 57c9c220665..0378dd048c3 100644 --- a/bmc-databasemanagement/pom.xml +++ b/bmc-databasemanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-databasemanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagement.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagement.java index 6bba09074d1..3a3e11c0af5 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagement.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagement.java @@ -232,6 +232,24 @@ ChangeExternalDbSystemCompartmentResponse changeExternalDbSystemCompartment( ChangeManagedDatabaseGroupCompartmentResponse changeManagedDatabaseGroupCompartment( ChangeManagedDatabaseGroupCompartmentRequest request); + /** + * Moves a named credential to a different compartment. The destination compartment must not + * have a named credential with the same name. + * + * @param request The request 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 + * ChangeNamedCredentialCompartment API. + */ + ChangeNamedCredentialCompartmentResponse changeNamedCredentialCompartment( + ChangeNamedCredentialCompartmentRequest request); + /** * Changes the retention period of unused plans. The period can range between 5 and 523 weeks. * @@ -496,6 +514,22 @@ CreateExternalExadataStorageConnectorResponse createExternalExadataStorageConnec CreateManagedDatabaseGroupResponse createManagedDatabaseGroup( CreateManagedDatabaseGroupRequest request); + /** + * Creates a named credential. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * CreateNamedCredential API. + */ + CreateNamedCredentialResponse createNamedCredential(CreateNamedCredentialRequest request); + /** * Creates a tablespace within the Managed Database specified by managedDatabaseId. * @@ -646,6 +680,22 @@ DeleteExternalExadataStorageConnectorResponse deleteExternalExadataStorageConnec DeleteManagedDatabaseGroupResponse deleteManagedDatabaseGroup( DeleteManagedDatabaseGroupRequest request); + /** + * Deletes the named credential specified by namedCredentialId. + * + * @param request The request 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 + * DeleteNamedCredential API. + */ + DeleteNamedCredentialResponse deleteNamedCredential(DeleteNamedCredentialRequest request); + /** * Deletes the preferred credential based on the credentialName. * @@ -1483,6 +1533,22 @@ GetExternalExadataStorageServerResponse getExternalExadataStorageServer( */ GetManagedDatabaseGroupResponse getManagedDatabaseGroup(GetManagedDatabaseGroupRequest request); + /** + * Gets the details for the named credential specified by namedCredentialId. + * + * @param request The request 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 GetNamedCredential + * API. + */ + GetNamedCredentialResponse getNamedCredential(GetNamedCredentialRequest request); + /** * Gets the open alerts from the specified Exadata storage server. * @@ -2236,6 +2302,23 @@ ListManagedDatabaseGroupsResponse listManagedDatabaseGroups( */ ListManagedDatabasesResponse listManagedDatabases(ListManagedDatabasesRequest request); + /** + * Gets a single named credential specified by the name or all the named credentials in a + * specific 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 + * ListNamedCredentials API. + */ + ListNamedCredentialsResponse listNamedCredentials(ListNamedCredentialsRequest request); + /** * Gets the list of object privileges granted to a specific user. * @@ -3006,6 +3089,22 @@ SummarizeSqlPlanBaselinesResponse summarizeSqlPlanBaselines( SummarizeSqlPlanBaselinesByLastExecutionResponse summarizeSqlPlanBaselinesByLastExecution( SummarizeSqlPlanBaselinesByLastExecutionRequest request); + /** + * Tests the named credential. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 TestNamedCredential + * API. + */ + TestNamedCredentialResponse testNamedCredential(TestNamedCredentialRequest request); + /** * Tests the preferred credential. * @@ -3238,6 +3337,22 @@ UpdateExternalExadataStorageConnectorResponse updateExternalExadataStorageConnec UpdateManagedDatabaseGroupResponse updateManagedDatabaseGroup( UpdateManagedDatabaseGroupRequest request); + /** + * Updates the named credential specified by namedCredentialId. + * + * @param request The request 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 + * UpdateNamedCredential API. + */ + UpdateNamedCredentialResponse updateNamedCredential(UpdateNamedCredentialRequest request); + /** * Updates the preferred credential based on the credentialName. * diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsync.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsync.java index 748fb527721..17a6d795f20 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsync.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsync.java @@ -230,6 +230,25 @@ java.util.concurrent.Future changeJobCompartment( ChangeManagedDatabaseGroupCompartmentResponse> handler); + /** + * Moves a named credential to a different compartment. The destination compartment must not + * have a named credential with the same name. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + changeNamedCredentialCompartment( + ChangeNamedCredentialCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeNamedCredentialCompartmentRequest, + ChangeNamedCredentialCompartmentResponse> + handler); + /** * Changes the retention period of unused plans. The period can range between 5 and 523 weeks. * @@ -501,6 +520,22 @@ java.util.concurrent.Future createManagedDat CreateManagedDatabaseGroupRequest, CreateManagedDatabaseGroupResponse> handler); + /** + * Creates a named credential. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future createNamedCredential( + CreateNamedCredentialRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateNamedCredentialRequest, CreateNamedCredentialResponse> + handler); + /** * Creates a tablespace within the Managed Database specified by managedDatabaseId. * @@ -653,6 +688,22 @@ java.util.concurrent.Future deleteManagedDat DeleteManagedDatabaseGroupRequest, DeleteManagedDatabaseGroupResponse> handler); + /** + * Deletes the named credential specified by namedCredentialId. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future deleteNamedCredential( + DeleteNamedCredentialRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteNamedCredentialRequest, DeleteNamedCredentialResponse> + handler); + /** * Deletes the preferred credential based on the credentialName. * @@ -1497,6 +1548,22 @@ java.util.concurrent.Future getManagedDatabaseG GetManagedDatabaseGroupRequest, GetManagedDatabaseGroupResponse> handler); + /** + * Gets the details for the named credential specified by namedCredentialId. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getNamedCredential( + GetNamedCredentialRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetNamedCredentialRequest, GetNamedCredentialResponse> + handler); + /** * Gets the open alerts from the specified Exadata storage server. * @@ -2248,6 +2315,23 @@ java.util.concurrent.Future listManagedDatabases( ListManagedDatabasesRequest, ListManagedDatabasesResponse> handler); + /** + * Gets a single named credential specified by the name or all the named credentials in a + * specific 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 listNamedCredentials( + ListNamedCredentialsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListNamedCredentialsRequest, ListNamedCredentialsResponse> + handler); + /** * Gets the list of object privileges granted to a specific user. * @@ -3018,6 +3102,22 @@ java.util.concurrent.Future summarizeSqlPlanB SummarizeSqlPlanBaselinesByLastExecutionResponse> handler); + /** + * Tests the named credential. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future testNamedCredential( + TestNamedCredentialRequest request, + com.oracle.bmc.responses.AsyncHandler< + TestNamedCredentialRequest, TestNamedCredentialResponse> + handler); + /** * Tests the preferred credential. * @@ -3254,6 +3354,22 @@ java.util.concurrent.Future updateManagedDat UpdateManagedDatabaseGroupRequest, UpdateManagedDatabaseGroupResponse> handler); + /** + * Updates the named credential specified by namedCredentialId. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future updateNamedCredential( + UpdateNamedCredentialRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateNamedCredentialRequest, UpdateNamedCredentialResponse> + handler); + /** * Updates the preferred credential based on the credentialName. * diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsyncClient.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsyncClient.java index 0efe5386f96..d6cdd4f273e 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsyncClient.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsyncClient.java @@ -201,6 +201,7 @@ public java.util.concurrent.Future addmTasks( .appendEnumQueryParam("sortOrder", request.getSortOrder()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.AddmTasksCollection.class, AddmTasksResponse.Builder::addmTasksCollection) @@ -448,6 +449,44 @@ public java.util.concurrent.Future changeJobCompar .callAsync(handler); } + @Override + public java.util.concurrent.Future + changeNamedCredentialCompartment( + ChangeNamedCredentialCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeNamedCredentialCompartmentRequest, + ChangeNamedCredentialCompartmentResponse> + handler) { + + Validate.notBlank(request.getNamedCredentialId(), "namedCredentialId must not be blank"); + Objects.requireNonNull( + request.getChangeNamedCredentialCompartmentDetails(), + "changeNamedCredentialCompartmentDetails is required"); + + return clientCall(request, ChangeNamedCredentialCompartmentResponse::builder) + .logger(LOG, "changeNamedCredentialCompartment") + .serviceDetails( + "DbManagement", + "ChangeNamedCredentialCompartment", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/NamedCredential/ChangeNamedCredentialCompartment") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeNamedCredentialCompartmentRequest::builder) + .basePath("/20201101") + .appendPathParam("namedCredentials") + .appendPathParam(request.getNamedCredentialId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ChangeNamedCredentialCompartmentResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future changePlanRetention( ChangePlanRetentionRequest request, @@ -1024,6 +1063,41 @@ public java.util.concurrent.Future createJob( .callAsync(handler); } + @Override + public java.util.concurrent.Future createNamedCredential( + CreateNamedCredentialRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateNamedCredentialRequest, CreateNamedCredentialResponse> + handler) { + Objects.requireNonNull( + request.getCreateNamedCredentialDetails(), + "createNamedCredentialDetails is required"); + + return clientCall(request, CreateNamedCredentialResponse::builder) + .logger(LOG, "createNamedCredential") + .serviceDetails( + "DbManagement", + "CreateNamedCredential", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/NamedCredential/CreateNamedCredential") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateNamedCredentialRequest::builder) + .basePath("/20201101") + .appendPathParam("namedCredentials") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleBody( + com.oracle.bmc.databasemanagement.model.NamedCredential.class, + CreateNamedCredentialResponse.Builder::namedCredential) + .handleResponseHeaderString( + "opc-request-id", CreateNamedCredentialResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", CreateNamedCredentialResponse.Builder::etag) + .handleResponseHeaderString( + "location", CreateNamedCredentialResponse.Builder::location) + .callAsync(handler); + } + @Override public java.util.concurrent.Future createTablespace( CreateTablespaceRequest request, @@ -1319,6 +1393,34 @@ public java.util.concurrent.Future deleteJob( .callAsync(handler); } + @Override + public java.util.concurrent.Future deleteNamedCredential( + DeleteNamedCredentialRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteNamedCredentialRequest, DeleteNamedCredentialResponse> + handler) { + + Validate.notBlank(request.getNamedCredentialId(), "namedCredentialId must not be blank"); + + return clientCall(request, DeleteNamedCredentialResponse::builder) + .logger(LOG, "deleteNamedCredential") + .serviceDetails( + "DbManagement", + "DeleteNamedCredential", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/NamedCredential/DeleteNamedCredential") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteNamedCredentialRequest::builder) + .basePath("/20201101") + .appendPathParam("namedCredentials") + .appendPathParam(request.getNamedCredentialId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", DeleteNamedCredentialResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future deletePreferredCredential( DeletePreferredCredentialRequest request, @@ -2031,6 +2133,7 @@ public java.util.concurrent.Future generateAwrSnaps .accept("application/json") .appendHeader("opc-retry-token", request.getOpcRetryToken()) .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.SnapshotDetails.class, GenerateAwrSnapshotResponse.Builder::snapshotDetails) @@ -2079,6 +2182,7 @@ public java.util.concurrent.Future getAwrDbReport( .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.AwrDbReport.class, GetAwrDbReportResponse.Builder::awrDbReport) @@ -2125,6 +2229,7 @@ public java.util.concurrent.Future getAwrDbSqlReport( .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.AwrDbSqlReport.class, GetAwrDbSqlReportResponse.Builder::awrDbSqlReport) @@ -2342,6 +2447,7 @@ public java.util.concurrent.Future getExternalAsm( .appendPathParam("configuration") .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.ExternalAsmConfiguration.class, GetExternalAsmConfigurationResponse.Builder::externalAsmConfiguration) @@ -2979,6 +3085,37 @@ public java.util.concurrent.Future getManagedDa .callAsync(handler); } + @Override + public java.util.concurrent.Future getNamedCredential( + GetNamedCredentialRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetNamedCredentialRequest, GetNamedCredentialResponse> + handler) { + + Validate.notBlank(request.getNamedCredentialId(), "namedCredentialId must not be blank"); + + return clientCall(request, GetNamedCredentialResponse::builder) + .logger(LOG, "getNamedCredential") + .serviceDetails( + "DbManagement", + "GetNamedCredential", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/NamedCredential/GetNamedCredential") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetNamedCredentialRequest::builder) + .basePath("/20201101") + .appendPathParam("namedCredentials") + .appendPathParam(request.getNamedCredentialId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.databasemanagement.model.NamedCredential.class, + GetNamedCredentialResponse.Builder::namedCredential) + .handleResponseHeaderString( + "opc-request-id", GetNamedCredentialResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", GetNamedCredentialResponse.Builder::etag) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getOpenAlertHistory( GetOpenAlertHistoryRequest request, @@ -3042,6 +3179,7 @@ public java.util.concurrent.Future getOpenAlertHist .appendQueryParam("taskName", request.getTaskName()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.OptimizerStatisticsAdvisorExecution .class, @@ -3084,6 +3222,7 @@ public java.util.concurrent.Future getOpenAlertHist .appendQueryParam("taskName", request.getTaskName()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model .OptimizerStatisticsAdvisorExecutionScript.class, @@ -3121,6 +3260,7 @@ public java.util.concurrent.Future getOpenAlertHist .appendPathParam(request.getOptimizerStatisticsCollectionOperationId()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model .OptimizerStatisticsCollectionOperation.class, @@ -3231,6 +3371,7 @@ public java.util.concurrent.Future getSqlPlanBaselin .appendPathParam(request.getPlanName()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.SqlPlanBaseline.class, GetSqlPlanBaselineResponse.Builder::sqlPlanBaseline) @@ -3264,6 +3405,7 @@ public java.util.concurrent.Future getSqlPlanBaselin .appendPathParam("sqlPlanBaselineConfiguration") .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.SqlPlanBaselineConfiguration.class, GetSqlPlanBaselineConfigurationResponse.Builder @@ -3299,6 +3441,7 @@ public java.util.concurrent.Future getTablespace( .appendPathParam(request.getTablespaceName()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.Tablespace.class, GetTablespaceResponse.Builder::tablespace) @@ -3364,6 +3507,7 @@ public java.util.concurrent.Future getUser( .appendPathParam(request.getUserName()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.User.class, GetUserResponse.Builder::user) @@ -3567,6 +3711,7 @@ public java.util.concurrent.Future listAwrDbSnapshot .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.AwrDbSnapshotCollection.class, ListAwrDbSnapshotsResponse.Builder::awrDbSnapshotCollection) @@ -3607,6 +3752,7 @@ public java.util.concurrent.Future listAwrDbs( .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.AwrDbCollection.class, ListAwrDbsResponse.Builder::awrDbCollection) @@ -3651,6 +3797,7 @@ public java.util.concurrent.Future listAwrDbs( .appendQueryParam("page", request.getPage()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.ConsumerGroupPrivilegeCollection .class, @@ -3691,6 +3838,7 @@ public java.util.concurrent.Future listCursor .appendEnumQueryParam("sortOrder", request.getSortOrder()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.CursorCacheStatementCollection .class, @@ -3734,6 +3882,7 @@ public java.util.concurrent.Future listDataAcc .appendQueryParam("page", request.getPage()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.DataAccessContainerCollection.class, ListDataAccessContainersResponse.Builder::dataAccessContainerCollection) @@ -3772,6 +3921,7 @@ public java.util.concurrent.Future listDatabaseP .appendEnumQueryParam("sortOrder", request.getSortOrder()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.DatabaseParametersCollection.class, ListDatabaseParametersResponse.Builder::databaseParametersCollection) @@ -3852,6 +4002,7 @@ public java.util.concurrent.Future listExtern .appendEnumQueryParam("sortOrder", request.getSortOrder()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.ExternalAsmDiskGroupCollection .class, @@ -3926,6 +4077,7 @@ public java.util.concurrent.Future listExternalAsm .appendEnumQueryParam("sortOrder", request.getSortOrder()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.ExternalAsmUserCollection.class, ListExternalAsmUsersResponse.Builder::externalAsmUserCollection) @@ -4448,6 +4600,7 @@ public java.util.concurrent.Future listExternalDb .appendEnumQueryParam("sortOrder", request.getSortOrder()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.ExternalListenerServiceCollection .class, @@ -4698,6 +4851,45 @@ public java.util.concurrent.Future listManagedData .callAsync(handler); } + @Override + public java.util.concurrent.Future listNamedCredentials( + ListNamedCredentialsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListNamedCredentialsRequest, ListNamedCredentialsResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListNamedCredentialsResponse::builder) + .logger(LOG, "listNamedCredentials") + .serviceDetails( + "DbManagement", + "ListNamedCredentials", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/NamedCredential/ListNamedCredentials") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListNamedCredentialsRequest::builder) + .basePath("/20201101") + .appendPathParam("namedCredentials") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("associatedResource", request.getAssociatedResource()) + .appendEnumQueryParam("type", request.getType()) + .appendEnumQueryParam("scope", request.getScope()) + .appendQueryParam("name", request.getName()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.databasemanagement.model.NamedCredentialCollection.class, + ListNamedCredentialsResponse.Builder::namedCredentialCollection) + .handleResponseHeaderString( + "opc-request-id", ListNamedCredentialsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListNamedCredentialsResponse.Builder::opcNextPage) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listObjectPrivileges( ListObjectPrivilegesRequest request, @@ -4730,6 +4922,7 @@ public java.util.concurrent.Future listObjectPrivi .appendQueryParam("page", request.getPage()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.ObjectPrivilegeCollection.class, ListObjectPrivilegesResponse.Builder::objectPrivilegeCollection) @@ -4768,6 +4961,7 @@ public java.util.concurrent.Future listObjectPrivi .appendQueryParam("endTimeLessThanOrEqualTo", request.getEndTimeLessThanOrEqualTo()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model .OptimizerStatisticsAdvisorExecutionsCollection.class, @@ -4812,6 +5006,7 @@ public java.util.concurrent.Future listObjectPrivi .appendQueryParam("page", request.getPage()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model .OptimizerStatisticsCollectionAggregationsCollection.class, @@ -4860,6 +5055,7 @@ public java.util.concurrent.Future listObjectPrivi .appendEnumQueryParam("sortOrder", request.getSortOrder()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model .OptimizerStatisticsCollectionOperationsCollection.class, @@ -4939,6 +5135,7 @@ public java.util.concurrent.Future listProxiedForUs .appendQueryParam("page", request.getPage()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.ProxiedForUserCollection.class, ListProxiedForUsersResponse.Builder::proxiedForUserCollection) @@ -4981,6 +5178,7 @@ public java.util.concurrent.Future listProxyUsers( .appendQueryParam("page", request.getPage()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.ProxyUserCollection.class, ListProxyUsersResponse.Builder::proxyUserCollection) @@ -5022,6 +5220,7 @@ public java.util.concurrent.Future listRoles( .appendQueryParam("page", request.getPage()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.RoleCollection.class, ListRolesResponse.Builder::roleCollection) @@ -5059,6 +5258,7 @@ public java.util.concurrent.Future listSqlPlanB .appendEnumQueryParam("sortOrder", request.getSortOrder()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.SqlPlanBaselineJobCollection.class, ListSqlPlanBaselineJobsResponse.Builder::sqlPlanBaselineJobCollection) @@ -5103,8 +5303,14 @@ public java.util.concurrent.Future listSqlPlanBase .appendQueryParam("limit", request.getLimit()) .appendEnumQueryParam("sortBy", request.getSortBy()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("isAutoPurged", request.getIsAutoPurged()) + .appendQueryParam( + "timeLastExecutedGreaterThan", request.getTimeLastExecutedGreaterThan()) + .appendQueryParam("timeLastExecutedLessThan", request.getTimeLastExecutedLessThan()) + .appendQueryParam("isNeverExecuted", request.getIsNeverExecuted()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.SqlPlanBaselineCollection.class, ListSqlPlanBaselinesResponse.Builder::sqlPlanBaselineCollection) @@ -5147,6 +5353,7 @@ public java.util.concurrent.Future listSystemPrivi .appendQueryParam("page", request.getPage()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.SystemPrivilegeCollection.class, ListSystemPrivilegesResponse.Builder::systemPrivilegeCollection) @@ -5180,6 +5387,7 @@ public java.util.concurrent.Future listTableStatist .appendPathParam("tableStatistics") .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.TableStatisticsCollection.class, ListTableStatisticsResponse.Builder::tableStatisticsCollection) @@ -5216,6 +5424,7 @@ public java.util.concurrent.Future listTablespaces( .appendQueryParam("limit", request.getLimit()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.TablespaceCollection.class, ListTablespacesResponse.Builder::tablespaceCollection) @@ -5253,6 +5462,7 @@ public java.util.concurrent.Future listUsers( .appendQueryParam("page", request.getPage()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.UserCollection.class, ListUsersResponse.Builder::userCollection) @@ -5678,6 +5888,7 @@ public java.util.concurrent.Future runHistoricAddm( .accept("application/json") .appendHeader("opc-retry-token", request.getOpcRetryToken()) .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .hasBody() .handleBody( com.oracle.bmc.databasemanagement.model.HistoricAddmResult.class, @@ -5727,6 +5938,7 @@ public java.util.concurrent.Future summarizeAwr .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.AwrDbCpuUsageCollection.class, SummarizeAwrDbCpuUsagesResponse.Builder::awrDbCpuUsageCollection) @@ -5781,6 +5993,7 @@ public java.util.concurrent.Future summarizeAwrDb .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.AwrDbMetricCollection.class, SummarizeAwrDbMetricsResponse.Builder::awrDbMetricCollection) @@ -5834,6 +6047,7 @@ public java.util.concurrent.Future summarizeAwrDb .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.AwrDbParameterChangeCollection .class, @@ -5895,6 +6109,7 @@ public java.util.concurrent.Future summarizeAw .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.AwrDbParameterCollection.class, SummarizeAwrDbParametersResponse.Builder::awrDbParameterCollection) @@ -5938,6 +6153,7 @@ public java.util.concurrent.Future summarizeAw .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.AwrDbSnapshotRangeCollection.class, SummarizeAwrDbSnapshotRangesResponse.Builder::awrDbSnapshotRangeCollection) @@ -5993,6 +6209,7 @@ public java.util.concurrent.Future summarizeAwrD .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.AwrDbSysstatCollection.class, SummarizeAwrDbSysstatsResponse.Builder::awrDbSysstatCollection) @@ -6044,6 +6261,7 @@ public java.util.concurrent.Future summarizeAwrD .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.AwrDbTopWaitEventCollection.class, SummarizeAwrDbTopWaitEventsResponse.Builder::awrDbTopWaitEventCollection) @@ -6100,6 +6318,7 @@ public java.util.concurrent.Future summarizeAwrD .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.AwrDbWaitEventBucketCollection .class, @@ -6158,6 +6377,7 @@ public java.util.concurrent.Future summarizeAw .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.AwrDbWaitEventCollection.class, SummarizeAwrDbWaitEventsResponse.Builder::awrDbWaitEventCollection) @@ -6517,6 +6737,7 @@ public java.util.concurrent.Future summarizeS .appendQueryParam("page", request.getPage()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.SqlPlanBaselineAggregationCollection .class, @@ -6555,6 +6776,7 @@ public java.util.concurrent.Future summarizeS .appendQueryParam("page", request.getPage()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.SqlPlanBaselineAggregationCollection .class, @@ -6569,6 +6791,41 @@ public java.util.concurrent.Future summarizeS .callAsync(handler); } + @Override + public java.util.concurrent.Future testNamedCredential( + TestNamedCredentialRequest request, + final com.oracle.bmc.responses.AsyncHandler< + TestNamedCredentialRequest, TestNamedCredentialResponse> + handler) { + + Validate.notBlank(request.getNamedCredentialId(), "namedCredentialId must not be blank"); + Objects.requireNonNull( + request.getTestNamedCredentialDetails(), "testNamedCredentialDetails is required"); + + return clientCall(request, TestNamedCredentialResponse::builder) + .logger(LOG, "testNamedCredential") + .serviceDetails( + "DbManagement", + "TestNamedCredential", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/NamedCredential/TestNamedCredential") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(TestNamedCredentialRequest::builder) + .basePath("/20201101") + .appendPathParam("namedCredentials") + .appendPathParam(request.getNamedCredentialId()) + .appendPathParam("actions") + .appendPathParam("test") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.databasemanagement.model.TestNamedCredentialStatus.class, + TestNamedCredentialResponse.Builder::testNamedCredentialStatus) + .handleResponseHeaderString( + "opc-request-id", TestNamedCredentialResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future testPreferredCredential( TestPreferredCredentialRequest request, @@ -7106,6 +7363,42 @@ public java.util.concurrent.Future updateJob( .callAsync(handler); } + @Override + public java.util.concurrent.Future updateNamedCredential( + UpdateNamedCredentialRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateNamedCredentialRequest, UpdateNamedCredentialResponse> + handler) { + + Validate.notBlank(request.getNamedCredentialId(), "namedCredentialId must not be blank"); + Objects.requireNonNull( + request.getUpdateNamedCredentialDetails(), + "updateNamedCredentialDetails is required"); + + return clientCall(request, UpdateNamedCredentialResponse::builder) + .logger(LOG, "updateNamedCredential") + .serviceDetails( + "DbManagement", + "UpdateNamedCredential", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/NamedCredential/UpdateNamedCredential") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateNamedCredentialRequest::builder) + .basePath("/20201101") + .appendPathParam("namedCredentials") + .appendPathParam(request.getNamedCredentialId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.databasemanagement.model.NamedCredential.class, + UpdateNamedCredentialResponse.Builder::namedCredential) + .handleResponseHeaderString( + "opc-request-id", UpdateNamedCredentialResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", UpdateNamedCredentialResponse.Builder::etag) + .callAsync(handler); + } + @Override public java.util.concurrent.Future updatePreferredCredential( UpdatePreferredCredentialRequest request, diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementClient.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementClient.java index 183c8fefe08..0e10bc4462c 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementClient.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementClient.java @@ -219,6 +219,7 @@ public AddmTasksResponse addmTasks(AddmTasksRequest request) { .appendEnumQueryParam("sortOrder", request.getSortOrder()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.AddmTasksCollection.class, AddmTasksResponse.Builder::addmTasksCollection) @@ -443,6 +444,39 @@ public ChangeManagedDatabaseGroupCompartmentResponse changeManagedDatabaseGroupC .callSync(); } + @Override + public ChangeNamedCredentialCompartmentResponse changeNamedCredentialCompartment( + ChangeNamedCredentialCompartmentRequest request) { + + Validate.notBlank(request.getNamedCredentialId(), "namedCredentialId must not be blank"); + Objects.requireNonNull( + request.getChangeNamedCredentialCompartmentDetails(), + "changeNamedCredentialCompartmentDetails is required"); + + return clientCall(request, ChangeNamedCredentialCompartmentResponse::builder) + .logger(LOG, "changeNamedCredentialCompartment") + .serviceDetails( + "DbManagement", + "ChangeNamedCredentialCompartment", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/NamedCredential/ChangeNamedCredentialCompartment") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeNamedCredentialCompartmentRequest::builder) + .basePath("/20201101") + .appendPathParam("namedCredentials") + .appendPathParam(request.getNamedCredentialId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ChangeNamedCredentialCompartmentResponse.Builder::opcRequestId) + .callSync(); + } + @Override public ChangePlanRetentionResponse changePlanRetention(ChangePlanRetentionRequest request) { @@ -958,6 +992,38 @@ public CreateManagedDatabaseGroupResponse createManagedDatabaseGroup( .callSync(); } + @Override + public CreateNamedCredentialResponse createNamedCredential( + CreateNamedCredentialRequest request) { + Objects.requireNonNull( + request.getCreateNamedCredentialDetails(), + "createNamedCredentialDetails is required"); + + return clientCall(request, CreateNamedCredentialResponse::builder) + .logger(LOG, "createNamedCredential") + .serviceDetails( + "DbManagement", + "CreateNamedCredential", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/NamedCredential/CreateNamedCredential") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateNamedCredentialRequest::builder) + .basePath("/20201101") + .appendPathParam("namedCredentials") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleBody( + com.oracle.bmc.databasemanagement.model.NamedCredential.class, + CreateNamedCredentialResponse.Builder::namedCredential) + .handleResponseHeaderString( + "opc-request-id", CreateNamedCredentialResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", CreateNamedCredentialResponse.Builder::etag) + .handleResponseHeaderString( + "location", CreateNamedCredentialResponse.Builder::location) + .callSync(); + } + @Override public CreateTablespaceResponse createTablespace(CreateTablespaceRequest request) { @@ -1213,6 +1279,31 @@ public DeleteManagedDatabaseGroupResponse deleteManagedDatabaseGroup( .callSync(); } + @Override + public DeleteNamedCredentialResponse deleteNamedCredential( + DeleteNamedCredentialRequest request) { + + Validate.notBlank(request.getNamedCredentialId(), "namedCredentialId must not be blank"); + + return clientCall(request, DeleteNamedCredentialResponse::builder) + .logger(LOG, "deleteNamedCredential") + .serviceDetails( + "DbManagement", + "DeleteNamedCredential", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/NamedCredential/DeleteNamedCredential") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteNamedCredentialRequest::builder) + .basePath("/20201101") + .appendPathParam("namedCredentials") + .appendPathParam(request.getNamedCredentialId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", DeleteNamedCredentialResponse.Builder::opcRequestId) + .callSync(); + } + @Override public DeletePreferredCredentialResponse deletePreferredCredential( DeletePreferredCredentialRequest request) { @@ -1848,6 +1939,7 @@ public GenerateAwrSnapshotResponse generateAwrSnapshot(GenerateAwrSnapshotReques .accept("application/json") .appendHeader("opc-retry-token", request.getOpcRetryToken()) .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.SnapshotDetails.class, GenerateAwrSnapshotResponse.Builder::snapshotDetails) @@ -1892,6 +1984,7 @@ public GetAwrDbReportResponse getAwrDbReport(GetAwrDbReportRequest request) { .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.AwrDbReport.class, GetAwrDbReportResponse.Builder::awrDbReport) @@ -1934,6 +2027,7 @@ public GetAwrDbSqlReportResponse getAwrDbSqlReport(GetAwrDbSqlReportRequest requ .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.AwrDbSqlReport.class, GetAwrDbSqlReportResponse.Builder::awrDbSqlReport) @@ -2127,6 +2221,7 @@ public GetExternalAsmConfigurationResponse getExternalAsmConfiguration( .appendPathParam("configuration") .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .operationUsesDefaultRetries() .handleBody( com.oracle.bmc.databasemanagement.model.ExternalAsmConfiguration.class, @@ -2702,6 +2797,33 @@ public GetManagedDatabaseGroupResponse getManagedDatabaseGroup( .callSync(); } + @Override + public GetNamedCredentialResponse getNamedCredential(GetNamedCredentialRequest request) { + + Validate.notBlank(request.getNamedCredentialId(), "namedCredentialId must not be blank"); + + return clientCall(request, GetNamedCredentialResponse::builder) + .logger(LOG, "getNamedCredential") + .serviceDetails( + "DbManagement", + "GetNamedCredential", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/NamedCredential/GetNamedCredential") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetNamedCredentialRequest::builder) + .basePath("/20201101") + .appendPathParam("namedCredentials") + .appendPathParam(request.getNamedCredentialId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.databasemanagement.model.NamedCredential.class, + GetNamedCredentialResponse.Builder::namedCredential) + .handleResponseHeaderString( + "opc-request-id", GetNamedCredentialResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", GetNamedCredentialResponse.Builder::etag) + .callSync(); + } + @Override public GetOpenAlertHistoryResponse getOpenAlertHistory(GetOpenAlertHistoryRequest request) { @@ -2757,6 +2879,7 @@ public GetOptimizerStatisticsAdvisorExecutionResponse getOptimizerStatisticsAdvi .appendQueryParam("taskName", request.getTaskName()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.OptimizerStatisticsAdvisorExecution .class, @@ -2795,6 +2918,7 @@ public GetOptimizerStatisticsAdvisorExecutionResponse getOptimizerStatisticsAdvi .appendQueryParam("taskName", request.getTaskName()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model .OptimizerStatisticsAdvisorExecutionScript.class, @@ -2828,6 +2952,7 @@ public GetOptimizerStatisticsAdvisorExecutionResponse getOptimizerStatisticsAdvi .appendPathParam(request.getOptimizerStatisticsCollectionOperationId()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model .OptimizerStatisticsCollectionOperation.class, @@ -2928,6 +3053,7 @@ public GetSqlPlanBaselineResponse getSqlPlanBaseline(GetSqlPlanBaselineRequest r .appendPathParam(request.getPlanName()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .operationUsesDefaultRetries() .handleBody( com.oracle.bmc.databasemanagement.model.SqlPlanBaseline.class, @@ -2957,6 +3083,7 @@ public GetSqlPlanBaselineConfigurationResponse getSqlPlanBaselineConfiguration( .appendPathParam("sqlPlanBaselineConfiguration") .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .operationUsesDefaultRetries() .handleBody( com.oracle.bmc.databasemanagement.model.SqlPlanBaselineConfiguration.class, @@ -2990,6 +3117,7 @@ public GetTablespaceResponse getTablespace(GetTablespaceRequest request) { .appendPathParam(request.getTablespaceName()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.Tablespace.class, GetTablespaceResponse.Builder::tablespace) @@ -3050,6 +3178,7 @@ public GetUserResponse getUser(GetUserRequest request) { .appendPathParam(request.getUserName()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.User.class, GetUserResponse.Builder::user) @@ -3234,6 +3363,7 @@ public ListAwrDbSnapshotsResponse listAwrDbSnapshots(ListAwrDbSnapshotsRequest r .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.AwrDbSnapshotCollection.class, ListAwrDbSnapshotsResponse.Builder::awrDbSnapshotCollection) @@ -3271,6 +3401,7 @@ public ListAwrDbsResponse listAwrDbs(ListAwrDbsRequest request) { .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.AwrDbCollection.class, ListAwrDbsResponse.Builder::awrDbCollection) @@ -3310,6 +3441,7 @@ public ListConsumerGroupPrivilegesResponse listConsumerGroupPrivileges( .appendQueryParam("page", request.getPage()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.ConsumerGroupPrivilegeCollection .class, @@ -3347,6 +3479,7 @@ public ListCursorCacheStatementsResponse listCursorCacheStatements( .appendEnumQueryParam("sortOrder", request.getSortOrder()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .operationUsesDefaultRetries() .handleBody( com.oracle.bmc.databasemanagement.model.CursorCacheStatementCollection @@ -3388,6 +3521,7 @@ public ListDataAccessContainersResponse listDataAccessContainers( .appendQueryParam("page", request.getPage()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.DataAccessContainerCollection.class, ListDataAccessContainersResponse.Builder::dataAccessContainerCollection) @@ -3423,6 +3557,7 @@ public ListDatabaseParametersResponse listDatabaseParameters( .appendEnumQueryParam("sortOrder", request.getSortOrder()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.DatabaseParametersCollection.class, ListDatabaseParametersResponse.Builder::databaseParametersCollection) @@ -3495,6 +3630,7 @@ public ListExternalAsmDiskGroupsResponse listExternalAsmDiskGroups( .appendEnumQueryParam("sortOrder", request.getSortOrder()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .operationUsesDefaultRetries() .handleBody( com.oracle.bmc.databasemanagement.model.ExternalAsmDiskGroupCollection @@ -3564,6 +3700,7 @@ public ListExternalAsmUsersResponse listExternalAsmUsers(ListExternalAsmUsersReq .appendEnumQueryParam("sortOrder", request.getSortOrder()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .operationUsesDefaultRetries() .handleBody( com.oracle.bmc.databasemanagement.model.ExternalAsmUserCollection.class, @@ -4042,6 +4179,7 @@ public ListExternalListenerServicesResponse listExternalListenerServices( .appendEnumQueryParam("sortOrder", request.getSortOrder()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .operationUsesDefaultRetries() .handleBody( com.oracle.bmc.databasemanagement.model.ExternalListenerServiceCollection @@ -4274,6 +4412,41 @@ public ListManagedDatabasesResponse listManagedDatabases(ListManagedDatabasesReq .callSync(); } + @Override + public ListNamedCredentialsResponse listNamedCredentials(ListNamedCredentialsRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListNamedCredentialsResponse::builder) + .logger(LOG, "listNamedCredentials") + .serviceDetails( + "DbManagement", + "ListNamedCredentials", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/NamedCredential/ListNamedCredentials") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListNamedCredentialsRequest::builder) + .basePath("/20201101") + .appendPathParam("namedCredentials") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("associatedResource", request.getAssociatedResource()) + .appendEnumQueryParam("type", request.getType()) + .appendEnumQueryParam("scope", request.getScope()) + .appendQueryParam("name", request.getName()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.databasemanagement.model.NamedCredentialCollection.class, + ListNamedCredentialsResponse.Builder::namedCredentialCollection) + .handleResponseHeaderString( + "opc-request-id", ListNamedCredentialsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListNamedCredentialsResponse.Builder::opcNextPage) + .callSync(); + } + @Override public ListObjectPrivilegesResponse listObjectPrivileges(ListObjectPrivilegesRequest request) { @@ -4302,6 +4475,7 @@ public ListObjectPrivilegesResponse listObjectPrivileges(ListObjectPrivilegesReq .appendQueryParam("page", request.getPage()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.ObjectPrivilegeCollection.class, ListObjectPrivilegesResponse.Builder::objectPrivilegeCollection) @@ -4336,6 +4510,7 @@ public ListObjectPrivilegesResponse listObjectPrivileges(ListObjectPrivilegesReq .appendQueryParam("endTimeLessThanOrEqualTo", request.getEndTimeLessThanOrEqualTo()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model .OptimizerStatisticsAdvisorExecutionsCollection.class, @@ -4376,6 +4551,7 @@ public ListObjectPrivilegesResponse listObjectPrivileges(ListObjectPrivilegesReq .appendQueryParam("page", request.getPage()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model .OptimizerStatisticsCollectionAggregationsCollection.class, @@ -4420,6 +4596,7 @@ public ListObjectPrivilegesResponse listObjectPrivileges(ListObjectPrivilegesReq .appendEnumQueryParam("sortOrder", request.getSortOrder()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model .OptimizerStatisticsCollectionOperationsCollection.class, @@ -4492,6 +4669,7 @@ public ListProxiedForUsersResponse listProxiedForUsers(ListProxiedForUsersReques .appendQueryParam("page", request.getPage()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.ProxiedForUserCollection.class, ListProxiedForUsersResponse.Builder::proxiedForUserCollection) @@ -4530,6 +4708,7 @@ public ListProxyUsersResponse listProxyUsers(ListProxyUsersRequest request) { .appendQueryParam("page", request.getPage()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.ProxyUserCollection.class, ListProxyUsersResponse.Builder::proxyUserCollection) @@ -4568,6 +4747,7 @@ public ListRolesResponse listRoles(ListRolesRequest request) { .appendQueryParam("page", request.getPage()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.RoleCollection.class, ListRolesResponse.Builder::roleCollection) @@ -4602,6 +4782,7 @@ public ListSqlPlanBaselineJobsResponse listSqlPlanBaselineJobs( .appendEnumQueryParam("sortOrder", request.getSortOrder()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .operationUsesDefaultRetries() .handleBody( com.oracle.bmc.databasemanagement.model.SqlPlanBaselineJobCollection.class, @@ -4643,8 +4824,14 @@ public ListSqlPlanBaselinesResponse listSqlPlanBaselines(ListSqlPlanBaselinesReq .appendQueryParam("limit", request.getLimit()) .appendEnumQueryParam("sortBy", request.getSortBy()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("isAutoPurged", request.getIsAutoPurged()) + .appendQueryParam( + "timeLastExecutedGreaterThan", request.getTimeLastExecutedGreaterThan()) + .appendQueryParam("timeLastExecutedLessThan", request.getTimeLastExecutedLessThan()) + .appendQueryParam("isNeverExecuted", request.getIsNeverExecuted()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .operationUsesDefaultRetries() .handleBody( com.oracle.bmc.databasemanagement.model.SqlPlanBaselineCollection.class, @@ -4684,6 +4871,7 @@ public ListSystemPrivilegesResponse listSystemPrivileges(ListSystemPrivilegesReq .appendQueryParam("page", request.getPage()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.SystemPrivilegeCollection.class, ListSystemPrivilegesResponse.Builder::systemPrivilegeCollection) @@ -4713,6 +4901,7 @@ public ListTableStatisticsResponse listTableStatistics(ListTableStatisticsReques .appendPathParam("tableStatistics") .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.TableStatisticsCollection.class, ListTableStatisticsResponse.Builder::tableStatisticsCollection) @@ -4745,6 +4934,7 @@ public ListTablespacesResponse listTablespaces(ListTablespacesRequest request) { .appendQueryParam("limit", request.getLimit()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.TablespaceCollection.class, ListTablespacesResponse.Builder::tablespaceCollection) @@ -4779,6 +4969,7 @@ public ListUsersResponse listUsers(ListUsersRequest request) { .appendQueryParam("page", request.getPage()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.UserCollection.class, ListUsersResponse.Builder::userCollection) @@ -5159,6 +5350,7 @@ public RunHistoricAddmResponse runHistoricAddm(RunHistoricAddmRequest request) { .accept("application/json") .appendHeader("opc-retry-token", request.getOpcRetryToken()) .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .hasBody() .handleBody( com.oracle.bmc.databasemanagement.model.HistoricAddmResult.class, @@ -5205,6 +5397,7 @@ public SummarizeAwrDbCpuUsagesResponse summarizeAwrDbCpuUsages( .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.AwrDbCpuUsageCollection.class, SummarizeAwrDbCpuUsagesResponse.Builder::awrDbCpuUsageCollection) @@ -5256,6 +5449,7 @@ public SummarizeAwrDbMetricsResponse summarizeAwrDbMetrics( .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.AwrDbMetricCollection.class, SummarizeAwrDbMetricsResponse.Builder::awrDbMetricCollection) @@ -5304,6 +5498,7 @@ public SummarizeAwrDbParameterChangesResponse summarizeAwrDbParameterChanges( .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.AwrDbParameterChangeCollection .class, @@ -5362,6 +5557,7 @@ public SummarizeAwrDbParametersResponse summarizeAwrDbParameters( .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.AwrDbParameterCollection.class, SummarizeAwrDbParametersResponse.Builder::awrDbParameterCollection) @@ -5400,6 +5596,7 @@ public SummarizeAwrDbSnapshotRangesResponse summarizeAwrDbSnapshotRanges( .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.AwrDbSnapshotRangeCollection.class, SummarizeAwrDbSnapshotRangesResponse.Builder::awrDbSnapshotRangeCollection) @@ -5452,6 +5649,7 @@ public SummarizeAwrDbSysstatsResponse summarizeAwrDbSysstats( .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.AwrDbSysstatCollection.class, SummarizeAwrDbSysstatsResponse.Builder::awrDbSysstatCollection) @@ -5498,6 +5696,7 @@ public SummarizeAwrDbTopWaitEventsResponse summarizeAwrDbTopWaitEvents( .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.AwrDbTopWaitEventCollection.class, SummarizeAwrDbTopWaitEventsResponse.Builder::awrDbTopWaitEventCollection) @@ -5549,6 +5748,7 @@ public SummarizeAwrDbWaitEventBucketsResponse summarizeAwrDbWaitEventBuckets( .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.AwrDbWaitEventBucketCollection .class, @@ -5604,6 +5804,7 @@ public SummarizeAwrDbWaitEventsResponse summarizeAwrDbWaitEvents( .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.AwrDbWaitEventCollection.class, SummarizeAwrDbWaitEventsResponse.Builder::awrDbWaitEventCollection) @@ -5933,6 +6134,7 @@ public SummarizeSqlPlanBaselinesResponse summarizeSqlPlanBaselines( .appendQueryParam("page", request.getPage()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .operationUsesDefaultRetries() .handleBody( com.oracle.bmc.databasemanagement.model.SqlPlanBaselineAggregationCollection @@ -5968,6 +6170,7 @@ public SummarizeSqlPlanBaselinesResponse summarizeSqlPlanBaselines( .appendQueryParam("page", request.getPage()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .operationUsesDefaultRetries() .handleBody( com.oracle.bmc.databasemanagement.model.SqlPlanBaselineAggregationCollection @@ -5983,6 +6186,37 @@ public SummarizeSqlPlanBaselinesResponse summarizeSqlPlanBaselines( .callSync(); } + @Override + public TestNamedCredentialResponse testNamedCredential(TestNamedCredentialRequest request) { + + Validate.notBlank(request.getNamedCredentialId(), "namedCredentialId must not be blank"); + Objects.requireNonNull( + request.getTestNamedCredentialDetails(), "testNamedCredentialDetails is required"); + + return clientCall(request, TestNamedCredentialResponse::builder) + .logger(LOG, "testNamedCredential") + .serviceDetails( + "DbManagement", + "TestNamedCredential", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/NamedCredential/TestNamedCredential") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(TestNamedCredentialRequest::builder) + .basePath("/20201101") + .appendPathParam("namedCredentials") + .appendPathParam(request.getNamedCredentialId()) + .appendPathParam("actions") + .appendPathParam("test") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.databasemanagement.model.TestNamedCredentialStatus.class, + TestNamedCredentialResponse.Builder::testNamedCredentialStatus) + .handleResponseHeaderString( + "opc-request-id", TestNamedCredentialResponse.Builder::opcRequestId) + .callSync(); + } + @Override public TestPreferredCredentialResponse testPreferredCredential( TestPreferredCredentialRequest request) { @@ -6463,6 +6697,39 @@ public UpdateManagedDatabaseGroupResponse updateManagedDatabaseGroup( .callSync(); } + @Override + public UpdateNamedCredentialResponse updateNamedCredential( + UpdateNamedCredentialRequest request) { + + Validate.notBlank(request.getNamedCredentialId(), "namedCredentialId must not be blank"); + Objects.requireNonNull( + request.getUpdateNamedCredentialDetails(), + "updateNamedCredentialDetails is required"); + + return clientCall(request, UpdateNamedCredentialResponse::builder) + .logger(LOG, "updateNamedCredential") + .serviceDetails( + "DbManagement", + "UpdateNamedCredential", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/NamedCredential/UpdateNamedCredential") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateNamedCredentialRequest::builder) + .basePath("/20201101") + .appendPathParam("namedCredentials") + .appendPathParam(request.getNamedCredentialId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.databasemanagement.model.NamedCredential.class, + UpdateNamedCredentialResponse.Builder::namedCredential) + .handleResponseHeaderString( + "opc-request-id", UpdateNamedCredentialResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", UpdateNamedCredentialResponse.Builder::etag) + .callSync(); + } + @Override public UpdatePreferredCredentialResponse updatePreferredCredential( UpdatePreferredCredentialRequest request) { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementPaginators.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementPaginators.java index e6df0d9ac4b..b3b2223cf28 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementPaginators.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementPaginators.java @@ -3550,6 +3550,127 @@ public ListManagedDatabasesResponse apply(ListManagedDatabasesRequest request) { }); } + /** + * Creates a new iterable which will iterate over the responses received from the + * listNamedCredentials 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 listNamedCredentialsResponseIterator( + final ListNamedCredentialsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListNamedCredentialsRequest.Builder, + ListNamedCredentialsRequest, + ListNamedCredentialsResponse>( + new java.util.function.Supplier() { + @Override + public ListNamedCredentialsRequest.Builder get() { + return ListNamedCredentialsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListNamedCredentialsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListNamedCredentialsRequest.Builder>, + ListNamedCredentialsRequest>() { + @Override + public ListNamedCredentialsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListNamedCredentialsRequest.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< + ListNamedCredentialsRequest, ListNamedCredentialsResponse>() { + @Override + public ListNamedCredentialsResponse apply(ListNamedCredentialsRequest request) { + return client.listNamedCredentials(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.databasemanagement.model.NamedCredentialSummary} objects contained in + * responses from the listNamedCredentials 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.databasemanagement.model.NamedCredentialSummary} objects contained in + * responses received from the service. + */ + public Iterable + listNamedCredentialsRecordIterator(final ListNamedCredentialsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListNamedCredentialsRequest.Builder, + ListNamedCredentialsRequest, + ListNamedCredentialsResponse, + com.oracle.bmc.databasemanagement.model.NamedCredentialSummary>( + new java.util.function.Supplier() { + @Override + public ListNamedCredentialsRequest.Builder get() { + return ListNamedCredentialsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListNamedCredentialsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListNamedCredentialsRequest.Builder>, + ListNamedCredentialsRequest>() { + @Override + public ListNamedCredentialsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListNamedCredentialsRequest.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< + ListNamedCredentialsRequest, ListNamedCredentialsResponse>() { + @Override + public ListNamedCredentialsResponse apply(ListNamedCredentialsRequest request) { + return client.listNamedCredentials(request); + } + }, + new java.util.function.Function< + ListNamedCredentialsResponse, + java.util.List< + com.oracle.bmc.databasemanagement.model.NamedCredentialSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.databasemanagement.model.NamedCredentialSummary> + apply(ListNamedCredentialsResponse response) { + return response.getNamedCredentialCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the * listObjectPrivileges operation. This iterable will fetch more data from the server as needed. diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementWaiters.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementWaiters.java index ad5662e5633..46e9ff44b83 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementWaiters.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementWaiters.java @@ -1481,6 +1481,111 @@ public boolean test(GetManagedDatabaseGroupResponse response) { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetState the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forNamedCredential( + GetNamedCredentialRequest request, + com.oracle.bmc.databasemanagement.model.LifecycleStates... 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 forNamedCredential( + 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 + forNamedCredential( + GetNamedCredentialRequest request, + com.oracle.bmc.databasemanagement.model.LifecycleStates 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 forNamedCredential( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource + * reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forNamedCredential( + GetNamedCredentialRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.databasemanagement.model.LifecycleStates... 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 forNamedCredential( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for NamedCredential. + private com.oracle.bmc.waiter.Waiter + forNamedCredential( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetNamedCredentialRequest request, + final com.oracle.bmc.databasemanagement.model.LifecycleStates... 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< + GetNamedCredentialRequest, GetNamedCredentialResponse>() { + @Override + public GetNamedCredentialResponse apply( + GetNamedCredentialRequest request) { + return client.getNamedCredential(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetNamedCredentialResponse response) { + return targetStatesSet.contains( + response.getNamedCredential().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.databasemanagement.model.LifecycleStates.Deleted)), + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using default configuration. * diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DiagnosabilityAsyncClient.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DiagnosabilityAsyncClient.java index 524875206b8..c130204620a 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DiagnosabilityAsyncClient.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DiagnosabilityAsyncClient.java @@ -127,6 +127,7 @@ public java.util.concurrent.Future listAlertLogs( .appendQueryParam("limit", request.getLimit()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.AlertLogCollection.class, ListAlertLogsResponse.Builder::alertLogCollection) @@ -170,6 +171,7 @@ public java.util.concurrent.Future listAttentionLogs( .appendQueryParam("limit", request.getLimit()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.AttentionLogCollection.class, ListAttentionLogsResponse.Builder::attentionLogCollection) @@ -212,6 +214,7 @@ public java.util.concurrent.Future summarizeAle .appendQueryParam("limit", request.getLimit()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.AlertLogCountsCollection.class, SummarizeAlertLogCountsResponse.Builder::alertLogCountsCollection) @@ -256,6 +259,7 @@ public java.util.concurrent.Future summarizeAle .appendQueryParam("limit", request.getLimit()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.AttentionLogCountsCollection.class, SummarizeAttentionLogCountsResponse.Builder::attentionLogCountsCollection) diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DiagnosabilityClient.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DiagnosabilityClient.java index da09669fa21..f16eff9e7dc 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DiagnosabilityClient.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DiagnosabilityClient.java @@ -117,6 +117,7 @@ public ListAlertLogsResponse listAlertLogs(ListAlertLogsRequest request) { .appendQueryParam("limit", request.getLimit()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.AlertLogCollection.class, ListAlertLogsResponse.Builder::alertLogCollection) @@ -156,6 +157,7 @@ public ListAttentionLogsResponse listAttentionLogs(ListAttentionLogsRequest requ .appendQueryParam("limit", request.getLimit()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.AttentionLogCollection.class, ListAttentionLogsResponse.Builder::attentionLogCollection) @@ -195,6 +197,7 @@ public SummarizeAlertLogCountsResponse summarizeAlertLogCounts( .appendQueryParam("limit", request.getLimit()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.AlertLogCountsCollection.class, SummarizeAlertLogCountsResponse.Builder::alertLogCountsCollection) @@ -234,6 +237,7 @@ public SummarizeAttentionLogCountsResponse summarizeAttentionLogCounts( .appendQueryParam("limit", request.getLimit()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.AttentionLogCountsCollection.class, SummarizeAttentionLogCountsResponse.Builder::attentionLogCountsCollection) diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/PerfhubAsyncClient.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/PerfhubAsyncClient.java index caabc345b14..d2d2e6fdc08 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/PerfhubAsyncClient.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/PerfhubAsyncClient.java @@ -121,6 +121,7 @@ public java.util.concurrent.Future modifySnapsho .appendPathParam("modifySnapshotSettings") .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .hasBody() .handleResponseHeaderString( "opc-request-id", ModifySnapshotSettingsResponse.Builder::opcRequestId) diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/PerfhubClient.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/PerfhubClient.java index db0e37e7a34..4e0818ee149 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/PerfhubClient.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/PerfhubClient.java @@ -107,6 +107,7 @@ public ModifySnapshotSettingsResponse modifySnapshotSettings( .appendPathParam("modifySnapshotSettings") .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .hasBody() .handleResponseHeaderString( "opc-request-id", ModifySnapshotSettingsResponse.Builder::opcRequestId) diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/SqlTuningAsyncClient.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/SqlTuningAsyncClient.java index 9cc49657222..2cb40da4a10 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/SqlTuningAsyncClient.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/SqlTuningAsyncClient.java @@ -347,6 +347,7 @@ public java.util.concurrent.Future fetchSqlTuningSet( .appendQueryParam("executionId", request.getExecutionId()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.ExecutionPlanStatsComparision.class, GetExecutionPlanStatsComparisionResponse.Builder @@ -388,6 +389,7 @@ public java.util.concurrent.Future getSqlExecutionP .appendEnumQueryParam("attribute", request.getAttribute()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.SqlTuningAdvisorTaskSqlExecutionPlan .class, @@ -432,6 +434,7 @@ public java.util.concurrent.Future getSqlExecutionP "endExecIdLessThanOrEqualTo", request.getEndExecIdLessThanOrEqualTo()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.SqlTuningAdvisorTaskSummaryReport .class, @@ -480,6 +483,7 @@ public java.util.concurrent.Future getSqlExecutionP .appendQueryParam("limit", request.getLimit()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model .SqlTuningAdvisorTaskFindingCollection.class, @@ -531,6 +535,7 @@ public java.util.concurrent.Future getSqlExecutionP .appendQueryParam("limit", request.getLimit()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model .SqlTuningAdvisorTaskRecommendationCollection.class, @@ -576,6 +581,7 @@ public java.util.concurrent.Future listSqlTun .appendEnumQueryParam("sortOrder", request.getSortOrder()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.SqlTuningAdvisorTaskCollection .class, @@ -616,6 +622,7 @@ public java.util.concurrent.Future listSqlTuningSets( .appendQueryParam("limit", request.getLimit()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.SqlTuningSetCollection.class, ListSqlTuningSetsResponse.Builder::sqlTuningSetCollection) diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/SqlTuningClient.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/SqlTuningClient.java index 1a6753ca607..51d22f90c7e 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/SqlTuningClient.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/SqlTuningClient.java @@ -317,6 +317,7 @@ public GetExecutionPlanStatsComparisionResponse getExecutionPlanStatsComparision .appendQueryParam("executionId", request.getExecutionId()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.ExecutionPlanStatsComparision.class, GetExecutionPlanStatsComparisionResponse.Builder @@ -354,6 +355,7 @@ public GetSqlExecutionPlanResponse getSqlExecutionPlan(GetSqlExecutionPlanReques .appendEnumQueryParam("attribute", request.getAttribute()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.SqlTuningAdvisorTaskSqlExecutionPlan .class, @@ -393,6 +395,7 @@ public GetSqlTuningAdvisorTaskSummaryReportResponse getSqlTuningAdvisorTaskSumma "endExecIdLessThanOrEqualTo", request.getEndExecIdLessThanOrEqualTo()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.SqlTuningAdvisorTaskSummaryReport .class, @@ -436,6 +439,7 @@ public ListSqlTuningAdvisorTaskFindingsResponse listSqlTuningAdvisorTaskFindings .appendQueryParam("limit", request.getLimit()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model .SqlTuningAdvisorTaskFindingCollection.class, @@ -482,6 +486,7 @@ public ListSqlTuningAdvisorTaskRecommendationsResponse listSqlTuningAdvisorTaskR .appendQueryParam("limit", request.getLimit()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model .SqlTuningAdvisorTaskRecommendationCollection.class, @@ -524,6 +529,7 @@ public ListSqlTuningAdvisorTasksResponse listSqlTuningAdvisorTasks( .appendEnumQueryParam("sortOrder", request.getSortOrder()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.SqlTuningAdvisorTaskCollection .class, @@ -560,6 +566,7 @@ public ListSqlTuningSetsResponse listSqlTuningSets(ListSqlTuningSetsRequest requ .appendQueryParam("limit", request.getLimit()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-named-credential-id", request.getOpcNamedCredentialId()) .handleBody( com.oracle.bmc.databasemanagement.model.SqlTuningSetCollection.class, ListSqlTuningSetsResponse.Builder::sqlTuningSetCollection) diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/AddDataFilesDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/AddDataFilesDetails.java index f8777943bcb..0f4ef22c620 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/AddDataFilesDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/AddDataFilesDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemanagement.model; /** - * The details required to add data files or temp files to the tablespace.
+ * The details required to add data files or temp files to the tablespace. lease provide either + * credentialDetails or databaseCredential. It's recommended to provide databaseCredential
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -25,6 +26,7 @@ public final class AddDataFilesDetails @Deprecated @java.beans.ConstructorProperties({ "credentialDetails", + "databaseCredential", "fileType", "dataFiles", "fileCount", @@ -37,6 +39,7 @@ public final class AddDataFilesDetails }) public AddDataFilesDetails( TablespaceAdminCredentialDetails credentialDetails, + DatabaseCredentialDetails databaseCredential, FileType fileType, java.util.List dataFiles, Integer fileCount, @@ -48,6 +51,7 @@ public AddDataFilesDetails( Boolean isMaxSizeUnlimited) { super(); this.credentialDetails = credentialDetails; + this.databaseCredential = databaseCredential; this.fileType = fileType; this.dataFiles = dataFiles; this.fileCount = fileCount; @@ -70,6 +74,15 @@ public Builder credentialDetails(TablespaceAdminCredentialDetails credentialDeta this.__explicitlySet__.add("credentialDetails"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private DatabaseCredentialDetails databaseCredential; + + public Builder databaseCredential(DatabaseCredentialDetails databaseCredential) { + this.databaseCredential = databaseCredential; + this.__explicitlySet__.add("databaseCredential"); + return this; + } /** Specifies whether the file is a data file or temp file. */ @com.fasterxml.jackson.annotation.JsonProperty("fileType") private FileType fileType; @@ -227,6 +240,7 @@ public AddDataFilesDetails build() { AddDataFilesDetails model = new AddDataFilesDetails( this.credentialDetails, + this.databaseCredential, this.fileType, this.dataFiles, this.fileCount, @@ -247,6 +261,9 @@ public Builder copy(AddDataFilesDetails model) { if (model.wasPropertyExplicitlySet("credentialDetails")) { this.credentialDetails(model.getCredentialDetails()); } + if (model.wasPropertyExplicitlySet("databaseCredential")) { + this.databaseCredential(model.getDatabaseCredential()); + } if (model.wasPropertyExplicitlySet("fileType")) { this.fileType(model.getFileType()); } @@ -294,6 +311,13 @@ public TablespaceAdminCredentialDetails getCredentialDetails() { return credentialDetails; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private final DatabaseCredentialDetails databaseCredential; + + public DatabaseCredentialDetails getDatabaseCredential() { + return databaseCredential; + } + /** Specifies whether the file is a data file or temp file. */ public enum FileType implements com.oracle.bmc.http.internal.BmcEnum { Datafile("DATAFILE"), @@ -472,6 +496,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("AddDataFilesDetails("); sb.append("super=").append(super.toString()); sb.append("credentialDetails=").append(String.valueOf(this.credentialDetails)); + sb.append(", databaseCredential=").append(String.valueOf(this.databaseCredential)); sb.append(", fileType=").append(String.valueOf(this.fileType)); sb.append(", dataFiles=").append(String.valueOf(this.dataFiles)); sb.append(", fileCount=").append(String.valueOf(this.fileCount)); @@ -496,6 +521,7 @@ public boolean equals(Object o) { AddDataFilesDetails other = (AddDataFilesDetails) o; return java.util.Objects.equals(this.credentialDetails, other.credentialDetails) + && java.util.Objects.equals(this.databaseCredential, other.databaseCredential) && java.util.Objects.equals(this.fileType, other.fileType) && java.util.Objects.equals(this.dataFiles, other.dataFiles) && java.util.Objects.equals(this.fileCount, other.fileCount) @@ -515,6 +541,11 @@ public int hashCode() { result = (result * PRIME) + (this.credentialDetails == null ? 43 : this.credentialDetails.hashCode()); + result = + (result * PRIME) + + (this.databaseCredential == null + ? 43 + : this.databaseCredential.hashCode()); result = (result * PRIME) + (this.fileType == null ? 43 : this.fileType.hashCode()); result = (result * PRIME) + (this.dataFiles == null ? 43 : this.dataFiles.hashCode()); result = (result * PRIME) + (this.fileCount == null ? 43 : this.fileCount.hashCode()); diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/BasicNamedCredentialContent.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/BasicNamedCredentialContent.java new file mode 100644 index 00000000000..1b28d4dfc77 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/BasicNamedCredentialContent.java @@ -0,0 +1,265 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details of the 'BASIC' named credential.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = BasicNamedCredentialContent.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "credentialType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class BasicNamedCredentialContent extends NamedCredentialContent { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The user name used to connect to the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("userName") + private String userName; + + /** + * The user name used to connect to the database. + * + * @param userName the value to set + * @return this builder + */ + public Builder userName(String userName) { + this.userName = userName; + this.__explicitlySet__.add("userName"); + return this; + } + /** The role of the database user. */ + @com.fasterxml.jackson.annotation.JsonProperty("role") + private Role role; + + /** + * The role of the database user. + * + * @param role the value to set + * @return this builder + */ + public Builder role(Role role) { + this.role = role; + this.__explicitlySet__.add("role"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Vault service secret that contains the database user password. + */ + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecretId") + private String passwordSecretId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Vault service secret that contains the database user password. + * + * @param passwordSecretId the value to set + * @return this builder + */ + public Builder passwordSecretId(String passwordSecretId) { + this.passwordSecretId = passwordSecretId; + this.__explicitlySet__.add("passwordSecretId"); + return this; + } + /** The mechanism used to access the password plain text value. */ + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecretAccessMode") + private PasswordSecretAccessMode passwordSecretAccessMode; + + /** + * The mechanism used to access the password plain text value. + * + * @param passwordSecretAccessMode the value to set + * @return this builder + */ + public Builder passwordSecretAccessMode(PasswordSecretAccessMode passwordSecretAccessMode) { + this.passwordSecretAccessMode = passwordSecretAccessMode; + this.__explicitlySet__.add("passwordSecretAccessMode"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public BasicNamedCredentialContent build() { + BasicNamedCredentialContent model = + new BasicNamedCredentialContent( + this.userName, + this.role, + this.passwordSecretId, + this.passwordSecretAccessMode); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BasicNamedCredentialContent model) { + if (model.wasPropertyExplicitlySet("userName")) { + this.userName(model.getUserName()); + } + if (model.wasPropertyExplicitlySet("role")) { + this.role(model.getRole()); + } + if (model.wasPropertyExplicitlySet("passwordSecretId")) { + this.passwordSecretId(model.getPasswordSecretId()); + } + if (model.wasPropertyExplicitlySet("passwordSecretAccessMode")) { + this.passwordSecretAccessMode(model.getPasswordSecretAccessMode()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public BasicNamedCredentialContent( + String userName, + Role role, + String passwordSecretId, + PasswordSecretAccessMode passwordSecretAccessMode) { + super(); + this.userName = userName; + this.role = role; + this.passwordSecretId = passwordSecretId; + this.passwordSecretAccessMode = passwordSecretAccessMode; + } + + /** The user name used to connect to the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("userName") + private final String userName; + + /** + * The user name used to connect to the database. + * + * @return the value + */ + public String getUserName() { + return userName; + } + + /** The role of the database user. */ + @com.fasterxml.jackson.annotation.JsonProperty("role") + private final Role role; + + /** + * The role of the database user. + * + * @return the value + */ + public Role getRole() { + return role; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Vault service secret that contains the database user password. + */ + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecretId") + private final String passwordSecretId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Vault service secret that contains the database user password. + * + * @return the value + */ + public String getPasswordSecretId() { + return passwordSecretId; + } + + /** The mechanism used to access the password plain text value. */ + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecretAccessMode") + private final PasswordSecretAccessMode passwordSecretAccessMode; + + /** + * The mechanism used to access the password plain text value. + * + * @return the value + */ + public PasswordSecretAccessMode getPasswordSecretAccessMode() { + return passwordSecretAccessMode; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("BasicNamedCredentialContent("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", userName=").append(String.valueOf(this.userName)); + sb.append(", role=").append(String.valueOf(this.role)); + sb.append(", passwordSecretId=").append(String.valueOf(this.passwordSecretId)); + sb.append(", passwordSecretAccessMode=") + .append(String.valueOf(this.passwordSecretAccessMode)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof BasicNamedCredentialContent)) { + return false; + } + + BasicNamedCredentialContent other = (BasicNamedCredentialContent) o; + return java.util.Objects.equals(this.userName, other.userName) + && java.util.Objects.equals(this.role, other.role) + && java.util.Objects.equals(this.passwordSecretId, other.passwordSecretId) + && java.util.Objects.equals( + this.passwordSecretAccessMode, other.passwordSecretAccessMode) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.userName == null ? 43 : this.userName.hashCode()); + result = (result * PRIME) + (this.role == null ? 43 : this.role.hashCode()); + result = + (result * PRIME) + + (this.passwordSecretId == null ? 43 : this.passwordSecretId.hashCode()); + result = + (result * PRIME) + + (this.passwordSecretAccessMode == null + ? 43 + : this.passwordSecretAccessMode.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ChangeDatabaseParametersDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ChangeDatabaseParametersDetails.java index 5f650834293..68841a5d4a0 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ChangeDatabaseParametersDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ChangeDatabaseParametersDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemanagement.model; /** - * The details required to change database parameter values.
+ * The details required to change database parameter values. It takes either credentials or + * databaseCredential. It's recommended to provide databaseCredential
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are 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,13 +24,15 @@ public final class ChangeDatabaseParametersDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"credentials", "scope", "parameters"}) + @java.beans.ConstructorProperties({"credentials", "databaseCredential", "scope", "parameters"}) public ChangeDatabaseParametersDetails( DatabaseCredentials credentials, + DatabaseCredentialDetails databaseCredential, ParameterScope scope, java.util.List parameters) { super(); this.credentials = credentials; + this.databaseCredential = databaseCredential; this.scope = scope; this.parameters = parameters; } @@ -45,6 +48,15 @@ public Builder credentials(DatabaseCredentials credentials) { this.__explicitlySet__.add("credentials"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private DatabaseCredentialDetails databaseCredential; + + public Builder databaseCredential(DatabaseCredentialDetails databaseCredential) { + this.databaseCredential = databaseCredential; + this.__explicitlySet__.add("databaseCredential"); + return this; + } /** * The clause used to specify when the parameter change takes effect. * @@ -96,7 +108,7 @@ public Builder parameters(java.util.List paramet public ChangeDatabaseParametersDetails build() { ChangeDatabaseParametersDetails model = new ChangeDatabaseParametersDetails( - this.credentials, this.scope, this.parameters); + this.credentials, this.databaseCredential, this.scope, this.parameters); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -108,6 +120,9 @@ public Builder copy(ChangeDatabaseParametersDetails model) { if (model.wasPropertyExplicitlySet("credentials")) { this.credentials(model.getCredentials()); } + if (model.wasPropertyExplicitlySet("databaseCredential")) { + this.databaseCredential(model.getDatabaseCredential()); + } if (model.wasPropertyExplicitlySet("scope")) { this.scope(model.getScope()); } @@ -134,6 +149,13 @@ public DatabaseCredentials getCredentials() { return credentials; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private final DatabaseCredentialDetails databaseCredential; + + public DatabaseCredentialDetails getDatabaseCredential() { + return databaseCredential; + } + /** * The clause used to specify when the parameter change takes effect. * @@ -190,6 +212,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("ChangeDatabaseParametersDetails("); sb.append("super=").append(super.toString()); sb.append("credentials=").append(String.valueOf(this.credentials)); + sb.append(", databaseCredential=").append(String.valueOf(this.databaseCredential)); sb.append(", scope=").append(String.valueOf(this.scope)); sb.append(", parameters=").append(String.valueOf(this.parameters)); sb.append(")"); @@ -207,6 +230,7 @@ public boolean equals(Object o) { ChangeDatabaseParametersDetails other = (ChangeDatabaseParametersDetails) o; return java.util.Objects.equals(this.credentials, other.credentials) + && java.util.Objects.equals(this.databaseCredential, other.databaseCredential) && java.util.Objects.equals(this.scope, other.scope) && java.util.Objects.equals(this.parameters, other.parameters) && super.equals(other); @@ -217,6 +241,11 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.credentials == null ? 43 : this.credentials.hashCode()); + result = + (result * PRIME) + + (this.databaseCredential == null + ? 43 + : this.databaseCredential.hashCode()); result = (result * PRIME) + (this.scope == null ? 43 : this.scope.hashCode()); result = (result * PRIME) + (this.parameters == null ? 43 : this.parameters.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ChangeNamedCredentialCompartmentDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ChangeNamedCredentialCompartmentDetails.java new file mode 100644 index 00000000000..d5b4276a604 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ChangeNamedCredentialCompartmentDetails.java @@ -0,0 +1,145 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details required to change the compartment of a named credential.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeNamedCredentialCompartmentDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ChangeNamedCredentialCompartmentDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId"}) + public ChangeNamedCredentialCompartmentDetails(String compartmentId) { + super(); + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment to which the named credential should be moved. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment to which the named credential should be moved. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChangeNamedCredentialCompartmentDetails build() { + ChangeNamedCredentialCompartmentDetails model = + new ChangeNamedCredentialCompartmentDetails(this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeNamedCredentialCompartmentDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment to which the named credential should be moved. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment to which the named credential should be moved. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ChangeNamedCredentialCompartmentDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeNamedCredentialCompartmentDetails)) { + return false; + } + + ChangeNamedCredentialCompartmentDetails other = (ChangeNamedCredentialCompartmentDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ChangePlanRetentionDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ChangePlanRetentionDetails.java index fe23fb078a9..4d140d19884 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ChangePlanRetentionDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ChangePlanRetentionDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemanagement.model; /** - * The details required to change the plan retention period.
+ * The details required to change the plan retention period. It takes either credentials or + * databaseCredential. It's recommended to provide databaseCredential
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are 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,12 +24,15 @@ public final class ChangePlanRetentionDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"retentionWeeks", "credentials"}) + @java.beans.ConstructorProperties({"retentionWeeks", "credentials", "databaseCredential"}) public ChangePlanRetentionDetails( - Integer retentionWeeks, ManagedDatabaseCredential credentials) { + Integer retentionWeeks, + ManagedDatabaseCredential credentials, + DatabaseCredentialDetails databaseCredential) { super(); this.retentionWeeks = retentionWeeks; this.credentials = credentials; + this.databaseCredential = databaseCredential; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -58,12 +62,22 @@ public Builder credentials(ManagedDatabaseCredential credentials) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private DatabaseCredentialDetails databaseCredential; + + public Builder databaseCredential(DatabaseCredentialDetails databaseCredential) { + this.databaseCredential = databaseCredential; + this.__explicitlySet__.add("databaseCredential"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public ChangePlanRetentionDetails build() { ChangePlanRetentionDetails model = - new ChangePlanRetentionDetails(this.retentionWeeks, this.credentials); + new ChangePlanRetentionDetails( + this.retentionWeeks, this.credentials, this.databaseCredential); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -78,6 +92,9 @@ public Builder copy(ChangePlanRetentionDetails model) { if (model.wasPropertyExplicitlySet("credentials")) { this.credentials(model.getCredentials()); } + if (model.wasPropertyExplicitlySet("databaseCredential")) { + this.databaseCredential(model.getDatabaseCredential()); + } return this; } } @@ -111,6 +128,13 @@ public ManagedDatabaseCredential getCredentials() { return credentials; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private final DatabaseCredentialDetails databaseCredential; + + public DatabaseCredentialDetails getDatabaseCredential() { + return databaseCredential; + } + @Override public String toString() { return this.toString(true); @@ -128,6 +152,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("retentionWeeks=").append(String.valueOf(this.retentionWeeks)); sb.append(", credentials=").append(String.valueOf(this.credentials)); + sb.append(", databaseCredential=").append(String.valueOf(this.databaseCredential)); sb.append(")"); return sb.toString(); } @@ -144,6 +169,7 @@ public boolean equals(Object o) { ChangePlanRetentionDetails other = (ChangePlanRetentionDetails) o; return java.util.Objects.equals(this.retentionWeeks, other.retentionWeeks) && java.util.Objects.equals(this.credentials, other.credentials) + && java.util.Objects.equals(this.databaseCredential, other.databaseCredential) && super.equals(other); } @@ -155,6 +181,11 @@ public int hashCode() { (result * PRIME) + (this.retentionWeeks == null ? 43 : this.retentionWeeks.hashCode()); result = (result * PRIME) + (this.credentials == null ? 43 : this.credentials.hashCode()); + result = + (result * PRIME) + + (this.databaseCredential == null + ? 43 + : this.databaseCredential.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ChangeSpaceBudgetDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ChangeSpaceBudgetDetails.java index aa083cd95c5..f618d2f2f93 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ChangeSpaceBudgetDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ChangeSpaceBudgetDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemanagement.model; /** - * The details required to change the disk space limit for the SQL Management Base.
+ * The details required to change the disk space limit for the SQL Management Base. It takes either + * credentials or databaseCredential. It's recommended to provide databaseCredential
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are 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,12 +24,15 @@ public final class ChangeSpaceBudgetDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"spaceBudgetPercent", "credentials"}) + @java.beans.ConstructorProperties({"spaceBudgetPercent", "credentials", "databaseCredential"}) public ChangeSpaceBudgetDetails( - Double spaceBudgetPercent, ManagedDatabaseCredential credentials) { + Double spaceBudgetPercent, + ManagedDatabaseCredential credentials, + DatabaseCredentialDetails databaseCredential) { super(); this.spaceBudgetPercent = spaceBudgetPercent; this.credentials = credentials; + this.databaseCredential = databaseCredential; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -58,12 +62,22 @@ public Builder credentials(ManagedDatabaseCredential credentials) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private DatabaseCredentialDetails databaseCredential; + + public Builder databaseCredential(DatabaseCredentialDetails databaseCredential) { + this.databaseCredential = databaseCredential; + this.__explicitlySet__.add("databaseCredential"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public ChangeSpaceBudgetDetails build() { ChangeSpaceBudgetDetails model = - new ChangeSpaceBudgetDetails(this.spaceBudgetPercent, this.credentials); + new ChangeSpaceBudgetDetails( + this.spaceBudgetPercent, this.credentials, this.databaseCredential); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -78,6 +92,9 @@ public Builder copy(ChangeSpaceBudgetDetails model) { if (model.wasPropertyExplicitlySet("credentials")) { this.credentials(model.getCredentials()); } + if (model.wasPropertyExplicitlySet("databaseCredential")) { + this.databaseCredential(model.getDatabaseCredential()); + } return this; } } @@ -111,6 +128,13 @@ public ManagedDatabaseCredential getCredentials() { return credentials; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private final DatabaseCredentialDetails databaseCredential; + + public DatabaseCredentialDetails getDatabaseCredential() { + return databaseCredential; + } + @Override public String toString() { return this.toString(true); @@ -128,6 +152,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("spaceBudgetPercent=").append(String.valueOf(this.spaceBudgetPercent)); sb.append(", credentials=").append(String.valueOf(this.credentials)); + sb.append(", databaseCredential=").append(String.valueOf(this.databaseCredential)); sb.append(")"); return sb.toString(); } @@ -144,6 +169,7 @@ public boolean equals(Object o) { ChangeSpaceBudgetDetails other = (ChangeSpaceBudgetDetails) o; return java.util.Objects.equals(this.spaceBudgetPercent, other.spaceBudgetPercent) && java.util.Objects.equals(this.credentials, other.credentials) + && java.util.Objects.equals(this.databaseCredential, other.databaseCredential) && super.equals(other); } @@ -157,6 +183,11 @@ public int hashCode() { ? 43 : this.spaceBudgetPercent.hashCode()); result = (result * PRIME) + (this.credentials == null ? 43 : this.credentials.hashCode()); + result = + (result * PRIME) + + (this.databaseCredential == null + ? 43 + : this.databaseCredential.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ChangeSqlPlanBaselinesAttributesDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ChangeSqlPlanBaselinesAttributesDetails.java index cd614aa9403..09dd60587cd 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ChangeSqlPlanBaselinesAttributesDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ChangeSqlPlanBaselinesAttributesDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemanagement.model; /** - * The details required to change SQL plan baseline attributes.
+ * The details required to change SQL plan baseline attributes. It takes either credentials or + * databaseCredential. It's recommended to provide databaseCredential
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -29,7 +30,8 @@ public final class ChangeSqlPlanBaselinesAttributesDetails "isEnabled", "isFixed", "isAutoPurged", - "credentials" + "credentials", + "databaseCredential" }) public ChangeSqlPlanBaselinesAttributesDetails( String sqlHandle, @@ -37,7 +39,8 @@ public ChangeSqlPlanBaselinesAttributesDetails( Boolean isEnabled, Boolean isFixed, Boolean isAutoPurged, - ManagedDatabaseCredential credentials) { + ManagedDatabaseCredential credentials, + DatabaseCredentialDetails databaseCredential) { super(); this.sqlHandle = sqlHandle; this.planName = planName; @@ -45,6 +48,7 @@ public ChangeSqlPlanBaselinesAttributesDetails( this.isFixed = isFixed; this.isAutoPurged = isAutoPurged; this.credentials = credentials; + this.databaseCredential = databaseCredential; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -146,6 +150,15 @@ public Builder credentials(ManagedDatabaseCredential credentials) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private DatabaseCredentialDetails databaseCredential; + + public Builder databaseCredential(DatabaseCredentialDetails databaseCredential) { + this.databaseCredential = databaseCredential; + this.__explicitlySet__.add("databaseCredential"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -157,7 +170,8 @@ public ChangeSqlPlanBaselinesAttributesDetails build() { this.isEnabled, this.isFixed, this.isAutoPurged, - this.credentials); + this.credentials, + this.databaseCredential); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -184,6 +198,9 @@ public Builder copy(ChangeSqlPlanBaselinesAttributesDetails model) { if (model.wasPropertyExplicitlySet("credentials")) { this.credentials(model.getCredentials()); } + if (model.wasPropertyExplicitlySet("databaseCredential")) { + this.databaseCredential(model.getDatabaseCredential()); + } return this; } } @@ -281,6 +298,13 @@ public ManagedDatabaseCredential getCredentials() { return credentials; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private final DatabaseCredentialDetails databaseCredential; + + public DatabaseCredentialDetails getDatabaseCredential() { + return databaseCredential; + } + @Override public String toString() { return this.toString(true); @@ -302,6 +326,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", isFixed=").append(String.valueOf(this.isFixed)); sb.append(", isAutoPurged=").append(String.valueOf(this.isAutoPurged)); sb.append(", credentials=").append(String.valueOf(this.credentials)); + sb.append(", databaseCredential=").append(String.valueOf(this.databaseCredential)); sb.append(")"); return sb.toString(); } @@ -322,6 +347,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.isFixed, other.isFixed) && java.util.Objects.equals(this.isAutoPurged, other.isAutoPurged) && java.util.Objects.equals(this.credentials, other.credentials) + && java.util.Objects.equals(this.databaseCredential, other.databaseCredential) && super.equals(other); } @@ -335,6 +361,11 @@ public int hashCode() { result = (result * PRIME) + (this.isFixed == null ? 43 : this.isFixed.hashCode()); result = (result * PRIME) + (this.isAutoPurged == null ? 43 : this.isAutoPurged.hashCode()); result = (result * PRIME) + (this.credentials == null ? 43 : this.credentials.hashCode()); + result = + (result * PRIME) + + (this.databaseCredential == null + ? 43 + : this.databaseCredential.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloneSqlTuningTaskDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloneSqlTuningTaskDetails.java index 277ecfcb9fd..a8f7044264a 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloneSqlTuningTaskDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CloneSqlTuningTaskDetails.java @@ -6,7 +6,8 @@ /** * The request to clone and run a SQL tuning task. The new task uses the same inputs as the one - * being cloned.
+ * being cloned. It takes either credentialDetails or databaseCredential. It's recommended to + * provide databaseCredential
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -28,18 +29,21 @@ public final class CloneSqlTuningTaskDetails "taskName", "originalTaskId", "taskDescription", - "credentialDetails" + "credentialDetails", + "databaseCredential" }) public CloneSqlTuningTaskDetails( String taskName, Long originalTaskId, String taskDescription, - SqlTuningTaskCredentialDetails credentialDetails) { + SqlTuningTaskCredentialDetails credentialDetails, + DatabaseCredentialDetails databaseCredential) { super(); this.taskName = taskName; this.originalTaskId = originalTaskId; this.taskDescription = taskDescription; this.credentialDetails = credentialDetails; + this.databaseCredential = databaseCredential; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -111,6 +115,15 @@ public Builder credentialDetails(SqlTuningTaskCredentialDetails credentialDetail return this; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private DatabaseCredentialDetails databaseCredential; + + public Builder databaseCredential(DatabaseCredentialDetails databaseCredential) { + this.databaseCredential = databaseCredential; + this.__explicitlySet__.add("databaseCredential"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -120,7 +133,8 @@ public CloneSqlTuningTaskDetails build() { this.taskName, this.originalTaskId, this.taskDescription, - this.credentialDetails); + this.credentialDetails, + this.databaseCredential); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -141,6 +155,9 @@ public Builder copy(CloneSqlTuningTaskDetails model) { if (model.wasPropertyExplicitlySet("credentialDetails")) { this.credentialDetails(model.getCredentialDetails()); } + if (model.wasPropertyExplicitlySet("databaseCredential")) { + this.databaseCredential(model.getDatabaseCredential()); + } return this; } } @@ -212,6 +229,13 @@ public SqlTuningTaskCredentialDetails getCredentialDetails() { return credentialDetails; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private final DatabaseCredentialDetails databaseCredential; + + public DatabaseCredentialDetails getDatabaseCredential() { + return databaseCredential; + } + @Override public String toString() { return this.toString(true); @@ -231,6 +255,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", originalTaskId=").append(String.valueOf(this.originalTaskId)); sb.append(", taskDescription=").append(String.valueOf(this.taskDescription)); sb.append(", credentialDetails=").append(String.valueOf(this.credentialDetails)); + sb.append(", databaseCredential=").append(String.valueOf(this.databaseCredential)); sb.append(")"); return sb.toString(); } @@ -249,6 +274,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.originalTaskId, other.originalTaskId) && java.util.Objects.equals(this.taskDescription, other.taskDescription) && java.util.Objects.equals(this.credentialDetails, other.credentialDetails) + && java.util.Objects.equals(this.databaseCredential, other.databaseCredential) && super.equals(other); } @@ -266,6 +292,11 @@ public int hashCode() { result = (result * PRIME) + (this.credentialDetails == null ? 43 : this.credentialDetails.hashCode()); + result = + (result * PRIME) + + (this.databaseCredential == null + ? 43 + : this.databaseCredential.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ConfigureAutomaticCaptureFiltersDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ConfigureAutomaticCaptureFiltersDetails.java index c6129d1e090..e13713de303 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ConfigureAutomaticCaptureFiltersDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ConfigureAutomaticCaptureFiltersDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemanagement.model; /** - * The details required to configure automatic capture filters.
+ * The details required to configure automatic capture filters. It takes either credentials or + * databaseCredential. It's recommended to provide databaseCredential
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are 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,13 +24,15 @@ public final class ConfigureAutomaticCaptureFiltersDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"autoCaptureFilters", "credentials"}) + @java.beans.ConstructorProperties({"autoCaptureFilters", "credentials", "databaseCredential"}) public ConfigureAutomaticCaptureFiltersDetails( java.util.List autoCaptureFilters, - ManagedDatabaseCredential credentials) { + ManagedDatabaseCredential credentials, + DatabaseCredentialDetails databaseCredential) { super(); this.autoCaptureFilters = autoCaptureFilters; this.credentials = credentials; + this.databaseCredential = databaseCredential; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -60,13 +63,22 @@ public Builder credentials(ManagedDatabaseCredential credentials) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private DatabaseCredentialDetails databaseCredential; + + public Builder databaseCredential(DatabaseCredentialDetails databaseCredential) { + this.databaseCredential = databaseCredential; + this.__explicitlySet__.add("databaseCredential"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public ConfigureAutomaticCaptureFiltersDetails build() { ConfigureAutomaticCaptureFiltersDetails model = new ConfigureAutomaticCaptureFiltersDetails( - this.autoCaptureFilters, this.credentials); + this.autoCaptureFilters, this.credentials, this.databaseCredential); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -81,6 +93,9 @@ public Builder copy(ConfigureAutomaticCaptureFiltersDetails model) { if (model.wasPropertyExplicitlySet("credentials")) { this.credentials(model.getCredentials()); } + if (model.wasPropertyExplicitlySet("databaseCredential")) { + this.databaseCredential(model.getDatabaseCredential()); + } return this; } } @@ -114,6 +129,13 @@ public ManagedDatabaseCredential getCredentials() { return credentials; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private final DatabaseCredentialDetails databaseCredential; + + public DatabaseCredentialDetails getDatabaseCredential() { + return databaseCredential; + } + @Override public String toString() { return this.toString(true); @@ -131,6 +153,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("autoCaptureFilters=").append(String.valueOf(this.autoCaptureFilters)); sb.append(", credentials=").append(String.valueOf(this.credentials)); + sb.append(", databaseCredential=").append(String.valueOf(this.databaseCredential)); sb.append(")"); return sb.toString(); } @@ -147,6 +170,7 @@ public boolean equals(Object o) { ConfigureAutomaticCaptureFiltersDetails other = (ConfigureAutomaticCaptureFiltersDetails) o; return java.util.Objects.equals(this.autoCaptureFilters, other.autoCaptureFilters) && java.util.Objects.equals(this.credentials, other.credentials) + && java.util.Objects.equals(this.databaseCredential, other.databaseCredential) && super.equals(other); } @@ -160,6 +184,11 @@ public int hashCode() { ? 43 : this.autoCaptureFilters.hashCode()); result = (result * PRIME) + (this.credentials == null ? 43 : this.credentials.hashCode()); + result = + (result * PRIME) + + (this.databaseCredential == null + ? 43 + : this.databaseCredential.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ConfigureAutomaticSpmEvolveAdvisorTaskDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ConfigureAutomaticSpmEvolveAdvisorTaskDetails.java index 867b0fca1e2..5bb03654836 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ConfigureAutomaticSpmEvolveAdvisorTaskDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ConfigureAutomaticSpmEvolveAdvisorTaskDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemanagement.model; /** - * The configuration details of the Automatic SPM Evolve Advisor task.
+ * The configuration details of the Automatic SPM Evolve Advisor task. It takes either credentials + * or databaseCredential. It's recommended to provide databaseCredential
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are 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,12 +24,15 @@ public final class ConfigureAutomaticSpmEvolveAdvisorTaskDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"taskParameters", "credentials"}) + @java.beans.ConstructorProperties({"taskParameters", "credentials", "databaseCredential"}) public ConfigureAutomaticSpmEvolveAdvisorTaskDetails( - SpmEvolveTaskParameters taskParameters, ManagedDatabaseCredential credentials) { + SpmEvolveTaskParameters taskParameters, + ManagedDatabaseCredential credentials, + DatabaseCredentialDetails databaseCredential) { super(); this.taskParameters = taskParameters; this.credentials = credentials; + this.databaseCredential = databaseCredential; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -52,13 +56,22 @@ public Builder credentials(ManagedDatabaseCredential credentials) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private DatabaseCredentialDetails databaseCredential; + + public Builder databaseCredential(DatabaseCredentialDetails databaseCredential) { + this.databaseCredential = databaseCredential; + this.__explicitlySet__.add("databaseCredential"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public ConfigureAutomaticSpmEvolveAdvisorTaskDetails build() { ConfigureAutomaticSpmEvolveAdvisorTaskDetails model = new ConfigureAutomaticSpmEvolveAdvisorTaskDetails( - this.taskParameters, this.credentials); + this.taskParameters, this.credentials, this.databaseCredential); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -73,6 +86,9 @@ public Builder copy(ConfigureAutomaticSpmEvolveAdvisorTaskDetails model) { if (model.wasPropertyExplicitlySet("credentials")) { this.credentials(model.getCredentials()); } + if (model.wasPropertyExplicitlySet("databaseCredential")) { + this.databaseCredential(model.getDatabaseCredential()); + } return this; } } @@ -100,6 +116,13 @@ public ManagedDatabaseCredential getCredentials() { return credentials; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private final DatabaseCredentialDetails databaseCredential; + + public DatabaseCredentialDetails getDatabaseCredential() { + return databaseCredential; + } + @Override public String toString() { return this.toString(true); @@ -117,6 +140,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("taskParameters=").append(String.valueOf(this.taskParameters)); sb.append(", credentials=").append(String.valueOf(this.credentials)); + sb.append(", databaseCredential=").append(String.valueOf(this.databaseCredential)); sb.append(")"); return sb.toString(); } @@ -134,6 +158,7 @@ public boolean equals(Object o) { (ConfigureAutomaticSpmEvolveAdvisorTaskDetails) o; return java.util.Objects.equals(this.taskParameters, other.taskParameters) && java.util.Objects.equals(this.credentials, other.credentials) + && java.util.Objects.equals(this.databaseCredential, other.databaseCredential) && super.equals(other); } @@ -145,6 +170,11 @@ public int hashCode() { (result * PRIME) + (this.taskParameters == null ? 43 : this.taskParameters.hashCode()); result = (result * PRIME) + (this.credentials == null ? 43 : this.credentials.hashCode()); + result = + (result * PRIME) + + (this.databaseCredential == null + ? 43 + : this.databaseCredential.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateNamedCredentialDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateNamedCredentialDetails.java new file mode 100644 index 00000000000..f309d214181 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateNamedCredentialDetails.java @@ -0,0 +1,389 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details required to create a named credential.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateNamedCredentialDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateNamedCredentialDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "description", + "scope", + "type", + "content", + "compartmentId", + "associatedResource" + }) + public CreateNamedCredentialDetails( + String name, + String description, + NamedCredentialScope scope, + ResourceType type, + NamedCredentialContent content, + String compartmentId, + String associatedResource) { + super(); + this.name = name; + this.description = description; + this.scope = scope; + this.type = type; + this.content = content; + this.compartmentId = compartmentId; + this.associatedResource = associatedResource; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of the named credential. Valid characters are uppercase or lowercase letters, + * numbers, and "_". The name of the named credential cannot be modified. It must be unique + * in the compartment and must begin with an alphabetic character. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the named credential. Valid characters are uppercase or lowercase letters, + * numbers, and "_". The name of the named credential cannot be modified. It must be unique + * in the compartment and must begin with an alphabetic character. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** The information specified by the user about the named credential. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The information specified by the user about the named credential. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** The scope of the named credential. */ + @com.fasterxml.jackson.annotation.JsonProperty("scope") + private NamedCredentialScope scope; + + /** + * The scope of the named credential. + * + * @param scope the value to set + * @return this builder + */ + public Builder scope(NamedCredentialScope scope) { + this.scope = scope; + this.__explicitlySet__.add("scope"); + return this; + } + /** The type of resource associated with the named credential. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private ResourceType type; + + /** + * The type of resource associated with the named credential. + * + * @param type the value to set + * @return this builder + */ + public Builder type(ResourceType type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("content") + private NamedCredentialContent content; + + public Builder content(NamedCredentialContent content) { + this.content = content; + this.__explicitlySet__.add("content"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment in which the named credential resides. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment in which the named credential resides. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * resource that is associated to the named credential. + */ + @com.fasterxml.jackson.annotation.JsonProperty("associatedResource") + private String associatedResource; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * resource that is associated to the named credential. + * + * @param associatedResource the value to set + * @return this builder + */ + public Builder associatedResource(String associatedResource) { + this.associatedResource = associatedResource; + this.__explicitlySet__.add("associatedResource"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateNamedCredentialDetails build() { + CreateNamedCredentialDetails model = + new CreateNamedCredentialDetails( + this.name, + this.description, + this.scope, + this.type, + this.content, + this.compartmentId, + this.associatedResource); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateNamedCredentialDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("scope")) { + this.scope(model.getScope()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("content")) { + this.content(model.getContent()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("associatedResource")) { + this.associatedResource(model.getAssociatedResource()); + } + 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 named credential. Valid characters are uppercase or lowercase letters, + * numbers, and "_". The name of the named credential cannot be modified. It must be unique in + * the compartment and must begin with an alphabetic character. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the named credential. Valid characters are uppercase or lowercase letters, + * numbers, and "_". The name of the named credential cannot be modified. It must be unique in + * the compartment and must begin with an alphabetic character. + * + * @return the value + */ + public String getName() { + return name; + } + + /** The information specified by the user about the named credential. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The information specified by the user about the named credential. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** The scope of the named credential. */ + @com.fasterxml.jackson.annotation.JsonProperty("scope") + private final NamedCredentialScope scope; + + /** + * The scope of the named credential. + * + * @return the value + */ + public NamedCredentialScope getScope() { + return scope; + } + + /** The type of resource associated with the named credential. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final ResourceType type; + + /** + * The type of resource associated with the named credential. + * + * @return the value + */ + public ResourceType getType() { + return type; + } + + @com.fasterxml.jackson.annotation.JsonProperty("content") + private final NamedCredentialContent content; + + public NamedCredentialContent getContent() { + return content; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment in which the named credential resides. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment in which the named credential resides. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * resource that is associated to the named credential. + */ + @com.fasterxml.jackson.annotation.JsonProperty("associatedResource") + private final String associatedResource; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * resource that is associated to the named credential. + * + * @return the value + */ + public String getAssociatedResource() { + return associatedResource; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateNamedCredentialDetails("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", scope=").append(String.valueOf(this.scope)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", content=").append(String.valueOf(this.content)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", associatedResource=").append(String.valueOf(this.associatedResource)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateNamedCredentialDetails)) { + return false; + } + + CreateNamedCredentialDetails other = (CreateNamedCredentialDetails) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.scope, other.scope) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.content, other.content) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.associatedResource, other.associatedResource) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.scope == null ? 43 : this.scope.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.content == null ? 43 : this.content.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.associatedResource == null + ? 43 + : this.associatedResource.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateSqlJobDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateSqlJobDetails.java index 3445e8461be..8f06e0a19f9 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateSqlJobDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateSqlJobDetails.java @@ -228,6 +228,25 @@ public Builder secretId(String secretId) { this.__explicitlySet__.add("secretId"); return this; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Named Credentials containing password secret. + */ + @com.fasterxml.jackson.annotation.JsonProperty("namedCredentialId") + private String namedCredentialId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Named Credentials containing password secret. + * + * @param namedCredentialId the value to set + * @return this builder + */ + public Builder namedCredentialId(String namedCredentialId) { + this.namedCredentialId = namedCredentialId; + this.__explicitlySet__.add("namedCredentialId"); + return this; + } /** * The role of the database user. Indicates whether the database user is a normal user or * sysdba. @@ -272,6 +291,7 @@ public CreateSqlJobDetails build() { this.userName, this.password, this.secretId, + this.namedCredentialId, this.role); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -335,6 +355,9 @@ public Builder copy(CreateSqlJobDetails model) { if (model.wasPropertyExplicitlySet("secretId")) { this.secretId(model.getSecretId()); } + if (model.wasPropertyExplicitlySet("namedCredentialId")) { + this.namedCredentialId(model.getNamedCredentialId()); + } if (model.wasPropertyExplicitlySet("role")) { this.role(model.getRole()); } @@ -371,6 +394,7 @@ public CreateSqlJobDetails( String userName, String password, String secretId, + String namedCredentialId, SqlJob.Role role) { super( name, @@ -391,6 +415,7 @@ public CreateSqlJobDetails( this.userName = userName; this.password = password; this.secretId = secretId; + this.namedCredentialId = namedCredentialId; this.role = role; } @@ -490,6 +515,23 @@ public String getSecretId() { return secretId; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Named Credentials containing password secret. + */ + @com.fasterxml.jackson.annotation.JsonProperty("namedCredentialId") + private final String namedCredentialId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Named Credentials containing password secret. + * + * @return the value + */ + public String getNamedCredentialId() { + return namedCredentialId; + } + /** * The role of the database user. Indicates whether the database user is a normal user or * sysdba. @@ -530,6 +572,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", userName=").append(String.valueOf(this.userName)); sb.append(", password=").append(String.valueOf(this.password)); sb.append(", secretId=").append(String.valueOf(this.secretId)); + sb.append(", namedCredentialId=").append(String.valueOf(this.namedCredentialId)); sb.append(", role=").append(String.valueOf(this.role)); sb.append(")"); return sb.toString(); @@ -553,6 +596,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.userName, other.userName) && java.util.Objects.equals(this.password, other.password) && java.util.Objects.equals(this.secretId, other.secretId) + && java.util.Objects.equals(this.namedCredentialId, other.namedCredentialId) && java.util.Objects.equals(this.role, other.role) && super.equals(other); } @@ -571,6 +615,9 @@ public int hashCode() { result = (result * PRIME) + (this.userName == null ? 43 : this.userName.hashCode()); result = (result * PRIME) + (this.password == null ? 43 : this.password.hashCode()); result = (result * PRIME) + (this.secretId == null ? 43 : this.secretId.hashCode()); + result = + (result * PRIME) + + (this.namedCredentialId == null ? 43 : this.namedCredentialId.hashCode()); result = (result * PRIME) + (this.role == null ? 43 : this.role.hashCode()); return result; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateSqlTuningSetDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateSqlTuningSetDetails.java index 3bab7e55b15..e0238f857d1 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateSqlTuningSetDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateSqlTuningSetDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemanagement.model; /** - * Create an empty Sql tuning sets.
+ * Create an empty Sql tuning sets. It takes either credentialDetails or databaseCredential. It's + * recommended to provide databaseCredential
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -25,6 +26,7 @@ public final class CreateSqlTuningSetDetails @Deprecated @java.beans.ConstructorProperties({ "credentialDetails", + "databaseCredential", "name", "owner", "description", @@ -32,12 +34,14 @@ public final class CreateSqlTuningSetDetails }) public CreateSqlTuningSetDetails( SqlTuningSetAdminCredentialDetails credentialDetails, + DatabaseCredentialDetails databaseCredential, String name, String owner, String description, Integer showSqlOnly) { super(); this.credentialDetails = credentialDetails; + this.databaseCredential = databaseCredential; this.name = name; this.owner = owner; this.description = description; @@ -55,6 +59,15 @@ public Builder credentialDetails(SqlTuningSetAdminCredentialDetails credentialDe this.__explicitlySet__.add("credentialDetails"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private DatabaseCredentialDetails databaseCredential; + + public Builder databaseCredential(DatabaseCredentialDetails databaseCredential) { + this.databaseCredential = databaseCredential; + this.__explicitlySet__.add("databaseCredential"); + return this; + } /** A unique Sql tuning set name. */ @com.fasterxml.jackson.annotation.JsonProperty("name") private String name; @@ -127,6 +140,7 @@ public CreateSqlTuningSetDetails build() { CreateSqlTuningSetDetails model = new CreateSqlTuningSetDetails( this.credentialDetails, + this.databaseCredential, this.name, this.owner, this.description, @@ -142,6 +156,9 @@ public Builder copy(CreateSqlTuningSetDetails model) { if (model.wasPropertyExplicitlySet("credentialDetails")) { this.credentialDetails(model.getCredentialDetails()); } + if (model.wasPropertyExplicitlySet("databaseCredential")) { + this.databaseCredential(model.getDatabaseCredential()); + } if (model.wasPropertyExplicitlySet("name")) { this.name(model.getName()); } @@ -174,6 +191,13 @@ public SqlTuningSetAdminCredentialDetails getCredentialDetails() { return credentialDetails; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private final DatabaseCredentialDetails databaseCredential; + + public DatabaseCredentialDetails getDatabaseCredential() { + return databaseCredential; + } + /** A unique Sql tuning set name. */ @com.fasterxml.jackson.annotation.JsonProperty("name") private final String name; @@ -246,6 +270,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("CreateSqlTuningSetDetails("); sb.append("super=").append(super.toString()); sb.append("credentialDetails=").append(String.valueOf(this.credentialDetails)); + sb.append(", databaseCredential=").append(String.valueOf(this.databaseCredential)); sb.append(", name=").append(String.valueOf(this.name)); sb.append(", owner=").append(String.valueOf(this.owner)); sb.append(", description=").append(String.valueOf(this.description)); @@ -265,6 +290,7 @@ public boolean equals(Object o) { CreateSqlTuningSetDetails other = (CreateSqlTuningSetDetails) o; return java.util.Objects.equals(this.credentialDetails, other.credentialDetails) + && java.util.Objects.equals(this.databaseCredential, other.databaseCredential) && java.util.Objects.equals(this.name, other.name) && java.util.Objects.equals(this.owner, other.owner) && java.util.Objects.equals(this.description, other.description) @@ -279,6 +305,11 @@ public int hashCode() { result = (result * PRIME) + (this.credentialDetails == null ? 43 : this.credentialDetails.hashCode()); + result = + (result * PRIME) + + (this.databaseCredential == null + ? 43 + : this.databaseCredential.hashCode()); result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); result = (result * PRIME) + (this.owner == null ? 43 : this.owner.hashCode()); result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateTablespaceDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateTablespaceDetails.java index ef78fb21ff5..e4992978910 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateTablespaceDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateTablespaceDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemanagement.model; /** - * The details required to create a tablespace.
+ * The details required to create a tablespace. It takes either credentialDetails or + * databaseCredential. It's recommended to provide databaseCredential
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -25,6 +26,7 @@ public final class CreateTablespaceDetails @Deprecated @java.beans.ConstructorProperties({ "credentialDetails", + "databaseCredential", "name", "type", "isBigfile", @@ -48,6 +50,7 @@ public final class CreateTablespaceDetails }) public CreateTablespaceDetails( TablespaceAdminCredentialDetails credentialDetails, + DatabaseCredentialDetails databaseCredential, String name, Type type, Boolean isBigfile, @@ -70,6 +73,7 @@ public CreateTablespaceDetails( Boolean isDefault) { super(); this.credentialDetails = credentialDetails; + this.databaseCredential = databaseCredential; this.name = name; this.type = type; this.isBigfile = isBigfile; @@ -103,6 +107,15 @@ public Builder credentialDetails(TablespaceAdminCredentialDetails credentialDeta this.__explicitlySet__.add("credentialDetails"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private DatabaseCredentialDetails databaseCredential; + + public Builder databaseCredential(DatabaseCredentialDetails databaseCredential) { + this.databaseCredential = databaseCredential; + this.__explicitlySet__.add("databaseCredential"); + return this; + } /** The name of the tablespace. It must be unique within a database. */ @com.fasterxml.jackson.annotation.JsonProperty("name") private String name; @@ -439,6 +452,7 @@ public CreateTablespaceDetails build() { CreateTablespaceDetails model = new CreateTablespaceDetails( this.credentialDetails, + this.databaseCredential, this.name, this.type, this.isBigfile, @@ -470,6 +484,9 @@ public Builder copy(CreateTablespaceDetails model) { if (model.wasPropertyExplicitlySet("credentialDetails")) { this.credentialDetails(model.getCredentialDetails()); } + if (model.wasPropertyExplicitlySet("databaseCredential")) { + this.databaseCredential(model.getDatabaseCredential()); + } if (model.wasPropertyExplicitlySet("name")) { this.name(model.getName()); } @@ -550,6 +567,13 @@ public TablespaceAdminCredentialDetails getCredentialDetails() { return credentialDetails; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private final DatabaseCredentialDetails databaseCredential; + + public DatabaseCredentialDetails getDatabaseCredential() { + return databaseCredential; + } + /** The name of the tablespace. It must be unique within a database. */ @com.fasterxml.jackson.annotation.JsonProperty("name") private final String name; @@ -1017,6 +1041,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("CreateTablespaceDetails("); sb.append("super=").append(super.toString()); sb.append("credentialDetails=").append(String.valueOf(this.credentialDetails)); + sb.append(", databaseCredential=").append(String.valueOf(this.databaseCredential)); sb.append(", name=").append(String.valueOf(this.name)); sb.append(", type=").append(String.valueOf(this.type)); sb.append(", isBigfile=").append(String.valueOf(this.isBigfile)); @@ -1052,6 +1077,7 @@ public boolean equals(Object o) { CreateTablespaceDetails other = (CreateTablespaceDetails) o; return java.util.Objects.equals(this.credentialDetails, other.credentialDetails) + && java.util.Objects.equals(this.databaseCredential, other.databaseCredential) && java.util.Objects.equals(this.name, other.name) && java.util.Objects.equals(this.type, other.type) && java.util.Objects.equals(this.isBigfile, other.isBigfile) @@ -1082,6 +1108,11 @@ public int hashCode() { result = (result * PRIME) + (this.credentialDetails == null ? 43 : this.credentialDetails.hashCode()); + result = + (result * PRIME) + + (this.databaseCredential == null + ? 43 + : this.databaseCredential.hashCode()); result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); result = (result * PRIME) + (this.isBigfile == null ? 43 : this.isBigfile.hashCode()); diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseCredentialDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseCredentialDetails.java new file mode 100644 index 00000000000..47e3e099e96 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseCredentialDetails.java @@ -0,0 +1,132 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The credential to connect to the database to perform tablespace administration tasks.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "credentialType", + defaultImpl = DatabaseCredentialDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseSecretCredentialDetails.class, + name = "SECRET"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseNamedCredentialDetails.class, + name = "NAMED_CREDENTIAL"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabasePasswordCredentialDetails.class, + name = "PASSWORD") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class DatabaseCredentialDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected DatabaseCredentialDetails() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseCredentialDetails("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseCredentialDetails)) { + return false; + } + + DatabaseCredentialDetails other = (DatabaseCredentialDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** The type of the credential for tablespace administration tasks. */ + public enum CredentialType implements com.oracle.bmc.http.internal.BmcEnum { + Secret("SECRET"), + Password("PASSWORD"), + NamedCredential("NAMED_CREDENTIAL"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(CredentialType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CredentialType v : CredentialType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + CredentialType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CredentialType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'CredentialType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseCredentials.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseCredentials.java index 363b5b68fcf..73619079219 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseCredentials.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseCredentials.java @@ -5,7 +5,9 @@ package com.oracle.bmc.databasemanagement.model; /** - * The database credentials used to perform management activity.
+ * The database credentials used to perform management activity. Provide one of the following + * attribute set. (userName, password, role) OR (userName, secretId, role) OR (namedCredentialId) + *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseNamedCredentialDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseNamedCredentialDetails.java new file mode 100644 index 00000000000..ab5ddc7b3f7 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseNamedCredentialDetails.java @@ -0,0 +1,147 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * User provides a named credential OCID, which will be used to retrieve the password to connect to + * the database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseNamedCredentialDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "credentialType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseNamedCredentialDetails extends DatabaseCredentialDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * named credential where the database password metadata is stored. + */ + @com.fasterxml.jackson.annotation.JsonProperty("namedCredentialId") + private String namedCredentialId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * named credential where the database password metadata is stored. + * + * @param namedCredentialId the value to set + * @return this builder + */ + public Builder namedCredentialId(String namedCredentialId) { + this.namedCredentialId = namedCredentialId; + this.__explicitlySet__.add("namedCredentialId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseNamedCredentialDetails build() { + DatabaseNamedCredentialDetails model = + new DatabaseNamedCredentialDetails(this.namedCredentialId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseNamedCredentialDetails model) { + if (model.wasPropertyExplicitlySet("namedCredentialId")) { + this.namedCredentialId(model.getNamedCredentialId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseNamedCredentialDetails(String namedCredentialId) { + super(); + this.namedCredentialId = namedCredentialId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * named credential where the database password metadata is stored. + */ + @com.fasterxml.jackson.annotation.JsonProperty("namedCredentialId") + private final String namedCredentialId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * named credential where the database password metadata is stored. + * + * @return the value + */ + public String getNamedCredentialId() { + return namedCredentialId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseNamedCredentialDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", namedCredentialId=").append(String.valueOf(this.namedCredentialId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseNamedCredentialDetails)) { + return false; + } + + DatabaseNamedCredentialDetails other = (DatabaseNamedCredentialDetails) o; + return java.util.Objects.equals(this.namedCredentialId, other.namedCredentialId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.namedCredentialId == null ? 43 : this.namedCredentialId.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabasePasswordCredentialDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabasePasswordCredentialDetails.java new file mode 100644 index 00000000000..9b962778e7b --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabasePasswordCredentialDetails.java @@ -0,0 +1,250 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * User provides a password to be used to connect to the database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabasePasswordCredentialDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "credentialType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabasePasswordCredentialDetails extends DatabaseCredentialDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The database user's password encoded using BASE64 scheme. */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + private String password; + + /** + * The database user's password encoded using BASE64 scheme. + * + * @param password the value to set + * @return this builder + */ + public Builder password(String password) { + this.password = password; + this.__explicitlySet__.add("password"); + return this; + } + /** The user to connect to the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("username") + private String username; + + /** + * The user to connect to the database. + * + * @param username the value to set + * @return this builder + */ + public Builder username(String username) { + this.username = username; + this.__explicitlySet__.add("username"); + return this; + } + /** The role of the database user. */ + @com.fasterxml.jackson.annotation.JsonProperty("role") + private Role role; + + /** + * The role of the database user. + * + * @param role the value to set + * @return this builder + */ + public Builder role(Role role) { + this.role = role; + this.__explicitlySet__.add("role"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabasePasswordCredentialDetails build() { + DatabasePasswordCredentialDetails model = + new DatabasePasswordCredentialDetails(this.password, this.username, this.role); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabasePasswordCredentialDetails model) { + if (model.wasPropertyExplicitlySet("password")) { + this.password(model.getPassword()); + } + if (model.wasPropertyExplicitlySet("username")) { + this.username(model.getUsername()); + } + if (model.wasPropertyExplicitlySet("role")) { + this.role(model.getRole()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabasePasswordCredentialDetails(String password, String username, Role role) { + super(); + this.password = password; + this.username = username; + this.role = role; + } + + /** The database user's password encoded using BASE64 scheme. */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + private final String password; + + /** + * The database user's password encoded using BASE64 scheme. + * + * @return the value + */ + public String getPassword() { + return password; + } + + /** The user to connect to the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("username") + private final String username; + + /** + * The user to connect to the database. + * + * @return the value + */ + public String getUsername() { + return username; + } + + /** The role of the database user. */ + public enum Role implements com.oracle.bmc.http.internal.BmcEnum { + Normal("NORMAL"), + Sysdba("SYSDBA"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Role.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Role v : Role.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Role(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Role create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Role', returning UnknownEnumValue", key); + return UnknownEnumValue; + } + }; + /** The role of the database user. */ + @com.fasterxml.jackson.annotation.JsonProperty("role") + private final Role role; + + /** + * The role of the database user. + * + * @return the value + */ + public Role getRole() { + return role; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabasePasswordCredentialDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", password=").append(""); + sb.append(", username=").append(String.valueOf(this.username)); + sb.append(", role=").append(String.valueOf(this.role)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabasePasswordCredentialDetails)) { + return false; + } + + DatabasePasswordCredentialDetails other = (DatabasePasswordCredentialDetails) o; + return java.util.Objects.equals(this.password, other.password) + && java.util.Objects.equals(this.username, other.username) + && java.util.Objects.equals(this.role, other.role) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.password == null ? 43 : this.password.hashCode()); + result = (result * PRIME) + (this.username == null ? 43 : this.username.hashCode()); + result = (result * PRIME) + (this.role == null ? 43 : this.role.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseSecretCredentialDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseSecretCredentialDetails.java new file mode 100644 index 00000000000..62c599a7a49 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseSecretCredentialDetails.java @@ -0,0 +1,262 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * User provides a secret OCID, which will be used to retrieve the password to connect to the + * database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseSecretCredentialDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "credentialType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseSecretCredentialDetails extends DatabaseCredentialDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Secret where the database password is stored. + */ + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecretId") + private String passwordSecretId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Secret where the database password is stored. + * + * @param passwordSecretId the value to set + * @return this builder + */ + public Builder passwordSecretId(String passwordSecretId) { + this.passwordSecretId = passwordSecretId; + this.__explicitlySet__.add("passwordSecretId"); + return this; + } + /** The user to connect to the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("username") + private String username; + + /** + * The user to connect to the database. + * + * @param username the value to set + * @return this builder + */ + public Builder username(String username) { + this.username = username; + this.__explicitlySet__.add("username"); + return this; + } + /** The role of the database user. */ + @com.fasterxml.jackson.annotation.JsonProperty("role") + private Role role; + + /** + * The role of the database user. + * + * @param role the value to set + * @return this builder + */ + public Builder role(Role role) { + this.role = role; + this.__explicitlySet__.add("role"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseSecretCredentialDetails build() { + DatabaseSecretCredentialDetails model = + new DatabaseSecretCredentialDetails( + this.passwordSecretId, this.username, this.role); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseSecretCredentialDetails model) { + if (model.wasPropertyExplicitlySet("passwordSecretId")) { + this.passwordSecretId(model.getPasswordSecretId()); + } + if (model.wasPropertyExplicitlySet("username")) { + this.username(model.getUsername()); + } + if (model.wasPropertyExplicitlySet("role")) { + this.role(model.getRole()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseSecretCredentialDetails(String passwordSecretId, String username, Role role) { + super(); + this.passwordSecretId = passwordSecretId; + this.username = username; + this.role = role; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Secret where the database password is stored. + */ + @com.fasterxml.jackson.annotation.JsonProperty("passwordSecretId") + private final String passwordSecretId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Secret where the database password is stored. + * + * @return the value + */ + public String getPasswordSecretId() { + return passwordSecretId; + } + + /** The user to connect to the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("username") + private final String username; + + /** + * The user to connect to the database. + * + * @return the value + */ + public String getUsername() { + return username; + } + + /** The role of the database user. */ + public enum Role implements com.oracle.bmc.http.internal.BmcEnum { + Normal("NORMAL"), + Sysdba("SYSDBA"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Role.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Role v : Role.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Role(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Role create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Role', returning UnknownEnumValue", key); + return UnknownEnumValue; + } + }; + /** The role of the database user. */ + @com.fasterxml.jackson.annotation.JsonProperty("role") + private final Role role; + + /** + * The role of the database user. + * + * @return the value + */ + public Role getRole() { + return role; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseSecretCredentialDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", passwordSecretId=").append(String.valueOf(this.passwordSecretId)); + sb.append(", username=").append(String.valueOf(this.username)); + sb.append(", role=").append(String.valueOf(this.role)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseSecretCredentialDetails)) { + return false; + } + + DatabaseSecretCredentialDetails other = (DatabaseSecretCredentialDetails) o; + return java.util.Objects.equals(this.passwordSecretId, other.passwordSecretId) + && java.util.Objects.equals(this.username, other.username) + && java.util.Objects.equals(this.role, other.role) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.passwordSecretId == null ? 43 : this.passwordSecretId.hashCode()); + result = (result * PRIME) + (this.username == null ? 43 : this.username.hashCode()); + result = (result * PRIME) + (this.role == null ? 43 : this.role.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableAutomaticInitialPlanCaptureDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableAutomaticInitialPlanCaptureDetails.java index ec6179fcea3..9be49414c7e 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableAutomaticInitialPlanCaptureDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableAutomaticInitialPlanCaptureDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemanagement.model; /** - * The details required to disable automatic initial plan capture.
+ * The details required to disable automatic initial plan capture. It takes either credentials or + * databaseCredential. It's recommended to provide databaseCredential
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are 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,10 +24,12 @@ public final class DisableAutomaticInitialPlanCaptureDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"credentials"}) - public DisableAutomaticInitialPlanCaptureDetails(ManagedDatabaseCredential credentials) { + @java.beans.ConstructorProperties({"credentials", "databaseCredential"}) + public DisableAutomaticInitialPlanCaptureDetails( + ManagedDatabaseCredential credentials, DatabaseCredentialDetails databaseCredential) { super(); this.credentials = credentials; + this.databaseCredential = databaseCredential; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -41,12 +44,22 @@ public Builder credentials(ManagedDatabaseCredential credentials) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private DatabaseCredentialDetails databaseCredential; + + public Builder databaseCredential(DatabaseCredentialDetails databaseCredential) { + this.databaseCredential = databaseCredential; + this.__explicitlySet__.add("databaseCredential"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public DisableAutomaticInitialPlanCaptureDetails build() { DisableAutomaticInitialPlanCaptureDetails model = - new DisableAutomaticInitialPlanCaptureDetails(this.credentials); + new DisableAutomaticInitialPlanCaptureDetails( + this.credentials, this.databaseCredential); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -58,6 +71,9 @@ public Builder copy(DisableAutomaticInitialPlanCaptureDetails model) { if (model.wasPropertyExplicitlySet("credentials")) { this.credentials(model.getCredentials()); } + if (model.wasPropertyExplicitlySet("databaseCredential")) { + this.databaseCredential(model.getDatabaseCredential()); + } return this; } } @@ -78,6 +94,13 @@ public ManagedDatabaseCredential getCredentials() { return credentials; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private final DatabaseCredentialDetails databaseCredential; + + public DatabaseCredentialDetails getDatabaseCredential() { + return databaseCredential; + } + @Override public String toString() { return this.toString(true); @@ -94,6 +117,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("DisableAutomaticInitialPlanCaptureDetails("); sb.append("super=").append(super.toString()); sb.append("credentials=").append(String.valueOf(this.credentials)); + sb.append(", databaseCredential=").append(String.valueOf(this.databaseCredential)); sb.append(")"); return sb.toString(); } @@ -109,7 +133,9 @@ public boolean equals(Object o) { DisableAutomaticInitialPlanCaptureDetails other = (DisableAutomaticInitialPlanCaptureDetails) o; - return java.util.Objects.equals(this.credentials, other.credentials) && super.equals(other); + return java.util.Objects.equals(this.credentials, other.credentials) + && java.util.Objects.equals(this.databaseCredential, other.databaseCredential) + && super.equals(other); } @Override @@ -117,6 +143,11 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.credentials == null ? 43 : this.credentials.hashCode()); + result = + (result * PRIME) + + (this.databaseCredential == null + ? 43 + : this.databaseCredential.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableAutomaticSpmEvolveAdvisorTaskDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableAutomaticSpmEvolveAdvisorTaskDetails.java index 5f3db217f07..704a54c07f8 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableAutomaticSpmEvolveAdvisorTaskDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableAutomaticSpmEvolveAdvisorTaskDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemanagement.model; /** - * The details required to disable Automatic SPM Evolve Advisor task.
+ * The details required to disable Automatic SPM Evolve Advisor task. It takes either credentials or + * databaseCredential. It's recommended to provide databaseCredential
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are 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,10 +24,12 @@ public final class DisableAutomaticSpmEvolveAdvisorTaskDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"credentials"}) - public DisableAutomaticSpmEvolveAdvisorTaskDetails(ManagedDatabaseCredential credentials) { + @java.beans.ConstructorProperties({"credentials", "databaseCredential"}) + public DisableAutomaticSpmEvolveAdvisorTaskDetails( + ManagedDatabaseCredential credentials, DatabaseCredentialDetails databaseCredential) { super(); this.credentials = credentials; + this.databaseCredential = databaseCredential; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -41,12 +44,22 @@ public Builder credentials(ManagedDatabaseCredential credentials) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private DatabaseCredentialDetails databaseCredential; + + public Builder databaseCredential(DatabaseCredentialDetails databaseCredential) { + this.databaseCredential = databaseCredential; + this.__explicitlySet__.add("databaseCredential"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public DisableAutomaticSpmEvolveAdvisorTaskDetails build() { DisableAutomaticSpmEvolveAdvisorTaskDetails model = - new DisableAutomaticSpmEvolveAdvisorTaskDetails(this.credentials); + new DisableAutomaticSpmEvolveAdvisorTaskDetails( + this.credentials, this.databaseCredential); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -58,6 +71,9 @@ public Builder copy(DisableAutomaticSpmEvolveAdvisorTaskDetails model) { if (model.wasPropertyExplicitlySet("credentials")) { this.credentials(model.getCredentials()); } + if (model.wasPropertyExplicitlySet("databaseCredential")) { + this.databaseCredential(model.getDatabaseCredential()); + } return this; } } @@ -78,6 +94,13 @@ public ManagedDatabaseCredential getCredentials() { return credentials; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private final DatabaseCredentialDetails databaseCredential; + + public DatabaseCredentialDetails getDatabaseCredential() { + return databaseCredential; + } + @Override public String toString() { return this.toString(true); @@ -94,6 +117,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("DisableAutomaticSpmEvolveAdvisorTaskDetails("); sb.append("super=").append(super.toString()); sb.append("credentials=").append(String.valueOf(this.credentials)); + sb.append(", databaseCredential=").append(String.valueOf(this.databaseCredential)); sb.append(")"); return sb.toString(); } @@ -109,7 +133,9 @@ public boolean equals(Object o) { DisableAutomaticSpmEvolveAdvisorTaskDetails other = (DisableAutomaticSpmEvolveAdvisorTaskDetails) o; - return java.util.Objects.equals(this.credentials, other.credentials) && super.equals(other); + return java.util.Objects.equals(this.credentials, other.credentials) + && java.util.Objects.equals(this.databaseCredential, other.databaseCredential) + && super.equals(other); } @Override @@ -117,6 +143,11 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.credentials == null ? 43 : this.credentials.hashCode()); + result = + (result * PRIME) + + (this.databaseCredential == null + ? 43 + : this.databaseCredential.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails.java index bd36c1e17d4..b860bbacdd3 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemanagement.model; /** - * The details required to disable high frequency Automatic SPM Evolve Advisor task.
+ * The details required to disable high frequency Automatic SPM Evolve Advisor task. It takes either + * credentials or databaseCredential. It's recommended to provide databaseCredential
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are 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,11 +24,12 @@ public final class DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"credentials"}) + @java.beans.ConstructorProperties({"credentials", "databaseCredential"}) public DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails( - ManagedDatabaseCredential credentials) { + ManagedDatabaseCredential credentials, DatabaseCredentialDetails databaseCredential) { super(); this.credentials = credentials; + this.databaseCredential = databaseCredential; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -42,12 +44,22 @@ public Builder credentials(ManagedDatabaseCredential credentials) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private DatabaseCredentialDetails databaseCredential; + + public Builder databaseCredential(DatabaseCredentialDetails databaseCredential) { + this.databaseCredential = databaseCredential; + this.__explicitlySet__.add("databaseCredential"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails build() { DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails model = - new DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails(this.credentials); + new DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails( + this.credentials, this.databaseCredential); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -59,6 +71,9 @@ public Builder copy(DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails mod if (model.wasPropertyExplicitlySet("credentials")) { this.credentials(model.getCredentials()); } + if (model.wasPropertyExplicitlySet("databaseCredential")) { + this.databaseCredential(model.getDatabaseCredential()); + } return this; } } @@ -79,6 +94,13 @@ public ManagedDatabaseCredential getCredentials() { return credentials; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private final DatabaseCredentialDetails databaseCredential; + + public DatabaseCredentialDetails getDatabaseCredential() { + return databaseCredential; + } + @Override public String toString() { return this.toString(true); @@ -95,6 +117,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails("); sb.append("super=").append(super.toString()); sb.append("credentials=").append(String.valueOf(this.credentials)); + sb.append(", databaseCredential=").append(String.valueOf(this.databaseCredential)); sb.append(")"); return sb.toString(); } @@ -110,7 +133,9 @@ public boolean equals(Object o) { DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails other = (DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails) o; - return java.util.Objects.equals(this.credentials, other.credentials) && super.equals(other); + return java.util.Objects.equals(this.credentials, other.credentials) + && java.util.Objects.equals(this.databaseCredential, other.databaseCredential) + && super.equals(other); } @Override @@ -118,6 +143,11 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.credentials == null ? 43 : this.credentials.hashCode()); + result = + (result * PRIME) + + (this.databaseCredential == null + ? 43 + : this.databaseCredential.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableSqlPlanBaselinesUsageDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableSqlPlanBaselinesUsageDetails.java index 3aea5700f5b..d418c4a3b12 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableSqlPlanBaselinesUsageDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableSqlPlanBaselinesUsageDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemanagement.model; /** - * The details required to disable SQL plan baseline usage.
+ * The details required to disable SQL plan baseline usage. It takes either credentials or + * databaseCredential. It's recommended to provide databaseCredential
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are 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,10 +24,12 @@ public final class DisableSqlPlanBaselinesUsageDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"credentials"}) - public DisableSqlPlanBaselinesUsageDetails(ManagedDatabaseCredential credentials) { + @java.beans.ConstructorProperties({"credentials", "databaseCredential"}) + public DisableSqlPlanBaselinesUsageDetails( + ManagedDatabaseCredential credentials, DatabaseCredentialDetails databaseCredential) { super(); this.credentials = credentials; + this.databaseCredential = databaseCredential; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -41,12 +44,22 @@ public Builder credentials(ManagedDatabaseCredential credentials) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private DatabaseCredentialDetails databaseCredential; + + public Builder databaseCredential(DatabaseCredentialDetails databaseCredential) { + this.databaseCredential = databaseCredential; + this.__explicitlySet__.add("databaseCredential"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public DisableSqlPlanBaselinesUsageDetails build() { DisableSqlPlanBaselinesUsageDetails model = - new DisableSqlPlanBaselinesUsageDetails(this.credentials); + new DisableSqlPlanBaselinesUsageDetails( + this.credentials, this.databaseCredential); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -58,6 +71,9 @@ public Builder copy(DisableSqlPlanBaselinesUsageDetails model) { if (model.wasPropertyExplicitlySet("credentials")) { this.credentials(model.getCredentials()); } + if (model.wasPropertyExplicitlySet("databaseCredential")) { + this.databaseCredential(model.getDatabaseCredential()); + } return this; } } @@ -78,6 +94,13 @@ public ManagedDatabaseCredential getCredentials() { return credentials; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private final DatabaseCredentialDetails databaseCredential; + + public DatabaseCredentialDetails getDatabaseCredential() { + return databaseCredential; + } + @Override public String toString() { return this.toString(true); @@ -94,6 +117,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("DisableSqlPlanBaselinesUsageDetails("); sb.append("super=").append(super.toString()); sb.append("credentials=").append(String.valueOf(this.credentials)); + sb.append(", databaseCredential=").append(String.valueOf(this.databaseCredential)); sb.append(")"); return sb.toString(); } @@ -108,7 +132,9 @@ public boolean equals(Object o) { } DisableSqlPlanBaselinesUsageDetails other = (DisableSqlPlanBaselinesUsageDetails) o; - return java.util.Objects.equals(this.credentials, other.credentials) && super.equals(other); + return java.util.Objects.equals(this.credentials, other.credentials) + && java.util.Objects.equals(this.databaseCredential, other.databaseCredential) + && super.equals(other); } @Override @@ -116,6 +142,11 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.credentials == null ? 43 : this.credentials.hashCode()); + result = + (result * PRIME) + + (this.databaseCredential == null + ? 43 + : this.databaseCredential.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DropSqlPlanBaselinesDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DropSqlPlanBaselinesDetails.java index 00098c342b5..816207459d6 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DropSqlPlanBaselinesDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DropSqlPlanBaselinesDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemanagement.model; /** - * The details required to drop SQL plan baselines.
+ * The details required to drop SQL plan baselines. It takes either credentials or + * databaseCredential. It's recommended to provide databaseCredential
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are 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,13 +24,22 @@ public final class DropSqlPlanBaselinesDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"sqlHandle", "planName", "credentials"}) + @java.beans.ConstructorProperties({ + "sqlHandle", + "planName", + "credentials", + "databaseCredential" + }) public DropSqlPlanBaselinesDetails( - String sqlHandle, String planName, ManagedDatabaseCredential credentials) { + String sqlHandle, + String planName, + ManagedDatabaseCredential credentials, + DatabaseCredentialDetails databaseCredential) { super(); this.sqlHandle = sqlHandle; this.planName = planName; this.credentials = credentials; + this.databaseCredential = databaseCredential; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -82,13 +92,25 @@ public Builder credentials(ManagedDatabaseCredential credentials) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private DatabaseCredentialDetails databaseCredential; + + public Builder databaseCredential(DatabaseCredentialDetails databaseCredential) { + this.databaseCredential = databaseCredential; + this.__explicitlySet__.add("databaseCredential"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public DropSqlPlanBaselinesDetails build() { DropSqlPlanBaselinesDetails model = new DropSqlPlanBaselinesDetails( - this.sqlHandle, this.planName, this.credentials); + this.sqlHandle, + this.planName, + this.credentials, + this.databaseCredential); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -106,6 +128,9 @@ public Builder copy(DropSqlPlanBaselinesDetails model) { if (model.wasPropertyExplicitlySet("credentials")) { this.credentials(model.getCredentials()); } + if (model.wasPropertyExplicitlySet("databaseCredential")) { + this.databaseCredential(model.getDatabaseCredential()); + } return this; } } @@ -160,6 +185,13 @@ public ManagedDatabaseCredential getCredentials() { return credentials; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private final DatabaseCredentialDetails databaseCredential; + + public DatabaseCredentialDetails getDatabaseCredential() { + return databaseCredential; + } + @Override public String toString() { return this.toString(true); @@ -178,6 +210,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("sqlHandle=").append(String.valueOf(this.sqlHandle)); sb.append(", planName=").append(String.valueOf(this.planName)); sb.append(", credentials=").append(String.valueOf(this.credentials)); + sb.append(", databaseCredential=").append(String.valueOf(this.databaseCredential)); sb.append(")"); return sb.toString(); } @@ -195,6 +228,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.sqlHandle, other.sqlHandle) && java.util.Objects.equals(this.planName, other.planName) && java.util.Objects.equals(this.credentials, other.credentials) + && java.util.Objects.equals(this.databaseCredential, other.databaseCredential) && super.equals(other); } @@ -205,6 +239,11 @@ public int hashCode() { result = (result * PRIME) + (this.sqlHandle == null ? 43 : this.sqlHandle.hashCode()); result = (result * PRIME) + (this.planName == null ? 43 : this.planName.hashCode()); result = (result * PRIME) + (this.credentials == null ? 43 : this.credentials.hashCode()); + result = + (result * PRIME) + + (this.databaseCredential == null + ? 43 + : this.databaseCredential.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DropSqlTuningSetDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DropSqlTuningSetDetails.java index 30d0d5dc3a2..e541b0d5229 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DropSqlTuningSetDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DropSqlTuningSetDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemanagement.model; /** - * The details required to drop a Sql tuning set.
+ * The details required to drop a Sql tuning set. It takes either credentialDetails or + * databaseCredential. It's recommended to provide databaseCredential
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are 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,14 +24,22 @@ public final class DropSqlTuningSetDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"credentialDetails", "name", "owner", "showSqlOnly"}) + @java.beans.ConstructorProperties({ + "credentialDetails", + "databaseCredential", + "name", + "owner", + "showSqlOnly" + }) public DropSqlTuningSetDetails( SqlTuningSetAdminCredentialDetails credentialDetails, + DatabaseCredentialDetails databaseCredential, String name, String owner, Integer showSqlOnly) { super(); this.credentialDetails = credentialDetails; + this.databaseCredential = databaseCredential; this.name = name; this.owner = owner; this.showSqlOnly = showSqlOnly; @@ -47,6 +56,15 @@ public Builder credentialDetails(SqlTuningSetAdminCredentialDetails credentialDe this.__explicitlySet__.add("credentialDetails"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private DatabaseCredentialDetails databaseCredential; + + public Builder databaseCredential(DatabaseCredentialDetails databaseCredential) { + this.databaseCredential = databaseCredential; + this.__explicitlySet__.add("databaseCredential"); + return this; + } /** A unique Sql tuning set name. */ @com.fasterxml.jackson.annotation.JsonProperty("name") private String name; @@ -103,7 +121,11 @@ public Builder showSqlOnly(Integer showSqlOnly) { public DropSqlTuningSetDetails build() { DropSqlTuningSetDetails model = new DropSqlTuningSetDetails( - this.credentialDetails, this.name, this.owner, this.showSqlOnly); + this.credentialDetails, + this.databaseCredential, + this.name, + this.owner, + this.showSqlOnly); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -115,6 +137,9 @@ public Builder copy(DropSqlTuningSetDetails model) { if (model.wasPropertyExplicitlySet("credentialDetails")) { this.credentialDetails(model.getCredentialDetails()); } + if (model.wasPropertyExplicitlySet("databaseCredential")) { + this.databaseCredential(model.getDatabaseCredential()); + } if (model.wasPropertyExplicitlySet("name")) { this.name(model.getName()); } @@ -144,6 +169,13 @@ public SqlTuningSetAdminCredentialDetails getCredentialDetails() { return credentialDetails; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private final DatabaseCredentialDetails databaseCredential; + + public DatabaseCredentialDetails getDatabaseCredential() { + return databaseCredential; + } + /** A unique Sql tuning set name. */ @com.fasterxml.jackson.annotation.JsonProperty("name") private final String name; @@ -203,6 +235,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("DropSqlTuningSetDetails("); sb.append("super=").append(super.toString()); sb.append("credentialDetails=").append(String.valueOf(this.credentialDetails)); + sb.append(", databaseCredential=").append(String.valueOf(this.databaseCredential)); sb.append(", name=").append(String.valueOf(this.name)); sb.append(", owner=").append(String.valueOf(this.owner)); sb.append(", showSqlOnly=").append(String.valueOf(this.showSqlOnly)); @@ -221,6 +254,7 @@ public boolean equals(Object o) { DropSqlTuningSetDetails other = (DropSqlTuningSetDetails) o; return java.util.Objects.equals(this.credentialDetails, other.credentialDetails) + && java.util.Objects.equals(this.databaseCredential, other.databaseCredential) && java.util.Objects.equals(this.name, other.name) && java.util.Objects.equals(this.owner, other.owner) && java.util.Objects.equals(this.showSqlOnly, other.showSqlOnly) @@ -234,6 +268,11 @@ public int hashCode() { result = (result * PRIME) + (this.credentialDetails == null ? 43 : this.credentialDetails.hashCode()); + result = + (result * PRIME) + + (this.databaseCredential == null + ? 43 + : this.databaseCredential.hashCode()); result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); result = (result * PRIME) + (this.owner == null ? 43 : this.owner.hashCode()); result = (result * PRIME) + (this.showSqlOnly == null ? 43 : this.showSqlOnly.hashCode()); diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DropSqlTuningTaskDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DropSqlTuningTaskDetails.java index 23b17f0f803..714cc0a5d24 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DropSqlTuningTaskDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DropSqlTuningTaskDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemanagement.model; /** - * The request to drop a SQL tuning task.
+ * The request to drop a SQL tuning task. It takes either credentialDetails or databaseCredential. + * It's recommended to provide databaseCredential
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are 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,11 +24,15 @@ public final class DropSqlTuningTaskDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"taskId", "credentialDetails"}) - public DropSqlTuningTaskDetails(Long taskId, SqlTuningTaskCredentialDetails credentialDetails) { + @java.beans.ConstructorProperties({"taskId", "credentialDetails", "databaseCredential"}) + public DropSqlTuningTaskDetails( + Long taskId, + SqlTuningTaskCredentialDetails credentialDetails, + DatabaseCredentialDetails databaseCredential) { super(); this.taskId = taskId; this.credentialDetails = credentialDetails; + this.databaseCredential = databaseCredential; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -65,12 +70,22 @@ public Builder credentialDetails(SqlTuningTaskCredentialDetails credentialDetail return this; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private DatabaseCredentialDetails databaseCredential; + + public Builder databaseCredential(DatabaseCredentialDetails databaseCredential) { + this.databaseCredential = databaseCredential; + this.__explicitlySet__.add("databaseCredential"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public DropSqlTuningTaskDetails build() { DropSqlTuningTaskDetails model = - new DropSqlTuningTaskDetails(this.taskId, this.credentialDetails); + new DropSqlTuningTaskDetails( + this.taskId, this.credentialDetails, this.databaseCredential); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -85,6 +100,9 @@ public Builder copy(DropSqlTuningTaskDetails model) { if (model.wasPropertyExplicitlySet("credentialDetails")) { this.credentialDetails(model.getCredentialDetails()); } + if (model.wasPropertyExplicitlySet("databaseCredential")) { + this.databaseCredential(model.getDatabaseCredential()); + } return this; } } @@ -126,6 +144,13 @@ public SqlTuningTaskCredentialDetails getCredentialDetails() { return credentialDetails; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private final DatabaseCredentialDetails databaseCredential; + + public DatabaseCredentialDetails getDatabaseCredential() { + return databaseCredential; + } + @Override public String toString() { return this.toString(true); @@ -143,6 +168,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("taskId=").append(String.valueOf(this.taskId)); sb.append(", credentialDetails=").append(String.valueOf(this.credentialDetails)); + sb.append(", databaseCredential=").append(String.valueOf(this.databaseCredential)); sb.append(")"); return sb.toString(); } @@ -159,6 +185,7 @@ public boolean equals(Object o) { DropSqlTuningTaskDetails other = (DropSqlTuningTaskDetails) o; return java.util.Objects.equals(this.taskId, other.taskId) && java.util.Objects.equals(this.credentialDetails, other.credentialDetails) + && java.util.Objects.equals(this.databaseCredential, other.databaseCredential) && super.equals(other); } @@ -170,6 +197,11 @@ public int hashCode() { result = (result * PRIME) + (this.credentialDetails == null ? 43 : this.credentialDetails.hashCode()); + result = + (result * PRIME) + + (this.databaseCredential == null + ? 43 + : this.databaseCredential.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DropSqlsInSqlTuningSetDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DropSqlsInSqlTuningSetDetails.java index 1a67a6d1429..944c01608ac 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DropSqlsInSqlTuningSetDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DropSqlsInSqlTuningSetDetails.java @@ -9,7 +9,9 @@ * parameter specifies the Sql predicate to filter the Sql from the Sql tuning set defined on * attributes of the SQLSET_ROW. If a valid filter criteria is specified, then, Sql statements * matching this filter criteria will be deleted from the current Sql tuning set. If filter criteria - * is not specified, then, all Sql statements will be deleted from the current Sql tuning set.
+ * is not specified, then, all Sql statements will be deleted from the current Sql tuning set. It + * takes either credentialDetails or databaseCredential. It's recommended to provide + * databaseCredential
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -29,6 +31,7 @@ public final class DropSqlsInSqlTuningSetDetails @Deprecated @java.beans.ConstructorProperties({ "credentialDetails", + "databaseCredential", "showSqlOnly", "owner", "name", @@ -36,12 +39,14 @@ public final class DropSqlsInSqlTuningSetDetails }) public DropSqlsInSqlTuningSetDetails( SqlTuningSetAdminCredentialDetails credentialDetails, + DatabaseCredentialDetails databaseCredential, Integer showSqlOnly, String owner, String name, String basicFilter) { super(); this.credentialDetails = credentialDetails; + this.databaseCredential = databaseCredential; this.showSqlOnly = showSqlOnly; this.owner = owner; this.name = name; @@ -59,6 +64,15 @@ public Builder credentialDetails(SqlTuningSetAdminCredentialDetails credentialDe this.__explicitlySet__.add("credentialDetails"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private DatabaseCredentialDetails databaseCredential; + + public Builder databaseCredential(DatabaseCredentialDetails databaseCredential) { + this.databaseCredential = databaseCredential; + this.__explicitlySet__.add("databaseCredential"); + return this; + } /** * Flag to indicate whether to drop the Sql statements or just display the plsql used to * drop the Sql statements. @@ -139,6 +153,7 @@ public DropSqlsInSqlTuningSetDetails build() { DropSqlsInSqlTuningSetDetails model = new DropSqlsInSqlTuningSetDetails( this.credentialDetails, + this.databaseCredential, this.showSqlOnly, this.owner, this.name, @@ -154,6 +169,9 @@ public Builder copy(DropSqlsInSqlTuningSetDetails model) { if (model.wasPropertyExplicitlySet("credentialDetails")) { this.credentialDetails(model.getCredentialDetails()); } + if (model.wasPropertyExplicitlySet("databaseCredential")) { + this.databaseCredential(model.getDatabaseCredential()); + } if (model.wasPropertyExplicitlySet("showSqlOnly")) { this.showSqlOnly(model.getShowSqlOnly()); } @@ -186,6 +204,13 @@ public SqlTuningSetAdminCredentialDetails getCredentialDetails() { return credentialDetails; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private final DatabaseCredentialDetails databaseCredential; + + public DatabaseCredentialDetails getDatabaseCredential() { + return databaseCredential; + } + /** * Flag to indicate whether to drop the Sql statements or just display the plsql used to drop * the Sql statements. @@ -266,6 +291,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("DropSqlsInSqlTuningSetDetails("); sb.append("super=").append(super.toString()); sb.append("credentialDetails=").append(String.valueOf(this.credentialDetails)); + sb.append(", databaseCredential=").append(String.valueOf(this.databaseCredential)); sb.append(", showSqlOnly=").append(String.valueOf(this.showSqlOnly)); sb.append(", owner=").append(String.valueOf(this.owner)); sb.append(", name=").append(String.valueOf(this.name)); @@ -285,6 +311,7 @@ public boolean equals(Object o) { DropSqlsInSqlTuningSetDetails other = (DropSqlsInSqlTuningSetDetails) o; return java.util.Objects.equals(this.credentialDetails, other.credentialDetails) + && java.util.Objects.equals(this.databaseCredential, other.databaseCredential) && java.util.Objects.equals(this.showSqlOnly, other.showSqlOnly) && java.util.Objects.equals(this.owner, other.owner) && java.util.Objects.equals(this.name, other.name) @@ -299,6 +326,11 @@ public int hashCode() { result = (result * PRIME) + (this.credentialDetails == null ? 43 : this.credentialDetails.hashCode()); + result = + (result * PRIME) + + (this.databaseCredential == null + ? 43 + : this.databaseCredential.hashCode()); result = (result * PRIME) + (this.showSqlOnly == null ? 43 : this.showSqlOnly.hashCode()); result = (result * PRIME) + (this.owner == null ? 43 : this.owner.hashCode()); result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DropTablespaceDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DropTablespaceDetails.java index 607fb217170..93b45de31d3 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DropTablespaceDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DropTablespaceDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemanagement.model; /** - * The details required to drop a tablespace.
+ * The details required to drop a tablespace. It takes either credentialDetails or + * databaseCredential. It's recommended to provide databaseCredential
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -25,17 +26,20 @@ public final class DropTablespaceDetails @Deprecated @java.beans.ConstructorProperties({ "credentialDetails", + "databaseCredential", "isIncludingContents", "isDroppingDataFiles", "isCascadeConstraints" }) public DropTablespaceDetails( TablespaceAdminCredentialDetails credentialDetails, + DatabaseCredentialDetails databaseCredential, Boolean isIncludingContents, Boolean isDroppingDataFiles, Boolean isCascadeConstraints) { super(); this.credentialDetails = credentialDetails; + this.databaseCredential = databaseCredential; this.isIncludingContents = isIncludingContents; this.isDroppingDataFiles = isDroppingDataFiles; this.isCascadeConstraints = isCascadeConstraints; @@ -52,6 +56,15 @@ public Builder credentialDetails(TablespaceAdminCredentialDetails credentialDeta this.__explicitlySet__.add("credentialDetails"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private DatabaseCredentialDetails databaseCredential; + + public Builder databaseCredential(DatabaseCredentialDetails databaseCredential) { + this.databaseCredential = databaseCredential; + this.__explicitlySet__.add("databaseCredential"); + return this; + } /** Specifies whether all the contents of the tablespace being dropped should be dropped. */ @com.fasterxml.jackson.annotation.JsonProperty("isIncludingContents") private Boolean isIncludingContents; @@ -111,6 +124,7 @@ public DropTablespaceDetails build() { DropTablespaceDetails model = new DropTablespaceDetails( this.credentialDetails, + this.databaseCredential, this.isIncludingContents, this.isDroppingDataFiles, this.isCascadeConstraints); @@ -125,6 +139,9 @@ public Builder copy(DropTablespaceDetails model) { if (model.wasPropertyExplicitlySet("credentialDetails")) { this.credentialDetails(model.getCredentialDetails()); } + if (model.wasPropertyExplicitlySet("databaseCredential")) { + this.databaseCredential(model.getDatabaseCredential()); + } if (model.wasPropertyExplicitlySet("isIncludingContents")) { this.isIncludingContents(model.getIsIncludingContents()); } @@ -154,6 +171,13 @@ public TablespaceAdminCredentialDetails getCredentialDetails() { return credentialDetails; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private final DatabaseCredentialDetails databaseCredential; + + public DatabaseCredentialDetails getDatabaseCredential() { + return databaseCredential; + } + /** Specifies whether all the contents of the tablespace being dropped should be dropped. */ @com.fasterxml.jackson.annotation.JsonProperty("isIncludingContents") private final Boolean isIncludingContents; @@ -213,6 +237,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("DropTablespaceDetails("); sb.append("super=").append(super.toString()); sb.append("credentialDetails=").append(String.valueOf(this.credentialDetails)); + sb.append(", databaseCredential=").append(String.valueOf(this.databaseCredential)); sb.append(", isIncludingContents=").append(String.valueOf(this.isIncludingContents)); sb.append(", isDroppingDataFiles=").append(String.valueOf(this.isDroppingDataFiles)); sb.append(", isCascadeConstraints=").append(String.valueOf(this.isCascadeConstraints)); @@ -231,6 +256,7 @@ public boolean equals(Object o) { DropTablespaceDetails other = (DropTablespaceDetails) o; return java.util.Objects.equals(this.credentialDetails, other.credentialDetails) + && java.util.Objects.equals(this.databaseCredential, other.databaseCredential) && java.util.Objects.equals(this.isIncludingContents, other.isIncludingContents) && java.util.Objects.equals(this.isDroppingDataFiles, other.isDroppingDataFiles) && java.util.Objects.equals(this.isCascadeConstraints, other.isCascadeConstraints) @@ -244,6 +270,11 @@ public int hashCode() { result = (result * PRIME) + (this.credentialDetails == null ? 43 : this.credentialDetails.hashCode()); + result = + (result * PRIME) + + (this.databaseCredential == null + ? 43 + : this.databaseCredential.hashCode()); result = (result * PRIME) + (this.isIncludingContents == null diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableAutomaticInitialPlanCaptureDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableAutomaticInitialPlanCaptureDetails.java index 6e69d149b60..cf26329f4f3 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableAutomaticInitialPlanCaptureDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableAutomaticInitialPlanCaptureDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemanagement.model; /** - * The details required to enable automatic initial plan capture.
+ * The details required to enable automatic initial plan capture. It takes either credentials or + * databaseCredential. It's recommended to provide databaseCredential
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are 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,10 +24,12 @@ public final class EnableAutomaticInitialPlanCaptureDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"credentials"}) - public EnableAutomaticInitialPlanCaptureDetails(ManagedDatabaseCredential credentials) { + @java.beans.ConstructorProperties({"credentials", "databaseCredential"}) + public EnableAutomaticInitialPlanCaptureDetails( + ManagedDatabaseCredential credentials, DatabaseCredentialDetails databaseCredential) { super(); this.credentials = credentials; + this.databaseCredential = databaseCredential; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -41,12 +44,22 @@ public Builder credentials(ManagedDatabaseCredential credentials) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private DatabaseCredentialDetails databaseCredential; + + public Builder databaseCredential(DatabaseCredentialDetails databaseCredential) { + this.databaseCredential = databaseCredential; + this.__explicitlySet__.add("databaseCredential"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public EnableAutomaticInitialPlanCaptureDetails build() { EnableAutomaticInitialPlanCaptureDetails model = - new EnableAutomaticInitialPlanCaptureDetails(this.credentials); + new EnableAutomaticInitialPlanCaptureDetails( + this.credentials, this.databaseCredential); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -58,6 +71,9 @@ public Builder copy(EnableAutomaticInitialPlanCaptureDetails model) { if (model.wasPropertyExplicitlySet("credentials")) { this.credentials(model.getCredentials()); } + if (model.wasPropertyExplicitlySet("databaseCredential")) { + this.databaseCredential(model.getDatabaseCredential()); + } return this; } } @@ -78,6 +94,13 @@ public ManagedDatabaseCredential getCredentials() { return credentials; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private final DatabaseCredentialDetails databaseCredential; + + public DatabaseCredentialDetails getDatabaseCredential() { + return databaseCredential; + } + @Override public String toString() { return this.toString(true); @@ -94,6 +117,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("EnableAutomaticInitialPlanCaptureDetails("); sb.append("super=").append(super.toString()); sb.append("credentials=").append(String.valueOf(this.credentials)); + sb.append(", databaseCredential=").append(String.valueOf(this.databaseCredential)); sb.append(")"); return sb.toString(); } @@ -109,7 +133,9 @@ public boolean equals(Object o) { EnableAutomaticInitialPlanCaptureDetails other = (EnableAutomaticInitialPlanCaptureDetails) o; - return java.util.Objects.equals(this.credentials, other.credentials) && super.equals(other); + return java.util.Objects.equals(this.credentials, other.credentials) + && java.util.Objects.equals(this.databaseCredential, other.databaseCredential) + && super.equals(other); } @Override @@ -117,6 +143,11 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.credentials == null ? 43 : this.credentials.hashCode()); + result = + (result * PRIME) + + (this.databaseCredential == null + ? 43 + : this.databaseCredential.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableAutomaticSpmEvolveAdvisorTaskDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableAutomaticSpmEvolveAdvisorTaskDetails.java index d6d5e34bb63..abc123eee21 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableAutomaticSpmEvolveAdvisorTaskDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableAutomaticSpmEvolveAdvisorTaskDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemanagement.model; /** - * The details required to enable Automatic SPM Evolve Advisor task.
+ * The details required to enable Automatic SPM Evolve Advisor task. It takes either credentials or + * databaseCredential. It's recommended to provide databaseCredential
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are 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,10 +24,12 @@ public final class EnableAutomaticSpmEvolveAdvisorTaskDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"credentials"}) - public EnableAutomaticSpmEvolveAdvisorTaskDetails(ManagedDatabaseCredential credentials) { + @java.beans.ConstructorProperties({"credentials", "databaseCredential"}) + public EnableAutomaticSpmEvolveAdvisorTaskDetails( + ManagedDatabaseCredential credentials, DatabaseCredentialDetails databaseCredential) { super(); this.credentials = credentials; + this.databaseCredential = databaseCredential; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -41,12 +44,22 @@ public Builder credentials(ManagedDatabaseCredential credentials) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private DatabaseCredentialDetails databaseCredential; + + public Builder databaseCredential(DatabaseCredentialDetails databaseCredential) { + this.databaseCredential = databaseCredential; + this.__explicitlySet__.add("databaseCredential"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public EnableAutomaticSpmEvolveAdvisorTaskDetails build() { EnableAutomaticSpmEvolveAdvisorTaskDetails model = - new EnableAutomaticSpmEvolveAdvisorTaskDetails(this.credentials); + new EnableAutomaticSpmEvolveAdvisorTaskDetails( + this.credentials, this.databaseCredential); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -58,6 +71,9 @@ public Builder copy(EnableAutomaticSpmEvolveAdvisorTaskDetails model) { if (model.wasPropertyExplicitlySet("credentials")) { this.credentials(model.getCredentials()); } + if (model.wasPropertyExplicitlySet("databaseCredential")) { + this.databaseCredential(model.getDatabaseCredential()); + } return this; } } @@ -78,6 +94,13 @@ public ManagedDatabaseCredential getCredentials() { return credentials; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private final DatabaseCredentialDetails databaseCredential; + + public DatabaseCredentialDetails getDatabaseCredential() { + return databaseCredential; + } + @Override public String toString() { return this.toString(true); @@ -94,6 +117,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("EnableAutomaticSpmEvolveAdvisorTaskDetails("); sb.append("super=").append(super.toString()); sb.append("credentials=").append(String.valueOf(this.credentials)); + sb.append(", databaseCredential=").append(String.valueOf(this.databaseCredential)); sb.append(")"); return sb.toString(); } @@ -109,7 +133,9 @@ public boolean equals(Object o) { EnableAutomaticSpmEvolveAdvisorTaskDetails other = (EnableAutomaticSpmEvolveAdvisorTaskDetails) o; - return java.util.Objects.equals(this.credentials, other.credentials) && super.equals(other); + return java.util.Objects.equals(this.credentials, other.credentials) + && java.util.Objects.equals(this.databaseCredential, other.databaseCredential) + && super.equals(other); } @Override @@ -117,6 +143,11 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.credentials == null ? 43 : this.credentials.hashCode()); + result = + (result * PRIME) + + (this.databaseCredential == null + ? 43 + : this.databaseCredential.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails.java index aad88c18baa..eb7b770c701 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemanagement.model; /** - * The details required to enable high frequency Automatic SPM Evolve Advisor task.
+ * The details required to enable high frequency Automatic SPM Evolve Advisor task. It takes either + * credentials or databaseCredential. It's recommended to provide databaseCredential
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are 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,11 +24,12 @@ public final class EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"credentials"}) + @java.beans.ConstructorProperties({"credentials", "databaseCredential"}) public EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails( - ManagedDatabaseCredential credentials) { + ManagedDatabaseCredential credentials, DatabaseCredentialDetails databaseCredential) { super(); this.credentials = credentials; + this.databaseCredential = databaseCredential; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -42,12 +44,22 @@ public Builder credentials(ManagedDatabaseCredential credentials) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private DatabaseCredentialDetails databaseCredential; + + public Builder databaseCredential(DatabaseCredentialDetails databaseCredential) { + this.databaseCredential = databaseCredential; + this.__explicitlySet__.add("databaseCredential"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails build() { EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails model = - new EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails(this.credentials); + new EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails( + this.credentials, this.databaseCredential); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -59,6 +71,9 @@ public Builder copy(EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails mode if (model.wasPropertyExplicitlySet("credentials")) { this.credentials(model.getCredentials()); } + if (model.wasPropertyExplicitlySet("databaseCredential")) { + this.databaseCredential(model.getDatabaseCredential()); + } return this; } } @@ -79,6 +94,13 @@ public ManagedDatabaseCredential getCredentials() { return credentials; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private final DatabaseCredentialDetails databaseCredential; + + public DatabaseCredentialDetails getDatabaseCredential() { + return databaseCredential; + } + @Override public String toString() { return this.toString(true); @@ -95,6 +117,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails("); sb.append("super=").append(super.toString()); sb.append("credentials=").append(String.valueOf(this.credentials)); + sb.append(", databaseCredential=").append(String.valueOf(this.databaseCredential)); sb.append(")"); return sb.toString(); } @@ -110,7 +133,9 @@ public boolean equals(Object o) { EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails other = (EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails) o; - return java.util.Objects.equals(this.credentials, other.credentials) && super.equals(other); + return java.util.Objects.equals(this.credentials, other.credentials) + && java.util.Objects.equals(this.databaseCredential, other.databaseCredential) + && super.equals(other); } @Override @@ -118,6 +143,11 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.credentials == null ? 43 : this.credentials.hashCode()); + result = + (result * PRIME) + + (this.databaseCredential == null + ? 43 + : this.databaseCredential.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableSqlPlanBaselinesUsageDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableSqlPlanBaselinesUsageDetails.java index 739bf8407db..d744c4fbb08 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableSqlPlanBaselinesUsageDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableSqlPlanBaselinesUsageDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemanagement.model; /** - * The details required to enable SQL plan baseline usage.
+ * The details required to enable SQL plan baseline usage. It takes either credentials or + * databaseCredential. It's recommended to provide databaseCredential
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are 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,10 +24,12 @@ public final class EnableSqlPlanBaselinesUsageDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"credentials"}) - public EnableSqlPlanBaselinesUsageDetails(ManagedDatabaseCredential credentials) { + @java.beans.ConstructorProperties({"credentials", "databaseCredential"}) + public EnableSqlPlanBaselinesUsageDetails( + ManagedDatabaseCredential credentials, DatabaseCredentialDetails databaseCredential) { super(); this.credentials = credentials; + this.databaseCredential = databaseCredential; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -41,12 +44,22 @@ public Builder credentials(ManagedDatabaseCredential credentials) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private DatabaseCredentialDetails databaseCredential; + + public Builder databaseCredential(DatabaseCredentialDetails databaseCredential) { + this.databaseCredential = databaseCredential; + this.__explicitlySet__.add("databaseCredential"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public EnableSqlPlanBaselinesUsageDetails build() { EnableSqlPlanBaselinesUsageDetails model = - new EnableSqlPlanBaselinesUsageDetails(this.credentials); + new EnableSqlPlanBaselinesUsageDetails( + this.credentials, this.databaseCredential); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -58,6 +71,9 @@ public Builder copy(EnableSqlPlanBaselinesUsageDetails model) { if (model.wasPropertyExplicitlySet("credentials")) { this.credentials(model.getCredentials()); } + if (model.wasPropertyExplicitlySet("databaseCredential")) { + this.databaseCredential(model.getDatabaseCredential()); + } return this; } } @@ -78,6 +94,13 @@ public ManagedDatabaseCredential getCredentials() { return credentials; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private final DatabaseCredentialDetails databaseCredential; + + public DatabaseCredentialDetails getDatabaseCredential() { + return databaseCredential; + } + @Override public String toString() { return this.toString(true); @@ -94,6 +117,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("EnableSqlPlanBaselinesUsageDetails("); sb.append("super=").append(super.toString()); sb.append("credentials=").append(String.valueOf(this.credentials)); + sb.append(", databaseCredential=").append(String.valueOf(this.databaseCredential)); sb.append(")"); return sb.toString(); } @@ -108,7 +132,9 @@ public boolean equals(Object o) { } EnableSqlPlanBaselinesUsageDetails other = (EnableSqlPlanBaselinesUsageDetails) o; - return java.util.Objects.equals(this.credentials, other.credentials) && super.equals(other); + return java.util.Objects.equals(this.credentials, other.credentials) + && java.util.Objects.equals(this.databaseCredential, other.databaseCredential) + && super.equals(other); } @Override @@ -116,6 +142,11 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.credentials == null ? 43 : this.credentials.hashCode()); + result = + (result * PRIME) + + (this.databaseCredential == null + ? 43 + : this.databaseCredential.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDatabaseConnectionInfo.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDatabaseConnectionInfo.java index 926282dade1..87cad915820 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDatabaseConnectionInfo.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDatabaseConnectionInfo.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemanagement.model; /** - * The details required to connect to an external Oracle Database.
+ * The details required to connect to an external Oracle Database. It takes either + * connectionCredentials or databaseCredential. It's recommended to provide databaseCredential
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -46,13 +47,24 @@ public Builder connectionCredentials(DatabaseConnectionCredentials connectionCre return this; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private DatabaseCredentialDetails databaseCredential; + + public Builder databaseCredential(DatabaseCredentialDetails databaseCredential) { + this.databaseCredential = databaseCredential; + this.__explicitlySet__.add("databaseCredential"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public ExternalDatabaseConnectionInfo build() { ExternalDatabaseConnectionInfo model = new ExternalDatabaseConnectionInfo( - this.connectionString, this.connectionCredentials); + this.connectionString, + this.connectionCredentials, + this.databaseCredential); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -67,6 +79,9 @@ public Builder copy(ExternalDatabaseConnectionInfo model) { if (model.wasPropertyExplicitlySet("connectionCredentials")) { this.connectionCredentials(model.getConnectionCredentials()); } + if (model.wasPropertyExplicitlySet("databaseCredential")) { + this.databaseCredential(model.getDatabaseCredential()); + } return this; } } @@ -83,10 +98,12 @@ public Builder toBuilder() { @Deprecated public ExternalDatabaseConnectionInfo( DatabaseConnectionString connectionString, - DatabaseConnectionCredentials connectionCredentials) { + DatabaseConnectionCredentials connectionCredentials, + DatabaseCredentialDetails databaseCredential) { super(); this.connectionString = connectionString; this.connectionCredentials = connectionCredentials; + this.databaseCredential = databaseCredential; } @com.fasterxml.jackson.annotation.JsonProperty("connectionString") @@ -103,6 +120,13 @@ public DatabaseConnectionCredentials getConnectionCredentials() { return connectionCredentials; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private final DatabaseCredentialDetails databaseCredential; + + public DatabaseCredentialDetails getDatabaseCredential() { + return databaseCredential; + } + @Override public String toString() { return this.toString(true); @@ -120,6 +144,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", connectionString=").append(String.valueOf(this.connectionString)); sb.append(", connectionCredentials=").append(String.valueOf(this.connectionCredentials)); + sb.append(", databaseCredential=").append(String.valueOf(this.databaseCredential)); sb.append(")"); return sb.toString(); } @@ -136,6 +161,7 @@ public boolean equals(Object o) { ExternalDatabaseConnectionInfo other = (ExternalDatabaseConnectionInfo) o; return java.util.Objects.equals(this.connectionString, other.connectionString) && java.util.Objects.equals(this.connectionCredentials, other.connectionCredentials) + && java.util.Objects.equals(this.databaseCredential, other.databaseCredential) && super.equals(other); } @@ -151,6 +177,11 @@ public int hashCode() { + (this.connectionCredentials == null ? 43 : this.connectionCredentials.hashCode()); + result = + (result * PRIME) + + (this.databaseCredential == null + ? 43 + : this.databaseCredential.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/FetchSqlTuningSetDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/FetchSqlTuningSetDetails.java index 46f349a426e..519a97f97b9 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/FetchSqlTuningSetDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/FetchSqlTuningSetDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemanagement.model; /** - * The details required to fetch the Sql tuning set details.
+ * The details required to fetch the Sql tuning set details. It takes either credentialDetails or + * databaseCredential. It's recommended to provide databaseCredential
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -25,6 +26,7 @@ public final class FetchSqlTuningSetDetails @Deprecated @java.beans.ConstructorProperties({ "credentialDetails", + "databaseCredential", "owner", "name", "basicFilter", @@ -37,6 +39,7 @@ public final class FetchSqlTuningSetDetails }) public FetchSqlTuningSetDetails( SqlTuningSetAdminCredentialDetails credentialDetails, + DatabaseCredentialDetails databaseCredential, String owner, String name, String basicFilter, @@ -48,6 +51,7 @@ public FetchSqlTuningSetDetails( RankingMeasure rankingMeasure3) { super(); this.credentialDetails = credentialDetails; + this.databaseCredential = databaseCredential; this.owner = owner; this.name = name; this.basicFilter = basicFilter; @@ -70,6 +74,15 @@ public Builder credentialDetails(SqlTuningSetAdminCredentialDetails credentialDe this.__explicitlySet__.add("credentialDetails"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private DatabaseCredentialDetails databaseCredential; + + public Builder databaseCredential(DatabaseCredentialDetails databaseCredential) { + this.databaseCredential = databaseCredential; + this.__explicitlySet__.add("databaseCredential"); + return this; + } /** The owner of the Sql tuning set. */ @com.fasterxml.jackson.annotation.JsonProperty("owner") private String owner; @@ -237,6 +250,7 @@ public FetchSqlTuningSetDetails build() { FetchSqlTuningSetDetails model = new FetchSqlTuningSetDetails( this.credentialDetails, + this.databaseCredential, this.owner, this.name, this.basicFilter, @@ -257,6 +271,9 @@ public Builder copy(FetchSqlTuningSetDetails model) { if (model.wasPropertyExplicitlySet("credentialDetails")) { this.credentialDetails(model.getCredentialDetails()); } + if (model.wasPropertyExplicitlySet("databaseCredential")) { + this.databaseCredential(model.getDatabaseCredential()); + } if (model.wasPropertyExplicitlySet("owner")) { this.owner(model.getOwner()); } @@ -304,6 +321,13 @@ public SqlTuningSetAdminCredentialDetails getCredentialDetails() { return credentialDetails; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private final DatabaseCredentialDetails databaseCredential; + + public DatabaseCredentialDetails getDatabaseCredential() { + return databaseCredential; + } + /** The owner of the Sql tuning set. */ @com.fasterxml.jackson.annotation.JsonProperty("owner") private final String owner; @@ -494,6 +518,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("FetchSqlTuningSetDetails("); sb.append("super=").append(super.toString()); sb.append("credentialDetails=").append(String.valueOf(this.credentialDetails)); + sb.append(", databaseCredential=").append(String.valueOf(this.databaseCredential)); sb.append(", owner=").append(String.valueOf(this.owner)); sb.append(", name=").append(String.valueOf(this.name)); sb.append(", basicFilter=").append(String.valueOf(this.basicFilter)); @@ -518,6 +543,7 @@ public boolean equals(Object o) { FetchSqlTuningSetDetails other = (FetchSqlTuningSetDetails) o; return java.util.Objects.equals(this.credentialDetails, other.credentialDetails) + && java.util.Objects.equals(this.databaseCredential, other.databaseCredential) && java.util.Objects.equals(this.owner, other.owner) && java.util.Objects.equals(this.name, other.name) && java.util.Objects.equals(this.basicFilter, other.basicFilter) @@ -537,6 +563,11 @@ public int hashCode() { result = (result * PRIME) + (this.credentialDetails == null ? 43 : this.credentialDetails.hashCode()); + result = + (result * PRIME) + + (this.databaseCredential == null + ? 43 + : this.databaseCredential.hashCode()); result = (result * PRIME) + (this.owner == null ? 43 : this.owner.hashCode()); result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); result = (result * PRIME) + (this.basicFilter == null ? 43 : this.basicFilter.hashCode()); diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ImplementOptimizerStatisticsAdvisorRecommendationsJob.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ImplementOptimizerStatisticsAdvisorRecommendationsJob.java index d2bbdab6646..3b04bbe040e 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ImplementOptimizerStatisticsAdvisorRecommendationsJob.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ImplementOptimizerStatisticsAdvisorRecommendationsJob.java @@ -28,20 +28,23 @@ public final class ImplementOptimizerStatisticsAdvisorRecommendationsJob "description", "compartmentId", "resultLocation", - "credentials" + "credentials", + "databaseCredential" }) public ImplementOptimizerStatisticsAdvisorRecommendationsJob( String name, String description, String compartmentId, JobExecutionResultLocation resultLocation, - ManagedDatabaseCredential credentials) { + ManagedDatabaseCredential credentials, + DatabaseCredentialDetails databaseCredential) { super(); this.name = name; this.description = description; this.compartmentId = compartmentId; this.resultLocation = resultLocation; this.credentials = credentials; + this.databaseCredential = databaseCredential; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -120,6 +123,15 @@ public Builder credentials(ManagedDatabaseCredential credentials) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private DatabaseCredentialDetails databaseCredential; + + public Builder databaseCredential(DatabaseCredentialDetails databaseCredential) { + this.databaseCredential = databaseCredential; + this.__explicitlySet__.add("databaseCredential"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -130,7 +142,8 @@ public ImplementOptimizerStatisticsAdvisorRecommendationsJob build() { this.description, this.compartmentId, this.resultLocation, - this.credentials); + this.credentials, + this.databaseCredential); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -154,6 +167,9 @@ public Builder copy(ImplementOptimizerStatisticsAdvisorRecommendationsJob model) if (model.wasPropertyExplicitlySet("credentials")) { this.credentials(model.getCredentials()); } + if (model.wasPropertyExplicitlySet("databaseCredential")) { + this.databaseCredential(model.getDatabaseCredential()); + } return this; } } @@ -230,6 +246,13 @@ public ManagedDatabaseCredential getCredentials() { return credentials; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private final DatabaseCredentialDetails databaseCredential; + + public DatabaseCredentialDetails getDatabaseCredential() { + return databaseCredential; + } + @Override public String toString() { return this.toString(true); @@ -250,6 +273,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", resultLocation=").append(String.valueOf(this.resultLocation)); sb.append(", credentials=").append(String.valueOf(this.credentials)); + sb.append(", databaseCredential=").append(String.valueOf(this.databaseCredential)); sb.append(")"); return sb.toString(); } @@ -270,6 +294,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.resultLocation, other.resultLocation) && java.util.Objects.equals(this.credentials, other.credentials) + && java.util.Objects.equals(this.databaseCredential, other.databaseCredential) && super.equals(other); } @@ -286,6 +311,11 @@ public int hashCode() { (result * PRIME) + (this.resultLocation == null ? 43 : this.resultLocation.hashCode()); result = (result * PRIME) + (this.credentials == null ? 43 : this.credentials.hashCode()); + result = + (result * PRIME) + + (this.databaseCredential == null + ? 43 + : this.databaseCredential.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/LoadSqlPlanBaselinesFromAwrDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/LoadSqlPlanBaselinesFromAwrDetails.java index 1493f58ad6e..88af6364017 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/LoadSqlPlanBaselinesFromAwrDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/LoadSqlPlanBaselinesFromAwrDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemanagement.model; /** - * The details required to load plans from Automatic Workload Repository (AWR).
+ * The details required to load plans from Automatic Workload Repository (AWR). It takes either + * credentials or databaseCredential. It's recommended to provide databaseCredential
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are 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,7 +32,8 @@ public final class LoadSqlPlanBaselinesFromAwrDetails "sqlTextFilter", "isFixed", "isEnabled", - "credentials" + "credentials", + "databaseCredential" }) public LoadSqlPlanBaselinesFromAwrDetails( String jobName, @@ -41,7 +43,8 @@ public LoadSqlPlanBaselinesFromAwrDetails( String sqlTextFilter, Boolean isFixed, Boolean isEnabled, - ManagedDatabaseCredential credentials) { + ManagedDatabaseCredential credentials, + DatabaseCredentialDetails databaseCredential) { super(); this.jobName = jobName; this.jobDescription = jobDescription; @@ -51,6 +54,7 @@ public LoadSqlPlanBaselinesFromAwrDetails( this.isFixed = isFixed; this.isEnabled = isEnabled; this.credentials = credentials; + this.databaseCredential = databaseCredential; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -186,6 +190,15 @@ public Builder credentials(ManagedDatabaseCredential credentials) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private DatabaseCredentialDetails databaseCredential; + + public Builder databaseCredential(DatabaseCredentialDetails databaseCredential) { + this.databaseCredential = databaseCredential; + this.__explicitlySet__.add("databaseCredential"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -199,7 +212,8 @@ public LoadSqlPlanBaselinesFromAwrDetails build() { this.sqlTextFilter, this.isFixed, this.isEnabled, - this.credentials); + this.credentials, + this.databaseCredential); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -232,6 +246,9 @@ public Builder copy(LoadSqlPlanBaselinesFromAwrDetails model) { if (model.wasPropertyExplicitlySet("credentials")) { this.credentials(model.getCredentials()); } + if (model.wasPropertyExplicitlySet("databaseCredential")) { + this.databaseCredential(model.getDatabaseCredential()); + } return this; } } @@ -359,6 +376,13 @@ public ManagedDatabaseCredential getCredentials() { return credentials; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private final DatabaseCredentialDetails databaseCredential; + + public DatabaseCredentialDetails getDatabaseCredential() { + return databaseCredential; + } + @Override public String toString() { return this.toString(true); @@ -382,6 +406,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", isFixed=").append(String.valueOf(this.isFixed)); sb.append(", isEnabled=").append(String.valueOf(this.isEnabled)); sb.append(", credentials=").append(String.valueOf(this.credentials)); + sb.append(", databaseCredential=").append(String.valueOf(this.databaseCredential)); sb.append(")"); return sb.toString(); } @@ -404,6 +429,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.isFixed, other.isFixed) && java.util.Objects.equals(this.isEnabled, other.isEnabled) && java.util.Objects.equals(this.credentials, other.credentials) + && java.util.Objects.equals(this.databaseCredential, other.databaseCredential) && super.equals(other); } @@ -425,6 +451,11 @@ public int hashCode() { result = (result * PRIME) + (this.isFixed == null ? 43 : this.isFixed.hashCode()); result = (result * PRIME) + (this.isEnabled == null ? 43 : this.isEnabled.hashCode()); result = (result * PRIME) + (this.credentials == null ? 43 : this.credentials.hashCode()); + result = + (result * PRIME) + + (this.databaseCredential == null + ? 43 + : this.databaseCredential.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/LoadSqlPlanBaselinesFromCursorCacheDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/LoadSqlPlanBaselinesFromCursorCacheDetails.java index 7ec5b5b07e2..e518e6e61e1 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/LoadSqlPlanBaselinesFromCursorCacheDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/LoadSqlPlanBaselinesFromCursorCacheDetails.java @@ -7,7 +7,9 @@ /** * The details of SQL statements and plans to be loaded from cursor cache. You can specify the plans * to load using SQL ID, plan identifier, or filterName and filterValue pair. You can also control - * the SQL plan baseline into which the plans are loaded using either SQL text or SQL handle.
+ * the SQL plan baseline into which the plans are loaded using either SQL text or SQL handle. It + * takes either credentials or databaseCredential. It's recommended to provide databaseCredential + *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -36,7 +38,8 @@ public final class LoadSqlPlanBaselinesFromCursorCacheDetails "filterValue", "isFixed", "isEnabled", - "credentials" + "credentials", + "databaseCredential" }) public LoadSqlPlanBaselinesFromCursorCacheDetails( String jobName, @@ -49,7 +52,8 @@ public LoadSqlPlanBaselinesFromCursorCacheDetails( String filterValue, Boolean isFixed, Boolean isEnabled, - ManagedDatabaseCredential credentials) { + ManagedDatabaseCredential credentials, + DatabaseCredentialDetails databaseCredential) { super(); this.jobName = jobName; this.jobDescription = jobDescription; @@ -62,6 +66,7 @@ public LoadSqlPlanBaselinesFromCursorCacheDetails( this.isFixed = isFixed; this.isEnabled = isEnabled; this.credentials = credentials; + this.databaseCredential = databaseCredential; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -258,6 +263,15 @@ public Builder credentials(ManagedDatabaseCredential credentials) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private DatabaseCredentialDetails databaseCredential; + + public Builder databaseCredential(DatabaseCredentialDetails databaseCredential) { + this.databaseCredential = databaseCredential; + this.__explicitlySet__.add("databaseCredential"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -274,7 +288,8 @@ public LoadSqlPlanBaselinesFromCursorCacheDetails build() { this.filterValue, this.isFixed, this.isEnabled, - this.credentials); + this.credentials, + this.databaseCredential); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -316,6 +331,9 @@ public Builder copy(LoadSqlPlanBaselinesFromCursorCacheDetails model) { if (model.wasPropertyExplicitlySet("credentials")) { this.credentials(model.getCredentials()); } + if (model.wasPropertyExplicitlySet("databaseCredential")) { + this.databaseCredential(model.getDatabaseCredential()); + } return this; } } @@ -536,6 +554,13 @@ public ManagedDatabaseCredential getCredentials() { return credentials; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private final DatabaseCredentialDetails databaseCredential; + + public DatabaseCredentialDetails getDatabaseCredential() { + return databaseCredential; + } + @Override public String toString() { return this.toString(true); @@ -562,6 +587,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", isFixed=").append(String.valueOf(this.isFixed)); sb.append(", isEnabled=").append(String.valueOf(this.isEnabled)); sb.append(", credentials=").append(String.valueOf(this.credentials)); + sb.append(", databaseCredential=").append(String.valueOf(this.databaseCredential)); sb.append(")"); return sb.toString(); } @@ -588,6 +614,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.isFixed, other.isFixed) && java.util.Objects.equals(this.isEnabled, other.isEnabled) && java.util.Objects.equals(this.credentials, other.credentials) + && java.util.Objects.equals(this.databaseCredential, other.databaseCredential) && super.equals(other); } @@ -608,6 +635,11 @@ public int hashCode() { result = (result * PRIME) + (this.isFixed == null ? 43 : this.isFixed.hashCode()); result = (result * PRIME) + (this.isEnabled == null ? 43 : this.isEnabled.hashCode()); result = (result * PRIME) + (this.credentials == null ? 43 : this.credentials.hashCode()); + result = + (result * PRIME) + + (this.databaseCredential == null + ? 43 + : this.databaseCredential.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/LoadSqlTuningSetDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/LoadSqlTuningSetDetails.java index dbf4a565e4f..8bacc49976d 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/LoadSqlTuningSetDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/LoadSqlTuningSetDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemanagement.model; /** - * The details required to load the Sql statements into the Sql tuning set.
+ * The details required to load the Sql statements into the Sql tuning set. It takes either + * credentialDetails or databaseCredential. It's recommended to provide databaseCredential
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -25,6 +26,7 @@ public final class LoadSqlTuningSetDetails @Deprecated @java.beans.ConstructorProperties({ "credentialDetails", + "databaseCredential", "showSqlOnly", "owner", "name", @@ -53,6 +55,7 @@ public final class LoadSqlTuningSetDetails }) public LoadSqlTuningSetDetails( SqlTuningSetAdminCredentialDetails credentialDetails, + DatabaseCredentialDetails databaseCredential, Integer showSqlOnly, String owner, String name, @@ -80,6 +83,7 @@ public LoadSqlTuningSetDetails( String baselineName) { super(); this.credentialDetails = credentialDetails; + this.databaseCredential = databaseCredential; this.showSqlOnly = showSqlOnly; this.owner = owner; this.name = name; @@ -118,6 +122,15 @@ public Builder credentialDetails(SqlTuningSetAdminCredentialDetails credentialDe this.__explicitlySet__.add("credentialDetails"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private DatabaseCredentialDetails databaseCredential; + + public Builder databaseCredential(DatabaseCredentialDetails databaseCredential) { + this.databaseCredential = databaseCredential; + this.__explicitlySet__.add("databaseCredential"); + return this; + } /** * Flag to indicate whether to create the Sql tuning set or just display the plsql used to * create Sql tuning set. @@ -643,6 +656,7 @@ public LoadSqlTuningSetDetails build() { LoadSqlTuningSetDetails model = new LoadSqlTuningSetDetails( this.credentialDetails, + this.databaseCredential, this.showSqlOnly, this.owner, this.name, @@ -679,6 +693,9 @@ public Builder copy(LoadSqlTuningSetDetails model) { if (model.wasPropertyExplicitlySet("credentialDetails")) { this.credentialDetails(model.getCredentialDetails()); } + if (model.wasPropertyExplicitlySet("databaseCredential")) { + this.databaseCredential(model.getDatabaseCredential()); + } if (model.wasPropertyExplicitlySet("showSqlOnly")) { this.showSqlOnly(model.getShowSqlOnly()); } @@ -774,6 +791,13 @@ public SqlTuningSetAdminCredentialDetails getCredentialDetails() { return credentialDetails; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private final DatabaseCredentialDetails databaseCredential; + + public DatabaseCredentialDetails getDatabaseCredential() { + return databaseCredential; + } + /** * Flag to indicate whether to create the Sql tuning set or just display the plsql used to * create Sql tuning set. @@ -1518,6 +1542,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("LoadSqlTuningSetDetails("); sb.append("super=").append(super.toString()); sb.append("credentialDetails=").append(String.valueOf(this.credentialDetails)); + sb.append(", databaseCredential=").append(String.valueOf(this.databaseCredential)); sb.append(", showSqlOnly=").append(String.valueOf(this.showSqlOnly)); sb.append(", owner=").append(String.valueOf(this.owner)); sb.append(", name=").append(String.valueOf(this.name)); @@ -1558,6 +1583,7 @@ public boolean equals(Object o) { LoadSqlTuningSetDetails other = (LoadSqlTuningSetDetails) o; return java.util.Objects.equals(this.credentialDetails, other.credentialDetails) + && java.util.Objects.equals(this.databaseCredential, other.databaseCredential) && java.util.Objects.equals(this.showSqlOnly, other.showSqlOnly) && java.util.Objects.equals(this.owner, other.owner) && java.util.Objects.equals(this.name, other.name) @@ -1593,6 +1619,11 @@ public int hashCode() { result = (result * PRIME) + (this.credentialDetails == null ? 43 : this.credentialDetails.hashCode()); + result = + (result * PRIME) + + (this.databaseCredential == null + ? 43 + : this.databaseCredential.hashCode()); result = (result * PRIME) + (this.showSqlOnly == null ? 43 : this.showSqlOnly.hashCode()); result = (result * PRIME) + (this.owner == null ? 43 : this.owner.hashCode()); result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/NamedCredential.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/NamedCredential.java new file mode 100644 index 00000000000..12012ba0ddd --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/NamedCredential.java @@ -0,0 +1,578 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details of a named credential.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = NamedCredential.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class NamedCredential + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "id", + "compartmentId", + "description", + "lifecycleState", + "lifecycleDetails", + "scope", + "type", + "content", + "timeCreated", + "timeUpdated", + "associatedResource" + }) + public NamedCredential( + String name, + String id, + String compartmentId, + String description, + LifecycleStates lifecycleState, + String lifecycleDetails, + NamedCredentialScope scope, + ResourceType type, + NamedCredentialContent content, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String associatedResource) { + super(); + this.name = name; + this.id = id; + this.compartmentId = compartmentId; + this.description = description; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.scope = scope; + this.type = type; + this.content = content; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.associatedResource = associatedResource; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The name of the named credential. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the named credential. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * named credential. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * named credential. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/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 information specified by the user about the named credential. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The information specified by the user about the named credential. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** The current lifecycle state of the named credential. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleStates lifecycleState; + + /** + * The current lifecycle state of the named credential. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleStates lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** The details of the lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * The details of the lifecycle state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** The scope of the named credential. */ + @com.fasterxml.jackson.annotation.JsonProperty("scope") + private NamedCredentialScope scope; + + /** + * The scope of the named credential. + * + * @param scope the value to set + * @return this builder + */ + public Builder scope(NamedCredentialScope scope) { + this.scope = scope; + this.__explicitlySet__.add("scope"); + return this; + } + /** The type of resource associated with the named credential. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private ResourceType type; + + /** + * The type of resource associated with the named credential. + * + * @param type the value to set + * @return this builder + */ + public Builder type(ResourceType type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("content") + private NamedCredentialContent content; + + public Builder content(NamedCredentialContent content) { + this.content = content; + this.__explicitlySet__.add("content"); + return this; + } + /** The date and time the named credential was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the named credential was created. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The date and time the named credential was last updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the named credential was last updated. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * resource that is associated to the named credential. + */ + @com.fasterxml.jackson.annotation.JsonProperty("associatedResource") + private String associatedResource; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * resource that is associated to the named credential. + * + * @param associatedResource the value to set + * @return this builder + */ + public Builder associatedResource(String associatedResource) { + this.associatedResource = associatedResource; + this.__explicitlySet__.add("associatedResource"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public NamedCredential build() { + NamedCredential model = + new NamedCredential( + this.name, + this.id, + this.compartmentId, + this.description, + this.lifecycleState, + this.lifecycleDetails, + this.scope, + this.type, + this.content, + this.timeCreated, + this.timeUpdated, + this.associatedResource); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(NamedCredential model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("scope")) { + this.scope(model.getScope()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("content")) { + this.content(model.getContent()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("associatedResource")) { + this.associatedResource(model.getAssociatedResource()); + } + 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 named credential. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the named credential. + * + * @return the value + */ + public String getName() { + return name; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * named credential. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * named credential. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The information specified by the user about the named credential. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The information specified by the user about the named credential. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** The current lifecycle state of the named credential. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleStates lifecycleState; + + /** + * The current lifecycle state of the named credential. + * + * @return the value + */ + public LifecycleStates getLifecycleState() { + return lifecycleState; + } + + /** The details of the lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * The details of the lifecycle state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** The scope of the named credential. */ + @com.fasterxml.jackson.annotation.JsonProperty("scope") + private final NamedCredentialScope scope; + + /** + * The scope of the named credential. + * + * @return the value + */ + public NamedCredentialScope getScope() { + return scope; + } + + /** The type of resource associated with the named credential. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final ResourceType type; + + /** + * The type of resource associated with the named credential. + * + * @return the value + */ + public ResourceType getType() { + return type; + } + + @com.fasterxml.jackson.annotation.JsonProperty("content") + private final NamedCredentialContent content; + + public NamedCredentialContent getContent() { + return content; + } + + /** The date and time the named credential was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the named credential was created. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The date and time the named credential was last updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the named credential was last updated. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * resource that is associated to the named credential. + */ + @com.fasterxml.jackson.annotation.JsonProperty("associatedResource") + private final String associatedResource; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * resource that is associated to the named credential. + * + * @return the value + */ + public String getAssociatedResource() { + return associatedResource; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("NamedCredential("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", scope=").append(String.valueOf(this.scope)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", content=").append(String.valueOf(this.content)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", associatedResource=").append(String.valueOf(this.associatedResource)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof NamedCredential)) { + return false; + } + + NamedCredential other = (NamedCredential) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.scope, other.scope) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.content, other.content) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.associatedResource, other.associatedResource) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.scope == null ? 43 : this.scope.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.content == null ? 43 : this.content.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.associatedResource == null + ? 43 + : this.associatedResource.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/NamedCredentialCollection.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/NamedCredentialCollection.java new file mode 100644 index 00000000000..9de4029a3d9 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/NamedCredentialCollection.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * A collection of named credential summary.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = NamedCredentialCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class NamedCredentialCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public NamedCredentialCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** An array of named credential resources. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * An array of named credential resources. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public NamedCredentialCollection build() { + NamedCredentialCollection model = new NamedCredentialCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(NamedCredentialCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** An array of named credential resources. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * An array of named credential resources. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("NamedCredentialCollection("); + 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 NamedCredentialCollection)) { + return false; + } + + NamedCredentialCollection other = (NamedCredentialCollection) 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/NamedCredentialContent.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/NamedCredentialContent.java new file mode 100644 index 00000000000..92268bef6d2 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/NamedCredentialContent.java @@ -0,0 +1,78 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details of the named credential.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "credentialType", + defaultImpl = NamedCredentialContent.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = BasicNamedCredentialContent.class, + name = "BASIC") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class NamedCredentialContent + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected NamedCredentialContent() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("NamedCredentialContent("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof NamedCredentialContent)) { + return false; + } + + NamedCredentialContent other = (NamedCredentialContent) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/NamedCredentialContentType.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/NamedCredentialContentType.java new file mode 100644 index 00000000000..2d7e9700c52 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/NamedCredentialContentType.java @@ -0,0 +1,52 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** The possible content types of a named credential. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public enum NamedCredentialContentType implements com.oracle.bmc.http.internal.BmcEnum { + Basic("BASIC"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(NamedCredentialContentType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (NamedCredentialContentType v : NamedCredentialContentType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + NamedCredentialContentType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static NamedCredentialContentType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'NamedCredentialContentType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/NamedCredentialScope.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/NamedCredentialScope.java new file mode 100644 index 00000000000..0b3334dd553 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/NamedCredentialScope.java @@ -0,0 +1,53 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** The possible scopes for a named credential. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public enum NamedCredentialScope implements com.oracle.bmc.http.internal.BmcEnum { + Resource("RESOURCE"), + Global("GLOBAL"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(NamedCredentialScope.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (NamedCredentialScope v : NamedCredentialScope.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + NamedCredentialScope(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static NamedCredentialScope create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'NamedCredentialScope', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/NamedCredentialSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/NamedCredentialSummary.java new file mode 100644 index 00000000000..85cf6507a02 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/NamedCredentialSummary.java @@ -0,0 +1,515 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * A summary of the named credential.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = NamedCredentialSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class NamedCredentialSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "name", + "description", + "scope", + "type", + "lifecycleState", + "lifecycleDetails", + "timeCreated", + "timeUpdated" + }) + public NamedCredentialSummary( + String id, + String compartmentId, + String name, + String description, + NamedCredentialScope scope, + ResourceType type, + LifecycleStates lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.name = name; + this.description = description; + this.scope = scope; + this.type = type; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * named credential. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * named credential. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment in which the named credential resides. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment in which the named credential resides. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The name of the named credential. Valid characters are uppercase or lowercase letters, + * numbers, and "_". The name of the named credential cannot be modified. It must be unique + * in the compartment and must begin with an alphabetic character. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the named credential. Valid characters are uppercase or lowercase letters, + * numbers, and "_". The name of the named credential cannot be modified. It must be unique + * in the compartment and must begin with an alphabetic character. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** The information specified by the user about the named credential. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The information specified by the user about the named credential. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** The scope of the named credential. */ + @com.fasterxml.jackson.annotation.JsonProperty("scope") + private NamedCredentialScope scope; + + /** + * The scope of the named credential. + * + * @param scope the value to set + * @return this builder + */ + public Builder scope(NamedCredentialScope scope) { + this.scope = scope; + this.__explicitlySet__.add("scope"); + return this; + } + /** The type of resource associated with the named credential. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private ResourceType type; + + /** + * The type of resource associated with the named credential. + * + * @param type the value to set + * @return this builder + */ + public Builder type(ResourceType type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** The current lifecycle state of the named credential. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleStates lifecycleState; + + /** + * The current lifecycle state of the named credential. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleStates lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** The details of the lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * The details of the lifecycle state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** The date and time the named credential was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the named credential was created. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The date and time the named credential was last updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the named credential was last updated. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public NamedCredentialSummary build() { + NamedCredentialSummary model = + new NamedCredentialSummary( + this.id, + this.compartmentId, + this.name, + this.description, + this.scope, + this.type, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(NamedCredentialSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("scope")) { + this.scope(model.getScope()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + 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.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * named credential. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * named credential. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment in which the named credential resides. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment in which the named credential resides. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The name of the named credential. Valid characters are uppercase or lowercase letters, + * numbers, and "_". The name of the named credential cannot be modified. It must be unique in + * the compartment and must begin with an alphabetic character. + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the named credential. Valid characters are uppercase or lowercase letters, + * numbers, and "_". The name of the named credential cannot be modified. It must be unique in + * the compartment and must begin with an alphabetic character. + * + * @return the value + */ + public String getName() { + return name; + } + + /** The information specified by the user about the named credential. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The information specified by the user about the named credential. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** The scope of the named credential. */ + @com.fasterxml.jackson.annotation.JsonProperty("scope") + private final NamedCredentialScope scope; + + /** + * The scope of the named credential. + * + * @return the value + */ + public NamedCredentialScope getScope() { + return scope; + } + + /** The type of resource associated with the named credential. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final ResourceType type; + + /** + * The type of resource associated with the named credential. + * + * @return the value + */ + public ResourceType getType() { + return type; + } + + /** The current lifecycle state of the named credential. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleStates lifecycleState; + + /** + * The current lifecycle state of the named credential. + * + * @return the value + */ + public LifecycleStates getLifecycleState() { + return lifecycleState; + } + + /** The details of the lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * The details of the lifecycle state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** The date and time the named credential was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the named credential was created. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The date and time the named credential was last updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the named credential was last updated. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("NamedCredentialSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", scope=").append(String.valueOf(this.scope)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof NamedCredentialSummary)) { + return false; + } + + NamedCredentialSummary other = (NamedCredentialSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.scope, other.scope) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.scope == null ? 43 : this.scope.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/NamedPreferredCredential.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/NamedPreferredCredential.java new file mode 100644 index 00000000000..f711aa6c9c7 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/NamedPreferredCredential.java @@ -0,0 +1,189 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details of the 'NAMED_CREDENTIAL' preferred credential.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = NamedPreferredCredential.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class NamedPreferredCredential extends PreferredCredential { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("credentialName") + private String credentialName; + + public Builder credentialName(String credentialName) { + this.credentialName = credentialName; + this.__explicitlySet__.add("credentialName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("status") + private PreferredCredentialStatus status; + + public Builder status(PreferredCredentialStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isAccessible") + private Boolean isAccessible; + + public Builder isAccessible(Boolean isAccessible) { + this.isAccessible = isAccessible; + this.__explicitlySet__.add("isAccessible"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Named Credential that contains the database user password metadata. + */ + @com.fasterxml.jackson.annotation.JsonProperty("namedCredentialId") + private String namedCredentialId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Named Credential that contains the database user password metadata. + * + * @param namedCredentialId the value to set + * @return this builder + */ + public Builder namedCredentialId(String namedCredentialId) { + this.namedCredentialId = namedCredentialId; + this.__explicitlySet__.add("namedCredentialId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public NamedPreferredCredential build() { + NamedPreferredCredential model = + new NamedPreferredCredential( + this.credentialName, + this.status, + this.isAccessible, + this.namedCredentialId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(NamedPreferredCredential model) { + if (model.wasPropertyExplicitlySet("credentialName")) { + this.credentialName(model.getCredentialName()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("isAccessible")) { + this.isAccessible(model.getIsAccessible()); + } + if (model.wasPropertyExplicitlySet("namedCredentialId")) { + this.namedCredentialId(model.getNamedCredentialId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public NamedPreferredCredential( + String credentialName, + PreferredCredentialStatus status, + Boolean isAccessible, + String namedCredentialId) { + super(credentialName, status, isAccessible); + this.namedCredentialId = namedCredentialId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Named Credential that contains the database user password metadata. + */ + @com.fasterxml.jackson.annotation.JsonProperty("namedCredentialId") + private final String namedCredentialId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Named Credential that contains the database user password metadata. + * + * @return the value + */ + public String getNamedCredentialId() { + return namedCredentialId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("NamedPreferredCredential("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", namedCredentialId=").append(String.valueOf(this.namedCredentialId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof NamedPreferredCredential)) { + return false; + } + + NamedPreferredCredential other = (NamedPreferredCredential) o; + return java.util.Objects.equals(this.namedCredentialId, other.namedCredentialId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.namedCredentialId == null ? 43 : this.namedCredentialId.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/PasswordSecretAccessMode.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/PasswordSecretAccessMode.java new file mode 100644 index 00000000000..620063c5774 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/PasswordSecretAccessMode.java @@ -0,0 +1,53 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** The principal used while accessing the password value from the Vault service. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public enum PasswordSecretAccessMode implements com.oracle.bmc.http.internal.BmcEnum { + UserPrincipal("USER_PRINCIPAL"), + ResourcePrincipal("RESOURCE_PRINCIPAL"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(PasswordSecretAccessMode.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PasswordSecretAccessMode v : PasswordSecretAccessMode.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + PasswordSecretAccessMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PasswordSecretAccessMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'PasswordSecretAccessMode', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/PreferredCredential.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/PreferredCredential.java index 07bbf348f14..c0c9b90f8ff 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/PreferredCredential.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/PreferredCredential.java @@ -22,6 +22,9 @@ property = "type", defaultImpl = PreferredCredential.class) @com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = NamedPreferredCredential.class, + name = "NAMED_CREDENTIAL"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = BasicPreferredCredential.class, name = "BASIC") diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/PreferredCredentialSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/PreferredCredentialSummary.java index fa0e2d3b0ae..6f9b0b770cc 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/PreferredCredentialSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/PreferredCredentialSummary.java @@ -29,7 +29,8 @@ public final class PreferredCredentialSummary "isAccessible", "userName", "role", - "passwordSecretId" + "passwordSecretId", + "namedCredentialId" }) public PreferredCredentialSummary( String credentialName, @@ -37,7 +38,8 @@ public PreferredCredentialSummary( Boolean isAccessible, String userName, Role role, - String passwordSecretId) { + String passwordSecretId, + String namedCredentialId) { super(); this.credentialName = credentialName; this.status = status; @@ -45,6 +47,7 @@ public PreferredCredentialSummary( this.userName = userName; this.role = role; this.passwordSecretId = passwordSecretId; + this.namedCredentialId = namedCredentialId; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -143,6 +146,25 @@ public Builder passwordSecretId(String passwordSecretId) { this.__explicitlySet__.add("passwordSecretId"); return this; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Named Credential that contains the database user password metadata. + */ + @com.fasterxml.jackson.annotation.JsonProperty("namedCredentialId") + private String namedCredentialId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Named Credential that contains the database user password metadata. + * + * @param namedCredentialId the value to set + * @return this builder + */ + public Builder namedCredentialId(String namedCredentialId) { + this.namedCredentialId = namedCredentialId; + this.__explicitlySet__.add("namedCredentialId"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -155,7 +177,8 @@ public PreferredCredentialSummary build() { this.isAccessible, this.userName, this.role, - this.passwordSecretId); + this.passwordSecretId, + this.namedCredentialId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -182,6 +205,9 @@ public Builder copy(PreferredCredentialSummary model) { if (model.wasPropertyExplicitlySet("passwordSecretId")) { this.passwordSecretId(model.getPasswordSecretId()); } + if (model.wasPropertyExplicitlySet("namedCredentialId")) { + this.namedCredentialId(model.getNamedCredentialId()); + } return this; } } @@ -277,6 +303,23 @@ public String getPasswordSecretId() { return passwordSecretId; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Named Credential that contains the database user password metadata. + */ + @com.fasterxml.jackson.annotation.JsonProperty("namedCredentialId") + private final String namedCredentialId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Named Credential that contains the database user password metadata. + * + * @return the value + */ + public String getNamedCredentialId() { + return namedCredentialId; + } + @Override public String toString() { return this.toString(true); @@ -298,6 +341,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", userName=").append(String.valueOf(this.userName)); sb.append(", role=").append(String.valueOf(this.role)); sb.append(", passwordSecretId=").append(String.valueOf(this.passwordSecretId)); + sb.append(", namedCredentialId=").append(String.valueOf(this.namedCredentialId)); sb.append(")"); return sb.toString(); } @@ -318,6 +362,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.userName, other.userName) && java.util.Objects.equals(this.role, other.role) && java.util.Objects.equals(this.passwordSecretId, other.passwordSecretId) + && java.util.Objects.equals(this.namedCredentialId, other.namedCredentialId) && super.equals(other); } @@ -335,6 +380,9 @@ public int hashCode() { result = (result * PRIME) + (this.passwordSecretId == null ? 43 : this.passwordSecretId.hashCode()); + result = + (result * PRIME) + + (this.namedCredentialId == null ? 43 : this.namedCredentialId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/PreferredCredentialType.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/PreferredCredentialType.java index 721d62b653f..3910aa4bc4a 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/PreferredCredentialType.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/PreferredCredentialType.java @@ -8,6 +8,7 @@ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") public enum PreferredCredentialType implements com.oracle.bmc.http.internal.BmcEnum { Basic("BASIC"), + NamedCredential("NAMED_CREDENTIAL"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/RemoveDataFileDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/RemoveDataFileDetails.java index 4b8a7ebc2be..96041fd7315 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/RemoveDataFileDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/RemoveDataFileDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemanagement.model; /** - * The details required to remove a data file or temp file from the tablespace.
+ * The details required to remove a data file or temp file from the tablespace. It takes either + * credentialDetails or databaseCredential. It's recommended to provide databaseCredential
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are 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,13 +24,20 @@ public final class RemoveDataFileDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"credentialDetails", "fileType", "dataFile"}) + @java.beans.ConstructorProperties({ + "credentialDetails", + "databaseCredential", + "fileType", + "dataFile" + }) public RemoveDataFileDetails( TablespaceAdminCredentialDetails credentialDetails, + DatabaseCredentialDetails databaseCredential, FileType fileType, String dataFile) { super(); this.credentialDetails = credentialDetails; + this.databaseCredential = databaseCredential; this.fileType = fileType; this.dataFile = dataFile; } @@ -45,6 +53,15 @@ public Builder credentialDetails(TablespaceAdminCredentialDetails credentialDeta this.__explicitlySet__.add("credentialDetails"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private DatabaseCredentialDetails databaseCredential; + + public Builder databaseCredential(DatabaseCredentialDetails databaseCredential) { + this.databaseCredential = databaseCredential; + this.__explicitlySet__.add("databaseCredential"); + return this; + } /** Specifies whether the file is a data file or temp file. */ @com.fasterxml.jackson.annotation.JsonProperty("fileType") private FileType fileType; @@ -81,7 +98,11 @@ public Builder dataFile(String dataFile) { public RemoveDataFileDetails build() { RemoveDataFileDetails model = - new RemoveDataFileDetails(this.credentialDetails, this.fileType, this.dataFile); + new RemoveDataFileDetails( + this.credentialDetails, + this.databaseCredential, + this.fileType, + this.dataFile); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -93,6 +114,9 @@ public Builder copy(RemoveDataFileDetails model) { if (model.wasPropertyExplicitlySet("credentialDetails")) { this.credentialDetails(model.getCredentialDetails()); } + if (model.wasPropertyExplicitlySet("databaseCredential")) { + this.databaseCredential(model.getDatabaseCredential()); + } if (model.wasPropertyExplicitlySet("fileType")) { this.fileType(model.getFileType()); } @@ -119,6 +143,13 @@ public TablespaceAdminCredentialDetails getCredentialDetails() { return credentialDetails; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private final DatabaseCredentialDetails databaseCredential; + + public DatabaseCredentialDetails getDatabaseCredential() { + return databaseCredential; + } + /** Specifies whether the file is a data file or temp file. */ public enum FileType implements com.oracle.bmc.http.internal.BmcEnum { Datafile("DATAFILE"), @@ -194,6 +225,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("RemoveDataFileDetails("); sb.append("super=").append(super.toString()); sb.append("credentialDetails=").append(String.valueOf(this.credentialDetails)); + sb.append(", databaseCredential=").append(String.valueOf(this.databaseCredential)); sb.append(", fileType=").append(String.valueOf(this.fileType)); sb.append(", dataFile=").append(String.valueOf(this.dataFile)); sb.append(")"); @@ -211,6 +243,7 @@ public boolean equals(Object o) { RemoveDataFileDetails other = (RemoveDataFileDetails) o; return java.util.Objects.equals(this.credentialDetails, other.credentialDetails) + && java.util.Objects.equals(this.databaseCredential, other.databaseCredential) && java.util.Objects.equals(this.fileType, other.fileType) && java.util.Objects.equals(this.dataFile, other.dataFile) && super.equals(other); @@ -223,6 +256,11 @@ public int hashCode() { result = (result * PRIME) + (this.credentialDetails == null ? 43 : this.credentialDetails.hashCode()); + result = + (result * PRIME) + + (this.databaseCredential == null + ? 43 + : this.databaseCredential.hashCode()); result = (result * PRIME) + (this.fileType == null ? 43 : this.fileType.hashCode()); result = (result * PRIME) + (this.dataFile == null ? 43 : this.dataFile.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ResetDatabaseParametersDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ResetDatabaseParametersDetails.java index aa13eaeede5..be49712a0e5 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ResetDatabaseParametersDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ResetDatabaseParametersDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemanagement.model; /** - * The details required to reset database parameter values.
+ * The details required to reset database parameter values. It takes either credentials or + * databaseCredential. It's recommended to provide databaseCredential
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are 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,13 +24,15 @@ public final class ResetDatabaseParametersDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"credentials", "scope", "parameters"}) + @java.beans.ConstructorProperties({"credentials", "databaseCredential", "scope", "parameters"}) public ResetDatabaseParametersDetails( DatabaseCredentials credentials, + DatabaseCredentialDetails databaseCredential, ParameterScope scope, java.util.List parameters) { super(); this.credentials = credentials; + this.databaseCredential = databaseCredential; this.scope = scope; this.parameters = parameters; } @@ -45,6 +48,15 @@ public Builder credentials(DatabaseCredentials credentials) { this.__explicitlySet__.add("credentials"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private DatabaseCredentialDetails databaseCredential; + + public Builder databaseCredential(DatabaseCredentialDetails databaseCredential) { + this.databaseCredential = databaseCredential; + this.__explicitlySet__.add("databaseCredential"); + return this; + } /** * The clause used to specify when the parameter change takes effect. * @@ -96,7 +108,7 @@ public Builder parameters(java.util.List parameters) { public ResetDatabaseParametersDetails build() { ResetDatabaseParametersDetails model = new ResetDatabaseParametersDetails( - this.credentials, this.scope, this.parameters); + this.credentials, this.databaseCredential, this.scope, this.parameters); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -108,6 +120,9 @@ public Builder copy(ResetDatabaseParametersDetails model) { if (model.wasPropertyExplicitlySet("credentials")) { this.credentials(model.getCredentials()); } + if (model.wasPropertyExplicitlySet("databaseCredential")) { + this.databaseCredential(model.getDatabaseCredential()); + } if (model.wasPropertyExplicitlySet("scope")) { this.scope(model.getScope()); } @@ -134,6 +149,13 @@ public DatabaseCredentials getCredentials() { return credentials; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private final DatabaseCredentialDetails databaseCredential; + + public DatabaseCredentialDetails getDatabaseCredential() { + return databaseCredential; + } + /** * The clause used to specify when the parameter change takes effect. * @@ -190,6 +212,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("ResetDatabaseParametersDetails("); sb.append("super=").append(super.toString()); sb.append("credentials=").append(String.valueOf(this.credentials)); + sb.append(", databaseCredential=").append(String.valueOf(this.databaseCredential)); sb.append(", scope=").append(String.valueOf(this.scope)); sb.append(", parameters=").append(String.valueOf(this.parameters)); sb.append(")"); @@ -207,6 +230,7 @@ public boolean equals(Object o) { ResetDatabaseParametersDetails other = (ResetDatabaseParametersDetails) o; return java.util.Objects.equals(this.credentials, other.credentials) + && java.util.Objects.equals(this.databaseCredential, other.databaseCredential) && java.util.Objects.equals(this.scope, other.scope) && java.util.Objects.equals(this.parameters, other.parameters) && super.equals(other); @@ -217,6 +241,11 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.credentials == null ? 43 : this.credentials.hashCode()); + result = + (result * PRIME) + + (this.databaseCredential == null + ? 43 + : this.databaseCredential.hashCode()); result = (result * PRIME) + (this.scope == null ? 43 : this.scope.hashCode()); result = (result * PRIME) + (this.parameters == null ? 43 : this.parameters.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ResizeDataFileDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ResizeDataFileDetails.java index e205b276943..75644c6307c 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ResizeDataFileDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ResizeDataFileDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemanagement.model; /** - * The details required to resize a data file or temp file within the tablespace.
+ * The details required to resize a data file or temp file within the tablespace. It takes either + * credentialDetails or databaseCredential. It's recommended to provide databaseCredential
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -25,6 +26,7 @@ public final class ResizeDataFileDetails @Deprecated @java.beans.ConstructorProperties({ "credentialDetails", + "databaseCredential", "fileType", "dataFile", "fileSize", @@ -35,6 +37,7 @@ public final class ResizeDataFileDetails }) public ResizeDataFileDetails( TablespaceAdminCredentialDetails credentialDetails, + DatabaseCredentialDetails databaseCredential, FileType fileType, String dataFile, TablespaceStorageSize fileSize, @@ -44,6 +47,7 @@ public ResizeDataFileDetails( Boolean isMaxSizeUnlimited) { super(); this.credentialDetails = credentialDetails; + this.databaseCredential = databaseCredential; this.fileType = fileType; this.dataFile = dataFile; this.fileSize = fileSize; @@ -64,6 +68,15 @@ public Builder credentialDetails(TablespaceAdminCredentialDetails credentialDeta this.__explicitlySet__.add("credentialDetails"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private DatabaseCredentialDetails databaseCredential; + + public Builder databaseCredential(DatabaseCredentialDetails databaseCredential) { + this.databaseCredential = databaseCredential; + this.__explicitlySet__.add("databaseCredential"); + return this; + } /** Specifies whether the file is a data file or temp file. */ @com.fasterxml.jackson.annotation.JsonProperty("fileType") private FileType fileType; @@ -183,6 +196,7 @@ public ResizeDataFileDetails build() { ResizeDataFileDetails model = new ResizeDataFileDetails( this.credentialDetails, + this.databaseCredential, this.fileType, this.dataFile, this.fileSize, @@ -201,6 +215,9 @@ public Builder copy(ResizeDataFileDetails model) { if (model.wasPropertyExplicitlySet("credentialDetails")) { this.credentialDetails(model.getCredentialDetails()); } + if (model.wasPropertyExplicitlySet("databaseCredential")) { + this.databaseCredential(model.getDatabaseCredential()); + } if (model.wasPropertyExplicitlySet("fileType")) { this.fileType(model.getFileType()); } @@ -242,6 +259,13 @@ public TablespaceAdminCredentialDetails getCredentialDetails() { return credentialDetails; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private final DatabaseCredentialDetails databaseCredential; + + public DatabaseCredentialDetails getDatabaseCredential() { + return databaseCredential; + } + /** Specifies whether the file is a data file or temp file. */ public enum FileType implements com.oracle.bmc.http.internal.BmcEnum { Datafile("DATAFILE"), @@ -386,6 +410,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("ResizeDataFileDetails("); sb.append("super=").append(super.toString()); sb.append("credentialDetails=").append(String.valueOf(this.credentialDetails)); + sb.append(", databaseCredential=").append(String.valueOf(this.databaseCredential)); sb.append(", fileType=").append(String.valueOf(this.fileType)); sb.append(", dataFile=").append(String.valueOf(this.dataFile)); sb.append(", fileSize=").append(String.valueOf(this.fileSize)); @@ -408,6 +433,7 @@ public boolean equals(Object o) { ResizeDataFileDetails other = (ResizeDataFileDetails) o; return java.util.Objects.equals(this.credentialDetails, other.credentialDetails) + && java.util.Objects.equals(this.databaseCredential, other.databaseCredential) && java.util.Objects.equals(this.fileType, other.fileType) && java.util.Objects.equals(this.dataFile, other.dataFile) && java.util.Objects.equals(this.fileSize, other.fileSize) @@ -425,6 +451,11 @@ public int hashCode() { result = (result * PRIME) + (this.credentialDetails == null ? 43 : this.credentialDetails.hashCode()); + result = + (result * PRIME) + + (this.databaseCredential == null + ? 43 + : this.databaseCredential.hashCode()); result = (result * PRIME) + (this.fileType == null ? 43 : this.fileType.hashCode()); result = (result * PRIME) + (this.dataFile == null ? 43 : this.dataFile.hashCode()); result = (result * PRIME) + (this.fileSize == null ? 43 : this.fileSize.hashCode()); diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ResourceType.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ResourceType.java new file mode 100644 index 00000000000..851a6e96510 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ResourceType.java @@ -0,0 +1,52 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** The possible resource types for a named credential. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public enum ResourceType implements com.oracle.bmc.http.internal.BmcEnum { + OracleDb("ORACLE_DB"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ResourceType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ResourceType v : ResourceType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ResourceType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ResourceType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ResourceType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SaveSqlTuningSetAsDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SaveSqlTuningSetAsDetails.java index 6b0308b2eab..6c9c1487a08 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SaveSqlTuningSetAsDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SaveSqlTuningSetAsDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemanagement.model; /** - * Save current list of Sql statements into another Sql tuning set.
+ * Save current list of Sql statements into another Sql tuning set. It takes either + * credentialDetails or databaseCredential. It's recommended to provide databaseCredential
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -25,6 +26,7 @@ public final class SaveSqlTuningSetAsDetails @Deprecated @java.beans.ConstructorProperties({ "credentialDetails", + "databaseCredential", "showSqlOnly", "owner", "name", @@ -50,6 +52,7 @@ public final class SaveSqlTuningSetAsDetails }) public SaveSqlTuningSetAsDetails( SqlTuningSetAdminCredentialDetails credentialDetails, + DatabaseCredentialDetails databaseCredential, Integer showSqlOnly, String owner, String name, @@ -74,6 +77,7 @@ public SaveSqlTuningSetAsDetails( Integer commitRows) { super(); this.credentialDetails = credentialDetails; + this.databaseCredential = databaseCredential; this.showSqlOnly = showSqlOnly; this.owner = owner; this.name = name; @@ -109,6 +113,15 @@ public Builder credentialDetails(SqlTuningSetAdminCredentialDetails credentialDe this.__explicitlySet__.add("credentialDetails"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private DatabaseCredentialDetails databaseCredential; + + public Builder databaseCredential(DatabaseCredentialDetails databaseCredential) { + this.databaseCredential = databaseCredential; + this.__explicitlySet__.add("databaseCredential"); + return this; + } /** * Flag to indicate whether to save the Sql tuning set or just display the plsql used to * save Sql tuning set. @@ -582,6 +595,7 @@ public SaveSqlTuningSetAsDetails build() { SaveSqlTuningSetAsDetails model = new SaveSqlTuningSetAsDetails( this.credentialDetails, + this.databaseCredential, this.showSqlOnly, this.owner, this.name, @@ -615,6 +629,9 @@ public Builder copy(SaveSqlTuningSetAsDetails model) { if (model.wasPropertyExplicitlySet("credentialDetails")) { this.credentialDetails(model.getCredentialDetails()); } + if (model.wasPropertyExplicitlySet("databaseCredential")) { + this.databaseCredential(model.getDatabaseCredential()); + } if (model.wasPropertyExplicitlySet("showSqlOnly")) { this.showSqlOnly(model.getShowSqlOnly()); } @@ -702,6 +719,13 @@ public SqlTuningSetAdminCredentialDetails getCredentialDetails() { return credentialDetails; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private final DatabaseCredentialDetails databaseCredential; + + public DatabaseCredentialDetails getDatabaseCredential() { + return databaseCredential; + } + /** * Flag to indicate whether to save the Sql tuning set or just display the plsql used to save * Sql tuning set. @@ -1334,6 +1358,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("SaveSqlTuningSetAsDetails("); sb.append("super=").append(super.toString()); sb.append("credentialDetails=").append(String.valueOf(this.credentialDetails)); + sb.append(", databaseCredential=").append(String.valueOf(this.databaseCredential)); sb.append(", showSqlOnly=").append(String.valueOf(this.showSqlOnly)); sb.append(", owner=").append(String.valueOf(this.owner)); sb.append(", name=").append(String.valueOf(this.name)); @@ -1374,6 +1399,7 @@ public boolean equals(Object o) { SaveSqlTuningSetAsDetails other = (SaveSqlTuningSetAsDetails) o; return java.util.Objects.equals(this.credentialDetails, other.credentialDetails) + && java.util.Objects.equals(this.databaseCredential, other.databaseCredential) && java.util.Objects.equals(this.showSqlOnly, other.showSqlOnly) && java.util.Objects.equals(this.owner, other.owner) && java.util.Objects.equals(this.name, other.name) @@ -1410,6 +1436,11 @@ public int hashCode() { result = (result * PRIME) + (this.credentialDetails == null ? 43 : this.credentialDetails.hashCode()); + result = + (result * PRIME) + + (this.databaseCredential == null + ? 43 + : this.databaseCredential.hashCode()); result = (result * PRIME) + (this.showSqlOnly == null ? 43 : this.showSqlOnly.hashCode()); result = (result * PRIME) + (this.owner == null ? 43 : this.owner.hashCode()); result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SqlJob.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SqlJob.java index 363e044aff8..c4d92def517 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SqlJob.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SqlJob.java @@ -277,6 +277,25 @@ public Builder role(Role role) { this.__explicitlySet__.add("role"); return this; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Named Credentials containing password secret. + */ + @com.fasterxml.jackson.annotation.JsonProperty("namedCredentialId") + private String namedCredentialId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Named Credentials containing password secret. + * + * @param namedCredentialId the value to set + * @return this builder + */ + public Builder namedCredentialId(String namedCredentialId) { + this.namedCredentialId = namedCredentialId; + this.__explicitlySet__.add("namedCredentialId"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -306,7 +325,8 @@ public SqlJob build() { this.outBinds, this.operationType, this.userName, - this.role); + this.role, + this.namedCredentialId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -384,6 +404,9 @@ public Builder copy(SqlJob model) { if (model.wasPropertyExplicitlySet("role")) { this.role(model.getRole()); } + if (model.wasPropertyExplicitlySet("namedCredentialId")) { + this.namedCredentialId(model.getNamedCredentialId()); + } return this; } } @@ -421,7 +444,8 @@ public SqlJob( JobOutBindsDetails outBinds, OperationType operationType, String userName, - Role role) { + Role role, + String namedCredentialId) { super( id, compartmentId, @@ -446,6 +470,7 @@ public SqlJob( this.operationType = operationType; this.userName = userName; this.role = role; + this.namedCredentialId = namedCredentialId; } /** The type of SQL. This is a mandatory field for the EXECUTE_SQL operationType. */ @@ -681,6 +706,23 @@ public Role getRole() { return role; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Named Credentials containing password secret. + */ + @com.fasterxml.jackson.annotation.JsonProperty("namedCredentialId") + private final String namedCredentialId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Named Credentials containing password secret. + * + * @return the value + */ + public String getNamedCredentialId() { + return namedCredentialId; + } + @Override public String toString() { return this.toString(true); @@ -703,6 +745,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", operationType=").append(String.valueOf(this.operationType)); sb.append(", userName=").append(String.valueOf(this.userName)); sb.append(", role=").append(String.valueOf(this.role)); + sb.append(", namedCredentialId=").append(String.valueOf(this.namedCredentialId)); sb.append(")"); return sb.toString(); } @@ -724,6 +767,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.operationType, other.operationType) && java.util.Objects.equals(this.userName, other.userName) && java.util.Objects.equals(this.role, other.role) + && java.util.Objects.equals(this.namedCredentialId, other.namedCredentialId) && super.equals(other); } @@ -740,6 +784,9 @@ public int hashCode() { + (this.operationType == null ? 43 : this.operationType.hashCode()); result = (result * PRIME) + (this.userName == null ? 43 : this.userName.hashCode()); result = (result * PRIME) + (this.role == null ? 43 : this.role.hashCode()); + result = + (result * PRIME) + + (this.namedCredentialId == null ? 43 : this.namedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/StartSqlTuningTaskDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/StartSqlTuningTaskDetails.java index 8ce5b5eee5e..0e65f1a2290 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/StartSqlTuningTaskDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/StartSqlTuningTaskDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemanagement.model; /** - * The request to start a SQL tuning task.
+ * The request to start a SQL tuning task. It takes either credentialDetails or databaseCredential. + * It's recommended to provide databaseCredential
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -27,6 +28,7 @@ public final class StartSqlTuningTaskDetails "taskName", "taskDescription", "credentialDetails", + "databaseCredential", "totalTimeLimitInMinutes", "scope", "statementTimeLimitInMinutes", @@ -39,6 +41,7 @@ public StartSqlTuningTaskDetails( String taskName, String taskDescription, SqlTuningTaskCredentialDetails credentialDetails, + DatabaseCredentialDetails databaseCredential, Integer totalTimeLimitInMinutes, Scope scope, Integer statementTimeLimitInMinutes, @@ -50,6 +53,7 @@ public StartSqlTuningTaskDetails( this.taskName = taskName; this.taskDescription = taskDescription; this.credentialDetails = credentialDetails; + this.databaseCredential = databaseCredential; this.totalTimeLimitInMinutes = totalTimeLimitInMinutes; this.scope = scope; this.statementTimeLimitInMinutes = statementTimeLimitInMinutes; @@ -104,6 +108,15 @@ public Builder credentialDetails(SqlTuningTaskCredentialDetails credentialDetail this.__explicitlySet__.add("credentialDetails"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private DatabaseCredentialDetails databaseCredential; + + public Builder databaseCredential(DatabaseCredentialDetails databaseCredential) { + this.databaseCredential = databaseCredential; + this.__explicitlySet__.add("databaseCredential"); + return this; + } /** The time limit for running the SQL tuning task. */ @com.fasterxml.jackson.annotation.JsonProperty("totalTimeLimitInMinutes") private Integer totalTimeLimitInMinutes; @@ -229,6 +242,7 @@ public StartSqlTuningTaskDetails build() { this.taskName, this.taskDescription, this.credentialDetails, + this.databaseCredential, this.totalTimeLimitInMinutes, this.scope, this.statementTimeLimitInMinutes, @@ -253,6 +267,9 @@ public Builder copy(StartSqlTuningTaskDetails model) { if (model.wasPropertyExplicitlySet("credentialDetails")) { this.credentialDetails(model.getCredentialDetails()); } + if (model.wasPropertyExplicitlySet("databaseCredential")) { + this.databaseCredential(model.getDatabaseCredential()); + } if (model.wasPropertyExplicitlySet("totalTimeLimitInMinutes")) { this.totalTimeLimitInMinutes(model.getTotalTimeLimitInMinutes()); } @@ -324,6 +341,13 @@ public SqlTuningTaskCredentialDetails getCredentialDetails() { return credentialDetails; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private final DatabaseCredentialDetails databaseCredential; + + public DatabaseCredentialDetails getDatabaseCredential() { + return databaseCredential; + } + /** The time limit for running the SQL tuning task. */ @com.fasterxml.jackson.annotation.JsonProperty("totalTimeLimitInMinutes") private final Integer totalTimeLimitInMinutes; @@ -480,6 +504,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("taskName=").append(String.valueOf(this.taskName)); sb.append(", taskDescription=").append(String.valueOf(this.taskDescription)); sb.append(", credentialDetails=").append(String.valueOf(this.credentialDetails)); + sb.append(", databaseCredential=").append(String.valueOf(this.databaseCredential)); sb.append(", totalTimeLimitInMinutes=") .append(String.valueOf(this.totalTimeLimitInMinutes)); sb.append(", scope=").append(String.valueOf(this.scope)); @@ -506,6 +531,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.taskName, other.taskName) && java.util.Objects.equals(this.taskDescription, other.taskDescription) && java.util.Objects.equals(this.credentialDetails, other.credentialDetails) + && java.util.Objects.equals(this.databaseCredential, other.databaseCredential) && java.util.Objects.equals( this.totalTimeLimitInMinutes, other.totalTimeLimitInMinutes) && java.util.Objects.equals(this.scope, other.scope) @@ -529,6 +555,11 @@ public int hashCode() { result = (result * PRIME) + (this.credentialDetails == null ? 43 : this.credentialDetails.hashCode()); + result = + (result * PRIME) + + (this.databaseCredential == null + ? 43 + : this.databaseCredential.hashCode()); result = (result * PRIME) + (this.totalTimeLimitInMinutes == null diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/TestNamedCredentialDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/TestNamedCredentialDetails.java new file mode 100644 index 00000000000..ef803479374 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/TestNamedCredentialDetails.java @@ -0,0 +1,146 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * database against which the credential is to be tested.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = TestNamedCredentialDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class TestNamedCredentialDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"managedDatabaseId"}) + public TestNamedCredentialDetails(String managedDatabaseId) { + super(); + this.managedDatabaseId = managedDatabaseId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("managedDatabaseId") + private String managedDatabaseId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database. + * + * @param managedDatabaseId the value to set + * @return this builder + */ + public Builder managedDatabaseId(String managedDatabaseId) { + this.managedDatabaseId = managedDatabaseId; + this.__explicitlySet__.add("managedDatabaseId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public TestNamedCredentialDetails build() { + TestNamedCredentialDetails model = + new TestNamedCredentialDetails(this.managedDatabaseId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TestNamedCredentialDetails model) { + if (model.wasPropertyExplicitlySet("managedDatabaseId")) { + this.managedDatabaseId(model.getManagedDatabaseId()); + } + 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.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("managedDatabaseId") + private final String managedDatabaseId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Managed Database. + * + * @return the value + */ + public String getManagedDatabaseId() { + return managedDatabaseId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("TestNamedCredentialDetails("); + sb.append("super=").append(super.toString()); + sb.append("managedDatabaseId=").append(String.valueOf(this.managedDatabaseId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof TestNamedCredentialDetails)) { + return false; + } + + TestNamedCredentialDetails other = (TestNamedCredentialDetails) o; + return java.util.Objects.equals(this.managedDatabaseId, other.managedDatabaseId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.managedDatabaseId == null ? 43 : this.managedDatabaseId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/TestNamedCredentialStatus.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/TestNamedCredentialStatus.java new file mode 100644 index 00000000000..7d7a8df5aa1 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/TestNamedCredentialStatus.java @@ -0,0 +1,278 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The status of the named credential test. The status is 'SUCCEEDED' if the named credential is + * working or else the status is 'FAILED'.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = TestNamedCredentialStatus.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class TestNamedCredentialStatus + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"status", "errorCode", "errorMessage"}) + public TestNamedCredentialStatus(Status status, String errorCode, String errorMessage) { + super(); + this.status = status; + this.errorCode = errorCode; + this.errorMessage = errorMessage; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The status of the named credential test. The status is 'SUCCEEDED' if the named + * credential is working or else the status is 'FAILED'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Status status; + + /** + * The status of the named credential test. The status is 'SUCCEEDED' if the named + * credential is working or else the status is 'FAILED'. + * + * @param status the value to set + * @return this builder + */ + public Builder status(Status status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** + * An error code that defines the failure of the named credential test. The response is + * 'null' if the named credential test was successful. + */ + @com.fasterxml.jackson.annotation.JsonProperty("errorCode") + private String errorCode; + + /** + * An error code that defines the failure of the named credential test. The response is + * 'null' if the named credential test was successful. + * + * @param errorCode the value to set + * @return this builder + */ + public Builder errorCode(String errorCode) { + this.errorCode = errorCode; + this.__explicitlySet__.add("errorCode"); + return this; + } + /** + * The error message that indicates the reason for the failure of the named credential test. + * The response is 'null' if the named credential test was successful. + */ + @com.fasterxml.jackson.annotation.JsonProperty("errorMessage") + private String errorMessage; + + /** + * The error message that indicates the reason for the failure of the named credential test. + * The response is 'null' if the named credential test was successful. + * + * @param errorMessage the value to set + * @return this builder + */ + public Builder errorMessage(String errorMessage) { + this.errorMessage = errorMessage; + this.__explicitlySet__.add("errorMessage"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public TestNamedCredentialStatus build() { + TestNamedCredentialStatus model = + new TestNamedCredentialStatus(this.status, this.errorCode, this.errorMessage); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TestNamedCredentialStatus model) { + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("errorCode")) { + this.errorCode(model.getErrorCode()); + } + if (model.wasPropertyExplicitlySet("errorMessage")) { + this.errorMessage(model.getErrorMessage()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The status of the named credential test. The status is 'SUCCEEDED' if the named credential is + * working or else the status is 'FAILED'. + */ + public enum Status implements com.oracle.bmc.http.internal.BmcEnum { + Succeeded("SUCCEEDED"), + 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(Status.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Status v : Status.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Status(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Status create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Status', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The status of the named credential test. The status is 'SUCCEEDED' if the named credential is + * working or else the status is 'FAILED'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final Status status; + + /** + * The status of the named credential test. The status is 'SUCCEEDED' if the named credential is + * working or else the status is 'FAILED'. + * + * @return the value + */ + public Status getStatus() { + return status; + } + + /** + * An error code that defines the failure of the named credential test. The response is 'null' + * if the named credential test was successful. + */ + @com.fasterxml.jackson.annotation.JsonProperty("errorCode") + private final String errorCode; + + /** + * An error code that defines the failure of the named credential test. The response is 'null' + * if the named credential test was successful. + * + * @return the value + */ + public String getErrorCode() { + return errorCode; + } + + /** + * The error message that indicates the reason for the failure of the named credential test. The + * response is 'null' if the named credential test was successful. + */ + @com.fasterxml.jackson.annotation.JsonProperty("errorMessage") + private final String errorMessage; + + /** + * The error message that indicates the reason for the failure of the named credential test. The + * response is 'null' if the named credential test was successful. + * + * @return the value + */ + public String getErrorMessage() { + return errorMessage; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("TestNamedCredentialStatus("); + sb.append("super=").append(super.toString()); + sb.append("status=").append(String.valueOf(this.status)); + sb.append(", errorCode=").append(String.valueOf(this.errorCode)); + sb.append(", errorMessage=").append(String.valueOf(this.errorMessage)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof TestNamedCredentialStatus)) { + return false; + } + + TestNamedCredentialStatus other = (TestNamedCredentialStatus) o; + return java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.errorCode, other.errorCode) + && java.util.Objects.equals(this.errorMessage, other.errorMessage) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.errorCode == null ? 43 : this.errorCode.hashCode()); + result = (result * PRIME) + (this.errorMessage == null ? 43 : this.errorMessage.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/TestNamedPreferredCredentialDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/TestNamedPreferredCredentialDetails.java new file mode 100644 index 00000000000..b368d4e7c1b --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/TestNamedPreferredCredentialDetails.java @@ -0,0 +1,146 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details of the preferred credential that refers to a Named Credential.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = TestNamedPreferredCredentialDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class TestNamedPreferredCredentialDetails extends TestPreferredCredentialDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Named Credential that contains the database user password metadata. + */ + @com.fasterxml.jackson.annotation.JsonProperty("namedCredentialId") + private String namedCredentialId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Named Credential that contains the database user password metadata. + * + * @param namedCredentialId the value to set + * @return this builder + */ + public Builder namedCredentialId(String namedCredentialId) { + this.namedCredentialId = namedCredentialId; + this.__explicitlySet__.add("namedCredentialId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public TestNamedPreferredCredentialDetails build() { + TestNamedPreferredCredentialDetails model = + new TestNamedPreferredCredentialDetails(this.namedCredentialId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TestNamedPreferredCredentialDetails model) { + if (model.wasPropertyExplicitlySet("namedCredentialId")) { + this.namedCredentialId(model.getNamedCredentialId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public TestNamedPreferredCredentialDetails(String namedCredentialId) { + super(); + this.namedCredentialId = namedCredentialId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Named Credential that contains the database user password metadata. + */ + @com.fasterxml.jackson.annotation.JsonProperty("namedCredentialId") + private final String namedCredentialId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Named Credential that contains the database user password metadata. + * + * @return the value + */ + public String getNamedCredentialId() { + return namedCredentialId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("TestNamedPreferredCredentialDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", namedCredentialId=").append(String.valueOf(this.namedCredentialId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof TestNamedPreferredCredentialDetails)) { + return false; + } + + TestNamedPreferredCredentialDetails other = (TestNamedPreferredCredentialDetails) o; + return java.util.Objects.equals(this.namedCredentialId, other.namedCredentialId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.namedCredentialId == null ? 43 : this.namedCredentialId.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/TestPreferredCredentialDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/TestPreferredCredentialDetails.java index 4d287963232..3037244ee22 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/TestPreferredCredentialDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/TestPreferredCredentialDetails.java @@ -23,6 +23,9 @@ property = "type", defaultImpl = TestPreferredCredentialDetails.class) @com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = TestNamedPreferredCredentialDetails.class, + name = "NAMED_CREDENTIAL"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = TestBasicPreferredCredentialDetails.class, name = "BASIC") diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateNamedCredentialDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateNamedCredentialDetails.java new file mode 100644 index 00000000000..936869de5bd --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateNamedCredentialDetails.java @@ -0,0 +1,245 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details required to update a named credential.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateNamedCredentialDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateNamedCredentialDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"description", "scope", "content", "associatedResource"}) + public UpdateNamedCredentialDetails( + String description, + NamedCredentialScope scope, + NamedCredentialContent content, + String associatedResource) { + super(); + this.description = description; + this.scope = scope; + this.content = content; + this.associatedResource = associatedResource; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The information specified by the user about the named credential. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The information specified by the user about the named credential. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** The scope of the named credential. */ + @com.fasterxml.jackson.annotation.JsonProperty("scope") + private NamedCredentialScope scope; + + /** + * The scope of the named credential. + * + * @param scope the value to set + * @return this builder + */ + public Builder scope(NamedCredentialScope scope) { + this.scope = scope; + this.__explicitlySet__.add("scope"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("content") + private NamedCredentialContent content; + + public Builder content(NamedCredentialContent content) { + this.content = content; + this.__explicitlySet__.add("content"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * resource that is associated to the named credential. + */ + @com.fasterxml.jackson.annotation.JsonProperty("associatedResource") + private String associatedResource; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * resource that is associated to the named credential. + * + * @param associatedResource the value to set + * @return this builder + */ + public Builder associatedResource(String associatedResource) { + this.associatedResource = associatedResource; + this.__explicitlySet__.add("associatedResource"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateNamedCredentialDetails build() { + UpdateNamedCredentialDetails model = + new UpdateNamedCredentialDetails( + this.description, this.scope, this.content, this.associatedResource); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateNamedCredentialDetails model) { + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("scope")) { + this.scope(model.getScope()); + } + if (model.wasPropertyExplicitlySet("content")) { + this.content(model.getContent()); + } + if (model.wasPropertyExplicitlySet("associatedResource")) { + this.associatedResource(model.getAssociatedResource()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The information specified by the user about the named credential. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The information specified by the user about the named credential. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** The scope of the named credential. */ + @com.fasterxml.jackson.annotation.JsonProperty("scope") + private final NamedCredentialScope scope; + + /** + * The scope of the named credential. + * + * @return the value + */ + public NamedCredentialScope getScope() { + return scope; + } + + @com.fasterxml.jackson.annotation.JsonProperty("content") + private final NamedCredentialContent content; + + public NamedCredentialContent getContent() { + return content; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * resource that is associated to the named credential. + */ + @com.fasterxml.jackson.annotation.JsonProperty("associatedResource") + private final String associatedResource; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * resource that is associated to the named credential. + * + * @return the value + */ + public String getAssociatedResource() { + return associatedResource; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateNamedCredentialDetails("); + sb.append("super=").append(super.toString()); + sb.append("description=").append(String.valueOf(this.description)); + sb.append(", scope=").append(String.valueOf(this.scope)); + sb.append(", content=").append(String.valueOf(this.content)); + sb.append(", associatedResource=").append(String.valueOf(this.associatedResource)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateNamedCredentialDetails)) { + return false; + } + + UpdateNamedCredentialDetails other = (UpdateNamedCredentialDetails) o; + return java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.scope, other.scope) + && java.util.Objects.equals(this.content, other.content) + && java.util.Objects.equals(this.associatedResource, other.associatedResource) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.scope == null ? 43 : this.scope.hashCode()); + result = (result * PRIME) + (this.content == null ? 43 : this.content.hashCode()); + result = + (result * PRIME) + + (this.associatedResource == null + ? 43 + : this.associatedResource.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateNamedPreferredCredentialDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateNamedPreferredCredentialDetails.java new file mode 100644 index 00000000000..7a5d6338d3e --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateNamedPreferredCredentialDetails.java @@ -0,0 +1,146 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details of the preferred credential that refers to a Named Credential.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateNamedPreferredCredentialDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateNamedPreferredCredentialDetails extends UpdatePreferredCredentialDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Named Credential that contains the database user password. + */ + @com.fasterxml.jackson.annotation.JsonProperty("namedCredentialId") + private String namedCredentialId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Named Credential that contains the database user password. + * + * @param namedCredentialId the value to set + * @return this builder + */ + public Builder namedCredentialId(String namedCredentialId) { + this.namedCredentialId = namedCredentialId; + this.__explicitlySet__.add("namedCredentialId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateNamedPreferredCredentialDetails build() { + UpdateNamedPreferredCredentialDetails model = + new UpdateNamedPreferredCredentialDetails(this.namedCredentialId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateNamedPreferredCredentialDetails model) { + if (model.wasPropertyExplicitlySet("namedCredentialId")) { + this.namedCredentialId(model.getNamedCredentialId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateNamedPreferredCredentialDetails(String namedCredentialId) { + super(); + this.namedCredentialId = namedCredentialId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Named Credential that contains the database user password. + */ + @com.fasterxml.jackson.annotation.JsonProperty("namedCredentialId") + private final String namedCredentialId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Named Credential that contains the database user password. + * + * @return the value + */ + public String getNamedCredentialId() { + return namedCredentialId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateNamedPreferredCredentialDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", namedCredentialId=").append(String.valueOf(this.namedCredentialId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateNamedPreferredCredentialDetails)) { + return false; + } + + UpdateNamedPreferredCredentialDetails other = (UpdateNamedPreferredCredentialDetails) o; + return java.util.Objects.equals(this.namedCredentialId, other.namedCredentialId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.namedCredentialId == null ? 43 : this.namedCredentialId.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdatePreferredCredentialDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdatePreferredCredentialDetails.java index da255beab94..eac0ee76141 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdatePreferredCredentialDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdatePreferredCredentialDetails.java @@ -22,6 +22,9 @@ property = "type", defaultImpl = UpdatePreferredCredentialDetails.class) @com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateNamedPreferredCredentialDetails.class, + name = "NAMED_CREDENTIAL"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = UpdateBasicPreferredCredentialDetails.class, name = "BASIC") diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateSqlJobDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateSqlJobDetails.java index 6ebd01e5b98..531263b7d19 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateSqlJobDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateSqlJobDetails.java @@ -159,6 +159,25 @@ public Builder secretId(String secretId) { this.__explicitlySet__.add("secretId"); return this; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Named Credentials containing password secret. + */ + @com.fasterxml.jackson.annotation.JsonProperty("namedCredentialId") + private String namedCredentialId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Named Credentials containing password secret. + * + * @param namedCredentialId the value to set + * @return this builder + */ + public Builder namedCredentialId(String namedCredentialId) { + this.namedCredentialId = namedCredentialId; + this.__explicitlySet__.add("namedCredentialId"); + return this; + } /** * The role of the database user. Indicates whether the database user is a normal user or * sysdba. @@ -196,6 +215,7 @@ public UpdateSqlJobDetails build() { this.userName, this.password, this.secretId, + this.namedCredentialId, this.role); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -238,6 +258,9 @@ public Builder copy(UpdateSqlJobDetails model) { if (model.wasPropertyExplicitlySet("secretId")) { this.secretId(model.getSecretId()); } + if (model.wasPropertyExplicitlySet("namedCredentialId")) { + this.namedCredentialId(model.getNamedCredentialId()); + } if (model.wasPropertyExplicitlySet("role")) { this.role(model.getRole()); } @@ -267,6 +290,7 @@ public UpdateSqlJobDetails( String userName, String password, String secretId, + String namedCredentialId, SqlJob.Role role) { super(description, timeout, resultLocation, scheduleDetails); this.sqlText = sqlText; @@ -276,6 +300,7 @@ public UpdateSqlJobDetails( this.userName = userName; this.password = password; this.secretId = secretId; + this.namedCredentialId = namedCredentialId; this.role = role; } @@ -362,6 +387,23 @@ public String getSecretId() { return secretId; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Named Credentials containing password secret. + */ + @com.fasterxml.jackson.annotation.JsonProperty("namedCredentialId") + private final String namedCredentialId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Named Credentials containing password secret. + * + * @return the value + */ + public String getNamedCredentialId() { + return namedCredentialId; + } + /** * The role of the database user. Indicates whether the database user is a normal user or * sysdba. @@ -401,6 +443,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", userName=").append(String.valueOf(this.userName)); sb.append(", password=").append(String.valueOf(this.password)); sb.append(", secretId=").append(String.valueOf(this.secretId)); + sb.append(", namedCredentialId=").append(String.valueOf(this.namedCredentialId)); sb.append(", role=").append(String.valueOf(this.role)); sb.append(")"); return sb.toString(); @@ -423,6 +466,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.userName, other.userName) && java.util.Objects.equals(this.password, other.password) && java.util.Objects.equals(this.secretId, other.secretId) + && java.util.Objects.equals(this.namedCredentialId, other.namedCredentialId) && java.util.Objects.equals(this.role, other.role) && super.equals(other); } @@ -438,6 +482,9 @@ public int hashCode() { result = (result * PRIME) + (this.userName == null ? 43 : this.userName.hashCode()); result = (result * PRIME) + (this.password == null ? 43 : this.password.hashCode()); result = (result * PRIME) + (this.secretId == null ? 43 : this.secretId.hashCode()); + result = + (result * PRIME) + + (this.namedCredentialId == null ? 43 : this.namedCredentialId.hashCode()); result = (result * PRIME) + (this.role == null ? 43 : this.role.hashCode()); return result; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateTablespaceDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateTablespaceDetails.java index 98cc1cfd1dc..c631c49905e 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateTablespaceDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/UpdateTablespaceDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemanagement.model; /** - * The details required to update a tablespace.
+ * The details required to update a tablespace. It takes either credentialDetails or + * databaseCredential. It's recommended to provide databaseCredential
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -25,6 +26,7 @@ public final class UpdateTablespaceDetails @Deprecated @java.beans.ConstructorProperties({ "credentialDetails", + "databaseCredential", "name", "type", "fileSize", @@ -37,6 +39,7 @@ public final class UpdateTablespaceDetails }) public UpdateTablespaceDetails( TablespaceAdminCredentialDetails credentialDetails, + DatabaseCredentialDetails databaseCredential, String name, Type type, TablespaceStorageSize fileSize, @@ -48,6 +51,7 @@ public UpdateTablespaceDetails( Boolean isDefault) { super(); this.credentialDetails = credentialDetails; + this.databaseCredential = databaseCredential; this.name = name; this.type = type; this.fileSize = fileSize; @@ -70,6 +74,15 @@ public Builder credentialDetails(TablespaceAdminCredentialDetails credentialDeta this.__explicitlySet__.add("credentialDetails"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private DatabaseCredentialDetails databaseCredential; + + public Builder databaseCredential(DatabaseCredentialDetails databaseCredential) { + this.databaseCredential = databaseCredential; + this.__explicitlySet__.add("databaseCredential"); + return this; + } /** The name of the tablespace. It must be unique within a database. */ @com.fasterxml.jackson.annotation.JsonProperty("name") private String name; @@ -219,6 +232,7 @@ public UpdateTablespaceDetails build() { UpdateTablespaceDetails model = new UpdateTablespaceDetails( this.credentialDetails, + this.databaseCredential, this.name, this.type, this.fileSize, @@ -239,6 +253,9 @@ public Builder copy(UpdateTablespaceDetails model) { if (model.wasPropertyExplicitlySet("credentialDetails")) { this.credentialDetails(model.getCredentialDetails()); } + if (model.wasPropertyExplicitlySet("databaseCredential")) { + this.databaseCredential(model.getDatabaseCredential()); + } if (model.wasPropertyExplicitlySet("name")) { this.name(model.getName()); } @@ -286,6 +303,13 @@ public TablespaceAdminCredentialDetails getCredentialDetails() { return credentialDetails; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private final DatabaseCredentialDetails databaseCredential; + + public DatabaseCredentialDetails getDatabaseCredential() { + return databaseCredential; + } + /** The name of the tablespace. It must be unique within a database. */ @com.fasterxml.jackson.annotation.JsonProperty("name") private final String name; @@ -489,6 +513,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("UpdateTablespaceDetails("); sb.append("super=").append(super.toString()); sb.append("credentialDetails=").append(String.valueOf(this.credentialDetails)); + sb.append(", databaseCredential=").append(String.valueOf(this.databaseCredential)); sb.append(", name=").append(String.valueOf(this.name)); sb.append(", type=").append(String.valueOf(this.type)); sb.append(", fileSize=").append(String.valueOf(this.fileSize)); @@ -513,6 +538,7 @@ public boolean equals(Object o) { UpdateTablespaceDetails other = (UpdateTablespaceDetails) o; return java.util.Objects.equals(this.credentialDetails, other.credentialDetails) + && java.util.Objects.equals(this.databaseCredential, other.databaseCredential) && java.util.Objects.equals(this.name, other.name) && java.util.Objects.equals(this.type, other.type) && java.util.Objects.equals(this.fileSize, other.fileSize) @@ -532,6 +558,11 @@ public int hashCode() { result = (result * PRIME) + (this.credentialDetails == null ? 43 : this.credentialDetails.hashCode()); + result = + (result * PRIME) + + (this.databaseCredential == null + ? 43 + : this.databaseCredential.hashCode()); result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); result = (result * PRIME) + (this.fileSize == null ? 43 : this.fileSize.hashCode()); diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ValidateBasicFilterDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ValidateBasicFilterDetails.java index 91748ae488e..2b11b941495 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ValidateBasicFilterDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ValidateBasicFilterDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemanagement.model; /** - * Validate the basic filter criteria provided by the user.
+ * Validate the basic filter criteria provided by the user. It takes either credentialDetails or + * databaseCredential. It's recommended to provide databaseCredential
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are 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,14 +24,22 @@ public final class ValidateBasicFilterDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"credentialDetails", "owner", "name", "basicFilter"}) + @java.beans.ConstructorProperties({ + "credentialDetails", + "databaseCredential", + "owner", + "name", + "basicFilter" + }) public ValidateBasicFilterDetails( SqlTuningSetAdminCredentialDetails credentialDetails, + DatabaseCredentialDetails databaseCredential, String owner, String name, String basicFilter) { super(); this.credentialDetails = credentialDetails; + this.databaseCredential = databaseCredential; this.owner = owner; this.name = name; this.basicFilter = basicFilter; @@ -47,6 +56,15 @@ public Builder credentialDetails(SqlTuningSetAdminCredentialDetails credentialDe this.__explicitlySet__.add("credentialDetails"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private DatabaseCredentialDetails databaseCredential; + + public Builder databaseCredential(DatabaseCredentialDetails databaseCredential) { + this.databaseCredential = databaseCredential; + this.__explicitlySet__.add("databaseCredential"); + return this; + } /** The owner of the Sql tuning set. */ @com.fasterxml.jackson.annotation.JsonProperty("owner") private String owner; @@ -107,7 +125,11 @@ public Builder basicFilter(String basicFilter) { public ValidateBasicFilterDetails build() { ValidateBasicFilterDetails model = new ValidateBasicFilterDetails( - this.credentialDetails, this.owner, this.name, this.basicFilter); + this.credentialDetails, + this.databaseCredential, + this.owner, + this.name, + this.basicFilter); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -119,6 +141,9 @@ public Builder copy(ValidateBasicFilterDetails model) { if (model.wasPropertyExplicitlySet("credentialDetails")) { this.credentialDetails(model.getCredentialDetails()); } + if (model.wasPropertyExplicitlySet("databaseCredential")) { + this.databaseCredential(model.getDatabaseCredential()); + } if (model.wasPropertyExplicitlySet("owner")) { this.owner(model.getOwner()); } @@ -148,6 +173,13 @@ public SqlTuningSetAdminCredentialDetails getCredentialDetails() { return credentialDetails; } + @com.fasterxml.jackson.annotation.JsonProperty("databaseCredential") + private final DatabaseCredentialDetails databaseCredential; + + public DatabaseCredentialDetails getDatabaseCredential() { + return databaseCredential; + } + /** The owner of the Sql tuning set. */ @com.fasterxml.jackson.annotation.JsonProperty("owner") private final String owner; @@ -211,6 +243,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("ValidateBasicFilterDetails("); sb.append("super=").append(super.toString()); sb.append("credentialDetails=").append(String.valueOf(this.credentialDetails)); + sb.append(", databaseCredential=").append(String.valueOf(this.databaseCredential)); sb.append(", owner=").append(String.valueOf(this.owner)); sb.append(", name=").append(String.valueOf(this.name)); sb.append(", basicFilter=").append(String.valueOf(this.basicFilter)); @@ -229,6 +262,7 @@ public boolean equals(Object o) { ValidateBasicFilterDetails other = (ValidateBasicFilterDetails) o; return java.util.Objects.equals(this.credentialDetails, other.credentialDetails) + && java.util.Objects.equals(this.databaseCredential, other.databaseCredential) && java.util.Objects.equals(this.owner, other.owner) && java.util.Objects.equals(this.name, other.name) && java.util.Objects.equals(this.basicFilter, other.basicFilter) @@ -242,6 +276,11 @@ public int hashCode() { result = (result * PRIME) + (this.credentialDetails == null ? 43 : this.credentialDetails.hashCode()); + result = + (result * PRIME) + + (this.databaseCredential == null + ? 43 + : this.databaseCredential.hashCode()); result = (result * PRIME) + (this.owner == null ? 43 : this.owner.hashCode()); result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); result = (result * PRIME) + (this.basicFilter == null ? 43 : this.basicFilter.hashCode()); diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/AddmTasksRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/AddmTasksRequest.java index 656aeb43530..286b90352a5 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/AddmTasksRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/AddmTasksRequest.java @@ -137,6 +137,13 @@ public SortBy getSortBy() { public com.oracle.bmc.databasemanagement.model.SortOrders getSortOrder() { return sortOrder; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -276,6 +283,20 @@ public Builder sortOrder(com.oracle.bmc.databasemanagement.model.SortOrders sort return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -314,6 +335,7 @@ public Builder copy(AddmTasksRequest o) { limit(o.getLimit()); sortBy(o.getSortBy()); sortOrder(o.getSortOrder()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -356,9 +378,10 @@ public AddmTasksRequest buildWithoutInvocationCallback() { request.limit = limit; request.sortBy = sortBy; request.sortOrder = sortOrder; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new AddmTasksRequest(managedDatabaseId, timeStart, timeEnd, opcRequestId, page, - // limit, sortBy, sortOrder); + // limit, sortBy, sortOrder, opcNamedCredentialId); } } @@ -376,7 +399,8 @@ public Builder toBuilder() { .page(page) .limit(limit) .sortBy(sortBy) - .sortOrder(sortOrder); + .sortOrder(sortOrder) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -401,6 +425,7 @@ public String toString() { sb.append(",limit=").append(String.valueOf(this.limit)); sb.append(",sortBy=").append(String.valueOf(this.sortBy)); sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -423,7 +448,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.page, other.page) && java.util.Objects.equals(this.limit, other.limit) && java.util.Objects.equals(this.sortBy, other.sortBy) - && java.util.Objects.equals(this.sortOrder, other.sortOrder); + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -440,6 +466,11 @@ public int hashCode() { result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ChangeNamedCredentialCompartmentRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ChangeNamedCredentialCompartmentRequest.java new file mode 100644 index 00000000000..b2e954600f5 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ChangeNamedCredentialCompartmentRequest.java @@ -0,0 +1,385 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use + * ChangeNamedCredentialCompartmentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class ChangeNamedCredentialCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasemanagement.model.ChangeNamedCredentialCompartmentDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * named credential. + */ + private String namedCredentialId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * named credential. + */ + public String getNamedCredentialId() { + return namedCredentialId; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment to which the named credential should be moved. + */ + private com.oracle.bmc.databasemanagement.model.ChangeNamedCredentialCompartmentDetails + changeNamedCredentialCompartmentDetails; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment to which the named credential should be moved. + */ + public com.oracle.bmc.databasemanagement.model.ChangeNamedCredentialCompartmentDetails + getChangeNamedCredentialCompartmentDetails() { + return changeNamedCredentialCompartmentDetails; + } + /** 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; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasemanagement.model.ChangeNamedCredentialCompartmentDetails + getBody$() { + return changeNamedCredentialCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeNamedCredentialCompartmentRequest, + com.oracle.bmc.databasemanagement.model + .ChangeNamedCredentialCompartmentDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * named credential. + */ + private String namedCredentialId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * named credential. + * + * @param namedCredentialId the value to set + * @return this builder instance + */ + public Builder namedCredentialId(String namedCredentialId) { + this.namedCredentialId = namedCredentialId; + return this; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment to which the named credential should be moved. + */ + private com.oracle.bmc.databasemanagement.model.ChangeNamedCredentialCompartmentDetails + changeNamedCredentialCompartmentDetails = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment to which the named credential should be moved. + * + * @param changeNamedCredentialCompartmentDetails the value to set + * @return this builder instance + */ + public Builder changeNamedCredentialCompartmentDetails( + com.oracle.bmc.databasemanagement.model.ChangeNamedCredentialCompartmentDetails + changeNamedCredentialCompartmentDetails) { + this.changeNamedCredentialCompartmentDetails = changeNamedCredentialCompartmentDetails; + 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; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ChangeNamedCredentialCompartmentRequest o) { + namedCredentialId(o.getNamedCredentialId()); + changeNamedCredentialCompartmentDetails(o.getChangeNamedCredentialCompartmentDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeNamedCredentialCompartmentRequest 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 ChangeNamedCredentialCompartmentRequest + */ + public ChangeNamedCredentialCompartmentRequest build() { + ChangeNamedCredentialCompartmentRequest 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.databasemanagement.model.ChangeNamedCredentialCompartmentDetails + body) { + changeNamedCredentialCompartmentDetails(body); + return this; + } + + /** + * Build the instance of ChangeNamedCredentialCompartmentRequest 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 ChangeNamedCredentialCompartmentRequest + */ + public ChangeNamedCredentialCompartmentRequest buildWithoutInvocationCallback() { + ChangeNamedCredentialCompartmentRequest request = + new ChangeNamedCredentialCompartmentRequest(); + request.namedCredentialId = namedCredentialId; + request.changeNamedCredentialCompartmentDetails = + changeNamedCredentialCompartmentDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + return request; + // new ChangeNamedCredentialCompartmentRequest(namedCredentialId, + // changeNamedCredentialCompartmentDetails, opcRequestId, opcRetryToken, ifMatch); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .namedCredentialId(namedCredentialId) + .changeNamedCredentialCompartmentDetails(changeNamedCredentialCompartmentDetails) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken) + .ifMatch(ifMatch); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",namedCredentialId=").append(String.valueOf(this.namedCredentialId)); + sb.append(",changeNamedCredentialCompartmentDetails=") + .append(String.valueOf(this.changeNamedCredentialCompartmentDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeNamedCredentialCompartmentRequest)) { + return false; + } + + ChangeNamedCredentialCompartmentRequest other = (ChangeNamedCredentialCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.namedCredentialId, other.namedCredentialId) + && java.util.Objects.equals( + this.changeNamedCredentialCompartmentDetails, + other.changeNamedCredentialCompartmentDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.namedCredentialId == null ? 43 : this.namedCredentialId.hashCode()); + result = + (result * PRIME) + + (this.changeNamedCredentialCompartmentDetails == null + ? 43 + : this.changeNamedCredentialCompartmentDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/CreateNamedCredentialRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/CreateNamedCredentialRequest.java new file mode 100644 index 00000000000..fdb57734621 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/CreateNamedCredentialRequest.java @@ -0,0 +1,283 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use + * CreateNamedCredentialRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class CreateNamedCredentialRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasemanagement.model.CreateNamedCredentialDetails> { + + /** The details required to create a named credential. */ + private com.oracle.bmc.databasemanagement.model.CreateNamedCredentialDetails + createNamedCredentialDetails; + + /** The details required to create a named credential. */ + public com.oracle.bmc.databasemanagement.model.CreateNamedCredentialDetails + getCreateNamedCredentialDetails() { + return createNamedCredentialDetails; + } + /** 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.databasemanagement.model.CreateNamedCredentialDetails getBody$() { + return createNamedCredentialDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateNamedCredentialRequest, + com.oracle.bmc.databasemanagement.model.CreateNamedCredentialDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The details required to create a named credential. */ + private com.oracle.bmc.databasemanagement.model.CreateNamedCredentialDetails + createNamedCredentialDetails = null; + + /** + * The details required to create a named credential. + * + * @param createNamedCredentialDetails the value to set + * @return this builder instance + */ + public Builder createNamedCredentialDetails( + com.oracle.bmc.databasemanagement.model.CreateNamedCredentialDetails + createNamedCredentialDetails) { + this.createNamedCredentialDetails = createNamedCredentialDetails; + 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(CreateNamedCredentialRequest o) { + createNamedCredentialDetails(o.getCreateNamedCredentialDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateNamedCredentialRequest 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 CreateNamedCredentialRequest + */ + public CreateNamedCredentialRequest build() { + CreateNamedCredentialRequest 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.databasemanagement.model.CreateNamedCredentialDetails body) { + createNamedCredentialDetails(body); + return this; + } + + /** + * Build the instance of CreateNamedCredentialRequest 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 CreateNamedCredentialRequest + */ + public CreateNamedCredentialRequest buildWithoutInvocationCallback() { + CreateNamedCredentialRequest request = new CreateNamedCredentialRequest(); + request.createNamedCredentialDetails = createNamedCredentialDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new CreateNamedCredentialRequest(createNamedCredentialDetails, 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() + .createNamedCredentialDetails(createNamedCredentialDetails) + .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(",createNamedCredentialDetails=") + .append(String.valueOf(this.createNamedCredentialDetails)); + 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 CreateNamedCredentialRequest)) { + return false; + } + + CreateNamedCredentialRequest other = (CreateNamedCredentialRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createNamedCredentialDetails, other.createNamedCredentialDetails) + && 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.createNamedCredentialDetails == null + ? 43 + : this.createNamedCredentialDetails.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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DeleteNamedCredentialRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DeleteNamedCredentialRequest.java new file mode 100644 index 00000000000..a7ac07ea99b --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DeleteNamedCredentialRequest.java @@ -0,0 +1,251 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use + * DeleteNamedCredentialRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class DeleteNamedCredentialRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * named credential. + */ + private String namedCredentialId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * named credential. + */ + public String getNamedCredentialId() { + return namedCredentialId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST 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< + DeleteNamedCredentialRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * named credential. + */ + private String namedCredentialId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * named credential. + * + * @param namedCredentialId the value to set + * @return this builder instance + */ + public Builder namedCredentialId(String namedCredentialId) { + this.namedCredentialId = namedCredentialId; + 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(DeleteNamedCredentialRequest o) { + namedCredentialId(o.getNamedCredentialId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteNamedCredentialRequest 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 DeleteNamedCredentialRequest + */ + public DeleteNamedCredentialRequest build() { + DeleteNamedCredentialRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteNamedCredentialRequest 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 DeleteNamedCredentialRequest + */ + public DeleteNamedCredentialRequest buildWithoutInvocationCallback() { + DeleteNamedCredentialRequest request = new DeleteNamedCredentialRequest(); + request.namedCredentialId = namedCredentialId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteNamedCredentialRequest(namedCredentialId, 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() + .namedCredentialId(namedCredentialId) + .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(",namedCredentialId=").append(String.valueOf(this.namedCredentialId)); + 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 DeleteNamedCredentialRequest)) { + return false; + } + + DeleteNamedCredentialRequest other = (DeleteNamedCredentialRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.namedCredentialId, other.namedCredentialId) + && 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.namedCredentialId == null ? 43 : this.namedCredentialId.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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GenerateAwrSnapshotRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GenerateAwrSnapshotRequest.java index 2fe6aa0b569..41dd31d86c0 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GenerateAwrSnapshotRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GenerateAwrSnapshotRequest.java @@ -52,6 +52,13 @@ public String getOpcRetryToken() { public String getOpcRequestId() { return opcRequestId; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -115,6 +122,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -148,6 +169,7 @@ public Builder copy(GenerateAwrSnapshotRequest o) { managedDatabaseId(o.getManagedDatabaseId()); opcRetryToken(o.getOpcRetryToken()); opcRequestId(o.getOpcRequestId()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -185,8 +207,10 @@ public GenerateAwrSnapshotRequest buildWithoutInvocationCallback() { request.managedDatabaseId = managedDatabaseId; request.opcRetryToken = opcRetryToken; request.opcRequestId = opcRequestId; + request.opcNamedCredentialId = opcNamedCredentialId; return request; - // new GenerateAwrSnapshotRequest(managedDatabaseId, opcRetryToken, opcRequestId); + // new GenerateAwrSnapshotRequest(managedDatabaseId, opcRetryToken, opcRequestId, + // opcNamedCredentialId); } } @@ -199,7 +223,8 @@ public Builder toBuilder() { return new Builder() .managedDatabaseId(managedDatabaseId) .opcRetryToken(opcRetryToken) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -219,6 +244,7 @@ public String toString() { sb.append(",managedDatabaseId=").append(String.valueOf(this.managedDatabaseId)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -236,7 +262,8 @@ public boolean equals(Object o) { return super.equals(o) && java.util.Objects.equals(this.managedDatabaseId, other.managedDatabaseId) && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -250,6 +277,11 @@ public int hashCode() { (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetAwrDbReportRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetAwrDbReportRequest.java index 07b1ce50ba4..23bc828fb5c 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetAwrDbReportRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetAwrDbReportRequest.java @@ -199,6 +199,13 @@ public String getOpcRequestId() { public String getOpcRetryToken() { return opcRetryToken; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -411,6 +418,20 @@ public Builder opcRetryToken(String opcRetryToken) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -453,6 +474,7 @@ public Builder copy(GetAwrDbReportRequest o) { reportFormat(o.getReportFormat()); opcRequestId(o.getOpcRequestId()); opcRetryToken(o.getOpcRetryToken()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -499,11 +521,12 @@ public GetAwrDbReportRequest buildWithoutInvocationCallback() { request.reportFormat = reportFormat; request.opcRequestId = opcRequestId; request.opcRetryToken = opcRetryToken; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new GetAwrDbReportRequest(managedDatabaseId, awrDbId, instNums, // beginSnIdGreaterThanOrEqualTo, endSnIdLessThanOrEqualTo, timeGreaterThanOrEqualTo, // timeLessThanOrEqualTo, reportType, containerId, reportFormat, opcRequestId, - // opcRetryToken); + // opcRetryToken, opcNamedCredentialId); } } @@ -525,7 +548,8 @@ public Builder toBuilder() { .containerId(containerId) .reportFormat(reportFormat) .opcRequestId(opcRequestId) - .opcRetryToken(opcRetryToken); + .opcRetryToken(opcRetryToken) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -557,6 +581,7 @@ public String toString() { sb.append(",reportFormat=").append(String.valueOf(this.reportFormat)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -586,7 +611,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.containerId, other.containerId) && java.util.Objects.equals(this.reportFormat, other.reportFormat) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -625,6 +651,11 @@ public int hashCode() { result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetAwrDbSqlReportRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetAwrDbSqlReportRequest.java index c618c0df739..fcc7077d941 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetAwrDbSqlReportRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetAwrDbSqlReportRequest.java @@ -175,6 +175,13 @@ public String getOpcRequestId() { public String getOpcRetryToken() { return opcRetryToken; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -384,6 +391,20 @@ public Builder opcRetryToken(String opcRetryToken) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -426,6 +447,7 @@ public Builder copy(GetAwrDbSqlReportRequest o) { containerId(o.getContainerId()); opcRequestId(o.getOpcRequestId()); opcRetryToken(o.getOpcRetryToken()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -472,10 +494,12 @@ public GetAwrDbSqlReportRequest buildWithoutInvocationCallback() { request.containerId = containerId; request.opcRequestId = opcRequestId; request.opcRetryToken = opcRetryToken; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new GetAwrDbSqlReportRequest(managedDatabaseId, awrDbId, sqlId, instNum, // beginSnIdGreaterThanOrEqualTo, endSnIdLessThanOrEqualTo, timeGreaterThanOrEqualTo, - // timeLessThanOrEqualTo, reportFormat, containerId, opcRequestId, opcRetryToken); + // timeLessThanOrEqualTo, reportFormat, containerId, opcRequestId, opcRetryToken, + // opcNamedCredentialId); } } @@ -497,7 +521,8 @@ public Builder toBuilder() { .reportFormat(reportFormat) .containerId(containerId) .opcRequestId(opcRequestId) - .opcRetryToken(opcRetryToken); + .opcRetryToken(opcRetryToken) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -529,6 +554,7 @@ public String toString() { sb.append(",containerId=").append(String.valueOf(this.containerId)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -558,7 +584,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.reportFormat, other.reportFormat) && java.util.Objects.equals(this.containerId, other.containerId) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -597,6 +624,11 @@ public int hashCode() { result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetExecutionPlanStatsComparisionRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetExecutionPlanStatsComparisionRequest.java index 085a6f3bdde..bd052f07091 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetExecutionPlanStatsComparisionRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetExecutionPlanStatsComparisionRequest.java @@ -74,6 +74,13 @@ public Long getExecutionId() { public String getOpcRequestId() { return opcRequestId; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -167,6 +174,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -202,6 +223,7 @@ public Builder copy(GetExecutionPlanStatsComparisionRequest o) { sqlObjectId(o.getSqlObjectId()); executionId(o.getExecutionId()); opcRequestId(o.getOpcRequestId()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -244,9 +266,11 @@ public GetExecutionPlanStatsComparisionRequest buildWithoutInvocationCallback() request.sqlObjectId = sqlObjectId; request.executionId = executionId; request.opcRequestId = opcRequestId; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new GetExecutionPlanStatsComparisionRequest(managedDatabaseId, - // sqlTuningAdvisorTaskId, sqlObjectId, executionId, opcRequestId); + // sqlTuningAdvisorTaskId, sqlObjectId, executionId, opcRequestId, + // opcNamedCredentialId); } } @@ -261,7 +285,8 @@ public Builder toBuilder() { .sqlTuningAdvisorTaskId(sqlTuningAdvisorTaskId) .sqlObjectId(sqlObjectId) .executionId(executionId) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -283,6 +308,7 @@ public String toString() { sb.append(",sqlObjectId=").append(String.valueOf(this.sqlObjectId)); sb.append(",executionId=").append(String.valueOf(this.executionId)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -303,7 +329,8 @@ public boolean equals(Object o) { this.sqlTuningAdvisorTaskId, other.sqlTuningAdvisorTaskId) && java.util.Objects.equals(this.sqlObjectId, other.sqlObjectId) && java.util.Objects.equals(this.executionId, other.executionId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -321,6 +348,11 @@ public int hashCode() { result = (result * PRIME) + (this.sqlObjectId == null ? 43 : this.sqlObjectId.hashCode()); result = (result * PRIME) + (this.executionId == null ? 43 : this.executionId.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetExternalAsmConfigurationRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetExternalAsmConfigurationRequest.java index dfcb75383c6..1ad9906d07a 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetExternalAsmConfigurationRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetExternalAsmConfigurationRequest.java @@ -35,6 +35,13 @@ public String getExternalAsmId() { public String getOpcRequestId() { return opcRequestId; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -74,6 +81,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -106,6 +127,7 @@ public Builder retryConfiguration( public Builder copy(GetExternalAsmConfigurationRequest o) { externalAsmId(o.getExternalAsmId()); opcRequestId(o.getOpcRequestId()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -142,8 +164,10 @@ public GetExternalAsmConfigurationRequest buildWithoutInvocationCallback() { GetExternalAsmConfigurationRequest request = new GetExternalAsmConfigurationRequest(); request.externalAsmId = externalAsmId; request.opcRequestId = opcRequestId; + request.opcNamedCredentialId = opcNamedCredentialId; return request; - // new GetExternalAsmConfigurationRequest(externalAsmId, opcRequestId); + // new GetExternalAsmConfigurationRequest(externalAsmId, opcRequestId, + // opcNamedCredentialId); } } @@ -153,7 +177,10 @@ public GetExternalAsmConfigurationRequest buildWithoutInvocationCallback() { * @return instance of {@link Builder} that allows you to modify request properties. */ public Builder toBuilder() { - return new Builder().externalAsmId(externalAsmId).opcRequestId(opcRequestId); + return new Builder() + .externalAsmId(externalAsmId) + .opcRequestId(opcRequestId) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -172,6 +199,7 @@ public String toString() { sb.append("super=").append(super.toString()); sb.append(",externalAsmId=").append(String.valueOf(this.externalAsmId)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -188,7 +216,8 @@ public boolean equals(Object o) { GetExternalAsmConfigurationRequest other = (GetExternalAsmConfigurationRequest) o; return super.equals(o) && java.util.Objects.equals(this.externalAsmId, other.externalAsmId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -199,6 +228,11 @@ public int hashCode() { (result * PRIME) + (this.externalAsmId == null ? 43 : this.externalAsmId.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetNamedCredentialRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetNamedCredentialRequest.java new file mode 100644 index 00000000000..dbf1657592c --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetNamedCredentialRequest.java @@ -0,0 +1,202 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use GetNamedCredentialRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class GetNamedCredentialRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * named credential. + */ + private String namedCredentialId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * named credential. + */ + public String getNamedCredentialId() { + return namedCredentialId; + } + /** 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< + GetNamedCredentialRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * named credential. + */ + private String namedCredentialId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * named credential. + * + * @param namedCredentialId the value to set + * @return this builder instance + */ + public Builder namedCredentialId(String namedCredentialId) { + this.namedCredentialId = namedCredentialId; + 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(GetNamedCredentialRequest o) { + namedCredentialId(o.getNamedCredentialId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetNamedCredentialRequest 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 GetNamedCredentialRequest + */ + public GetNamedCredentialRequest build() { + GetNamedCredentialRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetNamedCredentialRequest 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 GetNamedCredentialRequest + */ + public GetNamedCredentialRequest buildWithoutInvocationCallback() { + GetNamedCredentialRequest request = new GetNamedCredentialRequest(); + request.namedCredentialId = namedCredentialId; + request.opcRequestId = opcRequestId; + return request; + // new GetNamedCredentialRequest(namedCredentialId, 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().namedCredentialId(namedCredentialId).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(",namedCredentialId=").append(String.valueOf(this.namedCredentialId)); + 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 GetNamedCredentialRequest)) { + return false; + } + + GetNamedCredentialRequest other = (GetNamedCredentialRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.namedCredentialId, other.namedCredentialId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.namedCredentialId == null ? 43 : this.namedCredentialId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetOptimizerStatisticsAdvisorExecutionRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetOptimizerStatisticsAdvisorExecutionRequest.java index 54e659e49a0..a75428673c6 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetOptimizerStatisticsAdvisorExecutionRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetOptimizerStatisticsAdvisorExecutionRequest.java @@ -49,6 +49,13 @@ public String getTaskName() { public String getOpcRequestId() { return opcRequestId; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -116,6 +123,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -150,6 +171,7 @@ public Builder copy(GetOptimizerStatisticsAdvisorExecutionRequest o) { executionName(o.getExecutionName()); taskName(o.getTaskName()); opcRequestId(o.getOpcRequestId()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -192,9 +214,10 @@ public GetOptimizerStatisticsAdvisorExecutionRequest buildWithoutInvocationCallb request.executionName = executionName; request.taskName = taskName; request.opcRequestId = opcRequestId; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new GetOptimizerStatisticsAdvisorExecutionRequest(managedDatabaseId, executionName, - // taskName, opcRequestId); + // taskName, opcRequestId, opcNamedCredentialId); } } @@ -208,7 +231,8 @@ public Builder toBuilder() { .managedDatabaseId(managedDatabaseId) .executionName(executionName) .taskName(taskName) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -229,6 +253,7 @@ public String toString() { sb.append(",executionName=").append(String.valueOf(this.executionName)); sb.append(",taskName=").append(String.valueOf(this.taskName)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -248,7 +273,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.managedDatabaseId, other.managedDatabaseId) && java.util.Objects.equals(this.executionName, other.executionName) && java.util.Objects.equals(this.taskName, other.taskName) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -263,6 +289,11 @@ public int hashCode() { + (this.executionName == null ? 43 : this.executionName.hashCode()); result = (result * PRIME) + (this.taskName == null ? 43 : this.taskName.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetOptimizerStatisticsAdvisorExecutionScriptRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetOptimizerStatisticsAdvisorExecutionScriptRequest.java index 4330ac6247e..d2b018031c4 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetOptimizerStatisticsAdvisorExecutionScriptRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetOptimizerStatisticsAdvisorExecutionScriptRequest.java @@ -49,6 +49,13 @@ public String getTaskName() { public String getOpcRequestId() { return opcRequestId; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -116,6 +123,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -150,6 +171,7 @@ public Builder copy(GetOptimizerStatisticsAdvisorExecutionScriptRequest o) { executionName(o.getExecutionName()); taskName(o.getTaskName()); opcRequestId(o.getOpcRequestId()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -193,9 +215,10 @@ public GetOptimizerStatisticsAdvisorExecutionScriptRequest build() { request.executionName = executionName; request.taskName = taskName; request.opcRequestId = opcRequestId; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new GetOptimizerStatisticsAdvisorExecutionScriptRequest(managedDatabaseId, - // executionName, taskName, opcRequestId); + // executionName, taskName, opcRequestId, opcNamedCredentialId); } } @@ -209,7 +232,8 @@ public Builder toBuilder() { .managedDatabaseId(managedDatabaseId) .executionName(executionName) .taskName(taskName) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -230,6 +254,7 @@ public String toString() { sb.append(",executionName=").append(String.valueOf(this.executionName)); sb.append(",taskName=").append(String.valueOf(this.taskName)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -249,7 +274,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.managedDatabaseId, other.managedDatabaseId) && java.util.Objects.equals(this.executionName, other.executionName) && java.util.Objects.equals(this.taskName, other.taskName) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -264,6 +290,11 @@ public int hashCode() { + (this.executionName == null ? 43 : this.executionName.hashCode()); result = (result * PRIME) + (this.taskName == null ? 43 : this.taskName.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetOptimizerStatisticsCollectionOperationRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetOptimizerStatisticsCollectionOperationRequest.java index 29476b9c438..d45f8bec054 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetOptimizerStatisticsCollectionOperationRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetOptimizerStatisticsCollectionOperationRequest.java @@ -42,6 +42,13 @@ public java.math.BigDecimal getOptimizerStatisticsCollectionOperationId() { public String getOpcRequestId() { return opcRequestId; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -97,6 +104,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -131,6 +152,7 @@ public Builder copy(GetOptimizerStatisticsCollectionOperationRequest o) { optimizerStatisticsCollectionOperationId( o.getOptimizerStatisticsCollectionOperationId()); opcRequestId(o.getOpcRequestId()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -173,9 +195,10 @@ public GetOptimizerStatisticsCollectionOperationRequest buildWithoutInvocationCa request.optimizerStatisticsCollectionOperationId = optimizerStatisticsCollectionOperationId; request.opcRequestId = opcRequestId; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new GetOptimizerStatisticsCollectionOperationRequest(managedDatabaseId, - // optimizerStatisticsCollectionOperationId, opcRequestId); + // optimizerStatisticsCollectionOperationId, opcRequestId, opcNamedCredentialId); } } @@ -188,7 +211,8 @@ public Builder toBuilder() { return new Builder() .managedDatabaseId(managedDatabaseId) .optimizerStatisticsCollectionOperationId(optimizerStatisticsCollectionOperationId) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -209,6 +233,7 @@ public String toString() { sb.append(",optimizerStatisticsCollectionOperationId=") .append(String.valueOf(this.optimizerStatisticsCollectionOperationId)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -229,7 +254,8 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.optimizerStatisticsCollectionOperationId, other.optimizerStatisticsCollectionOperationId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -245,6 +271,11 @@ public int hashCode() { ? 43 : this.optimizerStatisticsCollectionOperationId.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetSqlExecutionPlanRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetSqlExecutionPlanRequest.java index e7c7ecea2a7..1698260a4bd 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetSqlExecutionPlanRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetSqlExecutionPlanRequest.java @@ -103,6 +103,13 @@ public Attribute getAttribute() { public String getOpcRequestId() { return opcRequestId; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -192,6 +199,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -227,6 +248,7 @@ public Builder copy(GetSqlExecutionPlanRequest o) { sqlObjectId(o.getSqlObjectId()); attribute(o.getAttribute()); opcRequestId(o.getOpcRequestId()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -266,9 +288,10 @@ public GetSqlExecutionPlanRequest buildWithoutInvocationCallback() { request.sqlObjectId = sqlObjectId; request.attribute = attribute; request.opcRequestId = opcRequestId; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new GetSqlExecutionPlanRequest(managedDatabaseId, sqlTuningAdvisorTaskId, - // sqlObjectId, attribute, opcRequestId); + // sqlObjectId, attribute, opcRequestId, opcNamedCredentialId); } } @@ -283,7 +306,8 @@ public Builder toBuilder() { .sqlTuningAdvisorTaskId(sqlTuningAdvisorTaskId) .sqlObjectId(sqlObjectId) .attribute(attribute) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -305,6 +329,7 @@ public String toString() { sb.append(",sqlObjectId=").append(String.valueOf(this.sqlObjectId)); sb.append(",attribute=").append(String.valueOf(this.attribute)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -325,7 +350,8 @@ public boolean equals(Object o) { this.sqlTuningAdvisorTaskId, other.sqlTuningAdvisorTaskId) && java.util.Objects.equals(this.sqlObjectId, other.sqlObjectId) && java.util.Objects.equals(this.attribute, other.attribute) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -343,6 +369,11 @@ public int hashCode() { result = (result * PRIME) + (this.sqlObjectId == null ? 43 : this.sqlObjectId.hashCode()); result = (result * PRIME) + (this.attribute == null ? 43 : this.attribute.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetSqlPlanBaselineConfigurationRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetSqlPlanBaselineConfigurationRequest.java index e56b0cb3429..35726c85c89 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetSqlPlanBaselineConfigurationRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetSqlPlanBaselineConfigurationRequest.java @@ -35,6 +35,13 @@ public String getManagedDatabaseId() { public String getOpcRequestId() { return opcRequestId; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -74,6 +81,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -106,6 +127,7 @@ public Builder retryConfiguration( public Builder copy(GetSqlPlanBaselineConfigurationRequest o) { managedDatabaseId(o.getManagedDatabaseId()); opcRequestId(o.getOpcRequestId()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -145,8 +167,10 @@ public GetSqlPlanBaselineConfigurationRequest buildWithoutInvocationCallback() { new GetSqlPlanBaselineConfigurationRequest(); request.managedDatabaseId = managedDatabaseId; request.opcRequestId = opcRequestId; + request.opcNamedCredentialId = opcNamedCredentialId; return request; - // new GetSqlPlanBaselineConfigurationRequest(managedDatabaseId, opcRequestId); + // new GetSqlPlanBaselineConfigurationRequest(managedDatabaseId, opcRequestId, + // opcNamedCredentialId); } } @@ -156,7 +180,10 @@ public GetSqlPlanBaselineConfigurationRequest buildWithoutInvocationCallback() { * @return instance of {@link Builder} that allows you to modify request properties. */ public Builder toBuilder() { - return new Builder().managedDatabaseId(managedDatabaseId).opcRequestId(opcRequestId); + return new Builder() + .managedDatabaseId(managedDatabaseId) + .opcRequestId(opcRequestId) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -175,6 +202,7 @@ public String toString() { sb.append("super=").append(super.toString()); sb.append(",managedDatabaseId=").append(String.valueOf(this.managedDatabaseId)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -191,7 +219,8 @@ public boolean equals(Object o) { GetSqlPlanBaselineConfigurationRequest other = (GetSqlPlanBaselineConfigurationRequest) o; return super.equals(o) && java.util.Objects.equals(this.managedDatabaseId, other.managedDatabaseId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -202,6 +231,11 @@ public int hashCode() { (result * PRIME) + (this.managedDatabaseId == null ? 43 : this.managedDatabaseId.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetSqlPlanBaselineRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetSqlPlanBaselineRequest.java index e0da2a65bbc..ef2e5cc825c 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetSqlPlanBaselineRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetSqlPlanBaselineRequest.java @@ -40,6 +40,13 @@ public String getPlanName() { public String getOpcRequestId() { return opcRequestId; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -93,6 +100,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -126,6 +147,7 @@ public Builder copy(GetSqlPlanBaselineRequest o) { managedDatabaseId(o.getManagedDatabaseId()); planName(o.getPlanName()); opcRequestId(o.getOpcRequestId()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -163,8 +185,10 @@ public GetSqlPlanBaselineRequest buildWithoutInvocationCallback() { request.managedDatabaseId = managedDatabaseId; request.planName = planName; request.opcRequestId = opcRequestId; + request.opcNamedCredentialId = opcNamedCredentialId; return request; - // new GetSqlPlanBaselineRequest(managedDatabaseId, planName, opcRequestId); + // new GetSqlPlanBaselineRequest(managedDatabaseId, planName, opcRequestId, + // opcNamedCredentialId); } } @@ -177,7 +201,8 @@ public Builder toBuilder() { return new Builder() .managedDatabaseId(managedDatabaseId) .planName(planName) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -197,6 +222,7 @@ public String toString() { sb.append(",managedDatabaseId=").append(String.valueOf(this.managedDatabaseId)); sb.append(",planName=").append(String.valueOf(this.planName)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -214,7 +240,8 @@ public boolean equals(Object o) { return super.equals(o) && java.util.Objects.equals(this.managedDatabaseId, other.managedDatabaseId) && java.util.Objects.equals(this.planName, other.planName) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -226,6 +253,11 @@ public int hashCode() { + (this.managedDatabaseId == null ? 43 : this.managedDatabaseId.hashCode()); result = (result * PRIME) + (this.planName == null ? 43 : this.planName.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetSqlTuningAdvisorTaskSummaryReportRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetSqlTuningAdvisorTaskSummaryReportRequest.java index a1792564198..a62b56bc061 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetSqlTuningAdvisorTaskSummaryReportRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetSqlTuningAdvisorTaskSummaryReportRequest.java @@ -153,6 +153,13 @@ public Long getEndExecIdLessThanOrEqualTo() { public String getOpcRequestId() { return opcRequestId; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -302,6 +309,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -340,6 +361,7 @@ public Builder copy(GetSqlTuningAdvisorTaskSummaryReportRequest o) { beginExecIdGreaterThanOrEqualTo(o.getBeginExecIdGreaterThanOrEqualTo()); endExecIdLessThanOrEqualTo(o.getEndExecIdLessThanOrEqualTo()); opcRequestId(o.getOpcRequestId()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -385,11 +407,12 @@ public GetSqlTuningAdvisorTaskSummaryReportRequest buildWithoutInvocationCallbac request.beginExecIdGreaterThanOrEqualTo = beginExecIdGreaterThanOrEqualTo; request.endExecIdLessThanOrEqualTo = endExecIdLessThanOrEqualTo; request.opcRequestId = opcRequestId; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new GetSqlTuningAdvisorTaskSummaryReportRequest(managedDatabaseId, // sqlTuningAdvisorTaskId, searchPeriod, timeGreaterThanOrEqualTo, // timeLessThanOrEqualTo, beginExecIdGreaterThanOrEqualTo, endExecIdLessThanOrEqualTo, - // opcRequestId); + // opcRequestId, opcNamedCredentialId); } } @@ -407,7 +430,8 @@ public Builder toBuilder() { .timeLessThanOrEqualTo(timeLessThanOrEqualTo) .beginExecIdGreaterThanOrEqualTo(beginExecIdGreaterThanOrEqualTo) .endExecIdLessThanOrEqualTo(endExecIdLessThanOrEqualTo) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -435,6 +459,7 @@ public String toString() { sb.append(",endExecIdLessThanOrEqualTo=") .append(String.valueOf(this.endExecIdLessThanOrEqualTo)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -462,7 +487,8 @@ public boolean equals(Object o) { this.beginExecIdGreaterThanOrEqualTo, other.beginExecIdGreaterThanOrEqualTo) && java.util.Objects.equals( this.endExecIdLessThanOrEqualTo, other.endExecIdLessThanOrEqualTo) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -499,6 +525,11 @@ public int hashCode() { ? 43 : this.endExecIdLessThanOrEqualTo.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetTablespaceRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetTablespaceRequest.java index 56d185af4cd..0244605c005 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetTablespaceRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetTablespaceRequest.java @@ -40,6 +40,13 @@ public String getTablespaceName() { public String getOpcRequestId() { return opcRequestId; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -93,6 +100,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -126,6 +147,7 @@ public Builder copy(GetTablespaceRequest o) { managedDatabaseId(o.getManagedDatabaseId()); tablespaceName(o.getTablespaceName()); opcRequestId(o.getOpcRequestId()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -163,8 +185,10 @@ public GetTablespaceRequest buildWithoutInvocationCallback() { request.managedDatabaseId = managedDatabaseId; request.tablespaceName = tablespaceName; request.opcRequestId = opcRequestId; + request.opcNamedCredentialId = opcNamedCredentialId; return request; - // new GetTablespaceRequest(managedDatabaseId, tablespaceName, opcRequestId); + // new GetTablespaceRequest(managedDatabaseId, tablespaceName, opcRequestId, + // opcNamedCredentialId); } } @@ -177,7 +201,8 @@ public Builder toBuilder() { return new Builder() .managedDatabaseId(managedDatabaseId) .tablespaceName(tablespaceName) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -197,6 +222,7 @@ public String toString() { sb.append(",managedDatabaseId=").append(String.valueOf(this.managedDatabaseId)); sb.append(",tablespaceName=").append(String.valueOf(this.tablespaceName)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -214,7 +240,8 @@ public boolean equals(Object o) { return super.equals(o) && java.util.Objects.equals(this.managedDatabaseId, other.managedDatabaseId) && java.util.Objects.equals(this.tablespaceName, other.tablespaceName) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -228,6 +255,11 @@ public int hashCode() { (result * PRIME) + (this.tablespaceName == null ? 43 : this.tablespaceName.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetUserRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetUserRequest.java index 766e2671683..bbe856b59cb 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetUserRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/GetUserRequest.java @@ -40,6 +40,13 @@ public String getUserName() { public String getOpcRequestId() { return opcRequestId; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder { @@ -92,6 +99,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -125,6 +146,7 @@ public Builder copy(GetUserRequest o) { managedDatabaseId(o.getManagedDatabaseId()); userName(o.getUserName()); opcRequestId(o.getOpcRequestId()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -162,8 +184,9 @@ public GetUserRequest buildWithoutInvocationCallback() { request.managedDatabaseId = managedDatabaseId; request.userName = userName; request.opcRequestId = opcRequestId; + request.opcNamedCredentialId = opcNamedCredentialId; return request; - // new GetUserRequest(managedDatabaseId, userName, opcRequestId); + // new GetUserRequest(managedDatabaseId, userName, opcRequestId, opcNamedCredentialId); } } @@ -176,7 +199,8 @@ public Builder toBuilder() { return new Builder() .managedDatabaseId(managedDatabaseId) .userName(userName) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -196,6 +220,7 @@ public String toString() { sb.append(",managedDatabaseId=").append(String.valueOf(this.managedDatabaseId)); sb.append(",userName=").append(String.valueOf(this.userName)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -213,7 +238,8 @@ public boolean equals(Object o) { return super.equals(o) && java.util.Objects.equals(this.managedDatabaseId, other.managedDatabaseId) && java.util.Objects.equals(this.userName, other.userName) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -225,6 +251,11 @@ public int hashCode() { + (this.managedDatabaseId == null ? 43 : this.managedDatabaseId.hashCode()); result = (result * PRIME) + (this.userName == null ? 43 : this.userName.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListAlertLogsRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListAlertLogsRequest.java index c466f495ac4..d03550fe466 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListAlertLogsRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListAlertLogsRequest.java @@ -227,6 +227,13 @@ public Integer getLimit() { public String getOpcRequestId() { return opcRequestId; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -414,6 +421,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -456,6 +477,7 @@ public Builder copy(ListAlertLogsRequest o) { page(o.getPage()); limit(o.getLimit()); opcRequestId(o.getOpcRequestId()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -502,10 +524,11 @@ public ListAlertLogsRequest buildWithoutInvocationCallback() { request.page = page; request.limit = limit; request.opcRequestId = opcRequestId; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new ListAlertLogsRequest(managedDatabaseId, timeGreaterThanOrEqualTo, // timeLessThanOrEqualTo, levelFilter, typeFilter, logSearchText, isRegularExpression, - // sortBy, sortOrder, page, limit, opcRequestId); + // sortBy, sortOrder, page, limit, opcRequestId, opcNamedCredentialId); } } @@ -527,7 +550,8 @@ public Builder toBuilder() { .sortOrder(sortOrder) .page(page) .limit(limit) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -557,6 +581,7 @@ public String toString() { sb.append(",page=").append(String.valueOf(this.page)); sb.append(",limit=").append(String.valueOf(this.limit)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -584,7 +609,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.page, other.page) && java.util.Objects.equals(this.limit, other.limit) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -619,6 +645,11 @@ public int hashCode() { result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListAttentionLogsRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListAttentionLogsRequest.java index 79f919167ee..e4e4d0a6051 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListAttentionLogsRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListAttentionLogsRequest.java @@ -229,6 +229,13 @@ public Integer getLimit() { public String getOpcRequestId() { return opcRequestId; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -416,6 +423,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -458,6 +479,7 @@ public Builder copy(ListAttentionLogsRequest o) { page(o.getPage()); limit(o.getLimit()); opcRequestId(o.getOpcRequestId()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -504,10 +526,11 @@ public ListAttentionLogsRequest buildWithoutInvocationCallback() { request.page = page; request.limit = limit; request.opcRequestId = opcRequestId; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new ListAttentionLogsRequest(managedDatabaseId, timeGreaterThanOrEqualTo, // timeLessThanOrEqualTo, urgencyFilter, typeFilter, logSearchText, isRegularExpression, - // sortBy, sortOrder, page, limit, opcRequestId); + // sortBy, sortOrder, page, limit, opcRequestId, opcNamedCredentialId); } } @@ -529,7 +552,8 @@ public Builder toBuilder() { .sortOrder(sortOrder) .page(page) .limit(limit) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -559,6 +583,7 @@ public String toString() { sb.append(",page=").append(String.valueOf(this.page)); sb.append(",limit=").append(String.valueOf(this.limit)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -586,7 +611,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.page, other.page) && java.util.Objects.equals(this.limit, other.limit) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -623,6 +649,11 @@ public int hashCode() { result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListAwrDbSnapshotsRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListAwrDbSnapshotsRequest.java index dc1550cc7a4..da3b2352b85 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListAwrDbSnapshotsRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListAwrDbSnapshotsRequest.java @@ -191,6 +191,13 @@ public String getOpcRequestId() { public String getOpcRetryToken() { return opcRetryToken; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -428,6 +435,20 @@ public Builder opcRetryToken(String opcRetryToken) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -472,6 +493,7 @@ public Builder copy(ListAwrDbSnapshotsRequest o) { sortOrder(o.getSortOrder()); opcRequestId(o.getOpcRequestId()); opcRetryToken(o.getOpcRetryToken()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -520,11 +542,12 @@ public ListAwrDbSnapshotsRequest buildWithoutInvocationCallback() { request.sortOrder = sortOrder; request.opcRequestId = opcRequestId; request.opcRetryToken = opcRetryToken; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new ListAwrDbSnapshotsRequest(managedDatabaseId, awrDbId, instNum, // beginSnIdGreaterThanOrEqualTo, endSnIdLessThanOrEqualTo, timeGreaterThanOrEqualTo, // timeLessThanOrEqualTo, containerId, page, limit, sortBy, sortOrder, opcRequestId, - // opcRetryToken); + // opcRetryToken, opcNamedCredentialId); } } @@ -548,7 +571,8 @@ public Builder toBuilder() { .sortBy(sortBy) .sortOrder(sortOrder) .opcRequestId(opcRequestId) - .opcRetryToken(opcRetryToken); + .opcRetryToken(opcRetryToken) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -582,6 +606,7 @@ public String toString() { sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -613,7 +638,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -654,6 +680,11 @@ public int hashCode() { result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListAwrDbsRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListAwrDbsRequest.java index 6c4491b7e71..92dec00276e 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListAwrDbsRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListAwrDbsRequest.java @@ -147,6 +147,13 @@ public String getOpcRequestId() { public String getOpcRetryToken() { return opcRetryToken; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -316,6 +323,20 @@ public Builder opcRetryToken(String opcRetryToken) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -356,6 +377,7 @@ public Builder copy(ListAwrDbsRequest o) { sortOrder(o.getSortOrder()); opcRequestId(o.getOpcRequestId()); opcRetryToken(o.getOpcRetryToken()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -400,9 +422,11 @@ public ListAwrDbsRequest buildWithoutInvocationCallback() { request.sortOrder = sortOrder; request.opcRequestId = opcRequestId; request.opcRetryToken = opcRetryToken; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new ListAwrDbsRequest(managedDatabaseId, name, timeGreaterThanOrEqualTo, - // timeLessThanOrEqualTo, page, limit, sortBy, sortOrder, opcRequestId, opcRetryToken); + // timeLessThanOrEqualTo, page, limit, sortBy, sortOrder, opcRequestId, opcRetryToken, + // opcNamedCredentialId); } } @@ -422,7 +446,8 @@ public Builder toBuilder() { .sortBy(sortBy) .sortOrder(sortOrder) .opcRequestId(opcRequestId) - .opcRetryToken(opcRetryToken); + .opcRetryToken(opcRetryToken) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -450,6 +475,7 @@ public String toString() { sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -475,7 +501,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -504,6 +531,11 @@ public int hashCode() { result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListConsumerGroupPrivilegesRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListConsumerGroupPrivilegesRequest.java index 56c673a3ad8..a7ee6a135ef 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListConsumerGroupPrivilegesRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListConsumerGroupPrivilegesRequest.java @@ -131,6 +131,13 @@ public Integer getLimit() { public String getPage() { return page; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -266,6 +273,20 @@ public Builder page(String page) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -304,6 +325,7 @@ public Builder copy(ListConsumerGroupPrivilegesRequest o) { sortOrder(o.getSortOrder()); limit(o.getLimit()); page(o.getPage()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -346,9 +368,10 @@ public ListConsumerGroupPrivilegesRequest buildWithoutInvocationCallback() { request.sortOrder = sortOrder; request.limit = limit; request.page = page; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new ListConsumerGroupPrivilegesRequest(managedDatabaseId, userName, opcRequestId, - // name, sortBy, sortOrder, limit, page); + // name, sortBy, sortOrder, limit, page, opcNamedCredentialId); } } @@ -366,7 +389,8 @@ public Builder toBuilder() { .sortBy(sortBy) .sortOrder(sortOrder) .limit(limit) - .page(page); + .page(page) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -391,6 +415,7 @@ public String toString() { 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(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -413,7 +438,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.limit, other.limit) - && java.util.Objects.equals(this.page, other.page); + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -430,6 +456,11 @@ public int 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.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListCursorCacheStatementsRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListCursorCacheStatementsRequest.java index 0f18dcb7e4b..aa86b71c852 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListCursorCacheStatementsRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListCursorCacheStatementsRequest.java @@ -124,6 +124,13 @@ public com.oracle.bmc.databasemanagement.model.SortOrders getSortOrder() { public String getOpcRequestId() { return opcRequestId; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -247,6 +254,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -284,6 +305,7 @@ public Builder copy(ListCursorCacheStatementsRequest o) { sortBy(o.getSortBy()); sortOrder(o.getSortOrder()); opcRequestId(o.getOpcRequestId()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -325,9 +347,10 @@ public ListCursorCacheStatementsRequest buildWithoutInvocationCallback() { request.sortBy = sortBy; request.sortOrder = sortOrder; request.opcRequestId = opcRequestId; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new ListCursorCacheStatementsRequest(managedDatabaseId, sqlText, page, limit, sortBy, - // sortOrder, opcRequestId); + // sortOrder, opcRequestId, opcNamedCredentialId); } } @@ -344,7 +367,8 @@ public Builder toBuilder() { .limit(limit) .sortBy(sortBy) .sortOrder(sortOrder) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -368,6 +392,7 @@ public String toString() { sb.append(",sortBy=").append(String.valueOf(this.sortBy)); sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -389,7 +414,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.limit, other.limit) && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.sortOrder, other.sortOrder) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -405,6 +431,11 @@ public int hashCode() { result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListDataAccessContainersRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListDataAccessContainersRequest.java index fb68987fb7d..0be50240c3a 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListDataAccessContainersRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListDataAccessContainersRequest.java @@ -131,6 +131,13 @@ public Integer getLimit() { public String getPage() { return page; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -266,6 +273,20 @@ public Builder page(String page) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -304,6 +325,7 @@ public Builder copy(ListDataAccessContainersRequest o) { sortOrder(o.getSortOrder()); limit(o.getLimit()); page(o.getPage()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -346,9 +368,10 @@ public ListDataAccessContainersRequest buildWithoutInvocationCallback() { request.sortOrder = sortOrder; request.limit = limit; request.page = page; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new ListDataAccessContainersRequest(managedDatabaseId, userName, opcRequestId, name, - // sortBy, sortOrder, limit, page); + // sortBy, sortOrder, limit, page, opcNamedCredentialId); } } @@ -366,7 +389,8 @@ public Builder toBuilder() { .sortBy(sortBy) .sortOrder(sortOrder) .limit(limit) - .page(page); + .page(page) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -391,6 +415,7 @@ public String toString() { 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(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -413,7 +438,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.limit, other.limit) - && java.util.Objects.equals(this.page, other.page); + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -430,6 +456,11 @@ public int 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.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListDatabaseParametersRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListDatabaseParametersRequest.java index 86c2675ab5c..e0c04aad74d 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListDatabaseParametersRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListDatabaseParametersRequest.java @@ -164,6 +164,13 @@ public SortBy getSortBy() { public com.oracle.bmc.databasemanagement.model.SortOrders getSortOrder() { return sortOrder; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -287,6 +294,20 @@ public Builder sortOrder(com.oracle.bmc.databasemanagement.model.SortOrders sort return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -324,6 +345,7 @@ public Builder copy(ListDatabaseParametersRequest o) { isAllowedValuesIncluded(o.getIsAllowedValuesIncluded()); sortBy(o.getSortBy()); sortOrder(o.getSortOrder()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -365,9 +387,10 @@ public ListDatabaseParametersRequest buildWithoutInvocationCallback() { request.isAllowedValuesIncluded = isAllowedValuesIncluded; request.sortBy = sortBy; request.sortOrder = sortOrder; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new ListDatabaseParametersRequest(managedDatabaseId, opcRequestId, source, name, - // isAllowedValuesIncluded, sortBy, sortOrder); + // isAllowedValuesIncluded, sortBy, sortOrder, opcNamedCredentialId); } } @@ -384,7 +407,8 @@ public Builder toBuilder() { .name(name) .isAllowedValuesIncluded(isAllowedValuesIncluded) .sortBy(sortBy) - .sortOrder(sortOrder); + .sortOrder(sortOrder) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -408,6 +432,7 @@ public String toString() { sb.append(",isAllowedValuesIncluded=").append(String.valueOf(this.isAllowedValuesIncluded)); sb.append(",sortBy=").append(String.valueOf(this.sortBy)); sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -430,7 +455,8 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.isAllowedValuesIncluded, other.isAllowedValuesIncluded) && java.util.Objects.equals(this.sortBy, other.sortBy) - && java.util.Objects.equals(this.sortOrder, other.sortOrder); + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -450,6 +476,11 @@ public int hashCode() { : this.isAllowedValuesIncluded.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.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListExternalAsmDiskGroupsRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListExternalAsmDiskGroupsRequest.java index 238440b9107..47f896bfec1 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListExternalAsmDiskGroupsRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListExternalAsmDiskGroupsRequest.java @@ -117,6 +117,13 @@ public com.oracle.bmc.databasemanagement.model.SortOrders getSortOrder() { public String getOpcRequestId() { return opcRequestId; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -224,6 +231,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -260,6 +281,7 @@ public Builder copy(ListExternalAsmDiskGroupsRequest o) { sortBy(o.getSortBy()); sortOrder(o.getSortOrder()); opcRequestId(o.getOpcRequestId()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -300,9 +322,10 @@ public ListExternalAsmDiskGroupsRequest buildWithoutInvocationCallback() { request.sortBy = sortBy; request.sortOrder = sortOrder; request.opcRequestId = opcRequestId; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new ListExternalAsmDiskGroupsRequest(externalAsmId, page, limit, sortBy, sortOrder, - // opcRequestId); + // opcRequestId, opcNamedCredentialId); } } @@ -318,7 +341,8 @@ public Builder toBuilder() { .limit(limit) .sortBy(sortBy) .sortOrder(sortOrder) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -341,6 +365,7 @@ public String toString() { sb.append(",sortBy=").append(String.valueOf(this.sortBy)); sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -361,7 +386,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.limit, other.limit) && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.sortOrder, other.sortOrder) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -376,6 +402,11 @@ public int hashCode() { result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListExternalAsmUsersRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListExternalAsmUsersRequest.java index e1fd108e614..a9000c11579 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListExternalAsmUsersRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListExternalAsmUsersRequest.java @@ -116,6 +116,13 @@ public com.oracle.bmc.databasemanagement.model.SortOrders getSortOrder() { public String getOpcRequestId() { return opcRequestId; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -223,6 +230,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -259,6 +280,7 @@ public Builder copy(ListExternalAsmUsersRequest o) { sortBy(o.getSortBy()); sortOrder(o.getSortOrder()); opcRequestId(o.getOpcRequestId()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -299,9 +321,10 @@ public ListExternalAsmUsersRequest buildWithoutInvocationCallback() { request.sortBy = sortBy; request.sortOrder = sortOrder; request.opcRequestId = opcRequestId; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new ListExternalAsmUsersRequest(externalAsmId, page, limit, sortBy, sortOrder, - // opcRequestId); + // opcRequestId, opcNamedCredentialId); } } @@ -317,7 +340,8 @@ public Builder toBuilder() { .limit(limit) .sortBy(sortBy) .sortOrder(sortOrder) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -340,6 +364,7 @@ public String toString() { sb.append(",sortBy=").append(String.valueOf(this.sortBy)); sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -360,7 +385,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.limit, other.limit) && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.sortOrder, other.sortOrder) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -375,6 +401,11 @@ public int hashCode() { result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListExternalListenerServicesRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListExternalListenerServicesRequest.java index b76fbec36fc..0d55b71825b 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListExternalListenerServicesRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListExternalListenerServicesRequest.java @@ -130,6 +130,13 @@ public com.oracle.bmc.databasemanagement.model.SortOrders getSortOrder() { public String getOpcRequestId() { return opcRequestId; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -255,6 +262,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -292,6 +313,7 @@ public Builder copy(ListExternalListenerServicesRequest o) { sortBy(o.getSortBy()); sortOrder(o.getSortOrder()); opcRequestId(o.getOpcRequestId()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -333,9 +355,10 @@ public ListExternalListenerServicesRequest buildWithoutInvocationCallback() { request.sortBy = sortBy; request.sortOrder = sortOrder; request.opcRequestId = opcRequestId; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new ListExternalListenerServicesRequest(externalListenerId, managedDatabaseId, page, - // limit, sortBy, sortOrder, opcRequestId); + // limit, sortBy, sortOrder, opcRequestId, opcNamedCredentialId); } } @@ -352,7 +375,8 @@ public Builder toBuilder() { .limit(limit) .sortBy(sortBy) .sortOrder(sortOrder) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -376,6 +400,7 @@ public String toString() { sb.append(",sortBy=").append(String.valueOf(this.sortBy)); sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -397,7 +422,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.limit, other.limit) && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.sortOrder, other.sortOrder) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -417,6 +443,11 @@ public int hashCode() { result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListNamedCredentialsRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListNamedCredentialsRequest.java new file mode 100644 index 00000000000..54119cf12b3 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListNamedCredentialsRequest.java @@ -0,0 +1,498 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use ListNamedCredentialsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class ListNamedCredentialsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + public String getCompartmentId() { + return compartmentId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** The resource associated to the named credential. */ + private String associatedResource; + + /** The resource associated to the named credential. */ + public String getAssociatedResource() { + return associatedResource; + } + /** The type of database that is associated to the named credential. */ + private com.oracle.bmc.databasemanagement.model.ResourceType type; + + /** The type of database that is associated to the named credential. */ + public com.oracle.bmc.databasemanagement.model.ResourceType getType() { + return type; + } + /** The scope of named credential. */ + private com.oracle.bmc.databasemanagement.model.NamedCredentialScope scope; + + /** The scope of named credential. */ + public com.oracle.bmc.databasemanagement.model.NamedCredentialScope getScope() { + return scope; + } + /** The name of the named credential. */ + private String name; + + /** The name of the named credential. */ + public String getName() { + return name; + } + /** + * The page token representing the page from where the next set of paginated results are + * retrieved. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page from where the next set of paginated results are + * retrieved. This is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** The maximum number of records returned in the paginated response. */ + private Integer limit; + + /** The maximum number of records returned in the paginated response. */ + public Integer getLimit() { + return limit; + } + /** + * The field to sort information by. Only one sortOrder can be used. The default sort order for + * \u2018TIMECREATED\u2019 is descending and the default sort order for \u2018NAME\u2019 is + * ascending. The \u2018NAME\u2019 sort order is case-sensitive. + */ + private SortBy sortBy; + + /** + * The field to sort information by. Only one sortOrder can be used. The default sort order for + * \u2018TIMECREATED\u2019 is descending and the default sort order for \u2018NAME\u2019 is + * ascending. The \u2018NAME\u2019 sort order is case-sensitive. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + Timecreated("TIMECREATED"), + Name("NAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort information by. Only one sortOrder can be used. The default sort order for + * \u2018TIMECREATED\u2019 is descending and the default sort order for \u2018NAME\u2019 is + * ascending. The \u2018NAME\u2019 sort order is case-sensitive. + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The option to sort information in ascending (\u2018ASC\u2019) or descending + * (\u2018DESC\u2019) order. Ascending order is the default order. + */ + private com.oracle.bmc.databasemanagement.model.SortOrders sortOrder; + + /** + * The option to sort information in ascending (\u2018ASC\u2019) or descending + * (\u2018DESC\u2019) order. Ascending order is the default order. + */ + public com.oracle.bmc.databasemanagement.model.SortOrders getSortOrder() { + return sortOrder; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListNamedCredentialsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The resource associated to the named credential. */ + private String associatedResource = null; + + /** + * The resource associated to the named credential. + * + * @param associatedResource the value to set + * @return this builder instance + */ + public Builder associatedResource(String associatedResource) { + this.associatedResource = associatedResource; + return this; + } + + /** The type of database that is associated to the named credential. */ + private com.oracle.bmc.databasemanagement.model.ResourceType type = null; + + /** + * The type of database that is associated to the named credential. + * + * @param type the value to set + * @return this builder instance + */ + public Builder type(com.oracle.bmc.databasemanagement.model.ResourceType type) { + this.type = type; + return this; + } + + /** The scope of named credential. */ + private com.oracle.bmc.databasemanagement.model.NamedCredentialScope scope = null; + + /** + * The scope of named credential. + * + * @param scope the value to set + * @return this builder instance + */ + public Builder scope(com.oracle.bmc.databasemanagement.model.NamedCredentialScope scope) { + this.scope = scope; + return this; + } + + /** The name of the named credential. */ + private String name = null; + + /** + * The name of the named credential. + * + * @param name the value to set + * @return this builder instance + */ + public Builder name(String name) { + this.name = name; + return this; + } + + /** + * The page token representing the page from where the next set of paginated results are + * retrieved. This is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page from where the next set of paginated results are + * retrieved. This is usually retrieved from a previous list call. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The maximum number of records returned in the paginated response. */ + private Integer limit = null; + + /** + * The maximum number of records returned in the paginated response. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The field to sort information by. Only one sortOrder can be used. The default sort order + * for \u2018TIMECREATED\u2019 is descending and the default sort order for \u2018NAME\u2019 + * is ascending. The \u2018NAME\u2019 sort order is case-sensitive. + */ + private SortBy sortBy = null; + + /** + * The field to sort information by. Only one sortOrder can be used. The default sort order + * for \u2018TIMECREATED\u2019 is descending and the default sort order for \u2018NAME\u2019 + * is ascending. The \u2018NAME\u2019 sort order is case-sensitive. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The option to sort information in ascending (\u2018ASC\u2019) or descending + * (\u2018DESC\u2019) order. Ascending order is the default order. + */ + private com.oracle.bmc.databasemanagement.model.SortOrders sortOrder = null; + + /** + * The option to sort information in ascending (\u2018ASC\u2019) or descending + * (\u2018DESC\u2019) order. Ascending order is the default order. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.databasemanagement.model.SortOrders sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListNamedCredentialsRequest o) { + compartmentId(o.getCompartmentId()); + opcRequestId(o.getOpcRequestId()); + associatedResource(o.getAssociatedResource()); + type(o.getType()); + scope(o.getScope()); + name(o.getName()); + page(o.getPage()); + limit(o.getLimit()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListNamedCredentialsRequest 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 ListNamedCredentialsRequest + */ + public ListNamedCredentialsRequest build() { + ListNamedCredentialsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListNamedCredentialsRequest 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 ListNamedCredentialsRequest + */ + public ListNamedCredentialsRequest buildWithoutInvocationCallback() { + ListNamedCredentialsRequest request = new ListNamedCredentialsRequest(); + request.compartmentId = compartmentId; + request.opcRequestId = opcRequestId; + request.associatedResource = associatedResource; + request.type = type; + request.scope = scope; + request.name = name; + request.page = page; + request.limit = limit; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + return request; + // new ListNamedCredentialsRequest(compartmentId, opcRequestId, associatedResource, + // type, scope, name, page, limit, sortBy, sortOrder); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .opcRequestId(opcRequestId) + .associatedResource(associatedResource) + .type(type) + .scope(scope) + .name(name) + .page(page) + .limit(limit) + .sortBy(sortBy) + .sortOrder(sortOrder); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",associatedResource=").append(String.valueOf(this.associatedResource)); + sb.append(",type=").append(String.valueOf(this.type)); + sb.append(",scope=").append(String.valueOf(this.scope)); + sb.append(",name=").append(String.valueOf(this.name)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListNamedCredentialsRequest)) { + return false; + } + + ListNamedCredentialsRequest other = (ListNamedCredentialsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.associatedResource, other.associatedResource) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.scope, other.scope) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.associatedResource == null + ? 43 + : this.associatedResource.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.scope == null ? 43 : this.scope.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListObjectPrivilegesRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListObjectPrivilegesRequest.java index 299191ccdfe..e2bc437b3a1 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListObjectPrivilegesRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListObjectPrivilegesRequest.java @@ -130,6 +130,13 @@ public Integer getLimit() { public String getPage() { return page; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -265,6 +272,20 @@ public Builder page(String page) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -303,6 +324,7 @@ public Builder copy(ListObjectPrivilegesRequest o) { sortOrder(o.getSortOrder()); limit(o.getLimit()); page(o.getPage()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -345,9 +367,10 @@ public ListObjectPrivilegesRequest buildWithoutInvocationCallback() { request.sortOrder = sortOrder; request.limit = limit; request.page = page; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new ListObjectPrivilegesRequest(managedDatabaseId, userName, opcRequestId, name, - // sortBy, sortOrder, limit, page); + // sortBy, sortOrder, limit, page, opcNamedCredentialId); } } @@ -365,7 +388,8 @@ public Builder toBuilder() { .sortBy(sortBy) .sortOrder(sortOrder) .limit(limit) - .page(page); + .page(page) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -390,6 +414,7 @@ public String toString() { 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(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -412,7 +437,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.limit, other.limit) - && java.util.Objects.equals(this.page, other.page); + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -429,6 +455,11 @@ public int 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.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListOptimizerStatisticsAdvisorExecutionsRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListOptimizerStatisticsAdvisorExecutionsRequest.java index ae9bb8952e9..83198c257d3 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListOptimizerStatisticsAdvisorExecutionsRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListOptimizerStatisticsAdvisorExecutionsRequest.java @@ -61,6 +61,13 @@ public String getEndTimeLessThanOrEqualTo() { public String getOpcRequestId() { return opcRequestId; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -136,6 +143,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -170,6 +191,7 @@ public Builder copy(ListOptimizerStatisticsAdvisorExecutionsRequest o) { startTimeGreaterThanOrEqualTo(o.getStartTimeGreaterThanOrEqualTo()); endTimeLessThanOrEqualTo(o.getEndTimeLessThanOrEqualTo()); opcRequestId(o.getOpcRequestId()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -212,9 +234,11 @@ public ListOptimizerStatisticsAdvisorExecutionsRequest buildWithoutInvocationCal request.startTimeGreaterThanOrEqualTo = startTimeGreaterThanOrEqualTo; request.endTimeLessThanOrEqualTo = endTimeLessThanOrEqualTo; request.opcRequestId = opcRequestId; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new ListOptimizerStatisticsAdvisorExecutionsRequest(managedDatabaseId, - // startTimeGreaterThanOrEqualTo, endTimeLessThanOrEqualTo, opcRequestId); + // startTimeGreaterThanOrEqualTo, endTimeLessThanOrEqualTo, opcRequestId, + // opcNamedCredentialId); } } @@ -228,7 +252,8 @@ public Builder toBuilder() { .managedDatabaseId(managedDatabaseId) .startTimeGreaterThanOrEqualTo(startTimeGreaterThanOrEqualTo) .endTimeLessThanOrEqualTo(endTimeLessThanOrEqualTo) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -251,6 +276,7 @@ public String toString() { sb.append(",endTimeLessThanOrEqualTo=") .append(String.valueOf(this.endTimeLessThanOrEqualTo)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -272,7 +298,8 @@ public boolean equals(Object o) { this.startTimeGreaterThanOrEqualTo, other.startTimeGreaterThanOrEqualTo) && java.util.Objects.equals( this.endTimeLessThanOrEqualTo, other.endTimeLessThanOrEqualTo) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -293,6 +320,11 @@ public int hashCode() { ? 43 : this.endTimeLessThanOrEqualTo.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListOptimizerStatisticsCollectionAggregationsRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListOptimizerStatisticsCollectionAggregationsRequest.java index 9d769eca7da..07096dfd3fd 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListOptimizerStatisticsCollectionAggregationsRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListOptimizerStatisticsCollectionAggregationsRequest.java @@ -96,6 +96,13 @@ public Integer getLimit() { public String getPage() { return page; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -236,6 +243,20 @@ public Builder page(String page) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -274,6 +295,7 @@ public Builder copy(ListOptimizerStatisticsCollectionAggregationsRequest o) { opcRequestId(o.getOpcRequestId()); limit(o.getLimit()); page(o.getPage()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -321,10 +343,11 @@ public ListOptimizerStatisticsCollectionAggregationsRequest build() { request.opcRequestId = opcRequestId; request.limit = limit; request.page = page; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new ListOptimizerStatisticsCollectionAggregationsRequest(managedDatabaseId, // groupType, startTimeGreaterThanOrEqualTo, endTimeLessThanOrEqualTo, taskType, - // opcRequestId, limit, page); + // opcRequestId, limit, page, opcNamedCredentialId); } } @@ -342,7 +365,8 @@ public Builder toBuilder() { .taskType(taskType) .opcRequestId(opcRequestId) .limit(limit) - .page(page); + .page(page) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -369,6 +393,7 @@ public String toString() { sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",limit=").append(String.valueOf(this.limit)); sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -394,7 +419,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.taskType, other.taskType) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.limit, other.limit) - && java.util.Objects.equals(this.page, other.page); + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -419,6 +445,11 @@ public int hashCode() { result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListOptimizerStatisticsCollectionOperationsRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListOptimizerStatisticsCollectionOperationsRequest.java index 6b22b251974..14ff289f0fb 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListOptimizerStatisticsCollectionOperationsRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListOptimizerStatisticsCollectionOperationsRequest.java @@ -163,6 +163,13 @@ public com.oracle.bmc.databasemanagement.model.SortOrders getSortOrder() { public String getOpcRequestId() { return opcRequestId; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -343,6 +350,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -383,6 +404,7 @@ public Builder copy(ListOptimizerStatisticsCollectionOperationsRequest o) { sortBy(o.getSortBy()); sortOrder(o.getSortOrder()); opcRequestId(o.getOpcRequestId()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -431,10 +453,11 @@ public ListOptimizerStatisticsCollectionOperationsRequest buildWithoutInvocation request.sortBy = sortBy; request.sortOrder = sortOrder; request.opcRequestId = opcRequestId; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new ListOptimizerStatisticsCollectionOperationsRequest(managedDatabaseId, // startTimeGreaterThanOrEqualTo, endTimeLessThanOrEqualTo, taskType, limit, page, - // filterBy, sortBy, sortOrder, opcRequestId); + // filterBy, sortBy, sortOrder, opcRequestId, opcNamedCredentialId); } } @@ -454,7 +477,8 @@ public Builder toBuilder() { .filterBy(filterBy) .sortBy(sortBy) .sortOrder(sortOrder) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -483,6 +507,7 @@ public String toString() { sb.append(",sortBy=").append(String.valueOf(this.sortBy)); sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -510,7 +535,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.filterBy, other.filterBy) && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.sortOrder, other.sortOrder) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -537,6 +563,11 @@ public int hashCode() { result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListProxiedForUsersRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListProxiedForUsersRequest.java index 3239db98a3c..3b196297bd3 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListProxiedForUsersRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListProxiedForUsersRequest.java @@ -129,6 +129,13 @@ public Integer getLimit() { public String getPage() { return page; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -264,6 +271,20 @@ public Builder page(String page) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -302,6 +323,7 @@ public Builder copy(ListProxiedForUsersRequest o) { sortOrder(o.getSortOrder()); limit(o.getLimit()); page(o.getPage()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -344,9 +366,10 @@ public ListProxiedForUsersRequest buildWithoutInvocationCallback() { request.sortOrder = sortOrder; request.limit = limit; request.page = page; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new ListProxiedForUsersRequest(managedDatabaseId, userName, opcRequestId, name, - // sortBy, sortOrder, limit, page); + // sortBy, sortOrder, limit, page, opcNamedCredentialId); } } @@ -364,7 +387,8 @@ public Builder toBuilder() { .sortBy(sortBy) .sortOrder(sortOrder) .limit(limit) - .page(page); + .page(page) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -389,6 +413,7 @@ public String toString() { 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(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -411,7 +436,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.limit, other.limit) - && java.util.Objects.equals(this.page, other.page); + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -428,6 +454,11 @@ public int 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.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListProxyUsersRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListProxyUsersRequest.java index ec982b77393..7d9065f29a5 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListProxyUsersRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListProxyUsersRequest.java @@ -129,6 +129,13 @@ public Integer getLimit() { public String getPage() { return page; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -264,6 +271,20 @@ public Builder page(String page) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -302,6 +323,7 @@ public Builder copy(ListProxyUsersRequest o) { sortOrder(o.getSortOrder()); limit(o.getLimit()); page(o.getPage()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -344,9 +366,10 @@ public ListProxyUsersRequest buildWithoutInvocationCallback() { request.sortOrder = sortOrder; request.limit = limit; request.page = page; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new ListProxyUsersRequest(managedDatabaseId, userName, opcRequestId, name, sortBy, - // sortOrder, limit, page); + // sortOrder, limit, page, opcNamedCredentialId); } } @@ -364,7 +387,8 @@ public Builder toBuilder() { .sortBy(sortBy) .sortOrder(sortOrder) .limit(limit) - .page(page); + .page(page) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -389,6 +413,7 @@ public String toString() { 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(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -411,7 +436,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.limit, other.limit) - && java.util.Objects.equals(this.page, other.page); + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -428,6 +454,11 @@ public int 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.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListRolesRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListRolesRequest.java index 014189e40cc..0dd0722c57f 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListRolesRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListRolesRequest.java @@ -129,6 +129,13 @@ public Integer getLimit() { public String getPage() { return page; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -264,6 +271,20 @@ public Builder page(String page) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -302,6 +323,7 @@ public Builder copy(ListRolesRequest o) { sortOrder(o.getSortOrder()); limit(o.getLimit()); page(o.getPage()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -344,9 +366,10 @@ public ListRolesRequest buildWithoutInvocationCallback() { request.sortOrder = sortOrder; request.limit = limit; request.page = page; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new ListRolesRequest(managedDatabaseId, userName, opcRequestId, name, sortBy, - // sortOrder, limit, page); + // sortOrder, limit, page, opcNamedCredentialId); } } @@ -364,7 +387,8 @@ public Builder toBuilder() { .sortBy(sortBy) .sortOrder(sortOrder) .limit(limit) - .page(page); + .page(page) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -389,6 +413,7 @@ public String toString() { 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(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -411,7 +436,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.limit, other.limit) - && java.util.Objects.equals(this.page, other.page); + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -428,6 +454,11 @@ public int 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.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListSqlPlanBaselineJobsRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListSqlPlanBaselineJobsRequest.java index 91e65178517..0735556e34f 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListSqlPlanBaselineJobsRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListSqlPlanBaselineJobsRequest.java @@ -128,6 +128,13 @@ public com.oracle.bmc.databasemanagement.model.SortOrders getSortOrder() { public String getOpcRequestId() { return opcRequestId; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -251,6 +258,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -288,6 +309,7 @@ public Builder copy(ListSqlPlanBaselineJobsRequest o) { sortBy(o.getSortBy()); sortOrder(o.getSortOrder()); opcRequestId(o.getOpcRequestId()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -329,9 +351,10 @@ public ListSqlPlanBaselineJobsRequest buildWithoutInvocationCallback() { request.sortBy = sortBy; request.sortOrder = sortOrder; request.opcRequestId = opcRequestId; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new ListSqlPlanBaselineJobsRequest(managedDatabaseId, name, page, limit, sortBy, - // sortOrder, opcRequestId); + // sortOrder, opcRequestId, opcNamedCredentialId); } } @@ -348,7 +371,8 @@ public Builder toBuilder() { .limit(limit) .sortBy(sortBy) .sortOrder(sortOrder) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -372,6 +396,7 @@ public String toString() { sb.append(",sortBy=").append(String.valueOf(this.sortBy)); sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -393,7 +418,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.limit, other.limit) && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.sortOrder, other.sortOrder) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -409,6 +435,11 @@ public int hashCode() { result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListSqlPlanBaselinesRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListSqlPlanBaselinesRequest.java index 856111d4ad9..cee72d29745 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListSqlPlanBaselinesRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListSqlPlanBaselinesRequest.java @@ -155,6 +155,7 @@ public Integer getLimit() { public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { TimeCreated("timeCreated"), TimeLastModified("timeLastModified"), + TimeLastExecuted("timeLastExecuted"), ; private final String value; @@ -202,6 +203,58 @@ public SortBy getSortBy() { public com.oracle.bmc.databasemanagement.model.SortOrders getSortOrder() { return sortOrder; } + /** + * A filter to return only SQL plan baselines that are either auto-purged or not auto-purged. By + * default, all SQL plan baselines are returned. + */ + private Boolean isAutoPurged; + + /** + * A filter to return only SQL plan baselines that are either auto-purged or not auto-purged. By + * default, all SQL plan baselines are returned. + */ + public Boolean getIsAutoPurged() { + return isAutoPurged; + } + /** + * A filter to return only SQL plan baselines whose last execution time is after the specified + * value. By default, all SQL plan baselines are returned. + */ + private java.util.Date timeLastExecutedGreaterThan; + + /** + * A filter to return only SQL plan baselines whose last execution time is after the specified + * value. By default, all SQL plan baselines are returned. + */ + public java.util.Date getTimeLastExecutedGreaterThan() { + return timeLastExecutedGreaterThan; + } + /** + * A filter to return only SQL plan baselines whose last execution time is before the specified + * value. By default, all SQL plan baselines are returned. + */ + private java.util.Date timeLastExecutedLessThan; + + /** + * A filter to return only SQL plan baselines whose last execution time is before the specified + * value. By default, all SQL plan baselines are returned. + */ + public java.util.Date getTimeLastExecutedLessThan() { + return timeLastExecutedLessThan; + } + /** + * A filter to return only SQL plan baselines that are not executed till now. By default, all + * SQL plan baselines are returned. + */ + private Boolean isNeverExecuted; + + /** + * A filter to return only SQL plan baselines that are not executed till now. By default, all + * SQL plan baselines are returned. + */ + public Boolean getIsNeverExecuted() { + return isNeverExecuted; + } /** The client request ID for tracing. */ private String opcRequestId; @@ -209,6 +262,13 @@ public com.oracle.bmc.databasemanagement.model.SortOrders getSortOrder() { public String getOpcRequestId() { return opcRequestId; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -451,6 +511,78 @@ public Builder sortOrder(com.oracle.bmc.databasemanagement.model.SortOrders sort return this; } + /** + * A filter to return only SQL plan baselines that are either auto-purged or not + * auto-purged. By default, all SQL plan baselines are returned. + */ + private Boolean isAutoPurged = null; + + /** + * A filter to return only SQL plan baselines that are either auto-purged or not + * auto-purged. By default, all SQL plan baselines are returned. + * + * @param isAutoPurged the value to set + * @return this builder instance + */ + public Builder isAutoPurged(Boolean isAutoPurged) { + this.isAutoPurged = isAutoPurged; + return this; + } + + /** + * A filter to return only SQL plan baselines whose last execution time is after the + * specified value. By default, all SQL plan baselines are returned. + */ + private java.util.Date timeLastExecutedGreaterThan = null; + + /** + * A filter to return only SQL plan baselines whose last execution time is after the + * specified value. By default, all SQL plan baselines are returned. + * + * @param timeLastExecutedGreaterThan the value to set + * @return this builder instance + */ + public Builder timeLastExecutedGreaterThan(java.util.Date timeLastExecutedGreaterThan) { + this.timeLastExecutedGreaterThan = timeLastExecutedGreaterThan; + return this; + } + + /** + * A filter to return only SQL plan baselines whose last execution time is before the + * specified value. By default, all SQL plan baselines are returned. + */ + private java.util.Date timeLastExecutedLessThan = null; + + /** + * A filter to return only SQL plan baselines whose last execution time is before the + * specified value. By default, all SQL plan baselines are returned. + * + * @param timeLastExecutedLessThan the value to set + * @return this builder instance + */ + public Builder timeLastExecutedLessThan(java.util.Date timeLastExecutedLessThan) { + this.timeLastExecutedLessThan = timeLastExecutedLessThan; + return this; + } + + /** + * A filter to return only SQL plan baselines that are not executed till now. By default, + * all SQL plan baselines are returned. + */ + private Boolean isNeverExecuted = null; + + /** + * A filter to return only SQL plan baselines that are not executed till now. By default, + * all SQL plan baselines are returned. + * + * @param isNeverExecuted the value to set + * @return this builder instance + */ + public Builder isNeverExecuted(Boolean isNeverExecuted) { + this.isNeverExecuted = isNeverExecuted; + return this; + } + /** The client request ID for tracing. */ private String opcRequestId = null; @@ -465,6 +597,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -509,7 +655,12 @@ public Builder copy(ListSqlPlanBaselinesRequest o) { limit(o.getLimit()); sortBy(o.getSortBy()); sortOrder(o.getSortOrder()); + isAutoPurged(o.getIsAutoPurged()); + timeLastExecutedGreaterThan(o.getTimeLastExecutedGreaterThan()); + timeLastExecutedLessThan(o.getTimeLastExecutedLessThan()); + isNeverExecuted(o.getIsNeverExecuted()); opcRequestId(o.getOpcRequestId()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -558,11 +709,17 @@ public ListSqlPlanBaselinesRequest buildWithoutInvocationCallback() { request.limit = limit; request.sortBy = sortBy; request.sortOrder = sortOrder; + request.isAutoPurged = isAutoPurged; + request.timeLastExecutedGreaterThan = timeLastExecutedGreaterThan; + request.timeLastExecutedLessThan = timeLastExecutedLessThan; + request.isNeverExecuted = isNeverExecuted; request.opcRequestId = opcRequestId; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new ListSqlPlanBaselinesRequest(managedDatabaseId, planName, sqlHandle, sqlText, // isEnabled, isAccepted, isReproduced, isFixed, isAdaptive, origin, page, limit, - // sortBy, sortOrder, opcRequestId); + // sortBy, sortOrder, isAutoPurged, timeLastExecutedGreaterThan, + // timeLastExecutedLessThan, isNeverExecuted, opcRequestId, opcNamedCredentialId); } } @@ -587,7 +744,12 @@ public Builder toBuilder() { .limit(limit) .sortBy(sortBy) .sortOrder(sortOrder) - .opcRequestId(opcRequestId); + .isAutoPurged(isAutoPurged) + .timeLastExecutedGreaterThan(timeLastExecutedGreaterThan) + .timeLastExecutedLessThan(timeLastExecutedLessThan) + .isNeverExecuted(isNeverExecuted) + .opcRequestId(opcRequestId) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -618,7 +780,14 @@ public String toString() { sb.append(",limit=").append(String.valueOf(this.limit)); sb.append(",sortBy=").append(String.valueOf(this.sortBy)); sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",isAutoPurged=").append(String.valueOf(this.isAutoPurged)); + sb.append(",timeLastExecutedGreaterThan=") + .append(String.valueOf(this.timeLastExecutedGreaterThan)); + sb.append(",timeLastExecutedLessThan=") + .append(String.valueOf(this.timeLastExecutedLessThan)); + sb.append(",isNeverExecuted=").append(String.valueOf(this.isNeverExecuted)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -648,7 +817,14 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.limit, other.limit) && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.sortOrder, other.sortOrder) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.isAutoPurged, other.isAutoPurged) + && java.util.Objects.equals( + this.timeLastExecutedGreaterThan, other.timeLastExecutedGreaterThan) + && java.util.Objects.equals( + this.timeLastExecutedLessThan, other.timeLastExecutedLessThan) + && java.util.Objects.equals(this.isNeverExecuted, other.isNeverExecuted) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -671,7 +847,26 @@ public int hashCode() { result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.isAutoPurged == null ? 43 : this.isAutoPurged.hashCode()); + result = + (result * PRIME) + + (this.timeLastExecutedGreaterThan == null + ? 43 + : this.timeLastExecutedGreaterThan.hashCode()); + result = + (result * PRIME) + + (this.timeLastExecutedLessThan == null + ? 43 + : this.timeLastExecutedLessThan.hashCode()); + result = + (result * PRIME) + + (this.isNeverExecuted == null ? 43 : this.isNeverExecuted.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListSqlTuningAdvisorTaskFindingsRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListSqlTuningAdvisorTaskFindingsRequest.java index 478f7ae1f1b..39199a15a16 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListSqlTuningAdvisorTaskFindingsRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListSqlTuningAdvisorTaskFindingsRequest.java @@ -276,6 +276,13 @@ public Integer getLimit() { public String getOpcRequestId() { return opcRequestId; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -493,6 +500,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -536,6 +557,7 @@ public Builder copy(ListSqlTuningAdvisorTaskFindingsRequest o) { page(o.getPage()); limit(o.getLimit()); opcRequestId(o.getOpcRequestId()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -586,10 +608,12 @@ public ListSqlTuningAdvisorTaskFindingsRequest buildWithoutInvocationCallback() request.page = page; request.limit = limit; request.opcRequestId = opcRequestId; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new ListSqlTuningAdvisorTaskFindingsRequest(managedDatabaseId, // sqlTuningAdvisorTaskId, beginExecId, endExecId, searchPeriod, findingFilter, - // statsHashFilter, indexHashFilter, sortBy, sortOrder, page, limit, opcRequestId); + // statsHashFilter, indexHashFilter, sortBy, sortOrder, page, limit, opcRequestId, + // opcNamedCredentialId); } } @@ -612,7 +636,8 @@ public Builder toBuilder() { .sortOrder(sortOrder) .page(page) .limit(limit) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -642,6 +667,7 @@ public String toString() { sb.append(",page=").append(String.valueOf(this.page)); sb.append(",limit=").append(String.valueOf(this.limit)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -670,7 +696,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.page, other.page) && java.util.Objects.equals(this.limit, other.limit) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -702,6 +729,11 @@ public int hashCode() { result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListSqlTuningAdvisorTaskRecommendationsRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListSqlTuningAdvisorTaskRecommendationsRequest.java index b5b996108f9..63eb0ba14b3 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListSqlTuningAdvisorTaskRecommendationsRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListSqlTuningAdvisorTaskRecommendationsRequest.java @@ -148,6 +148,13 @@ public Integer getLimit() { public String getOpcRequestId() { return opcRequestId; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -305,6 +312,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -344,6 +365,7 @@ public Builder copy(ListSqlTuningAdvisorTaskRecommendationsRequest o) { page(o.getPage()); limit(o.getLimit()); opcRequestId(o.getOpcRequestId()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -391,10 +413,11 @@ public ListSqlTuningAdvisorTaskRecommendationsRequest buildWithoutInvocationCall request.page = page; request.limit = limit; request.opcRequestId = opcRequestId; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new ListSqlTuningAdvisorTaskRecommendationsRequest(managedDatabaseId, // sqlTuningAdvisorTaskId, sqlObjectId, executionId, sortBy, sortOrder, page, limit, - // opcRequestId); + // opcRequestId, opcNamedCredentialId); } } @@ -413,7 +436,8 @@ public Builder toBuilder() { .sortOrder(sortOrder) .page(page) .limit(limit) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -439,6 +463,7 @@ public String toString() { sb.append(",page=").append(String.valueOf(this.page)); sb.append(",limit=").append(String.valueOf(this.limit)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -464,7 +489,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.page, other.page) && java.util.Objects.equals(this.limit, other.limit) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -486,6 +512,11 @@ public int hashCode() { result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListSqlTuningAdvisorTasksRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListSqlTuningAdvisorTasksRequest.java index 0fb0d0d1a0b..118376a63eb 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListSqlTuningAdvisorTasksRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListSqlTuningAdvisorTasksRequest.java @@ -174,6 +174,13 @@ public com.oracle.bmc.databasemanagement.model.SortOrders getSortOrder() { public String getOpcRequestId() { return opcRequestId; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -333,6 +340,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -373,6 +394,7 @@ public Builder copy(ListSqlTuningAdvisorTasksRequest o) { sortBy(o.getSortBy()); sortOrder(o.getSortOrder()); opcRequestId(o.getOpcRequestId()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -417,10 +439,11 @@ public ListSqlTuningAdvisorTasksRequest buildWithoutInvocationCallback() { request.sortBy = sortBy; request.sortOrder = sortOrder; request.opcRequestId = opcRequestId; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new ListSqlTuningAdvisorTasksRequest(managedDatabaseId, name, status, // timeGreaterThanOrEqualTo, timeLessThanOrEqualTo, page, limit, sortBy, sortOrder, - // opcRequestId); + // opcRequestId, opcNamedCredentialId); } } @@ -440,7 +463,8 @@ public Builder toBuilder() { .limit(limit) .sortBy(sortBy) .sortOrder(sortOrder) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -468,6 +492,7 @@ public String toString() { sb.append(",sortBy=").append(String.valueOf(this.sortBy)); sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -493,7 +518,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.limit, other.limit) && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.sortOrder, other.sortOrder) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -520,6 +546,11 @@ public int hashCode() { result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListSqlTuningSetsRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListSqlTuningSetsRequest.java index dcedd82b2a4..4c0b76bc1c3 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListSqlTuningSetsRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListSqlTuningSetsRequest.java @@ -126,6 +126,13 @@ public Integer getLimit() { public String getOpcRequestId() { return opcRequestId; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -261,6 +268,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -299,6 +320,7 @@ public Builder copy(ListSqlTuningSetsRequest o) { page(o.getPage()); limit(o.getLimit()); opcRequestId(o.getOpcRequestId()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -341,9 +363,10 @@ public ListSqlTuningSetsRequest buildWithoutInvocationCallback() { request.page = page; request.limit = limit; request.opcRequestId = opcRequestId; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new ListSqlTuningSetsRequest(managedDatabaseId, owner, nameContains, sortBy, - // sortOrder, page, limit, opcRequestId); + // sortOrder, page, limit, opcRequestId, opcNamedCredentialId); } } @@ -361,7 +384,8 @@ public Builder toBuilder() { .sortOrder(sortOrder) .page(page) .limit(limit) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -386,6 +410,7 @@ public String toString() { sb.append(",page=").append(String.valueOf(this.page)); sb.append(",limit=").append(String.valueOf(this.limit)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -408,7 +433,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.page, other.page) && java.util.Objects.equals(this.limit, other.limit) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -425,6 +451,11 @@ public int hashCode() { result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListSystemPrivilegesRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListSystemPrivilegesRequest.java index cb683e8d4e5..fb59a01f5c7 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListSystemPrivilegesRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListSystemPrivilegesRequest.java @@ -130,6 +130,13 @@ public Integer getLimit() { public String getPage() { return page; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -265,6 +272,20 @@ public Builder page(String page) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -303,6 +324,7 @@ public Builder copy(ListSystemPrivilegesRequest o) { sortOrder(o.getSortOrder()); limit(o.getLimit()); page(o.getPage()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -345,9 +367,10 @@ public ListSystemPrivilegesRequest buildWithoutInvocationCallback() { request.sortOrder = sortOrder; request.limit = limit; request.page = page; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new ListSystemPrivilegesRequest(managedDatabaseId, userName, opcRequestId, name, - // sortBy, sortOrder, limit, page); + // sortBy, sortOrder, limit, page, opcNamedCredentialId); } } @@ -365,7 +388,8 @@ public Builder toBuilder() { .sortBy(sortBy) .sortOrder(sortOrder) .limit(limit) - .page(page); + .page(page) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -390,6 +414,7 @@ public String toString() { 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(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -412,7 +437,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.limit, other.limit) - && java.util.Objects.equals(this.page, other.page); + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -429,6 +455,11 @@ public int 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.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListTableStatisticsRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListTableStatisticsRequest.java index 89426c601d0..daddd00f348 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListTableStatisticsRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListTableStatisticsRequest.java @@ -33,6 +33,13 @@ public String getManagedDatabaseId() { public String getOpcRequestId() { return opcRequestId; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -72,6 +79,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -104,6 +125,7 @@ public Builder retryConfiguration( public Builder copy(ListTableStatisticsRequest o) { managedDatabaseId(o.getManagedDatabaseId()); opcRequestId(o.getOpcRequestId()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -140,8 +162,10 @@ public ListTableStatisticsRequest buildWithoutInvocationCallback() { ListTableStatisticsRequest request = new ListTableStatisticsRequest(); request.managedDatabaseId = managedDatabaseId; request.opcRequestId = opcRequestId; + request.opcNamedCredentialId = opcNamedCredentialId; return request; - // new ListTableStatisticsRequest(managedDatabaseId, opcRequestId); + // new ListTableStatisticsRequest(managedDatabaseId, opcRequestId, + // opcNamedCredentialId); } } @@ -151,7 +175,10 @@ public ListTableStatisticsRequest buildWithoutInvocationCallback() { * @return instance of {@link Builder} that allows you to modify request properties. */ public Builder toBuilder() { - return new Builder().managedDatabaseId(managedDatabaseId).opcRequestId(opcRequestId); + return new Builder() + .managedDatabaseId(managedDatabaseId) + .opcRequestId(opcRequestId) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -170,6 +197,7 @@ public String toString() { sb.append("super=").append(super.toString()); sb.append(",managedDatabaseId=").append(String.valueOf(this.managedDatabaseId)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -186,7 +214,8 @@ public boolean equals(Object o) { ListTableStatisticsRequest other = (ListTableStatisticsRequest) o; return super.equals(o) && java.util.Objects.equals(this.managedDatabaseId, other.managedDatabaseId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -197,6 +226,11 @@ public int hashCode() { (result * PRIME) + (this.managedDatabaseId == null ? 43 : this.managedDatabaseId.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListTablespacesRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListTablespacesRequest.java index fd2343132ce..34bd2cb870e 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListTablespacesRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListTablespacesRequest.java @@ -126,6 +126,13 @@ public String getPage() { public Integer getLimit() { return limit; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -249,6 +256,20 @@ public Builder limit(Integer limit) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -286,6 +307,7 @@ public Builder copy(ListTablespacesRequest o) { sortOrder(o.getSortOrder()); page(o.getPage()); limit(o.getLimit()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -327,9 +349,10 @@ public ListTablespacesRequest buildWithoutInvocationCallback() { request.sortOrder = sortOrder; request.page = page; request.limit = limit; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new ListTablespacesRequest(managedDatabaseId, opcRequestId, name, sortBy, sortOrder, - // page, limit); + // page, limit, opcNamedCredentialId); } } @@ -346,7 +369,8 @@ public Builder toBuilder() { .sortBy(sortBy) .sortOrder(sortOrder) .page(page) - .limit(limit); + .limit(limit) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -370,6 +394,7 @@ public String toString() { sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(",page=").append(String.valueOf(this.page)); sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -391,7 +416,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.page, other.page) - && java.util.Objects.equals(this.limit, other.limit); + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -407,6 +433,11 @@ public int hashCode() { result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListUsersRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListUsersRequest.java index 3e5e670c8e4..e6b2c2213dd 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListUsersRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListUsersRequest.java @@ -126,6 +126,13 @@ public Integer getLimit() { public String getPage() { return page; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -249,6 +256,20 @@ public Builder page(String page) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -286,6 +307,7 @@ public Builder copy(ListUsersRequest o) { sortOrder(o.getSortOrder()); limit(o.getLimit()); page(o.getPage()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -327,9 +349,10 @@ public ListUsersRequest buildWithoutInvocationCallback() { request.sortOrder = sortOrder; request.limit = limit; request.page = page; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new ListUsersRequest(managedDatabaseId, opcRequestId, name, sortBy, sortOrder, limit, - // page); + // page, opcNamedCredentialId); } } @@ -346,7 +369,8 @@ public Builder toBuilder() { .sortBy(sortBy) .sortOrder(sortOrder) .limit(limit) - .page(page); + .page(page) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -370,6 +394,7 @@ public String toString() { 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(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -391,7 +416,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.limit, other.limit) - && java.util.Objects.equals(this.page, other.page); + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -407,6 +433,11 @@ public int 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.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ModifySnapshotSettingsRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ModifySnapshotSettingsRequest.java index f00684fbd9c..dfed9c28326 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ModifySnapshotSettingsRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ModifySnapshotSettingsRequest.java @@ -45,6 +45,13 @@ public String getManagedDatabaseId() { public String getOpcRequestId() { return opcRequestId; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } /** * Alternative accessor for the body parameter. @@ -113,6 +120,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -146,6 +167,7 @@ public Builder copy(ModifySnapshotSettingsRequest o) { managedDatabaseId(o.getManagedDatabaseId()); modifySnapshotSettingsDetails(o.getModifySnapshotSettingsDetails()); opcRequestId(o.getOpcRequestId()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -196,9 +218,10 @@ public ModifySnapshotSettingsRequest buildWithoutInvocationCallback() { request.managedDatabaseId = managedDatabaseId; request.modifySnapshotSettingsDetails = modifySnapshotSettingsDetails; request.opcRequestId = opcRequestId; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new ModifySnapshotSettingsRequest(managedDatabaseId, modifySnapshotSettingsDetails, - // opcRequestId); + // opcRequestId, opcNamedCredentialId); } } @@ -211,7 +234,8 @@ public Builder toBuilder() { return new Builder() .managedDatabaseId(managedDatabaseId) .modifySnapshotSettingsDetails(modifySnapshotSettingsDetails) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -232,6 +256,7 @@ public String toString() { sb.append(",modifySnapshotSettingsDetails=") .append(String.valueOf(this.modifySnapshotSettingsDetails)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -250,7 +275,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.managedDatabaseId, other.managedDatabaseId) && java.util.Objects.equals( this.modifySnapshotSettingsDetails, other.modifySnapshotSettingsDetails) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -266,6 +292,11 @@ public int hashCode() { ? 43 : this.modifySnapshotSettingsDetails.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/RunHistoricAddmRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/RunHistoricAddmRequest.java index cf761c12db8..e7b7c133b54 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/RunHistoricAddmRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/RunHistoricAddmRequest.java @@ -62,6 +62,13 @@ public String getOpcRetryToken() { public String getOpcRequestId() { return opcRequestId; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } /** * Alternative accessor for the body parameter. @@ -156,6 +163,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -190,6 +211,7 @@ public Builder copy(RunHistoricAddmRequest o) { runHistoricAddmDetails(o.getRunHistoricAddmDetails()); opcRetryToken(o.getOpcRetryToken()); opcRequestId(o.getOpcRequestId()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -240,9 +262,10 @@ public RunHistoricAddmRequest buildWithoutInvocationCallback() { request.runHistoricAddmDetails = runHistoricAddmDetails; request.opcRetryToken = opcRetryToken; request.opcRequestId = opcRequestId; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new RunHistoricAddmRequest(managedDatabaseId, runHistoricAddmDetails, opcRetryToken, - // opcRequestId); + // opcRequestId, opcNamedCredentialId); } } @@ -256,7 +279,8 @@ public Builder toBuilder() { .managedDatabaseId(managedDatabaseId) .runHistoricAddmDetails(runHistoricAddmDetails) .opcRetryToken(opcRetryToken) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -277,6 +301,7 @@ public String toString() { sb.append(",runHistoricAddmDetails=").append(String.valueOf(this.runHistoricAddmDetails)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -296,7 +321,8 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.runHistoricAddmDetails, other.runHistoricAddmDetails) && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -315,6 +341,11 @@ public int hashCode() { (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAlertLogCountsRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAlertLogCountsRequest.java index b58fffcb80b..2af16a0f5bd 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAlertLogCountsRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAlertLogCountsRequest.java @@ -214,6 +214,13 @@ public Integer getLimit() { public String getOpcRequestId() { return opcRequestId; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -383,6 +390,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -424,6 +445,7 @@ public Builder copy(SummarizeAlertLogCountsRequest o) { page(o.getPage()); limit(o.getLimit()); opcRequestId(o.getOpcRequestId()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -469,10 +491,11 @@ public SummarizeAlertLogCountsRequest buildWithoutInvocationCallback() { request.page = page; request.limit = limit; request.opcRequestId = opcRequestId; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new SummarizeAlertLogCountsRequest(managedDatabaseId, timeGreaterThanOrEqualTo, // timeLessThanOrEqualTo, levelFilter, groupBy, typeFilter, logSearchText, - // isRegularExpression, page, limit, opcRequestId); + // isRegularExpression, page, limit, opcRequestId, opcNamedCredentialId); } } @@ -493,7 +516,8 @@ public Builder toBuilder() { .isRegularExpression(isRegularExpression) .page(page) .limit(limit) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -522,6 +546,7 @@ public String toString() { sb.append(",page=").append(String.valueOf(this.page)); sb.append(",limit=").append(String.valueOf(this.limit)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -548,7 +573,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.isRegularExpression, other.isRegularExpression) && java.util.Objects.equals(this.page, other.page) && java.util.Objects.equals(this.limit, other.limit) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -582,6 +608,11 @@ public int hashCode() { result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAttentionLogCountsRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAttentionLogCountsRequest.java index 4d76b03669f..bbf9ce34aa6 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAttentionLogCountsRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAttentionLogCountsRequest.java @@ -214,6 +214,13 @@ public Integer getLimit() { public String getOpcRequestId() { return opcRequestId; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -383,6 +390,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -424,6 +445,7 @@ public Builder copy(SummarizeAttentionLogCountsRequest o) { page(o.getPage()); limit(o.getLimit()); opcRequestId(o.getOpcRequestId()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -469,10 +491,11 @@ public SummarizeAttentionLogCountsRequest buildWithoutInvocationCallback() { request.page = page; request.limit = limit; request.opcRequestId = opcRequestId; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new SummarizeAttentionLogCountsRequest(managedDatabaseId, timeGreaterThanOrEqualTo, // timeLessThanOrEqualTo, urgencyFilter, groupBy, typeFilter, logSearchText, - // isRegularExpression, page, limit, opcRequestId); + // isRegularExpression, page, limit, opcRequestId, opcNamedCredentialId); } } @@ -493,7 +516,8 @@ public Builder toBuilder() { .isRegularExpression(isRegularExpression) .page(page) .limit(limit) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -522,6 +546,7 @@ public String toString() { sb.append(",page=").append(String.valueOf(this.page)); sb.append(",limit=").append(String.valueOf(this.limit)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -548,7 +573,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.isRegularExpression, other.isRegularExpression) && java.util.Objects.equals(this.page, other.page) && java.util.Objects.equals(this.limit, other.limit) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -584,6 +610,11 @@ public int hashCode() { result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAwrDbCpuUsagesRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAwrDbCpuUsagesRequest.java index 8f9f48cb2bb..c6c17cc8b8c 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAwrDbCpuUsagesRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAwrDbCpuUsagesRequest.java @@ -235,6 +235,13 @@ public String getOpcRequestId() { public String getOpcRetryToken() { return opcRetryToken; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -486,6 +493,20 @@ public Builder opcRetryToken(String opcRetryToken) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -531,6 +552,7 @@ public Builder copy(SummarizeAwrDbCpuUsagesRequest o) { sortOrder(o.getSortOrder()); opcRequestId(o.getOpcRequestId()); opcRetryToken(o.getOpcRetryToken()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -580,11 +602,12 @@ public SummarizeAwrDbCpuUsagesRequest buildWithoutInvocationCallback() { request.sortOrder = sortOrder; request.opcRequestId = opcRequestId; request.opcRetryToken = opcRetryToken; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new SummarizeAwrDbCpuUsagesRequest(managedDatabaseId, awrDbId, instNum, // beginSnIdGreaterThanOrEqualTo, endSnIdLessThanOrEqualTo, timeGreaterThanOrEqualTo, // timeLessThanOrEqualTo, sessionType, containerId, page, limit, sortBy, sortOrder, - // opcRequestId, opcRetryToken); + // opcRequestId, opcRetryToken, opcNamedCredentialId); } } @@ -609,7 +632,8 @@ public Builder toBuilder() { .sortBy(sortBy) .sortOrder(sortOrder) .opcRequestId(opcRequestId) - .opcRetryToken(opcRetryToken); + .opcRetryToken(opcRetryToken) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -644,6 +668,7 @@ public String toString() { sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -676,7 +701,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -718,6 +744,11 @@ public int hashCode() { result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAwrDbMetricsRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAwrDbMetricsRequest.java index e7318c7afe4..31d6e1dc04e 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAwrDbMetricsRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAwrDbMetricsRequest.java @@ -200,6 +200,13 @@ public String getOpcRequestId() { public String getOpcRetryToken() { return opcRetryToken; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -461,6 +468,20 @@ public Builder opcRetryToken(String opcRetryToken) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -506,6 +527,7 @@ public Builder copy(SummarizeAwrDbMetricsRequest o) { sortOrder(o.getSortOrder()); opcRequestId(o.getOpcRequestId()); opcRetryToken(o.getOpcRetryToken()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -555,11 +577,12 @@ public SummarizeAwrDbMetricsRequest buildWithoutInvocationCallback() { request.sortOrder = sortOrder; request.opcRequestId = opcRequestId; request.opcRetryToken = opcRetryToken; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new SummarizeAwrDbMetricsRequest(managedDatabaseId, awrDbId, name, instNum, // beginSnIdGreaterThanOrEqualTo, endSnIdLessThanOrEqualTo, timeGreaterThanOrEqualTo, // timeLessThanOrEqualTo, containerId, page, limit, sortBy, sortOrder, opcRequestId, - // opcRetryToken); + // opcRetryToken, opcNamedCredentialId); } } @@ -584,7 +607,8 @@ public Builder toBuilder() { .sortBy(sortBy) .sortOrder(sortOrder) .opcRequestId(opcRequestId) - .opcRetryToken(opcRetryToken); + .opcRetryToken(opcRetryToken) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -619,6 +643,7 @@ public String toString() { sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -651,7 +676,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -693,6 +719,11 @@ public int hashCode() { result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAwrDbParameterChangesRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAwrDbParameterChangesRequest.java index a50b05bd621..80e08822331 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAwrDbParameterChangesRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAwrDbParameterChangesRequest.java @@ -200,6 +200,13 @@ public String getOpcRequestId() { public String getOpcRetryToken() { return opcRetryToken; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -451,6 +458,20 @@ public Builder opcRetryToken(String opcRetryToken) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -496,6 +517,7 @@ public Builder copy(SummarizeAwrDbParameterChangesRequest o) { sortOrder(o.getSortOrder()); opcRequestId(o.getOpcRequestId()); opcRetryToken(o.getOpcRetryToken()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -546,11 +568,12 @@ public SummarizeAwrDbParameterChangesRequest buildWithoutInvocationCallback() { request.sortOrder = sortOrder; request.opcRequestId = opcRequestId; request.opcRetryToken = opcRetryToken; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new SummarizeAwrDbParameterChangesRequest(managedDatabaseId, awrDbId, name, instNum, // beginSnIdGreaterThanOrEqualTo, endSnIdLessThanOrEqualTo, timeGreaterThanOrEqualTo, // timeLessThanOrEqualTo, containerId, page, limit, sortBy, sortOrder, opcRequestId, - // opcRetryToken); + // opcRetryToken, opcNamedCredentialId); } } @@ -575,7 +598,8 @@ public Builder toBuilder() { .sortBy(sortBy) .sortOrder(sortOrder) .opcRequestId(opcRequestId) - .opcRetryToken(opcRetryToken); + .opcRetryToken(opcRetryToken) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -610,6 +634,7 @@ public String toString() { sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -642,7 +667,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -684,6 +710,11 @@ public int hashCode() { result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAwrDbParametersRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAwrDbParametersRequest.java index 2bbf6df5f06..6e19a2801d5 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAwrDbParametersRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAwrDbParametersRequest.java @@ -349,6 +349,13 @@ public String getOpcRequestId() { public String getOpcRetryToken() { return opcRetryToken; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -676,6 +683,20 @@ public Builder opcRetryToken(String opcRetryToken) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -725,6 +746,7 @@ public Builder copy(SummarizeAwrDbParametersRequest o) { sortOrder(o.getSortOrder()); opcRequestId(o.getOpcRequestId()); opcRetryToken(o.getOpcRetryToken()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -778,11 +800,13 @@ public SummarizeAwrDbParametersRequest buildWithoutInvocationCallback() { request.sortOrder = sortOrder; request.opcRequestId = opcRequestId; request.opcRetryToken = opcRetryToken; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new SummarizeAwrDbParametersRequest(managedDatabaseId, awrDbId, instNum, // beginSnIdGreaterThanOrEqualTo, endSnIdLessThanOrEqualTo, timeGreaterThanOrEqualTo, // timeLessThanOrEqualTo, containerId, name, nameContains, valueChanged, valueDefault, - // valueModified, page, limit, sortBy, sortOrder, opcRequestId, opcRetryToken); + // valueModified, page, limit, sortBy, sortOrder, opcRequestId, opcRetryToken, + // opcNamedCredentialId); } } @@ -811,7 +835,8 @@ public Builder toBuilder() { .sortBy(sortBy) .sortOrder(sortOrder) .opcRequestId(opcRequestId) - .opcRetryToken(opcRetryToken); + .opcRetryToken(opcRetryToken) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -850,6 +875,7 @@ public String toString() { sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -886,7 +912,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -934,6 +961,11 @@ public int hashCode() { result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAwrDbSnapshotRangesRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAwrDbSnapshotRangesRequest.java index 9e1e9b7986b..081988fd081 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAwrDbSnapshotRangesRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAwrDbSnapshotRangesRequest.java @@ -149,6 +149,13 @@ public String getOpcRequestId() { public String getOpcRetryToken() { return opcRetryToken; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -318,6 +325,20 @@ public Builder opcRetryToken(String opcRetryToken) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -358,6 +379,7 @@ public Builder copy(SummarizeAwrDbSnapshotRangesRequest o) { sortOrder(o.getSortOrder()); opcRequestId(o.getOpcRequestId()); opcRetryToken(o.getOpcRetryToken()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -402,10 +424,11 @@ public SummarizeAwrDbSnapshotRangesRequest buildWithoutInvocationCallback() { request.sortOrder = sortOrder; request.opcRequestId = opcRequestId; request.opcRetryToken = opcRetryToken; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new SummarizeAwrDbSnapshotRangesRequest(managedDatabaseId, name, // timeGreaterThanOrEqualTo, timeLessThanOrEqualTo, page, limit, sortBy, sortOrder, - // opcRequestId, opcRetryToken); + // opcRequestId, opcRetryToken, opcNamedCredentialId); } } @@ -425,7 +448,8 @@ public Builder toBuilder() { .sortBy(sortBy) .sortOrder(sortOrder) .opcRequestId(opcRequestId) - .opcRetryToken(opcRetryToken); + .opcRetryToken(opcRetryToken) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -453,6 +477,7 @@ public String toString() { sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -478,7 +503,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -507,6 +533,11 @@ public int hashCode() { result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAwrDbSysstatsRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAwrDbSysstatsRequest.java index d03247c5409..60fb77b4233 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAwrDbSysstatsRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAwrDbSysstatsRequest.java @@ -200,6 +200,13 @@ public String getOpcRequestId() { public String getOpcRetryToken() { return opcRetryToken; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -461,6 +468,20 @@ public Builder opcRetryToken(String opcRetryToken) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -506,6 +527,7 @@ public Builder copy(SummarizeAwrDbSysstatsRequest o) { sortOrder(o.getSortOrder()); opcRequestId(o.getOpcRequestId()); opcRetryToken(o.getOpcRetryToken()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -555,11 +577,12 @@ public SummarizeAwrDbSysstatsRequest buildWithoutInvocationCallback() { request.sortOrder = sortOrder; request.opcRequestId = opcRequestId; request.opcRetryToken = opcRetryToken; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new SummarizeAwrDbSysstatsRequest(managedDatabaseId, awrDbId, name, instNum, // beginSnIdGreaterThanOrEqualTo, endSnIdLessThanOrEqualTo, timeGreaterThanOrEqualTo, // timeLessThanOrEqualTo, containerId, page, limit, sortBy, sortOrder, opcRequestId, - // opcRetryToken); + // opcRetryToken, opcNamedCredentialId); } } @@ -584,7 +607,8 @@ public Builder toBuilder() { .sortBy(sortBy) .sortOrder(sortOrder) .opcRequestId(opcRequestId) - .opcRetryToken(opcRetryToken); + .opcRetryToken(opcRetryToken) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -619,6 +643,7 @@ public String toString() { sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -651,7 +676,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -693,6 +719,11 @@ public int hashCode() { result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAwrDbTopWaitEventsRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAwrDbTopWaitEventsRequest.java index ba0979d1cd9..6257f1d61de 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAwrDbTopWaitEventsRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAwrDbTopWaitEventsRequest.java @@ -222,6 +222,13 @@ public String getOpcRequestId() { public String getOpcRetryToken() { return opcRetryToken; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -455,6 +462,20 @@ public Builder opcRetryToken(String opcRetryToken) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -499,6 +520,7 @@ public Builder copy(SummarizeAwrDbTopWaitEventsRequest o) { sortOrder(o.getSortOrder()); opcRequestId(o.getOpcRequestId()); opcRetryToken(o.getOpcRetryToken()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -547,11 +569,12 @@ public SummarizeAwrDbTopWaitEventsRequest buildWithoutInvocationCallback() { request.sortOrder = sortOrder; request.opcRequestId = opcRequestId; request.opcRetryToken = opcRetryToken; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new SummarizeAwrDbTopWaitEventsRequest(managedDatabaseId, awrDbId, instNum, // beginSnIdGreaterThanOrEqualTo, endSnIdLessThanOrEqualTo, timeGreaterThanOrEqualTo, // timeLessThanOrEqualTo, sessionType, containerId, topN, sortBy, sortOrder, - // opcRequestId, opcRetryToken); + // opcRequestId, opcRetryToken, opcNamedCredentialId); } } @@ -575,7 +598,8 @@ public Builder toBuilder() { .sortBy(sortBy) .sortOrder(sortOrder) .opcRequestId(opcRequestId) - .opcRetryToken(opcRetryToken); + .opcRetryToken(opcRetryToken) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -609,6 +633,7 @@ public String toString() { sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -640,7 +665,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -681,6 +707,11 @@ public int hashCode() { result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAwrDbWaitEventBucketsRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAwrDbWaitEventBucketsRequest.java index 8230617ad94..e92717d4f50 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAwrDbWaitEventBucketsRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAwrDbWaitEventBucketsRequest.java @@ -221,6 +221,13 @@ public String getOpcRequestId() { public String getOpcRetryToken() { return opcRetryToken; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -514,6 +521,20 @@ public Builder opcRetryToken(String opcRetryToken) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -562,6 +583,7 @@ public Builder copy(SummarizeAwrDbWaitEventBucketsRequest o) { sortOrder(o.getSortOrder()); opcRequestId(o.getOpcRequestId()); opcRetryToken(o.getOpcRetryToken()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -615,11 +637,12 @@ public SummarizeAwrDbWaitEventBucketsRequest buildWithoutInvocationCallback() { request.sortOrder = sortOrder; request.opcRequestId = opcRequestId; request.opcRetryToken = opcRetryToken; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new SummarizeAwrDbWaitEventBucketsRequest(managedDatabaseId, awrDbId, name, instNum, // beginSnIdGreaterThanOrEqualTo, endSnIdLessThanOrEqualTo, timeGreaterThanOrEqualTo, // timeLessThanOrEqualTo, numBucket, minValue, maxValue, containerId, page, limit, - // sortBy, sortOrder, opcRequestId, opcRetryToken); + // sortBy, sortOrder, opcRequestId, opcRetryToken, opcNamedCredentialId); } } @@ -647,7 +670,8 @@ public Builder toBuilder() { .sortBy(sortBy) .sortOrder(sortOrder) .opcRequestId(opcRequestId) - .opcRetryToken(opcRetryToken); + .opcRetryToken(opcRetryToken) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -685,6 +709,7 @@ public String toString() { sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -720,7 +745,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -765,6 +791,11 @@ public int hashCode() { result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAwrDbWaitEventsRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAwrDbWaitEventsRequest.java index 52ecb88ddd5..9ac78f6a322 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAwrDbWaitEventsRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeAwrDbWaitEventsRequest.java @@ -242,6 +242,13 @@ public String getOpcRequestId() { public String getOpcRetryToken() { return opcRetryToken; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -517,6 +524,20 @@ public Builder opcRetryToken(String opcRetryToken) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -563,6 +584,7 @@ public Builder copy(SummarizeAwrDbWaitEventsRequest o) { sortOrder(o.getSortOrder()); opcRequestId(o.getOpcRequestId()); opcRetryToken(o.getOpcRetryToken()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -613,11 +635,12 @@ public SummarizeAwrDbWaitEventsRequest buildWithoutInvocationCallback() { request.sortOrder = sortOrder; request.opcRequestId = opcRequestId; request.opcRetryToken = opcRetryToken; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new SummarizeAwrDbWaitEventsRequest(managedDatabaseId, awrDbId, instNum, // beginSnIdGreaterThanOrEqualTo, endSnIdLessThanOrEqualTo, timeGreaterThanOrEqualTo, // timeLessThanOrEqualTo, name, sessionType, containerId, page, limit, sortBy, - // sortOrder, opcRequestId, opcRetryToken); + // sortOrder, opcRequestId, opcRetryToken, opcNamedCredentialId); } } @@ -643,7 +666,8 @@ public Builder toBuilder() { .sortBy(sortBy) .sortOrder(sortOrder) .opcRequestId(opcRequestId) - .opcRetryToken(opcRetryToken); + .opcRetryToken(opcRetryToken) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -679,6 +703,7 @@ public String toString() { sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -712,7 +737,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -755,6 +781,11 @@ public int hashCode() { result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeSqlPlanBaselinesByLastExecutionRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeSqlPlanBaselinesByLastExecutionRequest.java index 817ac4c4634..20d824fb104 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeSqlPlanBaselinesByLastExecutionRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeSqlPlanBaselinesByLastExecutionRequest.java @@ -48,6 +48,13 @@ public String getPage() { public String getOpcRequestId() { return opcRequestId; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -105,6 +112,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -138,6 +159,7 @@ public Builder copy(SummarizeSqlPlanBaselinesByLastExecutionRequest o) { managedDatabaseId(o.getManagedDatabaseId()); page(o.getPage()); opcRequestId(o.getOpcRequestId()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -179,9 +201,10 @@ public SummarizeSqlPlanBaselinesByLastExecutionRequest buildWithoutInvocationCal request.managedDatabaseId = managedDatabaseId; request.page = page; request.opcRequestId = opcRequestId; + request.opcNamedCredentialId = opcNamedCredentialId; return request; // new SummarizeSqlPlanBaselinesByLastExecutionRequest(managedDatabaseId, page, - // opcRequestId); + // opcRequestId, opcNamedCredentialId); } } @@ -194,7 +217,8 @@ public Builder toBuilder() { return new Builder() .managedDatabaseId(managedDatabaseId) .page(page) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -214,6 +238,7 @@ public String toString() { sb.append(",managedDatabaseId=").append(String.valueOf(this.managedDatabaseId)); sb.append(",page=").append(String.valueOf(this.page)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -232,7 +257,8 @@ public boolean equals(Object o) { return super.equals(o) && java.util.Objects.equals(this.managedDatabaseId, other.managedDatabaseId) && java.util.Objects.equals(this.page, other.page) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -244,6 +270,11 @@ public int hashCode() { + (this.managedDatabaseId == null ? 43 : this.managedDatabaseId.hashCode()); result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeSqlPlanBaselinesRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeSqlPlanBaselinesRequest.java index 8416f95b4fc..0514d3c694e 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeSqlPlanBaselinesRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/SummarizeSqlPlanBaselinesRequest.java @@ -48,6 +48,13 @@ public String getPage() { public String getOpcRequestId() { return opcRequestId; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId; + + /** The OCID of the Named Credential. */ + public String getOpcNamedCredentialId() { + return opcNamedCredentialId; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -105,6 +112,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** The OCID of the Named Credential. */ + private String opcNamedCredentialId = null; + + /** + * The OCID of the Named Credential. + * + * @param opcNamedCredentialId the value to set + * @return this builder instance + */ + public Builder opcNamedCredentialId(String opcNamedCredentialId) { + this.opcNamedCredentialId = opcNamedCredentialId; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -138,6 +159,7 @@ public Builder copy(SummarizeSqlPlanBaselinesRequest o) { managedDatabaseId(o.getManagedDatabaseId()); page(o.getPage()); opcRequestId(o.getOpcRequestId()); + opcNamedCredentialId(o.getOpcNamedCredentialId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -175,8 +197,10 @@ public SummarizeSqlPlanBaselinesRequest buildWithoutInvocationCallback() { request.managedDatabaseId = managedDatabaseId; request.page = page; request.opcRequestId = opcRequestId; + request.opcNamedCredentialId = opcNamedCredentialId; return request; - // new SummarizeSqlPlanBaselinesRequest(managedDatabaseId, page, opcRequestId); + // new SummarizeSqlPlanBaselinesRequest(managedDatabaseId, page, opcRequestId, + // opcNamedCredentialId); } } @@ -189,7 +213,8 @@ public Builder toBuilder() { return new Builder() .managedDatabaseId(managedDatabaseId) .page(page) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .opcNamedCredentialId(opcNamedCredentialId); } /** @@ -209,6 +234,7 @@ public String toString() { sb.append(",managedDatabaseId=").append(String.valueOf(this.managedDatabaseId)); sb.append(",page=").append(String.valueOf(this.page)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcNamedCredentialId=").append(String.valueOf(this.opcNamedCredentialId)); sb.append(")"); return sb.toString(); } @@ -226,7 +252,8 @@ public boolean equals(Object o) { return super.equals(o) && java.util.Objects.equals(this.managedDatabaseId, other.managedDatabaseId) && java.util.Objects.equals(this.page, other.page) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNamedCredentialId, other.opcNamedCredentialId); } @Override @@ -238,6 +265,11 @@ public int hashCode() { + (this.managedDatabaseId == null ? 43 : this.managedDatabaseId.hashCode()); result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcNamedCredentialId == null + ? 43 + : this.opcNamedCredentialId.hashCode()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/TestNamedCredentialRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/TestNamedCredentialRequest.java new file mode 100644 index 00000000000..a4cdfaccb96 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/TestNamedCredentialRequest.java @@ -0,0 +1,280 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use TestNamedCredentialRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class TestNamedCredentialRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasemanagement.model.TestNamedCredentialDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * named credential. + */ + private String namedCredentialId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * named credential. + */ + public String getNamedCredentialId() { + return namedCredentialId; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * database against which the credential is to be tested. + */ + private com.oracle.bmc.databasemanagement.model.TestNamedCredentialDetails + testNamedCredentialDetails; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * database against which the credential is to be tested. + */ + public com.oracle.bmc.databasemanagement.model.TestNamedCredentialDetails + getTestNamedCredentialDetails() { + return testNamedCredentialDetails; + } + /** 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.databasemanagement.model.TestNamedCredentialDetails getBody$() { + return testNamedCredentialDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + TestNamedCredentialRequest, + com.oracle.bmc.databasemanagement.model.TestNamedCredentialDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * named credential. + */ + private String namedCredentialId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * named credential. + * + * @param namedCredentialId the value to set + * @return this builder instance + */ + public Builder namedCredentialId(String namedCredentialId) { + this.namedCredentialId = namedCredentialId; + return this; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * database against which the credential is to be tested. + */ + private com.oracle.bmc.databasemanagement.model.TestNamedCredentialDetails + testNamedCredentialDetails = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * database against which the credential is to be tested. + * + * @param testNamedCredentialDetails the value to set + * @return this builder instance + */ + public Builder testNamedCredentialDetails( + com.oracle.bmc.databasemanagement.model.TestNamedCredentialDetails + testNamedCredentialDetails) { + this.testNamedCredentialDetails = testNamedCredentialDetails; + 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(TestNamedCredentialRequest o) { + namedCredentialId(o.getNamedCredentialId()); + testNamedCredentialDetails(o.getTestNamedCredentialDetails()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of TestNamedCredentialRequest 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 TestNamedCredentialRequest + */ + public TestNamedCredentialRequest build() { + TestNamedCredentialRequest 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.databasemanagement.model.TestNamedCredentialDetails body) { + testNamedCredentialDetails(body); + return this; + } + + /** + * Build the instance of TestNamedCredentialRequest 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 TestNamedCredentialRequest + */ + public TestNamedCredentialRequest buildWithoutInvocationCallback() { + TestNamedCredentialRequest request = new TestNamedCredentialRequest(); + request.namedCredentialId = namedCredentialId; + request.testNamedCredentialDetails = testNamedCredentialDetails; + request.opcRequestId = opcRequestId; + return request; + // new TestNamedCredentialRequest(namedCredentialId, testNamedCredentialDetails, + // 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() + .namedCredentialId(namedCredentialId) + .testNamedCredentialDetails(testNamedCredentialDetails) + .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(",namedCredentialId=").append(String.valueOf(this.namedCredentialId)); + sb.append(",testNamedCredentialDetails=") + .append(String.valueOf(this.testNamedCredentialDetails)); + 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 TestNamedCredentialRequest)) { + return false; + } + + TestNamedCredentialRequest other = (TestNamedCredentialRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.namedCredentialId, other.namedCredentialId) + && java.util.Objects.equals( + this.testNamedCredentialDetails, other.testNamedCredentialDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.namedCredentialId == null ? 43 : this.namedCredentialId.hashCode()); + result = + (result * PRIME) + + (this.testNamedCredentialDetails == null + ? 43 + : this.testNamedCredentialDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateNamedCredentialRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateNamedCredentialRequest.java new file mode 100644 index 00000000000..6725c0d8a3c --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/UpdateNamedCredentialRequest.java @@ -0,0 +1,316 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use + * UpdateNamedCredentialRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class UpdateNamedCredentialRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasemanagement.model.UpdateNamedCredentialDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * named credential. + */ + private String namedCredentialId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * named credential. + */ + public String getNamedCredentialId() { + return namedCredentialId; + } + /** The details required to update a named credential. */ + private com.oracle.bmc.databasemanagement.model.UpdateNamedCredentialDetails + updateNamedCredentialDetails; + + /** The details required to update a named credential. */ + public com.oracle.bmc.databasemanagement.model.UpdateNamedCredentialDetails + getUpdateNamedCredentialDetails() { + return updateNamedCredentialDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST 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.databasemanagement.model.UpdateNamedCredentialDetails getBody$() { + return updateNamedCredentialDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateNamedCredentialRequest, + com.oracle.bmc.databasemanagement.model.UpdateNamedCredentialDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * named credential. + */ + private String namedCredentialId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * named credential. + * + * @param namedCredentialId the value to set + * @return this builder instance + */ + public Builder namedCredentialId(String namedCredentialId) { + this.namedCredentialId = namedCredentialId; + return this; + } + + /** The details required to update a named credential. */ + private com.oracle.bmc.databasemanagement.model.UpdateNamedCredentialDetails + updateNamedCredentialDetails = null; + + /** + * The details required to update a named credential. + * + * @param updateNamedCredentialDetails the value to set + * @return this builder instance + */ + public Builder updateNamedCredentialDetails( + com.oracle.bmc.databasemanagement.model.UpdateNamedCredentialDetails + updateNamedCredentialDetails) { + this.updateNamedCredentialDetails = updateNamedCredentialDetails; + 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(UpdateNamedCredentialRequest o) { + namedCredentialId(o.getNamedCredentialId()); + updateNamedCredentialDetails(o.getUpdateNamedCredentialDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateNamedCredentialRequest 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 UpdateNamedCredentialRequest + */ + public UpdateNamedCredentialRequest build() { + UpdateNamedCredentialRequest 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.databasemanagement.model.UpdateNamedCredentialDetails body) { + updateNamedCredentialDetails(body); + return this; + } + + /** + * Build the instance of UpdateNamedCredentialRequest 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 UpdateNamedCredentialRequest + */ + public UpdateNamedCredentialRequest buildWithoutInvocationCallback() { + UpdateNamedCredentialRequest request = new UpdateNamedCredentialRequest(); + request.namedCredentialId = namedCredentialId; + request.updateNamedCredentialDetails = updateNamedCredentialDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateNamedCredentialRequest(namedCredentialId, updateNamedCredentialDetails, + // 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() + .namedCredentialId(namedCredentialId) + .updateNamedCredentialDetails(updateNamedCredentialDetails) + .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(",namedCredentialId=").append(String.valueOf(this.namedCredentialId)); + sb.append(",updateNamedCredentialDetails=") + .append(String.valueOf(this.updateNamedCredentialDetails)); + 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 UpdateNamedCredentialRequest)) { + return false; + } + + UpdateNamedCredentialRequest other = (UpdateNamedCredentialRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.namedCredentialId, other.namedCredentialId) + && java.util.Objects.equals( + this.updateNamedCredentialDetails, other.updateNamedCredentialDetails) + && 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.namedCredentialId == null ? 43 : this.namedCredentialId.hashCode()); + result = + (result * PRIME) + + (this.updateNamedCredentialDetails == null + ? 43 + : this.updateNamedCredentialDetails.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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/ChangeNamedCredentialCompartmentResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/ChangeNamedCredentialCompartmentResponse.java new file mode 100644 index 00000000000..5c996414f1d --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/ChangeNamedCredentialCompartmentResponse.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class ChangeNamedCredentialCompartmentResponse 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 ChangeNamedCredentialCompartmentResponse( + 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< + ChangeNamedCredentialCompartmentResponse> { + 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(ChangeNamedCredentialCompartmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ChangeNamedCredentialCompartmentResponse build() { + return new ChangeNamedCredentialCompartmentResponse( + __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 ChangeNamedCredentialCompartmentResponse)) { + return false; + } + + ChangeNamedCredentialCompartmentResponse other = + (ChangeNamedCredentialCompartmentResponse) 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/CreateNamedCredentialResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/CreateNamedCredentialResponse.java new file mode 100644 index 00000000000..52a21acdd2c --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/CreateNamedCredentialResponse.java @@ -0,0 +1,244 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class CreateNamedCredentialResponse 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; + } + + /** Location of the resource. */ + private String location; + + /** + * Location of the resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** The returned {@code NamedCredential} instance. */ + private com.oracle.bmc.databasemanagement.model.NamedCredential namedCredential; + + /** + * The returned {@code NamedCredential} instance. + * + * @return the value + */ + public com.oracle.bmc.databasemanagement.model.NamedCredential getNamedCredential() { + return namedCredential; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "location", + "namedCredential" + }) + private CreateNamedCredentialResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + String location, + com.oracle.bmc.databasemanagement.model.NamedCredential namedCredential) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.location = location; + this.namedCredential = namedCredential; + } + + 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; + } + + /** Location of the resource. */ + private String location; + + /** + * Location of the resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** The returned {@code NamedCredential} instance. */ + private com.oracle.bmc.databasemanagement.model.NamedCredential namedCredential; + + /** + * The returned {@code NamedCredential} instance. + * + * @param namedCredential the value to set + * @return this builder + */ + public Builder namedCredential( + com.oracle.bmc.databasemanagement.model.NamedCredential namedCredential) { + this.namedCredential = namedCredential; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateNamedCredentialResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + location(o.getLocation()); + namedCredential(o.getNamedCredential()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateNamedCredentialResponse build() { + return new CreateNamedCredentialResponse( + __httpStatusCode__, headers, opcRequestId, etag, location, namedCredential); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",namedCredential=").append(String.valueOf(namedCredential)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateNamedCredentialResponse)) { + return false; + } + + CreateNamedCredentialResponse other = (CreateNamedCredentialResponse) 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.namedCredential, other.namedCredential); + } + + @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.namedCredential == null ? 43 : this.namedCredential.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DeleteNamedCredentialResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DeleteNamedCredentialResponse.java new file mode 100644 index 00000000000..5bb142c4d59 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DeleteNamedCredentialResponse.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class DeleteNamedCredentialResponse 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 DeleteNamedCredentialResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteNamedCredentialResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DeleteNamedCredentialResponse build() { + return new DeleteNamedCredentialResponse(__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 DeleteNamedCredentialResponse)) { + return false; + } + + DeleteNamedCredentialResponse other = (DeleteNamedCredentialResponse) 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/GetNamedCredentialResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/GetNamedCredentialResponse.java new file mode 100644 index 00000000000..12c55a246ae --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/GetNamedCredentialResponse.java @@ -0,0 +1,211 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class GetNamedCredentialResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** The returned {@code NamedCredential} instance. */ + private com.oracle.bmc.databasemanagement.model.NamedCredential namedCredential; + + /** + * The returned {@code NamedCredential} instance. + * + * @return the value + */ + public com.oracle.bmc.databasemanagement.model.NamedCredential getNamedCredential() { + return namedCredential; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "namedCredential" + }) + private GetNamedCredentialResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + com.oracle.bmc.databasemanagement.model.NamedCredential namedCredential) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.namedCredential = namedCredential; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** The returned {@code NamedCredential} instance. */ + private com.oracle.bmc.databasemanagement.model.NamedCredential namedCredential; + + /** + * The returned {@code NamedCredential} instance. + * + * @param namedCredential the value to set + * @return this builder + */ + public Builder namedCredential( + com.oracle.bmc.databasemanagement.model.NamedCredential namedCredential) { + this.namedCredential = namedCredential; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetNamedCredentialResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + namedCredential(o.getNamedCredential()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetNamedCredentialResponse build() { + return new GetNamedCredentialResponse( + __httpStatusCode__, headers, opcRequestId, etag, namedCredential); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",namedCredential=").append(String.valueOf(namedCredential)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetNamedCredentialResponse)) { + return false; + } + + GetNamedCredentialResponse other = (GetNamedCredentialResponse) 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.namedCredential, other.namedCredential); + } + + @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.namedCredential == null ? 43 : this.namedCredential.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/ListNamedCredentialsResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/ListNamedCredentialsResponse.java new file mode 100644 index 00000000000..e1ef449994b --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/ListNamedCredentialsResponse.java @@ -0,0 +1,235 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class ListNamedCredentialsResponse 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 NamedCredentialCollection} instance. */ + private com.oracle.bmc.databasemanagement.model.NamedCredentialCollection + namedCredentialCollection; + + /** + * The returned {@code NamedCredentialCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.databasemanagement.model.NamedCredentialCollection + getNamedCredentialCollection() { + return namedCredentialCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "namedCredentialCollection" + }) + private ListNamedCredentialsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.databasemanagement.model.NamedCredentialCollection + namedCredentialCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.namedCredentialCollection = namedCredentialCollection; + } + + 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 NamedCredentialCollection} instance. */ + private com.oracle.bmc.databasemanagement.model.NamedCredentialCollection + namedCredentialCollection; + + /** + * The returned {@code NamedCredentialCollection} instance. + * + * @param namedCredentialCollection the value to set + * @return this builder + */ + public Builder namedCredentialCollection( + com.oracle.bmc.databasemanagement.model.NamedCredentialCollection + namedCredentialCollection) { + this.namedCredentialCollection = namedCredentialCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListNamedCredentialsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + namedCredentialCollection(o.getNamedCredentialCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListNamedCredentialsResponse build() { + return new ListNamedCredentialsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + namedCredentialCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",namedCredentialCollection=").append(String.valueOf(namedCredentialCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListNamedCredentialsResponse)) { + return false; + } + + ListNamedCredentialsResponse other = (ListNamedCredentialsResponse) 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.namedCredentialCollection, other.namedCredentialCollection); + } + + @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.namedCredentialCollection == null + ? 43 + : this.namedCredentialCollection.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/TestNamedCredentialResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/TestNamedCredentialResponse.java new file mode 100644 index 00000000000..123c6903efa --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/TestNamedCredentialResponse.java @@ -0,0 +1,186 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class TestNamedCredentialResponse 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 TestNamedCredentialStatus} instance. */ + private com.oracle.bmc.databasemanagement.model.TestNamedCredentialStatus + testNamedCredentialStatus; + + /** + * The returned {@code TestNamedCredentialStatus} instance. + * + * @return the value + */ + public com.oracle.bmc.databasemanagement.model.TestNamedCredentialStatus + getTestNamedCredentialStatus() { + return testNamedCredentialStatus; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "testNamedCredentialStatus" + }) + private TestNamedCredentialResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + com.oracle.bmc.databasemanagement.model.TestNamedCredentialStatus + testNamedCredentialStatus) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.testNamedCredentialStatus = testNamedCredentialStatus; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code TestNamedCredentialStatus} instance. */ + private com.oracle.bmc.databasemanagement.model.TestNamedCredentialStatus + testNamedCredentialStatus; + + /** + * The returned {@code TestNamedCredentialStatus} instance. + * + * @param testNamedCredentialStatus the value to set + * @return this builder + */ + public Builder testNamedCredentialStatus( + com.oracle.bmc.databasemanagement.model.TestNamedCredentialStatus + testNamedCredentialStatus) { + this.testNamedCredentialStatus = testNamedCredentialStatus; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(TestNamedCredentialResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + testNamedCredentialStatus(o.getTestNamedCredentialStatus()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public TestNamedCredentialResponse build() { + return new TestNamedCredentialResponse( + __httpStatusCode__, headers, opcRequestId, testNamedCredentialStatus); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",testNamedCredentialStatus=").append(String.valueOf(testNamedCredentialStatus)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof TestNamedCredentialResponse)) { + return false; + } + + TestNamedCredentialResponse other = (TestNamedCredentialResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.testNamedCredentialStatus, other.testNamedCredentialStatus); + } + + @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.testNamedCredentialStatus == null + ? 43 + : this.testNamedCredentialStatus.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/UpdateNamedCredentialResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/UpdateNamedCredentialResponse.java new file mode 100644 index 00000000000..2e31f633901 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/UpdateNamedCredentialResponse.java @@ -0,0 +1,211 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class UpdateNamedCredentialResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** The returned {@code NamedCredential} instance. */ + private com.oracle.bmc.databasemanagement.model.NamedCredential namedCredential; + + /** + * The returned {@code NamedCredential} instance. + * + * @return the value + */ + public com.oracle.bmc.databasemanagement.model.NamedCredential getNamedCredential() { + return namedCredential; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "namedCredential" + }) + private UpdateNamedCredentialResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + com.oracle.bmc.databasemanagement.model.NamedCredential namedCredential) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.namedCredential = namedCredential; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** The returned {@code NamedCredential} instance. */ + private com.oracle.bmc.databasemanagement.model.NamedCredential namedCredential; + + /** + * The returned {@code NamedCredential} instance. + * + * @param namedCredential the value to set + * @return this builder + */ + public Builder namedCredential( + com.oracle.bmc.databasemanagement.model.NamedCredential namedCredential) { + this.namedCredential = namedCredential; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateNamedCredentialResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + namedCredential(o.getNamedCredential()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateNamedCredentialResponse build() { + return new UpdateNamedCredentialResponse( + __httpStatusCode__, headers, opcRequestId, etag, namedCredential); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",namedCredential=").append(String.valueOf(namedCredential)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateNamedCredentialResponse)) { + return false; + } + + UpdateNamedCredentialResponse other = (UpdateNamedCredentialResponse) 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.namedCredential, other.namedCredential); + } + + @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.namedCredential == null ? 43 : this.namedCredential.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-databasemanagement/reflect-config.json b/bmc-databasemanagement/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-databasemanagement/reflect-config.json index 0635f8a9c49..47993f4fdd1 100644 --- a/bmc-databasemanagement/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-databasemanagement/reflect-config.json +++ b/bmc-databasemanagement/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-databasemanagement/reflect-config.json @@ -847,6 +847,20 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.BasicNamedCredentialContent", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.BasicNamedCredentialContent$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.BasicPreferredCredential", @@ -959,6 +973,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ChangeNamedCredentialCompartmentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ChangeNamedCredentialCompartmentDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.ChangePlanRetentionDetails", @@ -1255,6 +1283,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.CreateNamedCredentialDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.CreateNamedCredentialDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.CreateSqlJobDetails", @@ -1450,6 +1492,19 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseCredentialDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseCredentialDetails$CredentialType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.DatabaseCredentials", @@ -1566,6 +1621,20 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseNamedCredentialDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseNamedCredentialDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.DatabaseParameterSummary", @@ -1638,6 +1707,26 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabasePasswordCredentialDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabasePasswordCredentialDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabasePasswordCredentialDetails$Role", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.DatabasePlan", @@ -1678,6 +1767,26 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseSecretCredentialDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseSecretCredentialDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseSecretCredentialDetails$Role", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.DatabaseSslConnectionCredentials", @@ -4665,6 +4774,81 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.NamedCredential", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.NamedCredential$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.NamedCredentialCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.NamedCredentialCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.NamedCredentialContent", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.NamedCredentialContentType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.NamedCredentialScope", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.NamedCredentialSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.NamedCredentialSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.NamedPreferredCredential", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.NamedPreferredCredential$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.ObjectPrivilegeCollection", @@ -5009,6 +5193,12 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.PasswordSecretAccessMode", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.PatchExternalDbSystemDiscoveryDetails", @@ -5335,6 +5525,12 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ResourceType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.RestCredential", @@ -6758,6 +6954,54 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.TestNamedCredentialDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.TestNamedCredentialDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.TestNamedCredentialStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.TestNamedCredentialStatus$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.TestNamedCredentialStatus$Status", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.TestNamedPreferredCredentialDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.TestNamedPreferredCredentialDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.TestPreferredCredentialDetails", @@ -7049,6 +7293,34 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.UpdateNamedCredentialDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.UpdateNamedCredentialDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.UpdateNamedPreferredCredentialDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.UpdateNamedPreferredCredentialDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.UpdatePreferredCredentialDetails", diff --git a/bmc-databasemigration/pom.xml b/bmc-databasemigration/pom.xml index 3f6332a84ee..0273547dd84 100644 --- a/bmc-databasemigration/pom.xml +++ b/bmc-databasemigration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-databasemigration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-databasetools/pom.xml b/bmc-databasetools/pom.xml index c3522cdb238..383c00d2ac2 100644 --- a/bmc-databasetools/pom.xml +++ b/bmc-databasetools/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-databasetools @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-datacatalog/pom.xml b/bmc-datacatalog/pom.xml index b963a2c3c71..9159129424a 100644 --- a/bmc-datacatalog/pom.xml +++ b/bmc-datacatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-datacatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-dataflow/pom.xml b/bmc-dataflow/pom.xml index 951685d9bc7..bc0c696b1f5 100644 --- a/bmc-dataflow/pom.xml +++ b/bmc-dataflow/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-dataflow @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-dataintegration/pom.xml b/bmc-dataintegration/pom.xml index 18364ca5cdb..2156f860db7 100644 --- a/bmc-dataintegration/pom.xml +++ b/bmc-dataintegration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-dataintegration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/Connection.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/Connection.java index f1ccb93c45b..33189f5604f 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/Connection.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/Connection.java @@ -31,6 +31,9 @@ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = ConnectionFromMySQL.class, name = "MYSQL_CONNECTION"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ConnectionFromOAuth2.class, + name = "OAUTH2_CONNECTION"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = ConnectionFromJdbc.class, name = "GENERIC_JDBC_CONNECTION"), @@ -400,6 +403,7 @@ public enum ModelType implements com.oracle.bmc.http.internal.BmcEnum { MysqlHeatwaveConnection("MYSQL_HEATWAVE_CONNECTION"), RestNoAuthConnection("REST_NO_AUTH_CONNECTION"), RestBasicAuthConnection("REST_BASIC_AUTH_CONNECTION"), + Oauth2Connection("OAUTH2_CONNECTION"), /** * This value is used if a service returns a value for this enum that is not recognized by diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionDetails.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionDetails.java index 8f5cbbfc811..40f2a6c6da9 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionDetails.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionDetails.java @@ -55,6 +55,9 @@ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = ConnectionFromRestBasicAuthDetails.class, name = "REST_BASIC_AUTH_CONNECTION"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ConnectionFromOAuth2Details.class, + name = "OAUTH2_CONNECTION"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = ConnectionFromBICCDetails.class, name = "BICC_CONNECTION"), @@ -377,6 +380,7 @@ public enum ModelType implements com.oracle.bmc.http.internal.BmcEnum { MysqlHeatwaveConnection("MYSQL_HEATWAVE_CONNECTION"), RestNoAuthConnection("REST_NO_AUTH_CONNECTION"), RestBasicAuthConnection("REST_BASIC_AUTH_CONNECTION"), + Oauth2Connection("OAUTH2_CONNECTION"), ; private final String value; diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOAuth2.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOAuth2.java new file mode 100644 index 00000000000..bfcb18fd547 --- /dev/null +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOAuth2.java @@ -0,0 +1,516 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dataintegration.model; + +/** + * The connection details for a OAuth connection.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ConnectionFromOAuth2.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "modelType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ConnectionFromOAuth2 extends Connection { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") + private String modelVersion; + + public Builder modelVersion(String modelVersion) { + this.modelVersion = modelVersion; + this.__explicitlySet__.add("modelVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") + private ParentReference parentRef; + + public Builder parentRef(ParentReference parentRef) { + this.parentRef = parentRef; + this.__explicitlySet__.add("parentRef"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("objectVersion") + private Integer objectVersion; + + public Builder objectVersion(Integer objectVersion) { + this.objectVersion = objectVersion; + this.__explicitlySet__.add("objectVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") + private Integer objectStatus; + + public Builder objectStatus(Integer objectStatus) { + this.objectStatus = objectStatus; + this.__explicitlySet__.add("objectStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("identifier") + private String identifier; + + public Builder identifier(String identifier) { + this.identifier = identifier; + this.__explicitlySet__.add("identifier"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("primarySchema") + private Schema primarySchema; + + public Builder primarySchema(Schema primarySchema) { + this.primarySchema = primarySchema; + this.__explicitlySet__.add("primarySchema"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + private java.util.List connectionProperties; + + public Builder connectionProperties( + java.util.List connectionProperties) { + this.connectionProperties = connectionProperties; + this.__explicitlySet__.add("connectionProperties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") + private Boolean isDefault; + + public Builder isDefault(Boolean isDefault) { + this.isDefault = isDefault; + this.__explicitlySet__.add("isDefault"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private ObjectMetadata metadata; + + public Builder metadata(ObjectMetadata metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("keyMap") + private java.util.Map keyMap; + + public Builder keyMap(java.util.Map keyMap) { + this.keyMap = keyMap; + this.__explicitlySet__.add("keyMap"); + return this; + } + /** Specifies the endpoint used to exchange authentication credentials for access tokens */ + @com.fasterxml.jackson.annotation.JsonProperty("accessTokenUrl") + private String accessTokenUrl; + + /** + * Specifies the endpoint used to exchange authentication credentials for access tokens + * + * @param accessTokenUrl the value to set + * @return this builder + */ + public Builder accessTokenUrl(String accessTokenUrl) { + this.accessTokenUrl = accessTokenUrl; + this.__explicitlySet__.add("accessTokenUrl"); + return this; + } + /** Specifies the client ID key for specific application */ + @com.fasterxml.jackson.annotation.JsonProperty("clientId") + private String clientId; + + /** + * Specifies the client ID key for specific application + * + * @param clientId the value to set + * @return this builder + */ + public Builder clientId(String clientId) { + this.clientId = clientId; + this.__explicitlySet__.add("clientId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") + private SensitiveAttribute clientSecret; + + public Builder clientSecret(SensitiveAttribute clientSecret) { + this.clientSecret = clientSecret; + this.__explicitlySet__.add("clientSecret"); + return this; + } + /** Specifies the OAuth scopes that limit the permissions granted by an access token. */ + @com.fasterxml.jackson.annotation.JsonProperty("scope") + private String scope; + + /** + * Specifies the OAuth scopes that limit the permissions granted by an access token. + * + * @param scope the value to set + * @return this builder + */ + public Builder scope(String scope) { + this.scope = scope; + this.__explicitlySet__.add("scope"); + return this; + } + /** Specifies the OAuth2 grant mechanism. Example CLIENT_CREDENTIALS, Implicit Flow etc. */ + @com.fasterxml.jackson.annotation.JsonProperty("grantType") + private GrantType grantType; + + /** + * Specifies the OAuth2 grant mechanism. Example CLIENT_CREDENTIALS, Implicit Flow etc. + * + * @param grantType the value to set + * @return this builder + */ + public Builder grantType(GrantType grantType) { + this.grantType = grantType; + this.__explicitlySet__.add("grantType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ConnectionFromOAuth2 build() { + ConnectionFromOAuth2 model = + new ConnectionFromOAuth2( + this.key, + this.modelVersion, + this.parentRef, + this.name, + this.description, + this.objectVersion, + this.objectStatus, + this.identifier, + this.primarySchema, + this.connectionProperties, + this.isDefault, + this.metadata, + this.keyMap, + this.accessTokenUrl, + this.clientId, + this.clientSecret, + this.scope, + this.grantType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ConnectionFromOAuth2 model) { + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + if (model.wasPropertyExplicitlySet("modelVersion")) { + this.modelVersion(model.getModelVersion()); + } + if (model.wasPropertyExplicitlySet("parentRef")) { + this.parentRef(model.getParentRef()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("objectVersion")) { + this.objectVersion(model.getObjectVersion()); + } + if (model.wasPropertyExplicitlySet("objectStatus")) { + this.objectStatus(model.getObjectStatus()); + } + if (model.wasPropertyExplicitlySet("identifier")) { + this.identifier(model.getIdentifier()); + } + if (model.wasPropertyExplicitlySet("primarySchema")) { + this.primarySchema(model.getPrimarySchema()); + } + if (model.wasPropertyExplicitlySet("connectionProperties")) { + this.connectionProperties(model.getConnectionProperties()); + } + if (model.wasPropertyExplicitlySet("isDefault")) { + this.isDefault(model.getIsDefault()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + if (model.wasPropertyExplicitlySet("keyMap")) { + this.keyMap(model.getKeyMap()); + } + if (model.wasPropertyExplicitlySet("accessTokenUrl")) { + this.accessTokenUrl(model.getAccessTokenUrl()); + } + if (model.wasPropertyExplicitlySet("clientId")) { + this.clientId(model.getClientId()); + } + if (model.wasPropertyExplicitlySet("clientSecret")) { + this.clientSecret(model.getClientSecret()); + } + if (model.wasPropertyExplicitlySet("scope")) { + this.scope(model.getScope()); + } + if (model.wasPropertyExplicitlySet("grantType")) { + this.grantType(model.getGrantType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ConnectionFromOAuth2( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectVersion, + Integer objectStatus, + String identifier, + Schema primarySchema, + java.util.List connectionProperties, + Boolean isDefault, + ObjectMetadata metadata, + java.util.Map keyMap, + String accessTokenUrl, + String clientId, + SensitiveAttribute clientSecret, + String scope, + GrantType grantType) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata, + keyMap); + this.accessTokenUrl = accessTokenUrl; + this.clientId = clientId; + this.clientSecret = clientSecret; + this.scope = scope; + this.grantType = grantType; + } + + /** Specifies the endpoint used to exchange authentication credentials for access tokens */ + @com.fasterxml.jackson.annotation.JsonProperty("accessTokenUrl") + private final String accessTokenUrl; + + /** + * Specifies the endpoint used to exchange authentication credentials for access tokens + * + * @return the value + */ + public String getAccessTokenUrl() { + return accessTokenUrl; + } + + /** Specifies the client ID key for specific application */ + @com.fasterxml.jackson.annotation.JsonProperty("clientId") + private final String clientId; + + /** + * Specifies the client ID key for specific application + * + * @return the value + */ + public String getClientId() { + return clientId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") + private final SensitiveAttribute clientSecret; + + public SensitiveAttribute getClientSecret() { + return clientSecret; + } + + /** Specifies the OAuth scopes that limit the permissions granted by an access token. */ + @com.fasterxml.jackson.annotation.JsonProperty("scope") + private final String scope; + + /** + * Specifies the OAuth scopes that limit the permissions granted by an access token. + * + * @return the value + */ + public String getScope() { + return scope; + } + + /** Specifies the OAuth2 grant mechanism. Example CLIENT_CREDENTIALS, Implicit Flow etc. */ + public enum GrantType implements com.oracle.bmc.http.internal.BmcEnum { + ClientCredentials("CLIENT_CREDENTIALS"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GrantType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (GrantType v : GrantType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + GrantType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static GrantType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'GrantType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Specifies the OAuth2 grant mechanism. Example CLIENT_CREDENTIALS, Implicit Flow etc. */ + @com.fasterxml.jackson.annotation.JsonProperty("grantType") + private final GrantType grantType; + + /** + * Specifies the OAuth2 grant mechanism. Example CLIENT_CREDENTIALS, Implicit Flow etc. + * + * @return the value + */ + public GrantType getGrantType() { + return grantType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ConnectionFromOAuth2("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", accessTokenUrl=").append(String.valueOf(this.accessTokenUrl)); + sb.append(", clientId=").append(String.valueOf(this.clientId)); + sb.append(", clientSecret=").append(String.valueOf(this.clientSecret)); + sb.append(", scope=").append(String.valueOf(this.scope)); + sb.append(", grantType=").append(String.valueOf(this.grantType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ConnectionFromOAuth2)) { + return false; + } + + ConnectionFromOAuth2 other = (ConnectionFromOAuth2) o; + return java.util.Objects.equals(this.accessTokenUrl, other.accessTokenUrl) + && java.util.Objects.equals(this.clientId, other.clientId) + && java.util.Objects.equals(this.clientSecret, other.clientSecret) + && java.util.Objects.equals(this.scope, other.scope) + && java.util.Objects.equals(this.grantType, other.grantType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.accessTokenUrl == null ? 43 : this.accessTokenUrl.hashCode()); + result = (result * PRIME) + (this.clientId == null ? 43 : this.clientId.hashCode()); + result = (result * PRIME) + (this.clientSecret == null ? 43 : this.clientSecret.hashCode()); + result = (result * PRIME) + (this.scope == null ? 43 : this.scope.hashCode()); + result = (result * PRIME) + (this.grantType == null ? 43 : this.grantType.hashCode()); + return result; + } +} diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOAuth2Details.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOAuth2Details.java new file mode 100644 index 00000000000..30abc496bd2 --- /dev/null +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionFromOAuth2Details.java @@ -0,0 +1,488 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dataintegration.model; + +/** + * The connection details for a OAuth connection.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ConnectionFromOAuth2Details.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "modelType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ConnectionFromOAuth2Details extends ConnectionDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") + private String modelVersion; + + public Builder modelVersion(String modelVersion) { + this.modelVersion = modelVersion; + this.__explicitlySet__.add("modelVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") + private ParentReference parentRef; + + public Builder parentRef(ParentReference parentRef) { + this.parentRef = parentRef; + this.__explicitlySet__.add("parentRef"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("objectVersion") + private Integer objectVersion; + + public Builder objectVersion(Integer objectVersion) { + this.objectVersion = objectVersion; + this.__explicitlySet__.add("objectVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") + private Integer objectStatus; + + public Builder objectStatus(Integer objectStatus) { + this.objectStatus = objectStatus; + this.__explicitlySet__.add("objectStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("identifier") + private String identifier; + + public Builder identifier(String identifier) { + this.identifier = identifier; + this.__explicitlySet__.add("identifier"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("primarySchema") + private Schema primarySchema; + + public Builder primarySchema(Schema primarySchema) { + this.primarySchema = primarySchema; + this.__explicitlySet__.add("primarySchema"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + private java.util.List connectionProperties; + + public Builder connectionProperties( + java.util.List connectionProperties) { + this.connectionProperties = connectionProperties; + this.__explicitlySet__.add("connectionProperties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") + private Boolean isDefault; + + public Builder isDefault(Boolean isDefault) { + this.isDefault = isDefault; + this.__explicitlySet__.add("isDefault"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private ObjectMetadata metadata; + + public Builder metadata(ObjectMetadata metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + /** Specifies the endpoint used to exchange authentication credentials for access tokens */ + @com.fasterxml.jackson.annotation.JsonProperty("accessTokenUrl") + private String accessTokenUrl; + + /** + * Specifies the endpoint used to exchange authentication credentials for access tokens + * + * @param accessTokenUrl the value to set + * @return this builder + */ + public Builder accessTokenUrl(String accessTokenUrl) { + this.accessTokenUrl = accessTokenUrl; + this.__explicitlySet__.add("accessTokenUrl"); + return this; + } + /** Specifies the client ID key for specific application */ + @com.fasterxml.jackson.annotation.JsonProperty("clientId") + private String clientId; + + /** + * Specifies the client ID key for specific application + * + * @param clientId the value to set + * @return this builder + */ + public Builder clientId(String clientId) { + this.clientId = clientId; + this.__explicitlySet__.add("clientId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") + private SensitiveAttribute clientSecret; + + public Builder clientSecret(SensitiveAttribute clientSecret) { + this.clientSecret = clientSecret; + this.__explicitlySet__.add("clientSecret"); + return this; + } + /** Specifies the OAuth scopes that limit the permissions granted by an access token. */ + @com.fasterxml.jackson.annotation.JsonProperty("scope") + private String scope; + + /** + * Specifies the OAuth scopes that limit the permissions granted by an access token. + * + * @param scope the value to set + * @return this builder + */ + public Builder scope(String scope) { + this.scope = scope; + this.__explicitlySet__.add("scope"); + return this; + } + /** Specifies the OAuth2 grant mechanism. Example CLIENT_CREDENTIALS, Implicit Flow etc. */ + @com.fasterxml.jackson.annotation.JsonProperty("grantType") + private GrantType grantType; + + /** + * Specifies the OAuth2 grant mechanism. Example CLIENT_CREDENTIALS, Implicit Flow etc. + * + * @param grantType the value to set + * @return this builder + */ + public Builder grantType(GrantType grantType) { + this.grantType = grantType; + this.__explicitlySet__.add("grantType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ConnectionFromOAuth2Details build() { + ConnectionFromOAuth2Details model = + new ConnectionFromOAuth2Details( + this.key, + this.modelVersion, + this.parentRef, + this.name, + this.description, + this.objectVersion, + this.objectStatus, + this.identifier, + this.primarySchema, + this.connectionProperties, + this.isDefault, + this.metadata, + this.accessTokenUrl, + this.clientId, + this.clientSecret, + this.scope, + this.grantType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ConnectionFromOAuth2Details model) { + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + if (model.wasPropertyExplicitlySet("modelVersion")) { + this.modelVersion(model.getModelVersion()); + } + if (model.wasPropertyExplicitlySet("parentRef")) { + this.parentRef(model.getParentRef()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("objectVersion")) { + this.objectVersion(model.getObjectVersion()); + } + if (model.wasPropertyExplicitlySet("objectStatus")) { + this.objectStatus(model.getObjectStatus()); + } + if (model.wasPropertyExplicitlySet("identifier")) { + this.identifier(model.getIdentifier()); + } + if (model.wasPropertyExplicitlySet("primarySchema")) { + this.primarySchema(model.getPrimarySchema()); + } + if (model.wasPropertyExplicitlySet("connectionProperties")) { + this.connectionProperties(model.getConnectionProperties()); + } + if (model.wasPropertyExplicitlySet("isDefault")) { + this.isDefault(model.getIsDefault()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + if (model.wasPropertyExplicitlySet("accessTokenUrl")) { + this.accessTokenUrl(model.getAccessTokenUrl()); + } + if (model.wasPropertyExplicitlySet("clientId")) { + this.clientId(model.getClientId()); + } + if (model.wasPropertyExplicitlySet("clientSecret")) { + this.clientSecret(model.getClientSecret()); + } + if (model.wasPropertyExplicitlySet("scope")) { + this.scope(model.getScope()); + } + if (model.wasPropertyExplicitlySet("grantType")) { + this.grantType(model.getGrantType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ConnectionFromOAuth2Details( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectVersion, + Integer objectStatus, + String identifier, + Schema primarySchema, + java.util.List connectionProperties, + Boolean isDefault, + ObjectMetadata metadata, + String accessTokenUrl, + String clientId, + SensitiveAttribute clientSecret, + String scope, + GrantType grantType) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata); + this.accessTokenUrl = accessTokenUrl; + this.clientId = clientId; + this.clientSecret = clientSecret; + this.scope = scope; + this.grantType = grantType; + } + + /** Specifies the endpoint used to exchange authentication credentials for access tokens */ + @com.fasterxml.jackson.annotation.JsonProperty("accessTokenUrl") + private final String accessTokenUrl; + + /** + * Specifies the endpoint used to exchange authentication credentials for access tokens + * + * @return the value + */ + public String getAccessTokenUrl() { + return accessTokenUrl; + } + + /** Specifies the client ID key for specific application */ + @com.fasterxml.jackson.annotation.JsonProperty("clientId") + private final String clientId; + + /** + * Specifies the client ID key for specific application + * + * @return the value + */ + public String getClientId() { + return clientId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") + private final SensitiveAttribute clientSecret; + + public SensitiveAttribute getClientSecret() { + return clientSecret; + } + + /** Specifies the OAuth scopes that limit the permissions granted by an access token. */ + @com.fasterxml.jackson.annotation.JsonProperty("scope") + private final String scope; + + /** + * Specifies the OAuth scopes that limit the permissions granted by an access token. + * + * @return the value + */ + public String getScope() { + return scope; + } + + /** Specifies the OAuth2 grant mechanism. Example CLIENT_CREDENTIALS, Implicit Flow etc. */ + public enum GrantType implements com.oracle.bmc.http.internal.BmcEnum { + ClientCredentials("CLIENT_CREDENTIALS"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (GrantType v : GrantType.values()) { + map.put(v.getValue(), v); + } + } + + GrantType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static GrantType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid GrantType: " + key); + } + }; + /** Specifies the OAuth2 grant mechanism. Example CLIENT_CREDENTIALS, Implicit Flow etc. */ + @com.fasterxml.jackson.annotation.JsonProperty("grantType") + private final GrantType grantType; + + /** + * Specifies the OAuth2 grant mechanism. Example CLIENT_CREDENTIALS, Implicit Flow etc. + * + * @return the value + */ + public GrantType getGrantType() { + return grantType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ConnectionFromOAuth2Details("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", accessTokenUrl=").append(String.valueOf(this.accessTokenUrl)); + sb.append(", clientId=").append(String.valueOf(this.clientId)); + sb.append(", clientSecret=").append(String.valueOf(this.clientSecret)); + sb.append(", scope=").append(String.valueOf(this.scope)); + sb.append(", grantType=").append(String.valueOf(this.grantType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ConnectionFromOAuth2Details)) { + return false; + } + + ConnectionFromOAuth2Details other = (ConnectionFromOAuth2Details) o; + return java.util.Objects.equals(this.accessTokenUrl, other.accessTokenUrl) + && java.util.Objects.equals(this.clientId, other.clientId) + && java.util.Objects.equals(this.clientSecret, other.clientSecret) + && java.util.Objects.equals(this.scope, other.scope) + && java.util.Objects.equals(this.grantType, other.grantType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.accessTokenUrl == null ? 43 : this.accessTokenUrl.hashCode()); + result = (result * PRIME) + (this.clientId == null ? 43 : this.clientId.hashCode()); + result = (result * PRIME) + (this.clientSecret == null ? 43 : this.clientSecret.hashCode()); + result = (result * PRIME) + (this.scope == null ? 43 : this.scope.hashCode()); + result = (result * PRIME) + (this.grantType == null ? 43 : this.grantType.hashCode()); + return result; + } +} diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummary.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummary.java index 0613a036987..d8f792725c6 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummary.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummary.java @@ -40,6 +40,9 @@ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = ConnectionSummaryFromAmazonS3.class, name = "AMAZON_S3_CONNECTION"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ConnectionSummaryFromOAuth2.class, + name = "OAUTH2_CONNECTION"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = ConnectionSummaryFromOraclePeopleSoft.class, name = "ORACLE_PEOPLESOFT_CONNECTION"), @@ -400,6 +403,7 @@ public enum ModelType implements com.oracle.bmc.http.internal.BmcEnum { MysqlHeatwaveConnection("MYSQL_HEATWAVE_CONNECTION"), RestNoAuthConnection("REST_NO_AUTH_CONNECTION"), RestBasicAuthConnection("REST_BASIC_AUTH_CONNECTION"), + Oauth2Connection("OAUTH2_CONNECTION"), /** * This value is used if a service returns a value for this enum that is not recognized by diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromOAuth2.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromOAuth2.java new file mode 100644 index 00000000000..d51d1cc3ae5 --- /dev/null +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ConnectionSummaryFromOAuth2.java @@ -0,0 +1,516 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dataintegration.model; + +/** + * The connection summary for a OAuth connection.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ConnectionSummaryFromOAuth2.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "modelType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ConnectionSummaryFromOAuth2 extends ConnectionSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") + private String modelVersion; + + public Builder modelVersion(String modelVersion) { + this.modelVersion = modelVersion; + this.__explicitlySet__.add("modelVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") + private ParentReference parentRef; + + public Builder parentRef(ParentReference parentRef) { + this.parentRef = parentRef; + this.__explicitlySet__.add("parentRef"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("objectVersion") + private Integer objectVersion; + + public Builder objectVersion(Integer objectVersion) { + this.objectVersion = objectVersion; + this.__explicitlySet__.add("objectVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") + private Integer objectStatus; + + public Builder objectStatus(Integer objectStatus) { + this.objectStatus = objectStatus; + this.__explicitlySet__.add("objectStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("identifier") + private String identifier; + + public Builder identifier(String identifier) { + this.identifier = identifier; + this.__explicitlySet__.add("identifier"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("primarySchema") + private Schema primarySchema; + + public Builder primarySchema(Schema primarySchema) { + this.primarySchema = primarySchema; + this.__explicitlySet__.add("primarySchema"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + private java.util.List connectionProperties; + + public Builder connectionProperties( + java.util.List connectionProperties) { + this.connectionProperties = connectionProperties; + this.__explicitlySet__.add("connectionProperties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") + private Boolean isDefault; + + public Builder isDefault(Boolean isDefault) { + this.isDefault = isDefault; + this.__explicitlySet__.add("isDefault"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private ObjectMetadata metadata; + + public Builder metadata(ObjectMetadata metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("keyMap") + private java.util.Map keyMap; + + public Builder keyMap(java.util.Map keyMap) { + this.keyMap = keyMap; + this.__explicitlySet__.add("keyMap"); + return this; + } + /** Specifies the endpoint used to exchange authentication credentials for access tokens */ + @com.fasterxml.jackson.annotation.JsonProperty("accessTokenUrl") + private String accessTokenUrl; + + /** + * Specifies the endpoint used to exchange authentication credentials for access tokens + * + * @param accessTokenUrl the value to set + * @return this builder + */ + public Builder accessTokenUrl(String accessTokenUrl) { + this.accessTokenUrl = accessTokenUrl; + this.__explicitlySet__.add("accessTokenUrl"); + return this; + } + /** Specifies the client ID key for specific application */ + @com.fasterxml.jackson.annotation.JsonProperty("clientId") + private String clientId; + + /** + * Specifies the client ID key for specific application + * + * @param clientId the value to set + * @return this builder + */ + public Builder clientId(String clientId) { + this.clientId = clientId; + this.__explicitlySet__.add("clientId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") + private SensitiveAttribute clientSecret; + + public Builder clientSecret(SensitiveAttribute clientSecret) { + this.clientSecret = clientSecret; + this.__explicitlySet__.add("clientSecret"); + return this; + } + /** Specifies the OAuth scopes that limit the permissions granted by an access token. */ + @com.fasterxml.jackson.annotation.JsonProperty("scope") + private String scope; + + /** + * Specifies the OAuth scopes that limit the permissions granted by an access token. + * + * @param scope the value to set + * @return this builder + */ + public Builder scope(String scope) { + this.scope = scope; + this.__explicitlySet__.add("scope"); + return this; + } + /** Specifies the OAuth2 grant mechanism. Example CLIENT_CREDENTIALS, Implicit Flow etc. */ + @com.fasterxml.jackson.annotation.JsonProperty("grantType") + private GrantType grantType; + + /** + * Specifies the OAuth2 grant mechanism. Example CLIENT_CREDENTIALS, Implicit Flow etc. + * + * @param grantType the value to set + * @return this builder + */ + public Builder grantType(GrantType grantType) { + this.grantType = grantType; + this.__explicitlySet__.add("grantType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ConnectionSummaryFromOAuth2 build() { + ConnectionSummaryFromOAuth2 model = + new ConnectionSummaryFromOAuth2( + this.key, + this.modelVersion, + this.parentRef, + this.name, + this.description, + this.objectVersion, + this.objectStatus, + this.identifier, + this.primarySchema, + this.connectionProperties, + this.isDefault, + this.metadata, + this.keyMap, + this.accessTokenUrl, + this.clientId, + this.clientSecret, + this.scope, + this.grantType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ConnectionSummaryFromOAuth2 model) { + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + if (model.wasPropertyExplicitlySet("modelVersion")) { + this.modelVersion(model.getModelVersion()); + } + if (model.wasPropertyExplicitlySet("parentRef")) { + this.parentRef(model.getParentRef()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("objectVersion")) { + this.objectVersion(model.getObjectVersion()); + } + if (model.wasPropertyExplicitlySet("objectStatus")) { + this.objectStatus(model.getObjectStatus()); + } + if (model.wasPropertyExplicitlySet("identifier")) { + this.identifier(model.getIdentifier()); + } + if (model.wasPropertyExplicitlySet("primarySchema")) { + this.primarySchema(model.getPrimarySchema()); + } + if (model.wasPropertyExplicitlySet("connectionProperties")) { + this.connectionProperties(model.getConnectionProperties()); + } + if (model.wasPropertyExplicitlySet("isDefault")) { + this.isDefault(model.getIsDefault()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + if (model.wasPropertyExplicitlySet("keyMap")) { + this.keyMap(model.getKeyMap()); + } + if (model.wasPropertyExplicitlySet("accessTokenUrl")) { + this.accessTokenUrl(model.getAccessTokenUrl()); + } + if (model.wasPropertyExplicitlySet("clientId")) { + this.clientId(model.getClientId()); + } + if (model.wasPropertyExplicitlySet("clientSecret")) { + this.clientSecret(model.getClientSecret()); + } + if (model.wasPropertyExplicitlySet("scope")) { + this.scope(model.getScope()); + } + if (model.wasPropertyExplicitlySet("grantType")) { + this.grantType(model.getGrantType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ConnectionSummaryFromOAuth2( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectVersion, + Integer objectStatus, + String identifier, + Schema primarySchema, + java.util.List connectionProperties, + Boolean isDefault, + ObjectMetadata metadata, + java.util.Map keyMap, + String accessTokenUrl, + String clientId, + SensitiveAttribute clientSecret, + String scope, + GrantType grantType) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectVersion, + objectStatus, + identifier, + primarySchema, + connectionProperties, + isDefault, + metadata, + keyMap); + this.accessTokenUrl = accessTokenUrl; + this.clientId = clientId; + this.clientSecret = clientSecret; + this.scope = scope; + this.grantType = grantType; + } + + /** Specifies the endpoint used to exchange authentication credentials for access tokens */ + @com.fasterxml.jackson.annotation.JsonProperty("accessTokenUrl") + private final String accessTokenUrl; + + /** + * Specifies the endpoint used to exchange authentication credentials for access tokens + * + * @return the value + */ + public String getAccessTokenUrl() { + return accessTokenUrl; + } + + /** Specifies the client ID key for specific application */ + @com.fasterxml.jackson.annotation.JsonProperty("clientId") + private final String clientId; + + /** + * Specifies the client ID key for specific application + * + * @return the value + */ + public String getClientId() { + return clientId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") + private final SensitiveAttribute clientSecret; + + public SensitiveAttribute getClientSecret() { + return clientSecret; + } + + /** Specifies the OAuth scopes that limit the permissions granted by an access token. */ + @com.fasterxml.jackson.annotation.JsonProperty("scope") + private final String scope; + + /** + * Specifies the OAuth scopes that limit the permissions granted by an access token. + * + * @return the value + */ + public String getScope() { + return scope; + } + + /** Specifies the OAuth2 grant mechanism. Example CLIENT_CREDENTIALS, Implicit Flow etc. */ + public enum GrantType implements com.oracle.bmc.http.internal.BmcEnum { + ClientCredentials("CLIENT_CREDENTIALS"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GrantType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (GrantType v : GrantType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + GrantType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static GrantType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'GrantType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Specifies the OAuth2 grant mechanism. Example CLIENT_CREDENTIALS, Implicit Flow etc. */ + @com.fasterxml.jackson.annotation.JsonProperty("grantType") + private final GrantType grantType; + + /** + * Specifies the OAuth2 grant mechanism. Example CLIENT_CREDENTIALS, Implicit Flow etc. + * + * @return the value + */ + public GrantType getGrantType() { + return grantType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ConnectionSummaryFromOAuth2("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", accessTokenUrl=").append(String.valueOf(this.accessTokenUrl)); + sb.append(", clientId=").append(String.valueOf(this.clientId)); + sb.append(", clientSecret=").append(String.valueOf(this.clientSecret)); + sb.append(", scope=").append(String.valueOf(this.scope)); + sb.append(", grantType=").append(String.valueOf(this.grantType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ConnectionSummaryFromOAuth2)) { + return false; + } + + ConnectionSummaryFromOAuth2 other = (ConnectionSummaryFromOAuth2) o; + return java.util.Objects.equals(this.accessTokenUrl, other.accessTokenUrl) + && java.util.Objects.equals(this.clientId, other.clientId) + && java.util.Objects.equals(this.clientSecret, other.clientSecret) + && java.util.Objects.equals(this.scope, other.scope) + && java.util.Objects.equals(this.grantType, other.grantType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.accessTokenUrl == null ? 43 : this.accessTokenUrl.hashCode()); + result = (result * PRIME) + (this.clientId == null ? 43 : this.clientId.hashCode()); + result = (result * PRIME) + (this.clientSecret == null ? 43 : this.clientSecret.hashCode()); + result = (result * PRIME) + (this.scope == null ? 43 : this.scope.hashCode()); + result = (result * PRIME) + (this.grantType == null ? 43 : this.grantType.hashCode()); + return result; + } +} diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionDetails.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionDetails.java index f09be04616b..c99fab8c4d9 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionDetails.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionDetails.java @@ -61,6 +61,9 @@ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = CreateConnectionFromBIP.class, name = "BIP_CONNECTION"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateConnectionFromOAuth2.class, + name = "OAUTH2_CONNECTION"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = CreateConnectionFromAdwc.class, name = "ORACLE_ADWC_CONNECTION"), @@ -325,6 +328,7 @@ public enum ModelType implements com.oracle.bmc.http.internal.BmcEnum { MysqlHeatwaveConnection("MYSQL_HEATWAVE_CONNECTION"), RestNoAuthConnection("REST_NO_AUTH_CONNECTION"), RestBasicAuthConnection("REST_BASIC_AUTH_CONNECTION"), + Oauth2Connection("OAUTH2_CONNECTION"), ; private final String value; diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromOAuth2.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromOAuth2.java new file mode 100644 index 00000000000..56a66f27c19 --- /dev/null +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateConnectionFromOAuth2.java @@ -0,0 +1,443 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dataintegration.model; + +/** + * The details to create a OAuth2 connection
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateConnectionFromOAuth2.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "modelType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateConnectionFromOAuth2 extends CreateConnectionDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") + private String modelVersion; + + public Builder modelVersion(String modelVersion) { + this.modelVersion = modelVersion; + this.__explicitlySet__.add("modelVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") + private ParentReference parentRef; + + public Builder parentRef(ParentReference parentRef) { + this.parentRef = parentRef; + this.__explicitlySet__.add("parentRef"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") + private Integer objectStatus; + + public Builder objectStatus(Integer objectStatus) { + this.objectStatus = objectStatus; + this.__explicitlySet__.add("objectStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("identifier") + private String identifier; + + public Builder identifier(String identifier) { + this.identifier = identifier; + this.__explicitlySet__.add("identifier"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + private java.util.List connectionProperties; + + public Builder connectionProperties( + java.util.List connectionProperties) { + this.connectionProperties = connectionProperties; + this.__explicitlySet__.add("connectionProperties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("registryMetadata") + private RegistryMetadata registryMetadata; + + public Builder registryMetadata(RegistryMetadata registryMetadata) { + this.registryMetadata = registryMetadata; + this.__explicitlySet__.add("registryMetadata"); + return this; + } + /** Specifies the endpoint used to exchange authentication credentials for access tokens */ + @com.fasterxml.jackson.annotation.JsonProperty("accessTokenUrl") + private String accessTokenUrl; + + /** + * Specifies the endpoint used to exchange authentication credentials for access tokens + * + * @param accessTokenUrl the value to set + * @return this builder + */ + public Builder accessTokenUrl(String accessTokenUrl) { + this.accessTokenUrl = accessTokenUrl; + this.__explicitlySet__.add("accessTokenUrl"); + return this; + } + /** Specifies the client ID key for specific application */ + @com.fasterxml.jackson.annotation.JsonProperty("clientId") + private String clientId; + + /** + * Specifies the client ID key for specific application + * + * @param clientId the value to set + * @return this builder + */ + public Builder clientId(String clientId) { + this.clientId = clientId; + this.__explicitlySet__.add("clientId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") + private SensitiveAttribute clientSecret; + + public Builder clientSecret(SensitiveAttribute clientSecret) { + this.clientSecret = clientSecret; + this.__explicitlySet__.add("clientSecret"); + return this; + } + /** Specifies the OAuth scopes that limit the permissions granted by an access token. */ + @com.fasterxml.jackson.annotation.JsonProperty("scope") + private String scope; + + /** + * Specifies the OAuth scopes that limit the permissions granted by an access token. + * + * @param scope the value to set + * @return this builder + */ + public Builder scope(String scope) { + this.scope = scope; + this.__explicitlySet__.add("scope"); + return this; + } + /** Specifies the OAuth2 grant mechanism. Example CLIENT_CREDENTIALS, Implicit Flow etc. */ + @com.fasterxml.jackson.annotation.JsonProperty("grantType") + private GrantType grantType; + + /** + * Specifies the OAuth2 grant mechanism. Example CLIENT_CREDENTIALS, Implicit Flow etc. + * + * @param grantType the value to set + * @return this builder + */ + public Builder grantType(GrantType grantType) { + this.grantType = grantType; + this.__explicitlySet__.add("grantType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateConnectionFromOAuth2 build() { + CreateConnectionFromOAuth2 model = + new CreateConnectionFromOAuth2( + this.key, + this.modelVersion, + this.parentRef, + this.name, + this.description, + this.objectStatus, + this.identifier, + this.connectionProperties, + this.registryMetadata, + this.accessTokenUrl, + this.clientId, + this.clientSecret, + this.scope, + this.grantType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateConnectionFromOAuth2 model) { + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + if (model.wasPropertyExplicitlySet("modelVersion")) { + this.modelVersion(model.getModelVersion()); + } + if (model.wasPropertyExplicitlySet("parentRef")) { + this.parentRef(model.getParentRef()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("objectStatus")) { + this.objectStatus(model.getObjectStatus()); + } + if (model.wasPropertyExplicitlySet("identifier")) { + this.identifier(model.getIdentifier()); + } + if (model.wasPropertyExplicitlySet("connectionProperties")) { + this.connectionProperties(model.getConnectionProperties()); + } + if (model.wasPropertyExplicitlySet("registryMetadata")) { + this.registryMetadata(model.getRegistryMetadata()); + } + if (model.wasPropertyExplicitlySet("accessTokenUrl")) { + this.accessTokenUrl(model.getAccessTokenUrl()); + } + if (model.wasPropertyExplicitlySet("clientId")) { + this.clientId(model.getClientId()); + } + if (model.wasPropertyExplicitlySet("clientSecret")) { + this.clientSecret(model.getClientSecret()); + } + if (model.wasPropertyExplicitlySet("scope")) { + this.scope(model.getScope()); + } + if (model.wasPropertyExplicitlySet("grantType")) { + this.grantType(model.getGrantType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateConnectionFromOAuth2( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectStatus, + String identifier, + java.util.List connectionProperties, + RegistryMetadata registryMetadata, + String accessTokenUrl, + String clientId, + SensitiveAttribute clientSecret, + String scope, + GrantType grantType) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectStatus, + identifier, + connectionProperties, + registryMetadata); + this.accessTokenUrl = accessTokenUrl; + this.clientId = clientId; + this.clientSecret = clientSecret; + this.scope = scope; + this.grantType = grantType; + } + + /** Specifies the endpoint used to exchange authentication credentials for access tokens */ + @com.fasterxml.jackson.annotation.JsonProperty("accessTokenUrl") + private final String accessTokenUrl; + + /** + * Specifies the endpoint used to exchange authentication credentials for access tokens + * + * @return the value + */ + public String getAccessTokenUrl() { + return accessTokenUrl; + } + + /** Specifies the client ID key for specific application */ + @com.fasterxml.jackson.annotation.JsonProperty("clientId") + private final String clientId; + + /** + * Specifies the client ID key for specific application + * + * @return the value + */ + public String getClientId() { + return clientId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") + private final SensitiveAttribute clientSecret; + + public SensitiveAttribute getClientSecret() { + return clientSecret; + } + + /** Specifies the OAuth scopes that limit the permissions granted by an access token. */ + @com.fasterxml.jackson.annotation.JsonProperty("scope") + private final String scope; + + /** + * Specifies the OAuth scopes that limit the permissions granted by an access token. + * + * @return the value + */ + public String getScope() { + return scope; + } + + /** Specifies the OAuth2 grant mechanism. Example CLIENT_CREDENTIALS, Implicit Flow etc. */ + public enum GrantType implements com.oracle.bmc.http.internal.BmcEnum { + ClientCredentials("CLIENT_CREDENTIALS"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (GrantType v : GrantType.values()) { + map.put(v.getValue(), v); + } + } + + GrantType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static GrantType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid GrantType: " + key); + } + }; + /** Specifies the OAuth2 grant mechanism. Example CLIENT_CREDENTIALS, Implicit Flow etc. */ + @com.fasterxml.jackson.annotation.JsonProperty("grantType") + private final GrantType grantType; + + /** + * Specifies the OAuth2 grant mechanism. Example CLIENT_CREDENTIALS, Implicit Flow etc. + * + * @return the value + */ + public GrantType getGrantType() { + return grantType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateConnectionFromOAuth2("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", accessTokenUrl=").append(String.valueOf(this.accessTokenUrl)); + sb.append(", clientId=").append(String.valueOf(this.clientId)); + sb.append(", clientSecret=").append(String.valueOf(this.clientSecret)); + sb.append(", scope=").append(String.valueOf(this.scope)); + sb.append(", grantType=").append(String.valueOf(this.grantType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateConnectionFromOAuth2)) { + return false; + } + + CreateConnectionFromOAuth2 other = (CreateConnectionFromOAuth2) o; + return java.util.Objects.equals(this.accessTokenUrl, other.accessTokenUrl) + && java.util.Objects.equals(this.clientId, other.clientId) + && java.util.Objects.equals(this.clientSecret, other.clientSecret) + && java.util.Objects.equals(this.scope, other.scope) + && java.util.Objects.equals(this.grantType, other.grantType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.accessTokenUrl == null ? 43 : this.accessTokenUrl.hashCode()); + result = (result * PRIME) + (this.clientId == null ? 43 : this.clientId.hashCode()); + result = (result * PRIME) + (this.clientSecret == null ? 43 : this.clientSecret.hashCode()); + result = (result * PRIME) + (this.scope == null ? 43 : this.scope.hashCode()); + result = (result * PRIME) + (this.grantType == null ? 43 : this.grantType.hashCode()); + return result; + } +} diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateImportRequestDetails.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateImportRequestDetails.java index 5a2fbc70083..936daac137a 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateImportRequestDetails.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateImportRequestDetails.java @@ -29,6 +29,7 @@ public final class CreateImportRequestDetails "objectStorageTenancyId", "objectStorageRegion", "objectKeyForImport", + "areDataAssetReferencesIncluded", "importConflictResolution" }) public CreateImportRequestDetails( @@ -37,6 +38,7 @@ public CreateImportRequestDetails( String objectStorageTenancyId, String objectStorageRegion, String objectKeyForImport, + Boolean areDataAssetReferencesIncluded, ImportConflictResolution importConflictResolution) { super(); this.bucketName = bucketName; @@ -44,6 +46,7 @@ public CreateImportRequestDetails( this.objectStorageTenancyId = objectStorageTenancyId; this.objectStorageRegion = objectStorageRegion; this.objectKeyForImport = objectKeyForImport; + this.areDataAssetReferencesIncluded = areDataAssetReferencesIncluded; this.importConflictResolution = importConflictResolution; } @@ -128,6 +131,21 @@ public Builder objectKeyForImport(String objectKeyForImport) { this.__explicitlySet__.add("objectKeyForImport"); return this; } + /** This field controls if the data asset references will be included during import. */ + @com.fasterxml.jackson.annotation.JsonProperty("areDataAssetReferencesIncluded") + private Boolean areDataAssetReferencesIncluded; + + /** + * This field controls if the data asset references will be included during import. + * + * @param areDataAssetReferencesIncluded the value to set + * @return this builder + */ + public Builder areDataAssetReferencesIncluded(Boolean areDataAssetReferencesIncluded) { + this.areDataAssetReferencesIncluded = areDataAssetReferencesIncluded; + this.__explicitlySet__.add("areDataAssetReferencesIncluded"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("importConflictResolution") private ImportConflictResolution importConflictResolution; @@ -149,6 +167,7 @@ public CreateImportRequestDetails build() { this.objectStorageTenancyId, this.objectStorageRegion, this.objectKeyForImport, + this.areDataAssetReferencesIncluded, this.importConflictResolution); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -173,6 +192,9 @@ public Builder copy(CreateImportRequestDetails model) { if (model.wasPropertyExplicitlySet("objectKeyForImport")) { this.objectKeyForImport(model.getObjectKeyForImport()); } + if (model.wasPropertyExplicitlySet("areDataAssetReferencesIncluded")) { + this.areDataAssetReferencesIncluded(model.getAreDataAssetReferencesIncluded()); + } if (model.wasPropertyExplicitlySet("importConflictResolution")) { this.importConflictResolution(model.getImportConflictResolution()); } @@ -258,6 +280,19 @@ public String getObjectKeyForImport() { return objectKeyForImport; } + /** This field controls if the data asset references will be included during import. */ + @com.fasterxml.jackson.annotation.JsonProperty("areDataAssetReferencesIncluded") + private final Boolean areDataAssetReferencesIncluded; + + /** + * This field controls if the data asset references will be included during import. + * + * @return the value + */ + public Boolean getAreDataAssetReferencesIncluded() { + return areDataAssetReferencesIncluded; + } + @com.fasterxml.jackson.annotation.JsonProperty("importConflictResolution") private final ImportConflictResolution importConflictResolution; @@ -285,6 +320,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", objectStorageTenancyId=").append(String.valueOf(this.objectStorageTenancyId)); sb.append(", objectStorageRegion=").append(String.valueOf(this.objectStorageRegion)); sb.append(", objectKeyForImport=").append(String.valueOf(this.objectKeyForImport)); + sb.append(", areDataAssetReferencesIncluded=") + .append(String.valueOf(this.areDataAssetReferencesIncluded)); sb.append(", importConflictResolution=") .append(String.valueOf(this.importConflictResolution)); sb.append(")"); @@ -307,6 +344,8 @@ public boolean equals(Object o) { this.objectStorageTenancyId, other.objectStorageTenancyId) && java.util.Objects.equals(this.objectStorageRegion, other.objectStorageRegion) && java.util.Objects.equals(this.objectKeyForImport, other.objectKeyForImport) + && java.util.Objects.equals( + this.areDataAssetReferencesIncluded, other.areDataAssetReferencesIncluded) && java.util.Objects.equals( this.importConflictResolution, other.importConflictResolution) && super.equals(other); @@ -333,6 +372,11 @@ public int hashCode() { + (this.objectKeyForImport == null ? 43 : this.objectKeyForImport.hashCode()); + result = + (result * PRIME) + + (this.areDataAssetReferencesIncluded == null + ? 43 + : this.areDataAssetReferencesIncluded.hashCode()); result = (result * PRIME) + (this.importConflictResolution == null diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ImportObjectMetadataSummary.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ImportObjectMetadataSummary.java index cd85253cd3e..ffcfc47b5ca 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ImportObjectMetadataSummary.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ImportObjectMetadataSummary.java @@ -402,6 +402,7 @@ public enum ResolutionAction implements com.oracle.bmc.http.internal.BmcEnum { Retained("RETAINED"), Duplicated("DUPLICATED"), Replaced("REPLACED"), + Excluded("EXCLUDED"), /** * This value is used if a service returns a value for this enum that is not recognized by diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ImportRequest.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ImportRequest.java index a21e0443cc4..00b04747f48 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ImportRequest.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ImportRequest.java @@ -28,6 +28,7 @@ public final class ImportRequest extends com.oracle.bmc.http.client.internal.Exp "objectStorageTenancyId", "objectStorageRegion", "objectKeyForImport", + "areDataAssetReferencesIncluded", "importConflictResolution", "status", "createdBy", @@ -45,6 +46,7 @@ public ImportRequest( String objectStorageTenancyId, String objectStorageRegion, String objectKeyForImport, + Boolean areDataAssetReferencesIncluded, ImportConflictResolution importConflictResolution, Status status, String createdBy, @@ -61,6 +63,7 @@ public ImportRequest( this.objectStorageTenancyId = objectStorageTenancyId; this.objectStorageRegion = objectStorageRegion; this.objectKeyForImport = objectKeyForImport; + this.areDataAssetReferencesIncluded = areDataAssetReferencesIncluded; this.importConflictResolution = importConflictResolution; this.status = status; this.createdBy = createdBy; @@ -168,6 +171,21 @@ public Builder objectKeyForImport(String objectKeyForImport) { this.__explicitlySet__.add("objectKeyForImport"); return this; } + /** This field controls if the data asset references will be included during import. */ + @com.fasterxml.jackson.annotation.JsonProperty("areDataAssetReferencesIncluded") + private Boolean areDataAssetReferencesIncluded; + + /** + * This field controls if the data asset references will be included during import. + * + * @param areDataAssetReferencesIncluded the value to set + * @return this builder + */ + public Builder areDataAssetReferencesIncluded(Boolean areDataAssetReferencesIncluded) { + this.areDataAssetReferencesIncluded = areDataAssetReferencesIncluded; + this.__explicitlySet__.add("areDataAssetReferencesIncluded"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("importConflictResolution") private ImportConflictResolution importConflictResolution; @@ -311,6 +329,7 @@ public ImportRequest build() { this.objectStorageTenancyId, this.objectStorageRegion, this.objectKeyForImport, + this.areDataAssetReferencesIncluded, this.importConflictResolution, this.status, this.createdBy, @@ -346,6 +365,9 @@ public Builder copy(ImportRequest model) { if (model.wasPropertyExplicitlySet("objectKeyForImport")) { this.objectKeyForImport(model.getObjectKeyForImport()); } + if (model.wasPropertyExplicitlySet("areDataAssetReferencesIncluded")) { + this.areDataAssetReferencesIncluded(model.getAreDataAssetReferencesIncluded()); + } if (model.wasPropertyExplicitlySet("importConflictResolution")) { this.importConflictResolution(model.getImportConflictResolution()); } @@ -468,6 +490,19 @@ public String getObjectKeyForImport() { return objectKeyForImport; } + /** This field controls if the data asset references will be included during import. */ + @com.fasterxml.jackson.annotation.JsonProperty("areDataAssetReferencesIncluded") + private final Boolean areDataAssetReferencesIncluded; + + /** + * This field controls if the data asset references will be included during import. + * + * @return the value + */ + public Boolean getAreDataAssetReferencesIncluded() { + return areDataAssetReferencesIncluded; + } + @com.fasterxml.jackson.annotation.JsonProperty("importConflictResolution") private final ImportConflictResolution importConflictResolution; @@ -649,6 +684,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", objectStorageTenancyId=").append(String.valueOf(this.objectStorageTenancyId)); sb.append(", objectStorageRegion=").append(String.valueOf(this.objectStorageRegion)); sb.append(", objectKeyForImport=").append(String.valueOf(this.objectKeyForImport)); + sb.append(", areDataAssetReferencesIncluded=") + .append(String.valueOf(this.areDataAssetReferencesIncluded)); sb.append(", importConflictResolution=") .append(String.valueOf(this.importConflictResolution)); sb.append(", status=").append(String.valueOf(this.status)); @@ -681,6 +718,8 @@ public boolean equals(Object o) { this.objectStorageTenancyId, other.objectStorageTenancyId) && java.util.Objects.equals(this.objectStorageRegion, other.objectStorageRegion) && java.util.Objects.equals(this.objectKeyForImport, other.objectKeyForImport) + && java.util.Objects.equals( + this.areDataAssetReferencesIncluded, other.areDataAssetReferencesIncluded) && java.util.Objects.equals( this.importConflictResolution, other.importConflictResolution) && java.util.Objects.equals(this.status, other.status) @@ -717,6 +756,11 @@ public int hashCode() { + (this.objectKeyForImport == null ? 43 : this.objectKeyForImport.hashCode()); + result = + (result * PRIME) + + (this.areDataAssetReferencesIncluded == null + ? 43 + : this.areDataAssetReferencesIncluded.hashCode()); result = (result * PRIME) + (this.importConflictResolution == null diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ImportRequestSummary.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ImportRequestSummary.java index dcb8847545e..aaa68ada782 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ImportRequestSummary.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/ImportRequestSummary.java @@ -30,6 +30,7 @@ public final class ImportRequestSummary "objectStorageTenancyId", "objectStorageRegion", "objectKeyForImport", + "areDataAssetReferencesIncluded", "importConflictResolution", "status", "createdBy", @@ -47,6 +48,7 @@ public ImportRequestSummary( String objectStorageTenancyId, String objectStorageRegion, String objectKeyForImport, + Boolean areDataAssetReferencesIncluded, ImportConflictResolution importConflictResolution, Status status, String createdBy, @@ -63,6 +65,7 @@ public ImportRequestSummary( this.objectStorageTenancyId = objectStorageTenancyId; this.objectStorageRegion = objectStorageRegion; this.objectKeyForImport = objectKeyForImport; + this.areDataAssetReferencesIncluded = areDataAssetReferencesIncluded; this.importConflictResolution = importConflictResolution; this.status = status; this.createdBy = createdBy; @@ -170,6 +173,21 @@ public Builder objectKeyForImport(String objectKeyForImport) { this.__explicitlySet__.add("objectKeyForImport"); return this; } + /** This field controls if the data asset references will be included during import. */ + @com.fasterxml.jackson.annotation.JsonProperty("areDataAssetReferencesIncluded") + private Boolean areDataAssetReferencesIncluded; + + /** + * This field controls if the data asset references will be included during import. + * + * @param areDataAssetReferencesIncluded the value to set + * @return this builder + */ + public Builder areDataAssetReferencesIncluded(Boolean areDataAssetReferencesIncluded) { + this.areDataAssetReferencesIncluded = areDataAssetReferencesIncluded; + this.__explicitlySet__.add("areDataAssetReferencesIncluded"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("importConflictResolution") private ImportConflictResolution importConflictResolution; @@ -313,6 +331,7 @@ public ImportRequestSummary build() { this.objectStorageTenancyId, this.objectStorageRegion, this.objectKeyForImport, + this.areDataAssetReferencesIncluded, this.importConflictResolution, this.status, this.createdBy, @@ -348,6 +367,9 @@ public Builder copy(ImportRequestSummary model) { if (model.wasPropertyExplicitlySet("objectKeyForImport")) { this.objectKeyForImport(model.getObjectKeyForImport()); } + if (model.wasPropertyExplicitlySet("areDataAssetReferencesIncluded")) { + this.areDataAssetReferencesIncluded(model.getAreDataAssetReferencesIncluded()); + } if (model.wasPropertyExplicitlySet("importConflictResolution")) { this.importConflictResolution(model.getImportConflictResolution()); } @@ -470,6 +492,19 @@ public String getObjectKeyForImport() { return objectKeyForImport; } + /** This field controls if the data asset references will be included during import. */ + @com.fasterxml.jackson.annotation.JsonProperty("areDataAssetReferencesIncluded") + private final Boolean areDataAssetReferencesIncluded; + + /** + * This field controls if the data asset references will be included during import. + * + * @return the value + */ + public Boolean getAreDataAssetReferencesIncluded() { + return areDataAssetReferencesIncluded; + } + @com.fasterxml.jackson.annotation.JsonProperty("importConflictResolution") private final ImportConflictResolution importConflictResolution; @@ -651,6 +686,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", objectStorageTenancyId=").append(String.valueOf(this.objectStorageTenancyId)); sb.append(", objectStorageRegion=").append(String.valueOf(this.objectStorageRegion)); sb.append(", objectKeyForImport=").append(String.valueOf(this.objectKeyForImport)); + sb.append(", areDataAssetReferencesIncluded=") + .append(String.valueOf(this.areDataAssetReferencesIncluded)); sb.append(", importConflictResolution=") .append(String.valueOf(this.importConflictResolution)); sb.append(", status=").append(String.valueOf(this.status)); @@ -683,6 +720,8 @@ public boolean equals(Object o) { this.objectStorageTenancyId, other.objectStorageTenancyId) && java.util.Objects.equals(this.objectStorageRegion, other.objectStorageRegion) && java.util.Objects.equals(this.objectKeyForImport, other.objectKeyForImport) + && java.util.Objects.equals( + this.areDataAssetReferencesIncluded, other.areDataAssetReferencesIncluded) && java.util.Objects.equals( this.importConflictResolution, other.importConflictResolution) && java.util.Objects.equals(this.status, other.status) @@ -719,6 +758,11 @@ public int hashCode() { + (this.objectKeyForImport == null ? 43 : this.objectKeyForImport.hashCode()); + result = + (result * PRIME) + + (this.areDataAssetReferencesIncluded == null + ? 43 + : this.areDataAssetReferencesIncluded.hashCode()); result = (result * PRIME) + (this.importConflictResolution == null diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionDetails.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionDetails.java index 8d8d086e01f..91df5df9112 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionDetails.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionDetails.java @@ -40,6 +40,9 @@ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = UpdateConnectionFromHdfs.class, name = "HDFS_CONNECTION"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateConnectionFromOAuth2.class, + name = "OAUTH2_CONNECTION"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = UpdateConnectionFromRestBasicAuth.class, name = "REST_BASIC_AUTH_CONNECTION"), @@ -346,6 +349,7 @@ public enum ModelType implements com.oracle.bmc.http.internal.BmcEnum { MysqlHeatwaveConnection("MYSQL_HEATWAVE_CONNECTION"), RestNoAuthConnection("REST_NO_AUTH_CONNECTION"), RestBasicAuthConnection("REST_BASIC_AUTH_CONNECTION"), + Oauth2Connection("OAUTH2_CONNECTION"), ; private final String value; diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromOAuth2.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromOAuth2.java new file mode 100644 index 00000000000..129a10ada50 --- /dev/null +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateConnectionFromOAuth2.java @@ -0,0 +1,458 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dataintegration.model; + +/** + * The details to update a OAuth connection.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateConnectionFromOAuth2.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "modelType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateConnectionFromOAuth2 extends UpdateConnectionDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") + private String modelVersion; + + public Builder modelVersion(String modelVersion) { + this.modelVersion = modelVersion; + this.__explicitlySet__.add("modelVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("parentRef") + private ParentReference parentRef; + + public Builder parentRef(ParentReference parentRef) { + this.parentRef = parentRef; + this.__explicitlySet__.add("parentRef"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") + private Integer objectStatus; + + public Builder objectStatus(Integer objectStatus) { + this.objectStatus = objectStatus; + this.__explicitlySet__.add("objectStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("objectVersion") + private Integer objectVersion; + + public Builder objectVersion(Integer objectVersion) { + this.objectVersion = objectVersion; + this.__explicitlySet__.add("objectVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("identifier") + private String identifier; + + public Builder identifier(String identifier) { + this.identifier = identifier; + this.__explicitlySet__.add("identifier"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionProperties") + private java.util.List connectionProperties; + + public Builder connectionProperties( + java.util.List connectionProperties) { + this.connectionProperties = connectionProperties; + this.__explicitlySet__.add("connectionProperties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("registryMetadata") + private RegistryMetadata registryMetadata; + + public Builder registryMetadata(RegistryMetadata registryMetadata) { + this.registryMetadata = registryMetadata; + this.__explicitlySet__.add("registryMetadata"); + return this; + } + /** Specifies the endpoint used to exchange authentication credentials for access tokens */ + @com.fasterxml.jackson.annotation.JsonProperty("accessTokenUrl") + private String accessTokenUrl; + + /** + * Specifies the endpoint used to exchange authentication credentials for access tokens + * + * @param accessTokenUrl the value to set + * @return this builder + */ + public Builder accessTokenUrl(String accessTokenUrl) { + this.accessTokenUrl = accessTokenUrl; + this.__explicitlySet__.add("accessTokenUrl"); + return this; + } + /** Specifies the client ID key for specific application */ + @com.fasterxml.jackson.annotation.JsonProperty("clientId") + private String clientId; + + /** + * Specifies the client ID key for specific application + * + * @param clientId the value to set + * @return this builder + */ + public Builder clientId(String clientId) { + this.clientId = clientId; + this.__explicitlySet__.add("clientId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") + private SensitiveAttribute clientSecret; + + public Builder clientSecret(SensitiveAttribute clientSecret) { + this.clientSecret = clientSecret; + this.__explicitlySet__.add("clientSecret"); + return this; + } + /** Specifies the OAuth scopes that limit the permissions granted by an access token. */ + @com.fasterxml.jackson.annotation.JsonProperty("scope") + private String scope; + + /** + * Specifies the OAuth scopes that limit the permissions granted by an access token. + * + * @param scope the value to set + * @return this builder + */ + public Builder scope(String scope) { + this.scope = scope; + this.__explicitlySet__.add("scope"); + return this; + } + /** Specifies the OAuth2 grant mechanism. Example CLIENT_CREDENTIALS, Implicit Flow etc. */ + @com.fasterxml.jackson.annotation.JsonProperty("grantType") + private GrantType grantType; + + /** + * Specifies the OAuth2 grant mechanism. Example CLIENT_CREDENTIALS, Implicit Flow etc. + * + * @param grantType the value to set + * @return this builder + */ + public Builder grantType(GrantType grantType) { + this.grantType = grantType; + this.__explicitlySet__.add("grantType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateConnectionFromOAuth2 build() { + UpdateConnectionFromOAuth2 model = + new UpdateConnectionFromOAuth2( + this.key, + this.modelVersion, + this.parentRef, + this.name, + this.description, + this.objectStatus, + this.objectVersion, + this.identifier, + this.connectionProperties, + this.registryMetadata, + this.accessTokenUrl, + this.clientId, + this.clientSecret, + this.scope, + this.grantType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateConnectionFromOAuth2 model) { + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + if (model.wasPropertyExplicitlySet("modelVersion")) { + this.modelVersion(model.getModelVersion()); + } + if (model.wasPropertyExplicitlySet("parentRef")) { + this.parentRef(model.getParentRef()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("objectStatus")) { + this.objectStatus(model.getObjectStatus()); + } + if (model.wasPropertyExplicitlySet("objectVersion")) { + this.objectVersion(model.getObjectVersion()); + } + if (model.wasPropertyExplicitlySet("identifier")) { + this.identifier(model.getIdentifier()); + } + if (model.wasPropertyExplicitlySet("connectionProperties")) { + this.connectionProperties(model.getConnectionProperties()); + } + if (model.wasPropertyExplicitlySet("registryMetadata")) { + this.registryMetadata(model.getRegistryMetadata()); + } + if (model.wasPropertyExplicitlySet("accessTokenUrl")) { + this.accessTokenUrl(model.getAccessTokenUrl()); + } + if (model.wasPropertyExplicitlySet("clientId")) { + this.clientId(model.getClientId()); + } + if (model.wasPropertyExplicitlySet("clientSecret")) { + this.clientSecret(model.getClientSecret()); + } + if (model.wasPropertyExplicitlySet("scope")) { + this.scope(model.getScope()); + } + if (model.wasPropertyExplicitlySet("grantType")) { + this.grantType(model.getGrantType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateConnectionFromOAuth2( + String key, + String modelVersion, + ParentReference parentRef, + String name, + String description, + Integer objectStatus, + Integer objectVersion, + String identifier, + java.util.List connectionProperties, + RegistryMetadata registryMetadata, + String accessTokenUrl, + String clientId, + SensitiveAttribute clientSecret, + String scope, + GrantType grantType) { + super( + key, + modelVersion, + parentRef, + name, + description, + objectStatus, + objectVersion, + identifier, + connectionProperties, + registryMetadata); + this.accessTokenUrl = accessTokenUrl; + this.clientId = clientId; + this.clientSecret = clientSecret; + this.scope = scope; + this.grantType = grantType; + } + + /** Specifies the endpoint used to exchange authentication credentials for access tokens */ + @com.fasterxml.jackson.annotation.JsonProperty("accessTokenUrl") + private final String accessTokenUrl; + + /** + * Specifies the endpoint used to exchange authentication credentials for access tokens + * + * @return the value + */ + public String getAccessTokenUrl() { + return accessTokenUrl; + } + + /** Specifies the client ID key for specific application */ + @com.fasterxml.jackson.annotation.JsonProperty("clientId") + private final String clientId; + + /** + * Specifies the client ID key for specific application + * + * @return the value + */ + public String getClientId() { + return clientId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("clientSecret") + private final SensitiveAttribute clientSecret; + + public SensitiveAttribute getClientSecret() { + return clientSecret; + } + + /** Specifies the OAuth scopes that limit the permissions granted by an access token. */ + @com.fasterxml.jackson.annotation.JsonProperty("scope") + private final String scope; + + /** + * Specifies the OAuth scopes that limit the permissions granted by an access token. + * + * @return the value + */ + public String getScope() { + return scope; + } + + /** Specifies the OAuth2 grant mechanism. Example CLIENT_CREDENTIALS, Implicit Flow etc. */ + public enum GrantType implements com.oracle.bmc.http.internal.BmcEnum { + ClientCredentials("CLIENT_CREDENTIALS"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (GrantType v : GrantType.values()) { + map.put(v.getValue(), v); + } + } + + GrantType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static GrantType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid GrantType: " + key); + } + }; + /** Specifies the OAuth2 grant mechanism. Example CLIENT_CREDENTIALS, Implicit Flow etc. */ + @com.fasterxml.jackson.annotation.JsonProperty("grantType") + private final GrantType grantType; + + /** + * Specifies the OAuth2 grant mechanism. Example CLIENT_CREDENTIALS, Implicit Flow etc. + * + * @return the value + */ + public GrantType getGrantType() { + return grantType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateConnectionFromOAuth2("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", accessTokenUrl=").append(String.valueOf(this.accessTokenUrl)); + sb.append(", clientId=").append(String.valueOf(this.clientId)); + sb.append(", clientSecret=").append(String.valueOf(this.clientSecret)); + sb.append(", scope=").append(String.valueOf(this.scope)); + sb.append(", grantType=").append(String.valueOf(this.grantType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateConnectionFromOAuth2)) { + return false; + } + + UpdateConnectionFromOAuth2 other = (UpdateConnectionFromOAuth2) o; + return java.util.Objects.equals(this.accessTokenUrl, other.accessTokenUrl) + && java.util.Objects.equals(this.clientId, other.clientId) + && java.util.Objects.equals(this.clientSecret, other.clientSecret) + && java.util.Objects.equals(this.scope, other.scope) + && java.util.Objects.equals(this.grantType, other.grantType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.accessTokenUrl == null ? 43 : this.accessTokenUrl.hashCode()); + result = (result * PRIME) + (this.clientId == null ? 43 : this.clientId.hashCode()); + result = (result * PRIME) + (this.clientSecret == null ? 43 : this.clientSecret.hashCode()); + result = (result * PRIME) + (this.scope == null ? 43 : this.scope.hashCode()); + result = (result * PRIME) + (this.grantType == null ? 43 : this.grantType.hashCode()); + return result; + } +} diff --git a/bmc-dataintegration/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-dataintegration/reflect-config.json b/bmc-dataintegration/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-dataintegration/reflect-config.json index 92a292e98e0..e10bb7a540e 100644 --- a/bmc-dataintegration/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-dataintegration/reflect-config.json +++ b/bmc-dataintegration/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-dataintegration/reflect-config.json @@ -951,6 +951,46 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dataintegration.model.ConnectionFromOAuth2", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dataintegration.model.ConnectionFromOAuth2$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dataintegration.model.ConnectionFromOAuth2$GrantType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dataintegration.model.ConnectionFromOAuth2Details", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dataintegration.model.ConnectionFromOAuth2Details$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dataintegration.model.ConnectionFromOAuth2Details$GrantType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.dataintegration.model.ConnectionFromObjectStorage", @@ -1328,6 +1368,26 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dataintegration.model.ConnectionSummaryFromOAuth2", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dataintegration.model.ConnectionSummaryFromOAuth2$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dataintegration.model.ConnectionSummaryFromOAuth2$GrantType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.dataintegration.model.ConnectionSummaryFromObjectStorage", @@ -1802,6 +1862,26 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dataintegration.model.CreateConnectionFromOAuth2", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dataintegration.model.CreateConnectionFromOAuth2$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dataintegration.model.CreateConnectionFromOAuth2$GrantType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.dataintegration.model.CreateConnectionFromObjectStorage", @@ -8336,6 +8416,26 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dataintegration.model.UpdateConnectionFromOAuth2", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dataintegration.model.UpdateConnectionFromOAuth2$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dataintegration.model.UpdateConnectionFromOAuth2$GrantType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.dataintegration.model.UpdateConnectionFromObjectStorage", diff --git a/bmc-datalabelingservice/pom.xml b/bmc-datalabelingservice/pom.xml index cc4fc55ae19..cf9ac02a436 100644 --- a/bmc-datalabelingservice/pom.xml +++ b/bmc-datalabelingservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-datalabelingservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-datalabelingservicedataplane/pom.xml b/bmc-datalabelingservicedataplane/pom.xml index d687473fa21..036ad7908f4 100644 --- a/bmc-datalabelingservicedataplane/pom.xml +++ b/bmc-datalabelingservicedataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-datalabelingservicedataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-datasafe/pom.xml b/bmc-datasafe/pom.xml index 0e7280ba501..45e2985094a 100644 --- a/bmc-datasafe/pom.xml +++ b/bmc-datasafe/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-datasafe @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-datascience/pom.xml b/bmc-datascience/pom.xml index adebbd45857..5e751356d79 100644 --- a/bmc-datascience/pom.xml +++ b/bmc-datascience/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-datascience @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-devops/pom.xml b/bmc-devops/pom.xml index 1c11a1ec12b..a2ad14984d1 100644 --- a/bmc-devops/pom.xml +++ b/bmc-devops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-devops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-disasterrecovery/pom.xml b/bmc-disasterrecovery/pom.xml index 49e5a19a51a..f227e921327 100644 --- a/bmc-disasterrecovery/pom.xml +++ b/bmc-disasterrecovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-disasterrecovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-dns/pom.xml b/bmc-dns/pom.xml index 2bae7751562..1d27ee9c9f1 100644 --- a/bmc-dns/pom.xml +++ b/bmc-dns/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.32.1 + 3.33.0 diff --git a/bmc-dns/src/main/java/com/oracle/bmc/dns/Dns.java b/bmc-dns/src/main/java/com/oracle/bmc/dns/Dns.java index 8eb7117a091..1870416ef13 100644 --- a/bmc-dns/src/main/java/com/oracle/bmc/dns/Dns.java +++ b/bmc-dns/src/main/java/com/oracle/bmc/dns/Dns.java @@ -363,9 +363,9 @@ CreateSteeringPolicyAttachmentResponse createSteeringPolicyAttachment( * * @param request The request object containing the details to send * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. This operation uses - * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is - * provided. The specifics of the default retry strategy are described here + * @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 Example: Click Example: Click Example: Click Example: Click Global zone names must be unique across all other zones within the realm. Private zone + * names must be unique within their view. + * + *

Unicode characters will be converted into punycode, see [RFC + * 3492](https://tools.ietf.org/html/rfc3492). + */ @com.fasterxml.jackson.annotation.JsonProperty("name") private final String name; /** * The name of the zone. * + *

Global zone names must be unique across all other zones within the realm. Private zone + * names must be unique within their view. + * + *

Unicode characters will be converted into punycode, see [RFC + * 3492](https://tools.ietf.org/html/rfc3492). + * * @return the value */ public String getName() { diff --git a/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/DeleteDomainRecordsRequest.java b/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/DeleteDomainRecordsRequest.java index 5c31a1b22e4..98eab310472 100644 --- a/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/DeleteDomainRecordsRequest.java +++ b/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/DeleteDomainRecordsRequest.java @@ -81,10 +81,16 @@ public String getOpcRequestId() { public com.oracle.bmc.dns.model.Scope getScope() { return scope; } - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone by + * name. + */ private String viewId; - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone by + * name. + */ public String getViewId() { return viewId; } @@ -214,11 +220,15 @@ public Builder scope(com.oracle.bmc.dns.model.Scope scope) { return this; } - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone + * by name. + */ private String viewId = null; /** - * The OCID of the view the resource is associated with. + * The OCID of the view the zone is associated with. Required when accessing a private zone + * by name. * * @param viewId the value to set * @return this builder instance diff --git a/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/DeleteRRSetRequest.java b/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/DeleteRRSetRequest.java index 6113ad45e5a..e9b4624ac4e 100644 --- a/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/DeleteRRSetRequest.java +++ b/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/DeleteRRSetRequest.java @@ -103,10 +103,16 @@ public String getCompartmentId() { public com.oracle.bmc.dns.model.Scope getScope() { return scope; } - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone by + * name. + */ private String viewId; - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone by + * name. + */ public String getViewId() { return viewId; } @@ -255,11 +261,15 @@ public Builder scope(com.oracle.bmc.dns.model.Scope scope) { return this; } - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone + * by name. + */ private String viewId = null; /** - * The OCID of the view the resource is associated with. + * The OCID of the view the zone is associated with. Required when accessing a private zone + * by name. * * @param viewId the value to set * @return this builder instance diff --git a/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/DeleteZoneRequest.java b/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/DeleteZoneRequest.java index 83728641dcb..41300f7ad3a 100644 --- a/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/DeleteZoneRequest.java +++ b/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/DeleteZoneRequest.java @@ -74,10 +74,16 @@ public String getOpcRequestId() { public com.oracle.bmc.dns.model.Scope getScope() { return scope; } - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone by + * name. + */ private String viewId; - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone by + * name. + */ public String getViewId() { return viewId; } @@ -193,11 +199,15 @@ public Builder scope(com.oracle.bmc.dns.model.Scope scope) { return this; } - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone + * by name. + */ private String viewId = null; /** - * The OCID of the view the resource is associated with. + * The OCID of the view the zone is associated with. Required when accessing a private zone + * by name. * * @param viewId the value to set * @return this builder instance diff --git a/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/GetDomainRecordsRequest.java b/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/GetDomainRecordsRequest.java index bde6374700e..f8117971abe 100644 --- a/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/GetDomainRecordsRequest.java +++ b/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/GetDomainRecordsRequest.java @@ -117,10 +117,16 @@ public String getRtype() { public com.oracle.bmc.dns.model.Scope getScope() { return scope; } - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone by + * name. + */ private String viewId; - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone by + * name. + */ public String getViewId() { return viewId; } @@ -360,11 +366,15 @@ public Builder scope(com.oracle.bmc.dns.model.Scope scope) { return this; } - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone + * by name. + */ private String viewId = null; /** - * The OCID of the view the resource is associated with. + * The OCID of the view the zone is associated with. Required when accessing a private zone + * by name. * * @param viewId the value to set * @return this builder instance diff --git a/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/GetRRSetRequest.java b/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/GetRRSetRequest.java index d8bb2cf8b2e..1eb8fbce4c8 100644 --- a/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/GetRRSetRequest.java +++ b/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/GetRRSetRequest.java @@ -124,10 +124,16 @@ public String getCompartmentId() { public com.oracle.bmc.dns.model.Scope getScope() { return scope; } - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone by + * name. + */ private String viewId; - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone by + * name. + */ public String getViewId() { return viewId; } @@ -317,11 +323,15 @@ public Builder scope(com.oracle.bmc.dns.model.Scope scope) { return this; } - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone + * by name. + */ private String viewId = null; /** - * The OCID of the view the resource is associated with. + * The OCID of the view the zone is associated with. Required when accessing a private zone + * by name. * * @param viewId the value to set * @return this builder instance diff --git a/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/GetZoneContentRequest.java b/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/GetZoneContentRequest.java index 6a458b8cf15..233f9ebe5a2 100644 --- a/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/GetZoneContentRequest.java +++ b/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/GetZoneContentRequest.java @@ -74,10 +74,16 @@ public String getOpcRequestId() { public com.oracle.bmc.dns.model.Scope getScope() { return scope; } - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone by + * name. + */ private String viewId; - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone by + * name. + */ public String getViewId() { return viewId; } @@ -178,11 +184,15 @@ public Builder scope(com.oracle.bmc.dns.model.Scope scope) { return this; } - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone + * by name. + */ private String viewId = null; /** - * The OCID of the view the resource is associated with. + * The OCID of the view the zone is associated with. Required when accessing a private zone + * by name. * * @param viewId the value to set * @return this builder instance diff --git a/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/GetZoneRecordsRequest.java b/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/GetZoneRecordsRequest.java index 0cc8e464f61..fddc5b2f413 100644 --- a/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/GetZoneRecordsRequest.java +++ b/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/GetZoneRecordsRequest.java @@ -200,10 +200,16 @@ public String getCompartmentId() { public com.oracle.bmc.dns.model.Scope getScope() { return scope; } - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone by + * name. + */ private String viewId; - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone by + * name. + */ public String getViewId() { return viewId; } @@ -450,11 +456,15 @@ public Builder scope(com.oracle.bmc.dns.model.Scope scope) { return this; } - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone + * by name. + */ private String viewId = null; /** - * The OCID of the view the resource is associated with. + * The OCID of the view the zone is associated with. Required when accessing a private zone + * by name. * * @param viewId the value to set * @return this builder instance diff --git a/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/GetZoneRequest.java b/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/GetZoneRequest.java index 9720f648ade..e8d865d5dfc 100644 --- a/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/GetZoneRequest.java +++ b/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/GetZoneRequest.java @@ -74,10 +74,16 @@ public String getOpcRequestId() { public com.oracle.bmc.dns.model.Scope getScope() { return scope; } - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone by + * name. + */ private String viewId; - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone by + * name. + */ public String getViewId() { return viewId; } @@ -192,11 +198,15 @@ public Builder scope(com.oracle.bmc.dns.model.Scope scope) { return this; } - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone + * by name. + */ private String viewId = null; /** - * The OCID of the view the resource is associated with. + * The OCID of the view the zone is associated with. Required when accessing a private zone + * by name. * * @param viewId the value to set * @return this builder instance diff --git a/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/PatchDomainRecordsRequest.java b/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/PatchDomainRecordsRequest.java index 87c1e9e307f..0a58e3af61b 100644 --- a/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/PatchDomainRecordsRequest.java +++ b/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/PatchDomainRecordsRequest.java @@ -90,10 +90,16 @@ public String getOpcRequestId() { public com.oracle.bmc.dns.model.Scope getScope() { return scope; } - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone by + * name. + */ private String viewId; - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone by + * name. + */ public String getViewId() { return viewId; } @@ -249,11 +255,15 @@ public Builder scope(com.oracle.bmc.dns.model.Scope scope) { return this; } - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone + * by name. + */ private String viewId = null; /** - * The OCID of the view the resource is associated with. + * The OCID of the view the zone is associated with. Required when accessing a private zone + * by name. * * @param viewId the value to set * @return this builder instance diff --git a/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/PatchRRSetRequest.java b/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/PatchRRSetRequest.java index 83f4ba2ac1b..87d17f58c37 100644 --- a/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/PatchRRSetRequest.java +++ b/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/PatchRRSetRequest.java @@ -96,10 +96,16 @@ public String getOpcRequestId() { public com.oracle.bmc.dns.model.Scope getScope() { return scope; } - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone by + * name. + */ private String viewId; - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone by + * name. + */ public String getViewId() { return viewId; } @@ -269,11 +275,15 @@ public Builder scope(com.oracle.bmc.dns.model.Scope scope) { return this; } - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone + * by name. + */ private String viewId = null; /** - * The OCID of the view the resource is associated with. + * The OCID of the view the zone is associated with. Required when accessing a private zone + * by name. * * @param viewId the value to set * @return this builder instance diff --git a/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/PatchZoneRecordsRequest.java b/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/PatchZoneRecordsRequest.java index 32d6434d9b4..c85224dd1d3 100644 --- a/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/PatchZoneRecordsRequest.java +++ b/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/PatchZoneRecordsRequest.java @@ -83,10 +83,16 @@ public String getOpcRequestId() { public com.oracle.bmc.dns.model.Scope getScope() { return scope; } - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone by + * name. + */ private String viewId; - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone by + * name. + */ public String getViewId() { return viewId; } @@ -228,11 +234,15 @@ public Builder scope(com.oracle.bmc.dns.model.Scope scope) { return this; } - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone + * by name. + */ private String viewId = null; /** - * The OCID of the view the resource is associated with. + * The OCID of the view the zone is associated with. Required when accessing a private zone + * by name. * * @param viewId the value to set * @return this builder instance diff --git a/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/UpdateDomainRecordsRequest.java b/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/UpdateDomainRecordsRequest.java index d07adca4f37..2fceb681359 100644 --- a/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/UpdateDomainRecordsRequest.java +++ b/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/UpdateDomainRecordsRequest.java @@ -90,10 +90,16 @@ public String getOpcRequestId() { public com.oracle.bmc.dns.model.Scope getScope() { return scope; } - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone by + * name. + */ private String viewId; - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone by + * name. + */ public String getViewId() { return viewId; } @@ -251,11 +257,15 @@ public Builder scope(com.oracle.bmc.dns.model.Scope scope) { return this; } - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone + * by name. + */ private String viewId = null; /** - * The OCID of the view the resource is associated with. + * The OCID of the view the zone is associated with. Required when accessing a private zone + * by name. * * @param viewId the value to set * @return this builder instance diff --git a/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/UpdateRRSetRequest.java b/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/UpdateRRSetRequest.java index 08e83fb44ff..a17da3fc6d1 100644 --- a/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/UpdateRRSetRequest.java +++ b/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/UpdateRRSetRequest.java @@ -96,10 +96,16 @@ public String getOpcRequestId() { public com.oracle.bmc.dns.model.Scope getScope() { return scope; } - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone by + * name. + */ private String viewId; - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone by + * name. + */ public String getViewId() { return viewId; } @@ -269,11 +275,15 @@ public Builder scope(com.oracle.bmc.dns.model.Scope scope) { return this; } - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone + * by name. + */ private String viewId = null; /** - * The OCID of the view the resource is associated with. + * The OCID of the view the zone is associated with. Required when accessing a private zone + * by name. * * @param viewId the value to set * @return this builder instance diff --git a/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/UpdateZoneRecordsRequest.java b/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/UpdateZoneRecordsRequest.java index 5508da820ae..058f2d616cd 100644 --- a/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/UpdateZoneRecordsRequest.java +++ b/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/UpdateZoneRecordsRequest.java @@ -83,10 +83,16 @@ public String getOpcRequestId() { public com.oracle.bmc.dns.model.Scope getScope() { return scope; } - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone by + * name. + */ private String viewId; - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone by + * name. + */ public String getViewId() { return viewId; } @@ -228,11 +234,15 @@ public Builder scope(com.oracle.bmc.dns.model.Scope scope) { return this; } - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone + * by name. + */ private String viewId = null; /** - * The OCID of the view the resource is associated with. + * The OCID of the view the zone is associated with. Required when accessing a private zone + * by name. * * @param viewId the value to set * @return this builder instance diff --git a/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/UpdateZoneRequest.java b/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/UpdateZoneRequest.java index 75053cede64..5f6b01c930d 100644 --- a/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/UpdateZoneRequest.java +++ b/bmc-dns/src/main/java/com/oracle/bmc/dns/requests/UpdateZoneRequest.java @@ -82,10 +82,16 @@ public String getOpcRequestId() { public com.oracle.bmc.dns.model.Scope getScope() { return scope; } - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone by + * name. + */ private String viewId; - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone by + * name. + */ public String getViewId() { return viewId; } @@ -227,11 +233,15 @@ public Builder scope(com.oracle.bmc.dns.model.Scope scope) { return this; } - /** The OCID of the view the resource is associated with. */ + /** + * The OCID of the view the zone is associated with. Required when accessing a private zone + * by name. + */ private String viewId = null; /** - * The OCID of the view the resource is associated with. + * The OCID of the view the zone is associated with. Required when accessing a private zone + * by name. * * @param viewId the value to set * @return this builder instance diff --git a/bmc-dts/pom.xml b/bmc-dts/pom.xml index db67d881c40..5e17a728953 100644 --- a/bmc-dts/pom.xml +++ b/bmc-dts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-dts @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-email/pom.xml b/bmc-email/pom.xml index a7c15227471..b4a3551e407 100644 --- a/bmc-email/pom.xml +++ b/bmc-email/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-emwarehouse/pom.xml b/bmc-emwarehouse/pom.xml index b9861e9618b..6d2434b3f71 100644 --- a/bmc-emwarehouse/pom.xml +++ b/bmc-emwarehouse/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-emwarehouse @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-encryption/pom.xml b/bmc-encryption/pom.xml index 38f71a8d0dc..681ec42db3b 100644 --- a/bmc-encryption/pom.xml +++ b/bmc-encryption/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml @@ -18,17 +18,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.32.1 + 3.33.0 com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.32.1 + 3.33.0 com.fasterxml.jackson.core @@ -43,7 +43,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.32.1 + 3.33.0 test diff --git a/bmc-enforcer-rules/pom.xml b/bmc-enforcer-rules/pom.xml index fd7e182bc25..bf2fb57ad9d 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.32.1 + 3.33.0 oci-java-sdk-enforcer-rules diff --git a/bmc-events/pom.xml b/bmc-events/pom.xml index 76ffb0bb77c..ea9368d9a4b 100644 --- a/bmc-events/pom.xml +++ b/bmc-events/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-events @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-examples/pom.xml b/bmc-examples/pom.xml index 898575498d3..ce457c47a37 100644 --- a/bmc-examples/pom.xml +++ b/bmc-examples/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-examples @@ -71,14 +71,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.32.1 + 3.33.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.32.1 + 3.33.0 pom import @@ -669,5 +669,9 @@ com.oracle.oci.sdk oci-java-sdk-generativeaiinference + + com.oracle.oci.sdk + oci-java-sdk-capacitymanagement + \ No newline at end of file diff --git a/bmc-filestorage/pom.xml b/bmc-filestorage/pom.xml index 0c99ae5fcbc..7095632c25e 100644 --- a/bmc-filestorage/pom.xml +++ b/bmc-filestorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-fleetsoftwareupdate/pom.xml b/bmc-fleetsoftwareupdate/pom.xml index 5433fd97830..7a1d5ce7164 100644 --- a/bmc-fleetsoftwareupdate/pom.xml +++ b/bmc-fleetsoftwareupdate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-fleetsoftwareupdate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-full/pom.xml b/bmc-full/pom.xml index d5978a0ac28..d591dba04b2 100644 --- a/bmc-full/pom.xml +++ b/bmc-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-full @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.32.1 + 3.33.0 pom import @@ -567,5 +567,9 @@ com.oracle.oci.sdk oci-java-sdk-generativeaiinference + + com.oracle.oci.sdk + oci-java-sdk-capacitymanagement + \ No newline at end of file diff --git a/bmc-functions/pom.xml b/bmc-functions/pom.xml index e0491a2961a..8fe9a4aeb76 100644 --- a/bmc-functions/pom.xml +++ b/bmc-functions/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-functions @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-fusionapps/pom.xml b/bmc-fusionapps/pom.xml index 9b26586e24f..660bd6bbd24 100644 --- a/bmc-fusionapps/pom.xml +++ b/bmc-fusionapps/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-fusionapps @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-generativeai/pom.xml b/bmc-generativeai/pom.xml index 2e75cc86e01..0951a0acc1c 100644 --- a/bmc-generativeai/pom.xml +++ b/bmc-generativeai/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-generativeai @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-generativeaiinference/pom.xml b/bmc-generativeaiinference/pom.xml index 0600dcb41bd..dcefc4b3085 100644 --- a/bmc-generativeaiinference/pom.xml +++ b/bmc-generativeaiinference/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-generativeaiinference @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-genericartifactscontent/pom.xml b/bmc-genericartifactscontent/pom.xml index 1e3b53b87dc..8123e696a7a 100644 --- a/bmc-genericartifactscontent/pom.xml +++ b/bmc-genericartifactscontent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-genericartifactscontent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-goldengate/pom.xml b/bmc-goldengate/pom.xml index ddeda8b9771..7155ef1e17a 100644 --- a/bmc-goldengate/pom.xml +++ b/bmc-goldengate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-goldengate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-governancerulescontrolplane/pom.xml b/bmc-governancerulescontrolplane/pom.xml index baeeb36b5cc..d166e12d378 100644 --- a/bmc-governancerulescontrolplane/pom.xml +++ b/bmc-governancerulescontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-governancerulescontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-healthchecks/pom.xml b/bmc-healthchecks/pom.xml index a3172fba4bd..10814dbe312 100644 --- a/bmc-healthchecks/pom.xml +++ b/bmc-healthchecks/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-healthchecks @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-identity/pom.xml b/bmc-identity/pom.xml index 15fa3a9bab8..339b5ed31a4 100644 --- a/bmc-identity/pom.xml +++ b/bmc-identity/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-identitydataplane/pom.xml b/bmc-identitydataplane/pom.xml index b89b7fb1b39..f5ddb8a58c4 100644 --- a/bmc-identitydataplane/pom.xml +++ b/bmc-identitydataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-identitydataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-identitydomains/pom.xml b/bmc-identitydomains/pom.xml index 1246b2c5a12..bbc3c35b501 100644 --- a/bmc-identitydomains/pom.xml +++ b/bmc-identitydomains/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-identitydomains @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-integration/pom.xml b/bmc-integration/pom.xml index 83ddf0eff11..48c85b87f2a 100644 --- a/bmc-integration/pom.xml +++ b/bmc-integration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-integration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-jms/pom.xml b/bmc-jms/pom.xml index fe520101c82..ff61ba91f3a 100644 --- a/bmc-jms/pom.xml +++ b/bmc-jms/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-jms @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-jmsjavadownloads/pom.xml b/bmc-jmsjavadownloads/pom.xml index 0728a8f6c92..6083b91eb2d 100644 --- a/bmc-jmsjavadownloads/pom.xml +++ b/bmc-jmsjavadownloads/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-jmsjavadownloads @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-keymanagement/pom.xml b/bmc-keymanagement/pom.xml index 86870dc60c0..2ad40abdb42 100644 --- a/bmc-keymanagement/pom.xml +++ b/bmc-keymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-keymanagement @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-licensemanager/pom.xml b/bmc-licensemanager/pom.xml index d94fb9dfd20..7cb3153bee6 100644 --- a/bmc-licensemanager/pom.xml +++ b/bmc-licensemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-licensemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-limits/pom.xml b/bmc-limits/pom.xml index 91bc04fb9be..3ab11ea79f9 100644 --- a/bmc-limits/pom.xml +++ b/bmc-limits/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-limits @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-loadbalancer/pom.xml b/bmc-loadbalancer/pom.xml index 74171b6a400..d693ecc13c4 100644 --- a/bmc-loadbalancer/pom.xml +++ b/bmc-loadbalancer/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-lockbox/pom.xml b/bmc-lockbox/pom.xml index 2000f9ef94b..5834157a169 100644 --- a/bmc-lockbox/pom.xml +++ b/bmc-lockbox/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-lockbox @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-loganalytics/pom.xml b/bmc-loganalytics/pom.xml index 6a7148c7a9b..ca91d4be403 100644 --- a/bmc-loganalytics/pom.xml +++ b/bmc-loganalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-loganalytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-logging/pom.xml b/bmc-logging/pom.xml index 683a9c47b69..5ab0cdede58 100644 --- a/bmc-logging/pom.xml +++ b/bmc-logging/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-logging @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-loggingingestion/pom.xml b/bmc-loggingingestion/pom.xml index ac9ff40d611..95b26660876 100644 --- a/bmc-loggingingestion/pom.xml +++ b/bmc-loggingingestion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-loggingingestion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-loggingsearch/pom.xml b/bmc-loggingsearch/pom.xml index fb0a015ea72..6f04d331580 100644 --- a/bmc-loggingsearch/pom.xml +++ b/bmc-loggingsearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-loggingsearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-managementagent/pom.xml b/bmc-managementagent/pom.xml index bde82c47f37..b19426bbe0a 100644 --- a/bmc-managementagent/pom.xml +++ b/bmc-managementagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-managementagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-managementdashboard/pom.xml b/bmc-managementdashboard/pom.xml index 984993c35a2..a588cf71b2a 100644 --- a/bmc-managementdashboard/pom.xml +++ b/bmc-managementdashboard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-managementdashboard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-marketplace/pom.xml b/bmc-marketplace/pom.xml index fd955dad848..8c8facc6694 100644 --- a/bmc-marketplace/pom.xml +++ b/bmc-marketplace/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-marketplace @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-marketplacepublisher/pom.xml b/bmc-marketplacepublisher/pom.xml index d55d6b4ae78..96725886b57 100644 --- a/bmc-marketplacepublisher/pom.xml +++ b/bmc-marketplacepublisher/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-marketplacepublisher @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-mediaservices/pom.xml b/bmc-mediaservices/pom.xml index 830ecb3a0dc..27851aab99e 100644 --- a/bmc-mediaservices/pom.xml +++ b/bmc-mediaservices/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-mediaservices @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-monitoring/pom.xml b/bmc-monitoring/pom.xml index 1aafc4fe1a9..cfb6f4c7d75 100644 --- a/bmc-monitoring/pom.xml +++ b/bmc-monitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-monitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-mysql/pom.xml b/bmc-mysql/pom.xml index 61f0de16f25..aab706e11a2 100644 --- a/bmc-mysql/pom.xml +++ b/bmc-mysql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-mysql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-networkfirewall/pom.xml b/bmc-networkfirewall/pom.xml index f80c722adf7..4bde848d145 100644 --- a/bmc-networkfirewall/pom.xml +++ b/bmc-networkfirewall/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-networkfirewall @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-networkloadbalancer/pom.xml b/bmc-networkloadbalancer/pom.xml index 4ea2755aaa6..8f835e2d9cd 100644 --- a/bmc-networkloadbalancer/pom.xml +++ b/bmc-networkloadbalancer/pom.xml @@ -4,21 +4,18 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-networkloadbalancer Oracle Cloud Infrastructure SDK - Network Load Balancer This project contains the SDK used for Oracle Cloud Infrastructure Network Load Balancer https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm - - - com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-nosql/pom.xml b/bmc-nosql/pom.xml index ee42fe57dc5..52cac16a119 100644 --- a/bmc-nosql/pom.xml +++ b/bmc-nosql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-nosql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-objectstorage/bmc-objectstorage-combined/pom.xml b/bmc-objectstorage/bmc-objectstorage-combined/pom.xml index 06b1f27c223..c01f82c4d66 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.32.1 + 3.33.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.32.1 + 3.33.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 3.32.1 + 3.33.0 diff --git a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml index 5c65c012b1f..a60a9e9549e 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.32.1 + 3.33.0 ../pom.xml @@ -18,17 +18,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.32.1 + 3.33.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.32.1 + 3.33.0 org.slf4j diff --git a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml index 1db10b553de..cd65c2c8a68 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.32.1 + 3.33.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-objectstorage/pom.xml b/bmc-objectstorage/pom.xml index b27abe66d8d..6d0f012f1e1 100644 --- a/bmc-objectstorage/pom.xml +++ b/bmc-objectstorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml diff --git a/bmc-oce/pom.xml b/bmc-oce/pom.xml index ab894f2e43c..6159b0931b5 100644 --- a/bmc-oce/pom.xml +++ b/bmc-oce/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-oce @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-ocicontrolcenter/pom.xml b/bmc-ocicontrolcenter/pom.xml index 021ea642ab9..f769b72c10b 100644 --- a/bmc-ocicontrolcenter/pom.xml +++ b/bmc-ocicontrolcenter/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-ocicontrolcenter @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-ocvp/pom.xml b/bmc-ocvp/pom.xml index 564f0dc9f36..3c7b3d2de16 100644 --- a/bmc-ocvp/pom.xml +++ b/bmc-ocvp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-ocvp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-oda/pom.xml b/bmc-oda/pom.xml index fd0ea1ad5db..243563bac39 100644 --- a/bmc-oda/pom.xml +++ b/bmc-oda/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-oda @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-onesubscription/pom.xml b/bmc-onesubscription/pom.xml index 1ce1e5368d4..bf52df20345 100644 --- a/bmc-onesubscription/pom.xml +++ b/bmc-onesubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-onesubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-ons/pom.xml b/bmc-ons/pom.xml index 2fb56d84533..f8de4b797a6 100644 --- a/bmc-ons/pom.xml +++ b/bmc-ons/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-ons @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-opa/pom.xml b/bmc-opa/pom.xml index c2781b27c10..c13a9b498c9 100644 --- a/bmc-opa/pom.xml +++ b/bmc-opa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-opa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-opensearch/pom.xml b/bmc-opensearch/pom.xml index d311e5d156a..00fdd77a71c 100644 --- a/bmc-opensearch/pom.xml +++ b/bmc-opensearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-opensearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-operatoraccesscontrol/pom.xml b/bmc-operatoraccesscontrol/pom.xml index 464e9215cd3..18aed794c2a 100644 --- a/bmc-operatoraccesscontrol/pom.xml +++ b/bmc-operatoraccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-operatoraccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-opsi/pom.xml b/bmc-opsi/pom.xml index 52e37a35eb1..db4161f041b 100644 --- a/bmc-opsi/pom.xml +++ b/bmc-opsi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-opsi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-optimizer/pom.xml b/bmc-optimizer/pom.xml index 9d2108f85b3..c12b9bd9c5c 100644 --- a/bmc-optimizer/pom.xml +++ b/bmc-optimizer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-optimizer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-osmanagement/pom.xml b/bmc-osmanagement/pom.xml index 8027adbde0c..a7671875cbf 100644 --- a/bmc-osmanagement/pom.xml +++ b/bmc-osmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-osmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-osmanagementhub/pom.xml b/bmc-osmanagementhub/pom.xml index f61ce71603e..4ed1118b118 100644 --- a/bmc-osmanagementhub/pom.xml +++ b/bmc-osmanagementhub/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-osmanagementhub @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-ospgateway/pom.xml b/bmc-ospgateway/pom.xml index 22a093f8acf..404272dae42 100644 --- a/bmc-ospgateway/pom.xml +++ b/bmc-ospgateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-ospgateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-ospgateway/src/main/java/com/oracle/bmc/ospgateway/model/TaxInfo.java b/bmc-ospgateway/src/main/java/com/oracle/bmc/ospgateway/model/TaxInfo.java index 0a3c3b82d10..3db960f8434 100644 --- a/bmc-ospgateway/src/main/java/com/oracle/bmc/ospgateway/model/TaxInfo.java +++ b/bmc-ospgateway/src/main/java/com/oracle/bmc/ospgateway/model/TaxInfo.java @@ -26,20 +26,23 @@ public final class TaxInfo extends com.oracle.bmc.http.client.internal.Explicitl "taxRegNumber", "noTaxReasonCode", "noTaxReasonCodeDetails", - "taxCnpj" + "taxCnpj", + "giro" }) public TaxInfo( String taxPayerId, String taxRegNumber, String noTaxReasonCode, String noTaxReasonCodeDetails, - String taxCnpj) { + String taxCnpj, + String giro) { super(); this.taxPayerId = taxPayerId; this.taxRegNumber = taxRegNumber; this.noTaxReasonCode = noTaxReasonCode; this.noTaxReasonCodeDetails = noTaxReasonCodeDetails; this.taxCnpj = taxCnpj; + this.giro = giro; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -119,6 +122,21 @@ public Builder taxCnpj(String taxCnpj) { this.__explicitlySet__.add("taxCnpj"); return this; } + /** Companies' GIRO code */ + @com.fasterxml.jackson.annotation.JsonProperty("giro") + private String giro; + + /** + * Companies' GIRO code + * + * @param giro the value to set + * @return this builder + */ + public Builder giro(String giro) { + this.giro = giro; + this.__explicitlySet__.add("giro"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -130,7 +148,8 @@ public TaxInfo build() { this.taxRegNumber, this.noTaxReasonCode, this.noTaxReasonCodeDetails, - this.taxCnpj); + this.taxCnpj, + this.giro); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -154,6 +173,9 @@ public Builder copy(TaxInfo model) { if (model.wasPropertyExplicitlySet("taxCnpj")) { this.taxCnpj(model.getTaxCnpj()); } + if (model.wasPropertyExplicitlySet("giro")) { + this.giro(model.getGiro()); + } return this; } } @@ -232,6 +254,19 @@ public String getTaxCnpj() { return taxCnpj; } + /** Companies' GIRO code */ + @com.fasterxml.jackson.annotation.JsonProperty("giro") + private final String giro; + + /** + * Companies' GIRO code + * + * @return the value + */ + public String getGiro() { + return giro; + } + @Override public String toString() { return this.toString(true); @@ -252,6 +287,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", noTaxReasonCode=").append(String.valueOf(this.noTaxReasonCode)); sb.append(", noTaxReasonCodeDetails=").append(String.valueOf(this.noTaxReasonCodeDetails)); sb.append(", taxCnpj=").append(String.valueOf(this.taxCnpj)); + sb.append(", giro=").append(String.valueOf(this.giro)); sb.append(")"); return sb.toString(); } @@ -272,6 +308,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.noTaxReasonCodeDetails, other.noTaxReasonCodeDetails) && java.util.Objects.equals(this.taxCnpj, other.taxCnpj) + && java.util.Objects.equals(this.giro, other.giro) && super.equals(other); } @@ -290,6 +327,7 @@ public int hashCode() { ? 43 : this.noTaxReasonCodeDetails.hashCode()); result = (result * PRIME) + (this.taxCnpj == null ? 43 : this.taxCnpj.hashCode()); + result = (result * PRIME) + (this.giro == null ? 43 : this.giro.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-ospgateway/src/main/java/com/oracle/bmc/ospgateway/model/TaxTypeRule.java b/bmc-ospgateway/src/main/java/com/oracle/bmc/ospgateway/model/TaxTypeRule.java index 8d4d0e1c940..2c89db64f07 100644 --- a/bmc-ospgateway/src/main/java/com/oracle/bmc/ospgateway/model/TaxTypeRule.java +++ b/bmc-ospgateway/src/main/java/com/oracle/bmc/ospgateway/model/TaxTypeRule.java @@ -21,10 +21,11 @@ com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public final class TaxTypeRule extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"fields"}) - public TaxTypeRule(java.util.List fields) { + @java.beans.ConstructorProperties({"fields", "valueSet"}) + public TaxTypeRule(java.util.List fields, java.util.List valueSet) { super(); this.fields = fields; + this.valueSet = valueSet; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -44,12 +45,27 @@ public Builder fields(java.util.List fields) { this.__explicitlySet__.add("fields"); return this; } + /** Label value pair for allowed values. Used for GIRO */ + @com.fasterxml.jackson.annotation.JsonProperty("valueSet") + private java.util.List valueSet; + + /** + * Label value pair for allowed values. Used for GIRO + * + * @param valueSet the value to set + * @return this builder + */ + public Builder valueSet(java.util.List valueSet) { + this.valueSet = valueSet; + this.__explicitlySet__.add("valueSet"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public TaxTypeRule build() { - TaxTypeRule model = new TaxTypeRule(this.fields); + TaxTypeRule model = new TaxTypeRule(this.fields, this.valueSet); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -61,6 +77,9 @@ public Builder copy(TaxTypeRule model) { if (model.wasPropertyExplicitlySet("fields")) { this.fields(model.getFields()); } + if (model.wasPropertyExplicitlySet("valueSet")) { + this.valueSet(model.getValueSet()); + } return this; } } @@ -87,6 +106,19 @@ public java.util.List getFields() { return fields; } + /** Label value pair for allowed values. Used for GIRO */ + @com.fasterxml.jackson.annotation.JsonProperty("valueSet") + private final java.util.List valueSet; + + /** + * Label value pair for allowed values. Used for GIRO + * + * @return the value + */ + public java.util.List getValueSet() { + return valueSet; + } + @Override public String toString() { return this.toString(true); @@ -103,6 +135,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("TaxTypeRule("); sb.append("super=").append(super.toString()); sb.append("fields=").append(String.valueOf(this.fields)); + sb.append(", valueSet=").append(String.valueOf(this.valueSet)); sb.append(")"); return sb.toString(); } @@ -117,7 +150,9 @@ public boolean equals(Object o) { } TaxTypeRule other = (TaxTypeRule) o; - return java.util.Objects.equals(this.fields, other.fields) && super.equals(other); + return java.util.Objects.equals(this.fields, other.fields) + && java.util.Objects.equals(this.valueSet, other.valueSet) + && super.equals(other); } @Override @@ -125,6 +160,7 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.fields == null ? 43 : this.fields.hashCode()); + result = (result * PRIME) + (this.valueSet == null ? 43 : this.valueSet.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-ospgateway/src/main/java/com/oracle/bmc/ospgateway/model/ValueSetEntity.java b/bmc-ospgateway/src/main/java/com/oracle/bmc/ospgateway/model/ValueSetEntity.java new file mode 100644 index 00000000000..6d240e30c74 --- /dev/null +++ b/bmc-ospgateway/src/main/java/com/oracle/bmc/ospgateway/model/ValueSetEntity.java @@ -0,0 +1,168 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.ospgateway.model; + +/** + * LOV for allowed values
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20191001") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ValueSetEntity.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ValueSetEntity + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "value"}) + public ValueSetEntity(String name, String value) { + super(); + this.name = name; + this.value = value; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** User friendly name */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * User friendly name + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** Value */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private String value; + + /** + * Value + * + * @param value the value to set + * @return this builder + */ + public Builder value(String value) { + this.value = value; + this.__explicitlySet__.add("value"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ValueSetEntity build() { + ValueSetEntity model = new ValueSetEntity(this.name, this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ValueSetEntity model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("value")) { + this.value(model.getValue()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** User friendly name */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * User friendly name + * + * @return the value + */ + public String getName() { + return name; + } + + /** Value */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final String value; + + /** + * Value + * + * @return the value + */ + public String getValue() { + return value; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ValueSetEntity("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", value=").append(String.valueOf(this.value)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ValueSetEntity)) { + return false; + } + + ValueSetEntity other = (ValueSetEntity) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.value, other.value) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-ospgateway/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-ospgateway/reflect-config.json b/bmc-ospgateway/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-ospgateway/reflect-config.json index a04f5c3f79a..6e3da703bdb 100644 --- a/bmc-ospgateway/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-ospgateway/reflect-config.json +++ b/bmc-ospgateway/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-ospgateway/reflect-config.json @@ -629,6 +629,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ospgateway.model.ValueSetEntity", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.ospgateway.model.ValueSetEntity$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.ospgateway.model.VerifyAddressDetails", diff --git a/bmc-osubbillingschedule/pom.xml b/bmc-osubbillingschedule/pom.xml index 746e5bc6b74..e81b698877b 100644 --- a/bmc-osubbillingschedule/pom.xml +++ b/bmc-osubbillingschedule/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-osubbillingschedule @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-osuborganizationsubscription/pom.xml b/bmc-osuborganizationsubscription/pom.xml index 08dd46ae217..d863a6e8a6c 100644 --- a/bmc-osuborganizationsubscription/pom.xml +++ b/bmc-osuborganizationsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-osuborganizationsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-osubsubscription/pom.xml b/bmc-osubsubscription/pom.xml index 950f2344efa..4285b90c4c6 100644 --- a/bmc-osubsubscription/pom.xml +++ b/bmc-osubsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-osubsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-osubusage/pom.xml b/bmc-osubusage/pom.xml index 3b73daba1fd..838e5282ab3 100644 --- a/bmc-osubusage/pom.xml +++ b/bmc-osubusage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-osubusage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.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 654c7fd4125..7ec63731d59 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.32.1 + 3.33.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.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm @@ -49,7 +49,7 @@ com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.32.1 + 3.33.0 false @@ -86,14 +86,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.32.1 + 3.33.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.32.1 + 3.33.0 pom import diff --git a/bmc-other-examples/bmc-jersey3-examples/pom.xml b/bmc-other-examples/bmc-jersey3-examples/pom.xml index 576f70a2a29..1ecfa08f02b 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.32.1 + 3.33.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.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm @@ -49,7 +49,7 @@ com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.32.1 + 3.33.0 false @@ -86,14 +86,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.32.1 + 3.33.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.32.1 + 3.33.0 pom import diff --git a/bmc-other-examples/native-maven-example/pom.xml b/bmc-other-examples/native-maven-example/pom.xml index 3882757c182..fd0f12e96e3 100644 --- a/bmc-other-examples/native-maven-example/pom.xml +++ b/bmc-other-examples/native-maven-example/pom.xml @@ -3,114 +3,114 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk-examples-native - 3.32.1 + 3.33.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.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm - - StreamsExample - 0.9.27 - + + StreamsExample + 0.9.27 + - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.8.1 - - 1.8 - 1.8 - - - - org.apache.maven.plugins - maven-source-plugin - 3.0.1 - - - attach-sources - package - - jar-no-fork - - - - - - org.codehaus.mojo - exec-maven-plugin - 1.6.0 - - ${mainClass} - - - - - - - - native - + - - org.graalvm.buildtools - native-maven-plugin - ${native-maven-plugin.version} - true - - - build-native - - compile-no-fork - - package - - - test-native - - test - - test - - - - ${mainClass} - - + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + + 1.8 + 1.8 + + + + org.apache.maven.plugins + maven-source-plugin + 3.0.1 + + + attach-sources + package + + jar-no-fork + + + + + + org.codehaus.mojo + exec-maven-plugin + 1.6.0 + + ${mainClass} + + - - - + + + + + native + + + + org.graalvm.buildtools + native-maven-plugin + ${native-maven-plugin.version} + true + + + build-native + + compile-no-fork + + package + + + test-native + + test + + test + + + + ${mainClass} + + + + + + + + + + + com.oracle.oci.sdk + oci-java-sdk-bom + 3.33.0 + pom + import + + + com.oracle.oci.sdk + oci-java-sdk-common-httpclient-jersey + 3.33.0 + pom + import + + + - - - com.oracle.oci.sdk - oci-java-sdk-bom - 3.32.1 - pom - import - - - com.oracle.oci.sdk - oci-java-sdk-common-httpclient-jersey - 3.32.1 - pom - import - + + com.oracle.oci.sdk + oci-java-sdk-common-httpclient-jersey + + + com.oracle.oci.sdk + oci-java-sdk-streaming + - - - - - com.oracle.oci.sdk - oci-java-sdk-common-httpclient-jersey - - - com.oracle.oci.sdk - oci-java-sdk-streaming - - \ No newline at end of file diff --git a/bmc-other-examples/pom.xml b/bmc-other-examples/pom.xml index 4ce3d815d50..676cffaba66 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.32.1 + 3.33.0 ../pom.xml diff --git a/bmc-psql/pom.xml b/bmc-psql/pom.xml index b79e8ef60df..8559db526e4 100644 --- a/bmc-psql/pom.xml +++ b/bmc-psql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-psql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-queue/pom.xml b/bmc-queue/pom.xml index e6836458bb8..f574a762f4f 100644 --- a/bmc-queue/pom.xml +++ b/bmc-queue/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-queue @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-recovery/pom.xml b/bmc-recovery/pom.xml index 2501d74d59b..b9d80b8130c 100644 --- a/bmc-recovery/pom.xml +++ b/bmc-recovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-recovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-redis/pom.xml b/bmc-redis/pom.xml index 163adfeb3e1..69610adef4a 100644 --- a/bmc-redis/pom.xml +++ b/bmc-redis/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-redis @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-resourcemanager/pom.xml b/bmc-resourcemanager/pom.xml index 037bc37eff1..4dcaca7966d 100644 --- a/bmc-resourcemanager/pom.xml +++ b/bmc-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-resourcemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-resourcesearch/pom.xml b/bmc-resourcesearch/pom.xml index dfe29ab8a9e..69a75a5d3d9 100644 --- a/bmc-resourcesearch/pom.xml +++ b/bmc-resourcesearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-resourcesearch @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-rover/pom.xml b/bmc-rover/pom.xml index e7af0200363..11aab16a4ee 100644 --- a/bmc-rover/pom.xml +++ b/bmc-rover/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-rover @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-sch/pom.xml b/bmc-sch/pom.xml index 8b57ce05dde..c528beab320 100644 --- a/bmc-sch/pom.xml +++ b/bmc-sch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-sch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-secrets/pom.xml b/bmc-secrets/pom.xml index 699280d0fb4..ddb474b1dfb 100644 --- a/bmc-secrets/pom.xml +++ b/bmc-secrets/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-secrets @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-servicecatalog/pom.xml b/bmc-servicecatalog/pom.xml index 1cc607feb06..bfb799b29ea 100644 --- a/bmc-servicecatalog/pom.xml +++ b/bmc-servicecatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-servicecatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-servicemanagerproxy/pom.xml b/bmc-servicemanagerproxy/pom.xml index 3cec1227bfb..1183b3413d0 100644 --- a/bmc-servicemanagerproxy/pom.xml +++ b/bmc-servicemanagerproxy/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-servicemanagerproxy @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-servicemesh/pom.xml b/bmc-servicemesh/pom.xml index 4e3851ba6f1..93efbb7d226 100644 --- a/bmc-servicemesh/pom.xml +++ b/bmc-servicemesh/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-servicemesh @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.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 e97ee6e3108..926c357aee2 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.32.1 + 3.33.0 ../pom.xml oci-java-sdk-shaded-full diff --git a/bmc-shaded/pom.xml b/bmc-shaded/pom.xml index 2d86553c6a2..ea47241d157 100644 --- a/bmc-shaded/pom.xml +++ b/bmc-shaded/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml diff --git a/bmc-stackmonitoring/pom.xml b/bmc-stackmonitoring/pom.xml index 8c167ead8e9..9acaf3f599e 100644 --- a/bmc-stackmonitoring/pom.xml +++ b/bmc-stackmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-stackmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-streaming/pom.xml b/bmc-streaming/pom.xml index 54c5b006207..474ce5dde19 100644 --- a/bmc-streaming/pom.xml +++ b/bmc-streaming/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-streaming @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-tenantmanagercontrolplane/pom.xml b/bmc-tenantmanagercontrolplane/pom.xml index e7760b0504b..46bf242c6fb 100644 --- a/bmc-tenantmanagercontrolplane/pom.xml +++ b/bmc-tenantmanagercontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-tenantmanagercontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-threatintelligence/pom.xml b/bmc-threatintelligence/pom.xml index 10a46c63f06..58fdeb2542c 100644 --- a/bmc-threatintelligence/pom.xml +++ b/bmc-threatintelligence/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-threatintelligence @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-usage/pom.xml b/bmc-usage/pom.xml index 178499bfaaf..0de13c477a1 100644 --- a/bmc-usage/pom.xml +++ b/bmc-usage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-usage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-usageapi/pom.xml b/bmc-usageapi/pom.xml index 32ecd00d6ad..16da0478b3e 100644 --- a/bmc-usageapi/pom.xml +++ b/bmc-usageapi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-usageapi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-vault/pom.xml b/bmc-vault/pom.xml index f32b2730bba..b6a37f4e410 100644 --- a/bmc-vault/pom.xml +++ b/bmc-vault/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-vault @@ -15,12 +15,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.32.1 + 3.33.0 diff --git a/bmc-vbsinst/pom.xml b/bmc-vbsinst/pom.xml index cb9704f9340..9d7729d8262 100644 --- a/bmc-vbsinst/pom.xml +++ b/bmc-vbsinst/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-vbsinst @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-visualbuilder/pom.xml b/bmc-visualbuilder/pom.xml index eed11238a0d..fd263606076 100644 --- a/bmc-visualbuilder/pom.xml +++ b/bmc-visualbuilder/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-visualbuilder @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-vnmonitoring/pom.xml b/bmc-vnmonitoring/pom.xml index 050f074b730..7b2dbc90ee3 100644 --- a/bmc-vnmonitoring/pom.xml +++ b/bmc-vnmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-vnmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-vulnerabilityscanning/pom.xml b/bmc-vulnerabilityscanning/pom.xml index 2672dccc309..d3e2ae3bf95 100644 --- a/bmc-vulnerabilityscanning/pom.xml +++ b/bmc-vulnerabilityscanning/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-vulnerabilityscanning @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-waa/pom.xml b/bmc-waa/pom.xml index e2d2a413a53..94d95d97fd2 100644 --- a/bmc-waa/pom.xml +++ b/bmc-waa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-waa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-waas/pom.xml b/bmc-waas/pom.xml index 82edfa5f6e6..d7cc614cadf 100644 --- a/bmc-waas/pom.xml +++ b/bmc-waas/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-waas @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/bmc-waf/pom.xml b/bmc-waf/pom.xml index f92ae770c74..8c28ec89697 100644 --- a/bmc-waf/pom.xml +++ b/bmc-waf/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-waf @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 \ No newline at end of file diff --git a/bmc-workrequests/pom.xml b/bmc-workrequests/pom.xml index 40772350ea8..d804bc9f78e 100644 --- a/bmc-workrequests/pom.xml +++ b/bmc-workrequests/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 ../pom.xml oci-java-sdk-workrequests @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.32.1 + 3.33.0 diff --git a/pom.xml b/pom.xml index ddc44e85419..3aeb9134b7e 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk - 3.32.1 + 3.33.0 pom Oracle Cloud Infrastructure SDK This project contains the SDK used for Oracle Cloud Infrastructure @@ -767,5 +767,6 @@ bmc-psql bmc-generativeai bmc-generativeaiinference + bmc-capacitymanagement \ No newline at end of file