From 54027170d93f36cf67e9d515e9ced4c4c0920435 Mon Sep 17 00:00:00 2001 From: oci-dex-release-bot Date: Tue, 21 May 2024 18:44:42 +0000 Subject: [PATCH] Releasing version 3.41.3 --- CHANGELOG.md | 7 + 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/bmc-sse-support-jersey3/pom.xml | 8 +- bmc-addons/bmc-sse-support/pom.xml | 8 +- bmc-addons/pom.xml | 2 +- bmc-adm/pom.xml | 4 +- bmc-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-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 +- .../src/main/java/com/oracle/bmc/bds/Bds.java | 247 ++++ .../java/com/oracle/bmc/bds/BdsAsync.java | 248 ++++ .../com/oracle/bmc/bds/BdsAsyncClient.java | 595 +++++++++ .../java/com/oracle/bmc/bds/BdsClient.java | 528 ++++++++ .../com/oracle/bmc/bds/BdsPaginators.java | 367 +++++ .../java/com/oracle/bmc/bds/BdsWaiters.java | 328 +++++ .../bmc/bds/model/BackupNodeDetails.java | 167 +++ .../CreateNodeBackupConfigurationDetails.java | 359 +++++ ...CreateNodeReplaceConfigurationDetails.java | 305 +++++ .../bmc/bds/model/LevelTypeDetails.java | 131 ++ .../java/com/oracle/bmc/bds/model/Node.java | 82 +- .../com/oracle/bmc/bds/model/NodeBackup.java | 619 +++++++++ .../bds/model/NodeBackupConfiguration.java | 619 +++++++++ .../model/NodeBackupConfigurationSummary.java | 387 ++++++ .../bmc/bds/model/NodeBackupSummary.java | 425 ++++++ .../bmc/bds/model/NodeLevelDetails.java | 135 ++ .../bds/model/NodeReplaceConfiguration.java | 569 ++++++++ .../NodeReplaceConfigurationSummary.java | 387 ++++++ .../bmc/bds/model/NodeTypeLevelDetails.java | 143 ++ .../oracle/bmc/bds/model/OperationTypes.java | 9 + ...RemoveNodeReplaceConfigurationDetails.java | 139 ++ .../bmc/bds/model/ReplaceNodeDetails.java | 264 ++++ .../UpdateNodeBackupConfigurationDetails.java | 359 +++++ ...UpdateNodeReplaceConfigurationDetails.java | 263 ++++ .../bmc/bds/requests/BackupNodeRequest.java | 345 +++++ .../CreateNodeBackupConfigurationRequest.java | 313 +++++ ...CreateNodeReplaceConfigurationRequest.java | 313 +++++ .../DeleteNodeBackupConfigurationRequest.java | 276 ++++ .../bds/requests/DeleteNodeBackupRequest.java | 266 ++++ .../GetNodeBackupConfigurationRequest.java | 230 ++++ .../bds/requests/GetNodeBackupRequest.java | 221 ++++ .../GetNodeReplaceConfigurationRequest.java | 230 ++++ .../ListNodeBackupConfigurationsRequest.java | 425 ++++++ .../bds/requests/ListNodeBackupsRequest.java | 449 +++++++ .../ListNodeReplaceConfigurationsRequest.java | 426 ++++++ ...RemoveNodeReplaceConfigurationRequest.java | 391 ++++++ .../bmc/bds/requests/ReplaceNodeRequest.java | 347 +++++ .../UpdateNodeBackupConfigurationRequest.java | 391 ++++++ ...UpdateNodeReplaceConfigurationRequest.java | 391 ++++++ .../bmc/bds/responses/BackupNodeResponse.java | 185 +++ ...CreateNodeBackupConfigurationResponse.java | 186 +++ ...reateNodeReplaceConfigurationResponse.java | 186 +++ ...DeleteNodeBackupConfigurationResponse.java | 186 +++ .../responses/DeleteNodeBackupResponse.java | 185 +++ .../GetNodeBackupConfigurationResponse.java | 215 +++ .../bds/responses/GetNodeBackupResponse.java | 208 +++ .../GetNodeReplaceConfigurationResponse.java | 215 +++ .../ListNodeBackupConfigurationsResponse.java | 222 ++++ .../responses/ListNodeBackupsResponse.java | 220 +++ ...ListNodeReplaceConfigurationsResponse.java | 222 ++++ ...emoveNodeReplaceConfigurationResponse.java | 186 +++ .../bds/responses/ReplaceNodeResponse.java | 185 +++ ...UpdateNodeBackupConfigurationResponse.java | 186 +++ ...pdateNodeReplaceConfigurationResponse.java | 186 +++ .../oci-java-sdk-bds/reflect-config.json | 259 ++++ bmc-blockchain/pom.xml | 4 +- bmc-bom/pom.xml | 316 ++--- bmc-budget/pom.xml | 4 +- bmc-capacitymanagement/pom.xml | 4 +- bmc-certificates/pom.xml | 4 +- bmc-certificatesmanagement/pom.xml | 4 +- bmc-cims/pom.xml | 4 +- bmc-circuitbreaker/pom.xml | 2 +- bmc-cloudbridge/pom.xml | 4 +- bmc-cloudguard/pom.xml | 4 +- bmc-cloudmigrations/pom.xml | 4 +- bmc-clusterplacementgroups/pom.xml | 4 +- .../ClusterPlacementGroupsCPAsyncClient.java | 64 +- .../ClusterPlacementGroupsCPClient.java | 64 +- .../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-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-datalabelingservice/pom.xml | 4 +- bmc-datalabelingservicedataplane/pom.xml | 4 +- bmc-datasafe/pom.xml | 4 +- bmc-datascience/pom.xml | 4 +- .../datascience/DataScienceAsyncClient.java | 4 + .../bmc/datascience/DataScienceClient.java | 4 + .../model/FastLaunchJobConfigSummary.java | 1 + .../datascience/model/JobShapeSummary.java | 1 + .../model/ModelDeploymentShapeSeries.java | 1 + .../model/NotebookSessionShapeSeries.java | 1 + ...PipelineContainerConfigurationDetails.java | 124 ++ .../model/PipelineContainerStepDetails.java | 267 ++++ .../model/PipelineContainerStepRun.java | 170 +++ .../PipelineContainerStepUpdateDetails.java | 177 +++ ...PipelineCustomScriptStepUpdateDetails.java | 42 +- ...ineInfrastructureConfigurationDetails.java | 54 +- ...lineOcirContainerConfigurationDetails.java | 346 +++++ .../model/PipelineStepDetails.java | 4 + .../model/PipelineStepOverrideDetails.java | 47 +- .../datascience/model/PipelineStepRun.java | 4 + .../model/PipelineStepUpdateDetails.java | 6 +- .../model/UpdatePipelineDetails.java | 49 +- .../requests/CancelPipelineRunRequest.java | 38 +- .../requests/CreateJobRunRequest.java | 36 +- .../CreateModelDeploymentRequest.java | 35 +- .../requests/CreatePipelineRunRequest.java | 36 +- .../reflect-config.json | 69 + bmc-desktops/pom.xml | 4 +- bmc-devops/pom.xml | 4 +- bmc-disasterrecovery/pom.xml | 4 +- bmc-dns/pom.xml | 6 +- bmc-dts/pom.xml | 4 +- bmc-email/pom.xml | 4 +- bmc-emaildataplane/pom.xml | 4 +- bmc-emwarehouse/pom.xml | 4 +- bmc-encryption/pom.xml | 10 +- bmc-enforcer-rules/pom.xml | 2 +- bmc-events/pom.xml | 4 +- bmc-examples/pom.xml | 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-globallydistributeddatabase/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-marketplaceprivateoffer/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 | 4 +- bmc-nosql/pom.xml | 4 +- .../bmc-objectstorage-combined/pom.xml | 6 +- .../bmc-objectstorage-extensions/pom.xml | 8 +- .../bmc-objectstorage-generated/pom.xml | 4 +- bmc-objectstorage/pom.xml | 2 +- bmc-oce/pom.xml | 4 +- bmc-ocicontrolcenter/pom.xml | 4 +- bmc-ocvp/pom.xml | 4 +- bmc-oda/pom.xml | 4 +- bmc-onesubscription/pom.xml | 4 +- bmc-ons/pom.xml | 4 +- bmc-opa/pom.xml | 4 +- bmc-opensearch/pom.xml | 4 +- 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 +- bmc-osubbillingschedule/pom.xml | 4 +- bmc-osuborganizationsubscription/pom.xml | 4 +- bmc-osubsubscription/pom.xml | 4 +- bmc-osubusage/pom.xml | 4 +- .../bmc-jersey-examples/pom.xml | 8 +- .../bmc-jersey3-examples/pom.xml | 8 +- .../native-maven-example/pom.xml | 6 +- bmc-other-examples/pom.xml | 2 +- bmc-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-resourcescheduler/pom.xml | 21 + .../bmc/resourcescheduler/Schedule.java | 284 ++++ .../bmc/resourcescheduler/ScheduleAsync.java | 263 ++++ .../ScheduleAsyncClient.java | 657 +++++++++ .../bmc/resourcescheduler/ScheduleClient.java | 704 ++++++++++ .../resourcescheduler/SchedulePaginators.java | 636 +++++++++ .../resourcescheduler/ScheduleWaiters.java | 182 +++ .../resourcescheduler/model/ActionType.java | 56 + .../model/CompartmentIdResourceFilter.java | 178 +++ .../model/CreateScheduleDetails.java | 740 +++++++++++ .../model/DefinedTagFilterValue.java | 205 +++ .../model/DefinedTagsResourceFilter.java | 134 ++ .../model/LifecycleStateResourceFilter.java | 134 ++ .../model/OperationStatus.java | 59 + .../model/OperationType.java | 56 + .../bmc/resourcescheduler/model/Resource.java | 183 +++ .../model/ResourceFilter.java | 139 ++ .../resourcescheduler/model/ResourceType.java | 131 ++ .../model/ResourceTypeCollection.java | 133 ++ .../model/ResourceTypeResourceFilter.java | 134 ++ .../bmc/resourcescheduler/model/Schedule.java | 1176 +++++++++++++++++ .../model/ScheduleCollection.java | 133 ++ .../model/ScheduleSummary.java | 1158 ++++++++++++++++ .../resourcescheduler/model/SortOrder.java | 43 + .../model/TimeCreatedResourceFilter.java | 218 +++ .../model/UpdateScheduleDetails.java | 692 ++++++++++ .../resourcescheduler/model/WorkRequest.java | 544 ++++++++ .../model/WorkRequestError.java | 220 +++ .../model/WorkRequestErrorCollection.java | 134 ++ .../model/WorkRequestLogEntry.java | 177 +++ .../model/WorkRequestLogEntryCollection.java | 134 ++ .../model/WorkRequestResource.java | 272 ++++ .../model/WorkRequestSummary.java | 543 ++++++++ .../model/WorkRequestSummaryCollection.java | 134 ++ .../requests/ActivateScheduleRequest.java | 316 +++++ .../requests/CancelWorkRequestRequest.java | 267 ++++ .../requests/CreateScheduleRequest.java | 290 ++++ .../requests/DeactivateScheduleRequest.java | 316 +++++ .../requests/DeleteScheduleRequest.java | 262 ++++ .../requests/GetScheduleRequest.java | 218 +++ .../requests/GetWorkRequestRequest.java | 220 +++ .../requests/ListResourceTypesRequest.java | 304 +++++ .../requests/ListSchedulesRequest.java | 527 ++++++++ .../ListWorkRequestErrorsRequest.java | 415 ++++++ .../requests/ListWorkRequestLogsRequest.java | 413 ++++++ .../requests/ListWorkRequestsRequest.java | 565 ++++++++ .../requests/UpdateScheduleRequest.java | 325 +++++ .../responses/ActivateScheduleResponse.java | 208 +++ .../responses/CancelWorkRequestResponse.java | 136 ++ .../responses/CreateScheduleResponse.java | 338 +++++ .../responses/DeactivateScheduleResponse.java | 208 +++ .../responses/DeleteScheduleResponse.java | 136 ++ .../responses/GetScheduleResponse.java | 208 +++ .../responses/GetWorkRequestResponse.java | 249 ++++ .../responses/ListResourceTypesResponse.java | 229 ++++ .../responses/ListSchedulesResponse.java | 225 ++++ .../ListWorkRequestErrorsResponse.java | 236 ++++ .../ListWorkRequestLogsResponse.java | 236 ++++ .../responses/ListWorkRequestsResponse.java | 236 ++++ .../responses/UpdateScheduleResponse.java | 189 +++ .../reflect-config.json | 407 ++++++ .../bmc/resourcescheduler/client.properties | 9 + 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 +- 313 files changed, 36339 insertions(+), 569 deletions(-) create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/BackupNodeDetails.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateNodeBackupConfigurationDetails.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateNodeReplaceConfigurationDetails.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/LevelTypeDetails.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/NodeBackup.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/NodeBackupConfiguration.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/NodeBackupConfigurationSummary.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/NodeBackupSummary.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/NodeLevelDetails.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/NodeReplaceConfiguration.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/NodeReplaceConfigurationSummary.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/NodeTypeLevelDetails.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveNodeReplaceConfigurationDetails.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/ReplaceNodeDetails.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateNodeBackupConfigurationDetails.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateNodeReplaceConfigurationDetails.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/requests/BackupNodeRequest.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/requests/CreateNodeBackupConfigurationRequest.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/requests/CreateNodeReplaceConfigurationRequest.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/requests/DeleteNodeBackupConfigurationRequest.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/requests/DeleteNodeBackupRequest.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/requests/GetNodeBackupConfigurationRequest.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/requests/GetNodeBackupRequest.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/requests/GetNodeReplaceConfigurationRequest.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListNodeBackupConfigurationsRequest.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListNodeBackupsRequest.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListNodeReplaceConfigurationsRequest.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/requests/RemoveNodeReplaceConfigurationRequest.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ReplaceNodeRequest.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/requests/UpdateNodeBackupConfigurationRequest.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/requests/UpdateNodeReplaceConfigurationRequest.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/BackupNodeResponse.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/CreateNodeBackupConfigurationResponse.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/CreateNodeReplaceConfigurationResponse.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/DeleteNodeBackupConfigurationResponse.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/DeleteNodeBackupResponse.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/GetNodeBackupConfigurationResponse.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/GetNodeBackupResponse.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/GetNodeReplaceConfigurationResponse.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListNodeBackupConfigurationsResponse.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListNodeBackupsResponse.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListNodeReplaceConfigurationsResponse.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/RemoveNodeReplaceConfigurationResponse.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ReplaceNodeResponse.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/UpdateNodeBackupConfigurationResponse.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/UpdateNodeReplaceConfigurationResponse.java create mode 100644 bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineContainerConfigurationDetails.java create mode 100644 bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineContainerStepDetails.java create mode 100644 bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineContainerStepRun.java create mode 100644 bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineContainerStepUpdateDetails.java create mode 100644 bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineOcirContainerConfigurationDetails.java create mode 100644 bmc-resourcescheduler/pom.xml create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/Schedule.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/ScheduleAsync.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/ScheduleAsyncClient.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/ScheduleClient.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/SchedulePaginators.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/ScheduleWaiters.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/ActionType.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/CompartmentIdResourceFilter.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/CreateScheduleDetails.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/DefinedTagFilterValue.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/DefinedTagsResourceFilter.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/LifecycleStateResourceFilter.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/OperationStatus.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/OperationType.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/Resource.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/ResourceFilter.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/ResourceType.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/ResourceTypeCollection.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/ResourceTypeResourceFilter.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/Schedule.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/ScheduleCollection.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/ScheduleSummary.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/SortOrder.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/TimeCreatedResourceFilter.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/UpdateScheduleDetails.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/WorkRequest.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/WorkRequestError.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/WorkRequestErrorCollection.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/WorkRequestLogEntry.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/WorkRequestLogEntryCollection.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/WorkRequestResource.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/WorkRequestSummary.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/WorkRequestSummaryCollection.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/ActivateScheduleRequest.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/CancelWorkRequestRequest.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/CreateScheduleRequest.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/DeactivateScheduleRequest.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/DeleteScheduleRequest.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/GetScheduleRequest.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/GetWorkRequestRequest.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/ListResourceTypesRequest.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/ListSchedulesRequest.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/ListWorkRequestErrorsRequest.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/ListWorkRequestLogsRequest.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/ListWorkRequestsRequest.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/UpdateScheduleRequest.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/ActivateScheduleResponse.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/CancelWorkRequestResponse.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/CreateScheduleResponse.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/DeactivateScheduleResponse.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/DeleteScheduleResponse.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/GetScheduleResponse.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/GetWorkRequestResponse.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/ListResourceTypesResponse.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/ListSchedulesResponse.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/ListWorkRequestErrorsResponse.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/ListWorkRequestLogsResponse.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/ListWorkRequestsResponse.java create mode 100644 bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/UpdateScheduleResponse.java create mode 100644 bmc-resourcescheduler/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-resourcescheduler/reflect-config.json create mode 100644 bmc-resourcescheduler/src/main/resources/com/oracle/bmc/resourcescheduler/client.properties diff --git a/CHANGELOG.md b/CHANGELOG.md index de82d7e4a75..831dd89d37c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/). +## 3.41.3 - 2024-05-21 +### Added +- Support for the Resource Scheduler service +- Support for Bring Your Own Container (BYOC), custom networking and graceful termination of pipelines in the Data Science service +- Support for backup and replacement of master, utility, and edge nodes in the Big Data service +- Support for nested resource principal in the Data Science service + ## 3.41.2 - 2024-05-14 ### Added - Support for the Marketplace Private Offer service diff --git a/bmc-accessgovernancecp/pom.xml b/bmc-accessgovernancecp/pom.xml index eb38918a427..81fb83b6711 100644 --- a/bmc-accessgovernancecp/pom.xml +++ b/bmc-accessgovernancecp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-accessgovernancecp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ 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 e9f1e44bde9..008d1d825d4 100644 --- a/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml +++ b/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.41.2 + 3.41.3 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.41.2 + 3.41.3 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.41.2 + 3.41.3 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 bc1322c6f1d..8ac05e86a6b 100644 --- a/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml +++ b/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.41.2 + 3.41.3 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.41.2 + 3.41.3 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.41.2 + 3.41.3 pom import diff --git a/bmc-addons/bmc-apache-connector-provider/pom.xml b/bmc-addons/bmc-apache-connector-provider/pom.xml index d449e67097b..5469d503501 100644 --- a/bmc-addons/bmc-apache-connector-provider/pom.xml +++ b/bmc-addons/bmc-apache-connector-provider/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.41.2 + 3.41.3 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-addons/bmc-oke-workload-identity/pom.xml b/bmc-addons/bmc-oke-workload-identity/pom.xml index a36b0a2b4a5..ad9f09afc69 100644 --- a/bmc-addons/bmc-oke-workload-identity/pom.xml +++ b/bmc-addons/bmc-oke-workload-identity/pom.xml @@ -4,7 +4,7 @@ oci-java-sdk-addons com.oracle.oci.sdk - 3.41.2 + 3.41.3 4.0.0 @@ -38,25 +38,25 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 compile com.oracle.oci.sdk oci-java-sdk-core - 3.41.2 + 3.41.3 test com.oracle.oci.sdk oci-java-sdk-identity - 3.41.2 + 3.41.3 test com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.41.2 + 3.41.3 test diff --git a/bmc-addons/bmc-resteasy-client-configurator/pom.xml b/bmc-addons/bmc-resteasy-client-configurator/pom.xml index c2e9c222907..982efc360a6 100644 --- a/bmc-addons/bmc-resteasy-client-configurator/pom.xml +++ b/bmc-addons/bmc-resteasy-client-configurator/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.41.2 + 3.41.3 ../pom.xml @@ -23,7 +23,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ 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 6cfd017f501..aa2d43f21a2 100644 --- a/bmc-addons/bmc-sasl-oke-workload-identity/pom.xml +++ b/bmc-addons/bmc-sasl-oke-workload-identity/pom.xml @@ -4,7 +4,7 @@ oci-java-sdk-addons com.oracle.oci.sdk - 3.41.2 + 3.41.3 ../pom.xml 4.0.0 @@ -39,13 +39,13 @@ com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.41.2 + 3.41.3 compile com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.41.2 + 3.41.3 compile diff --git a/bmc-addons/bmc-sasl/pom.xml b/bmc-addons/bmc-sasl/pom.xml index df540fc2b82..5e9520b423f 100644 --- a/bmc-addons/bmc-sasl/pom.xml +++ b/bmc-addons/bmc-sasl/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.41.2 + 3.41.3 ../pom.xml @@ -60,7 +60,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-addons/bmc-sse-support-jersey3/pom.xml b/bmc-addons/bmc-sse-support-jersey3/pom.xml index fb004045945..9027fa2f287 100644 --- a/bmc-addons/bmc-sse-support-jersey3/pom.xml +++ b/bmc-addons/bmc-sse-support-jersey3/pom.xml @@ -5,7 +5,7 @@ oci-java-sdk-addons com.oracle.oci.sdk - 3.41.2 + 3.41.3 ../pom.xml 4.0.0 @@ -150,12 +150,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.41.2 + 3.41.3 test @@ -164,7 +164,7 @@ but the code in it needs it. --> com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.41.2 + 3.41.3 diff --git a/bmc-addons/bmc-sse-support/pom.xml b/bmc-addons/bmc-sse-support/pom.xml index cec3c15e80e..72a3955d337 100644 --- a/bmc-addons/bmc-sse-support/pom.xml +++ b/bmc-addons/bmc-sse-support/pom.xml @@ -5,7 +5,7 @@ oci-java-sdk-addons com.oracle.oci.sdk - 3.41.2 + 3.41.3 ../pom.xml 4.0.0 @@ -150,12 +150,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.41.2 + 3.41.3 test @@ -164,7 +164,7 @@ but the code in it needs it. --> com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.41.2 + 3.41.3 diff --git a/bmc-addons/pom.xml b/bmc-addons/pom.xml index b9655b3b2b3..503e06dab2a 100644 --- a/bmc-addons/pom.xml +++ b/bmc-addons/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml diff --git a/bmc-adm/pom.xml b/bmc-adm/pom.xml index 78a9d113940..ef3cefce431 100644 --- a/bmc-adm/pom.xml +++ b/bmc-adm/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-adm @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-aianomalydetection/pom.xml b/bmc-aianomalydetection/pom.xml index 218ebb49998..8a12ea18b51 100644 --- a/bmc-aianomalydetection/pom.xml +++ b/bmc-aianomalydetection/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-aianomalydetection @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-aidocument/pom.xml b/bmc-aidocument/pom.xml index c4a35af96ee..48792a1d50e 100644 --- a/bmc-aidocument/pom.xml +++ b/bmc-aidocument/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-aidocument @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-ailanguage/pom.xml b/bmc-ailanguage/pom.xml index a43072e7b49..34ff6718e51 100644 --- a/bmc-ailanguage/pom.xml +++ b/bmc-ailanguage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-ailanguage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-aispeech/pom.xml b/bmc-aispeech/pom.xml index 0020f8d7cb4..747ee4dd0d4 100644 --- a/bmc-aispeech/pom.xml +++ b/bmc-aispeech/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-aispeech @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-aivision/pom.xml b/bmc-aivision/pom.xml index d0e80d41732..b7ad9a6e51f 100644 --- a/bmc-aivision/pom.xml +++ b/bmc-aivision/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-aivision @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-analytics/pom.xml b/bmc-analytics/pom.xml index 91d7edf175d..1fb23af92f5 100644 --- a/bmc-analytics/pom.xml +++ b/bmc-analytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-analytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-announcementsservice/pom.xml b/bmc-announcementsservice/pom.xml index d6a36e50bbb..abe5bcacd4d 100644 --- a/bmc-announcementsservice/pom.xml +++ b/bmc-announcementsservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-announcementsservice @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-apigateway/pom.xml b/bmc-apigateway/pom.xml index a6c4710ed1f..25e5ddff921 100644 --- a/bmc-apigateway/pom.xml +++ b/bmc-apigateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-apigateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-apmconfig/pom.xml b/bmc-apmconfig/pom.xml index 8ef1330a8b2..e7ab665aa36 100644 --- a/bmc-apmconfig/pom.xml +++ b/bmc-apmconfig/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-apmconfig @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-apmcontrolplane/pom.xml b/bmc-apmcontrolplane/pom.xml index 519a2babaff..7b4706bfbb3 100644 --- a/bmc-apmcontrolplane/pom.xml +++ b/bmc-apmcontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-apmcontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-apmsynthetics/pom.xml b/bmc-apmsynthetics/pom.xml index f428d5b783e..4a61b640c61 100644 --- a/bmc-apmsynthetics/pom.xml +++ b/bmc-apmsynthetics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-apmsynthetics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-apmtraces/pom.xml b/bmc-apmtraces/pom.xml index c827457edec..4b5d09028e0 100644 --- a/bmc-apmtraces/pom.xml +++ b/bmc-apmtraces/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-apmtraces @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-appmgmtcontrol/pom.xml b/bmc-appmgmtcontrol/pom.xml index 7e27999eefa..2de7266064a 100644 --- a/bmc-appmgmtcontrol/pom.xml +++ b/bmc-appmgmtcontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-appmgmtcontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-artifacts/pom.xml b/bmc-artifacts/pom.xml index dc9736e7c8a..6d2dc450cf3 100644 --- a/bmc-artifacts/pom.xml +++ b/bmc-artifacts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-artifacts @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-audit/pom.xml b/bmc-audit/pom.xml index 8dc41f2cc44..f0f5478c4ae 100644 --- a/bmc-audit/pom.xml +++ b/bmc-audit/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-autoscaling/pom.xml b/bmc-autoscaling/pom.xml index a9a548c1e66..e79088de1dc 100644 --- a/bmc-autoscaling/pom.xml +++ b/bmc-autoscaling/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-autoscaling @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-bastion/pom.xml b/bmc-bastion/pom.xml index ab29ae5d572..c9b0604f124 100644 --- a/bmc-bastion/pom.xml +++ b/bmc-bastion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-bastion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-bds/pom.xml b/bmc-bds/pom.xml index 6a1a8789f34..1cd63ec228c 100644 --- a/bmc-bds/pom.xml +++ b/bmc-bds/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-bds @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/Bds.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/Bds.java index 18f9927797f..477d3768196 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/Bds.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/Bds.java @@ -203,6 +203,21 @@ AddAutoScalingConfigurationResponse addAutoScalingConfiguration( */ AddWorkerNodesResponse addWorkerNodes(AddWorkerNodesRequest request); + /** + * Takes a backup of of given nodes. + * + * @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 BackupNode API. + */ + BackupNodeResponse backupNode(BackupNodeRequest request); + /** * A list of services and their certificate details. * @@ -303,6 +318,40 @@ ChangeBdsInstanceCompartmentResponse changeBdsInstanceCompartment( CreateBdsMetastoreConfigurationResponse createBdsMetastoreConfiguration( CreateBdsMetastoreConfigurationRequest request); + /** + * Add a node volume backup configuration to the cluster for an indicated node type or node. + * + * @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 + * CreateNodeBackupConfiguration API. + */ + CreateNodeBackupConfigurationResponse createNodeBackupConfiguration( + CreateNodeBackupConfigurationRequest request); + + /** + * Add a nodeReplaceConfigurations to the cluster. + * + * @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 + * CreateNodeReplaceConfiguration API. + */ + CreateNodeReplaceConfigurationResponse createNodeReplaceConfiguration( + CreateNodeReplaceConfigurationRequest request); + /** * Deletes the user's API key represented by the provided ID. * @@ -352,6 +401,39 @@ CreateBdsMetastoreConfigurationResponse createBdsMetastoreConfiguration( DeleteBdsMetastoreConfigurationResponse deleteBdsMetastoreConfiguration( DeleteBdsMetastoreConfigurationRequest request); + /** + * Delete the NodeBackup represented by the provided ID. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 DeleteNodeBackup + * API. + */ + DeleteNodeBackupResponse deleteNodeBackup(DeleteNodeBackupRequest request); + + /** + * Delete the NodeBackupConfiguration represented by the provided ID. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * DeleteNodeBackupConfiguration API. + */ + DeleteNodeBackupConfigurationResponse deleteNodeBackupConfiguration( + DeleteNodeBackupConfigurationRequest request); + /** * Disabling TLS/SSL for various ODH services running on the BDS cluster. * @@ -464,6 +546,55 @@ GetAutoScalingConfigurationResponse getAutoScalingConfiguration( GetBdsMetastoreConfigurationResponse getBdsMetastoreConfiguration( GetBdsMetastoreConfigurationRequest request); + /** + * Returns details of NodeBackup identified by the given ID. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 GetNodeBackup API. + */ + GetNodeBackupResponse getNodeBackup(GetNodeBackupRequest request); + + /** + * Returns details of the NodeBackupConfiguration identified by the given ID. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * GetNodeBackupConfiguration API. + */ + GetNodeBackupConfigurationResponse getNodeBackupConfiguration( + GetNodeBackupConfigurationRequest request); + + /** + * Returns details of the nodeReplaceConfiguration identified by the given ID. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * GetNodeReplaceConfiguration API. + */ + GetNodeReplaceConfigurationResponse getNodeReplaceConfiguration( + GetNodeReplaceConfigurationRequest request); + /** * Get the details of an os patch * @@ -590,6 +721,56 @@ ListAutoScalingConfigurationsResponse listAutoScalingConfigurations( ListBdsMetastoreConfigurationsResponse listBdsMetastoreConfigurations( ListBdsMetastoreConfigurationsRequest request); + /** + * Returns information about the NodeBackupConfigurations. + * + * @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 + * ListNodeBackupConfigurations API. + */ + ListNodeBackupConfigurationsResponse listNodeBackupConfigurations( + ListNodeBackupConfigurationsRequest request); + + /** + * Returns information about the node Backups. + * + * @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 ListNodeBackups + * API. + */ + ListNodeBackupsResponse listNodeBackups(ListNodeBackupsRequest request); + + /** + * Returns information about the NodeReplaceConfiguration. + * + * @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 + * ListNodeReplaceConfigurations API. + */ + ListNodeReplaceConfigurationsResponse listNodeReplaceConfigurations( + ListNodeReplaceConfigurationsRequest request); + /** * List all available os patches for a given cluster * @@ -746,6 +927,23 @@ RemoveAutoScalingConfigurationResponse removeAutoScalingConfiguration( */ RemoveNodeResponse removeNode(RemoveNodeRequest request); + /** + * Deletes a nodeReplaceConfiguration + * + * @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 + * RemoveNodeReplaceConfiguration API. + */ + RemoveNodeReplaceConfigurationResponse removeNodeReplaceConfiguration( + RemoveNodeReplaceConfigurationRequest request); + /** * Renewing TLS/SSL for various ODH services running on the BDS cluster. * @@ -762,6 +960,21 @@ RemoveAutoScalingConfigurationResponse removeAutoScalingConfiguration( */ RenewCertificateResponse renewCertificate(RenewCertificateRequest request); + /** + * Replaces a node of a Big Data Service cluster from backup. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation will not retry by default, users + * can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to + * enable retries for it. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use ReplaceNode API. + */ + ReplaceNodeResponse replaceNode(ReplaceNodeRequest request); + /** * Restarts a single node of a Big Data Service cluster * @@ -894,6 +1107,40 @@ UpdateAutoScalingConfigurationResponse updateAutoScalingConfiguration( UpdateBdsMetastoreConfigurationResponse updateBdsMetastoreConfiguration( UpdateBdsMetastoreConfigurationRequest request); + /** + * Updates fields on NodeBackupConfiguration, including the name, the schedule. + * + * @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 + * UpdateNodeBackupConfiguration API. + */ + UpdateNodeBackupConfigurationResponse updateNodeBackupConfiguration( + UpdateNodeBackupConfigurationRequest request); + + /** + * Updates fields on nodeReplaceConfigurations, including the name, the schedule + * + * @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 + * UpdateNodeReplaceConfiguration API. + */ + UpdateNodeReplaceConfigurationResponse updateNodeReplaceConfiguration( + UpdateNodeReplaceConfigurationRequest request); + /** * Gets the pre-configured waiters available for resources for this service. * diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsAsync.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsAsync.java index 5dfa7b6adb3..7b685237c94 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsAsync.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsAsync.java @@ -196,6 +196,20 @@ java.util.concurrent.Future addWorkerNodes( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Takes a backup of of given nodes. + * + * @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 backupNode( + BackupNodeRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + /** * A list of services and their certificate details. * @@ -295,6 +309,42 @@ java.util.concurrent.Future createBdsInstance( CreateBdsMetastoreConfigurationResponse> handler); + /** + * Add a node volume backup configuration to the cluster for an indicated node type or node. + * + * @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 + createNodeBackupConfiguration( + CreateNodeBackupConfigurationRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateNodeBackupConfigurationRequest, + CreateNodeBackupConfigurationResponse> + handler); + + /** + * Add a nodeReplaceConfigurations to the cluster. + * + * @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 + createNodeReplaceConfiguration( + CreateNodeReplaceConfigurationRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateNodeReplaceConfigurationRequest, + CreateNodeReplaceConfigurationResponse> + handler); + /** * Deletes the user's API key represented by the provided ID. * @@ -344,6 +394,39 @@ java.util.concurrent.Future deleteBdsInstance( DeleteBdsMetastoreConfigurationResponse> handler); + /** + * Delete the NodeBackup represented by the provided ID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future deleteNodeBackup( + DeleteNodeBackupRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Delete the NodeBackupConfiguration represented by the provided ID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + deleteNodeBackupConfiguration( + DeleteNodeBackupConfigurationRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteNodeBackupConfigurationRequest, + DeleteNodeBackupConfigurationResponse> + handler); + /** * Disabling TLS/SSL for various ODH services running on the BDS cluster. * @@ -455,6 +538,53 @@ java.util.concurrent.Future getBdsMetastor GetBdsMetastoreConfigurationResponse> handler); + /** + * Returns details of NodeBackup identified by the given ID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getNodeBackup( + GetNodeBackupRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Returns details of the NodeBackupConfiguration identified by the given ID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getNodeBackupConfiguration( + GetNodeBackupConfigurationRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetNodeBackupConfigurationRequest, GetNodeBackupConfigurationResponse> + handler); + + /** + * Returns details of the nodeReplaceConfiguration identified by the given ID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getNodeReplaceConfiguration( + GetNodeReplaceConfigurationRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetNodeReplaceConfigurationRequest, GetNodeReplaceConfigurationResponse> + handler); + /** * Get the details of an os patch * @@ -582,6 +712,56 @@ java.util.concurrent.Future listBdsInstances( ListBdsMetastoreConfigurationsResponse> handler); + /** + * Returns information about the NodeBackupConfigurations. + * + * @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 listNodeBackupConfigurations( + ListNodeBackupConfigurationsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListNodeBackupConfigurationsRequest, + ListNodeBackupConfigurationsResponse> + handler); + + /** + * Returns information about the node Backups. + * + * @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 listNodeBackups( + ListNodeBackupsRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Returns information about the NodeReplaceConfiguration. + * + * @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 + listNodeReplaceConfigurations( + ListNodeReplaceConfigurationsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListNodeReplaceConfigurationsRequest, + ListNodeReplaceConfigurationsResponse> + handler); + /** * List all available os patches for a given cluster * @@ -735,6 +915,24 @@ java.util.concurrent.Future removeNode( RemoveNodeRequest request, com.oracle.bmc.responses.AsyncHandler handler); + /** + * Deletes a nodeReplaceConfiguration + * + * @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 + removeNodeReplaceConfiguration( + RemoveNodeReplaceConfigurationRequest request, + com.oracle.bmc.responses.AsyncHandler< + RemoveNodeReplaceConfigurationRequest, + RemoveNodeReplaceConfigurationResponse> + handler); + /** * Renewing TLS/SSL for various ODH services running on the BDS cluster. * @@ -750,6 +948,20 @@ java.util.concurrent.Future renewCertificate( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Replaces a node of a Big Data Service cluster from backup. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future replaceNode( + ReplaceNodeRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + /** * Restarts a single node of a Big Data Service cluster * @@ -882,4 +1094,40 @@ java.util.concurrent.Future updateBdsInstance( UpdateBdsMetastoreConfigurationRequest, UpdateBdsMetastoreConfigurationResponse> handler); + + /** + * Updates fields on NodeBackupConfiguration, including the name, the schedule. + * + * @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 + updateNodeBackupConfiguration( + UpdateNodeBackupConfigurationRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateNodeBackupConfigurationRequest, + UpdateNodeBackupConfigurationResponse> + handler); + + /** + * Updates fields on nodeReplaceConfigurations, including the name, the schedule + * + * @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 + updateNodeReplaceConfiguration( + UpdateNodeReplaceConfigurationRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateNodeReplaceConfigurationRequest, + UpdateNodeReplaceConfigurationResponse> + handler); } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsAsyncClient.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsAsyncClient.java index dc57ab5f0c3..c793a94de0e 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsAsyncClient.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsAsyncClient.java @@ -391,6 +391,40 @@ public java.util.concurrent.Future addWorkerNodes( .callAsync(handler); } + @Override + public java.util.concurrent.Future backupNode( + BackupNodeRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + Objects.requireNonNull(request.getBackupNodeDetails(), "backupNodeDetails is required"); + + return clientCall(request, BackupNodeResponse::builder) + .logger(LOG, "backupNode") + .serviceDetails( + "Bds", + "BackupNode", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/BackupNode") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(BackupNodeRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("actions") + .appendPathParam("backupNodes") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", BackupNodeResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", BackupNodeResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future certificateServiceInfo( CertificateServiceInfoRequest request, @@ -608,6 +642,84 @@ public java.util.concurrent.Future createBdsInstance( .callAsync(handler); } + @Override + public java.util.concurrent.Future + createNodeBackupConfiguration( + CreateNodeBackupConfigurationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateNodeBackupConfigurationRequest, + CreateNodeBackupConfigurationResponse> + handler) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + Objects.requireNonNull( + request.getCreateNodeBackupConfigurationDetails(), + "createNodeBackupConfigurationDetails is required"); + + return clientCall(request, CreateNodeBackupConfigurationResponse::builder) + .logger(LOG, "createNodeBackupConfiguration") + .serviceDetails( + "Bds", + "CreateNodeBackupConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/CreateNodeBackupConfiguration") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateNodeBackupConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("nodeBackupConfigurations") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + CreateNodeBackupConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + CreateNodeBackupConfigurationResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + createNodeReplaceConfiguration( + CreateNodeReplaceConfigurationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateNodeReplaceConfigurationRequest, + CreateNodeReplaceConfigurationResponse> + handler) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + Objects.requireNonNull( + request.getCreateNodeReplaceConfigurationDetails(), + "createNodeReplaceConfigurationDetails is required"); + + return clientCall(request, CreateNodeReplaceConfigurationResponse::builder) + .logger(LOG, "createNodeReplaceConfiguration") + .serviceDetails( + "Bds", + "CreateNodeReplaceConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/CreateNodeReplaceConfiguration") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateNodeReplaceConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("nodeReplaceConfigurations") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + CreateNodeReplaceConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + CreateNodeReplaceConfigurationResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future deleteBdsApiKey( DeleteBdsApiKeyRequest request, @@ -710,6 +822,80 @@ public java.util.concurrent.Future deleteBdsInstance( .callAsync(handler); } + @Override + public java.util.concurrent.Future deleteNodeBackup( + DeleteNodeBackupRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteNodeBackupRequest, DeleteNodeBackupResponse> + handler) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank(request.getNodeBackupId(), "nodeBackupId must not be blank"); + + return clientCall(request, DeleteNodeBackupResponse::builder) + .logger(LOG, "deleteNodeBackup") + .serviceDetails( + "Bds", + "DeleteNodeBackup", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/NodeBackup/DeleteNodeBackup") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteNodeBackupRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("nodeBackups") + .appendPathParam(request.getNodeBackupId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleResponseHeaderString( + "opc-request-id", DeleteNodeBackupResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", DeleteNodeBackupResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + deleteNodeBackupConfiguration( + DeleteNodeBackupConfigurationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteNodeBackupConfigurationRequest, + DeleteNodeBackupConfigurationResponse> + handler) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getNodeBackupConfigurationId(), + "nodeBackupConfigurationId must not be blank"); + + return clientCall(request, DeleteNodeBackupConfigurationResponse::builder) + .logger(LOG, "deleteNodeBackupConfiguration") + .serviceDetails( + "Bds", + "DeleteNodeBackupConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/NodeBackupConfiguration/DeleteNodeBackupConfiguration") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteNodeBackupConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("nodeBackupConfigurations") + .appendPathParam(request.getNodeBackupConfigurationId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleResponseHeaderString( + "opc-request-id", + DeleteNodeBackupConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteNodeBackupConfigurationResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future disableCertificate( DisableCertificateRequest request, @@ -964,6 +1150,120 @@ public java.util.concurrent.Future getBdsInstance( .callAsync(handler); } + @Override + public java.util.concurrent.Future getNodeBackup( + GetNodeBackupRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank(request.getNodeBackupId(), "nodeBackupId must not be blank"); + + return clientCall(request, GetNodeBackupResponse::builder) + .logger(LOG, "getNodeBackup") + .serviceDetails( + "Bds", + "GetNodeBackup", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/GetNodeBackup") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetNodeBackupRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("nodeBackups") + .appendPathParam(request.getNodeBackupId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.bds.model.NodeBackup.class, + GetNodeBackupResponse.Builder::nodeBackup) + .handleResponseHeaderString( + "opc-request-id", GetNodeBackupResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", GetNodeBackupResponse.Builder::etag) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + getNodeBackupConfiguration( + GetNodeBackupConfigurationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetNodeBackupConfigurationRequest, + GetNodeBackupConfigurationResponse> + handler) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getNodeBackupConfigurationId(), + "nodeBackupConfigurationId must not be blank"); + + return clientCall(request, GetNodeBackupConfigurationResponse::builder) + .logger(LOG, "getNodeBackupConfiguration") + .serviceDetails( + "Bds", + "GetNodeBackupConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/GetNodeBackupConfiguration") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetNodeBackupConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("nodeBackupConfigurations") + .appendPathParam(request.getNodeBackupConfigurationId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.bds.model.NodeBackupConfiguration.class, + GetNodeBackupConfigurationResponse.Builder::nodeBackupConfiguration) + .handleResponseHeaderString( + "opc-request-id", GetNodeBackupConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", GetNodeBackupConfigurationResponse.Builder::etag) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + getNodeReplaceConfiguration( + GetNodeReplaceConfigurationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetNodeReplaceConfigurationRequest, + GetNodeReplaceConfigurationResponse> + handler) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getNodeReplaceConfigurationId(), + "nodeReplaceConfigurationId must not be blank"); + + return clientCall(request, GetNodeReplaceConfigurationResponse::builder) + .logger(LOG, "getNodeReplaceConfiguration") + .serviceDetails( + "Bds", + "GetNodeReplaceConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/GetNodeReplaceConfiguration") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetNodeReplaceConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("nodeReplaceConfigurations") + .appendPathParam(request.getNodeReplaceConfigurationId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.bds.model.NodeReplaceConfiguration.class, + GetNodeReplaceConfigurationResponse.Builder::nodeReplaceConfiguration) + .handleResponseHeaderString( + "opc-request-id", GetNodeReplaceConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", GetNodeReplaceConfigurationResponse.Builder::etag) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getOsPatchDetails( GetOsPatchDetailsRequest request, @@ -1270,6 +1570,130 @@ public java.util.concurrent.Future listBdsInstances( .callAsync(handler); } + @Override + public java.util.concurrent.Future + listNodeBackupConfigurations( + ListNodeBackupConfigurationsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListNodeBackupConfigurationsRequest, + ListNodeBackupConfigurationsResponse> + handler) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + return clientCall(request, ListNodeBackupConfigurationsResponse::builder) + .logger(LOG, "listNodeBackupConfigurations") + .serviceDetails( + "Bds", + "ListNodeBackupConfigurations", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/ListNodeBackupConfigurations") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListNodeBackupConfigurationsRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("nodeBackupConfigurations") + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBodyList( + com.oracle.bmc.bds.model.NodeBackupConfigurationSummary.class, + ListNodeBackupConfigurationsResponse.Builder::items) + .handleResponseHeaderString( + "opc-request-id", + ListNodeBackupConfigurationsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListNodeBackupConfigurationsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listNodeBackups( + ListNodeBackupsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListNodeBackupsRequest, ListNodeBackupsResponse> + handler) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + return clientCall(request, ListNodeBackupsResponse::builder) + .logger(LOG, "listNodeBackups") + .serviceDetails( + "Bds", + "ListNodeBackups", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/ListNodeBackups") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListNodeBackupsRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("nodeBackups") + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("nodeHostName", request.getNodeHostName()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBodyList( + com.oracle.bmc.bds.model.NodeBackupSummary.class, + ListNodeBackupsResponse.Builder::items) + .handleResponseHeaderString( + "opc-request-id", ListNodeBackupsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListNodeBackupsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listNodeReplaceConfigurations( + ListNodeReplaceConfigurationsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListNodeReplaceConfigurationsRequest, + ListNodeReplaceConfigurationsResponse> + handler) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + return clientCall(request, ListNodeReplaceConfigurationsResponse::builder) + .logger(LOG, "listNodeReplaceConfigurations") + .serviceDetails( + "Bds", + "ListNodeReplaceConfigurations", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/ListNodeReplaceConfigurations") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListNodeReplaceConfigurationsRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("nodeReplaceConfigurations") + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBodyList( + com.oracle.bmc.bds.model.NodeReplaceConfigurationSummary.class, + ListNodeReplaceConfigurationsResponse.Builder::items) + .handleResponseHeaderString( + "opc-request-id", + ListNodeReplaceConfigurationsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListNodeReplaceConfigurationsResponse.Builder::opcNextPage) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listOsPatches( ListOsPatchesRequest request, @@ -1644,6 +2068,53 @@ public java.util.concurrent.Future removeNode( .callAsync(handler); } + @Override + public java.util.concurrent.Future + removeNodeReplaceConfiguration( + RemoveNodeReplaceConfigurationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RemoveNodeReplaceConfigurationRequest, + RemoveNodeReplaceConfigurationResponse> + handler) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getNodeReplaceConfigurationId(), + "nodeReplaceConfigurationId must not be blank"); + Objects.requireNonNull( + request.getRemoveNodeReplaceConfigurationDetails(), + "removeNodeReplaceConfigurationDetails is required"); + + return clientCall(request, RemoveNodeReplaceConfigurationResponse::builder) + .logger(LOG, "removeNodeReplaceConfiguration") + .serviceDetails( + "Bds", + "RemoveNodeReplaceConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/NodeReplaceConfiguration/RemoveNodeReplaceConfiguration") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RemoveNodeReplaceConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("nodeReplaceConfigurations") + .appendPathParam(request.getNodeReplaceConfigurationId()) + .appendPathParam("actions") + .appendPathParam("remove") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + RemoveNodeReplaceConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + RemoveNodeReplaceConfigurationResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future renewCertificate( RenewCertificateRequest request, @@ -1680,6 +2151,40 @@ public java.util.concurrent.Future renewCertificate( .callAsync(handler); } + @Override + public java.util.concurrent.Future replaceNode( + ReplaceNodeRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + Objects.requireNonNull(request.getReplaceNodeDetails(), "replaceNodeDetails is required"); + + return clientCall(request, ReplaceNodeResponse::builder) + .logger(LOG, "replaceNode") + .serviceDetails( + "Bds", + "ReplaceNode", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/ReplaceNode") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ReplaceNodeRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("actions") + .appendPathParam("replaceNode") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", ReplaceNodeResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", ReplaceNodeResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future restartNode( RestartNodeRequest request, @@ -1991,6 +2496,96 @@ public java.util.concurrent.Future updateBdsInstance( .callAsync(handler); } + @Override + public java.util.concurrent.Future + updateNodeBackupConfiguration( + UpdateNodeBackupConfigurationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateNodeBackupConfigurationRequest, + UpdateNodeBackupConfigurationResponse> + handler) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getNodeBackupConfigurationId(), + "nodeBackupConfigurationId must not be blank"); + Objects.requireNonNull( + request.getUpdateNodeBackupConfigurationDetails(), + "updateNodeBackupConfigurationDetails is required"); + + return clientCall(request, UpdateNodeBackupConfigurationResponse::builder) + .logger(LOG, "updateNodeBackupConfiguration") + .serviceDetails( + "Bds", + "UpdateNodeBackupConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/UpdateNodeBackupConfiguration") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateNodeBackupConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("nodeBackupConfigurations") + .appendPathParam(request.getNodeBackupConfigurationId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + UpdateNodeBackupConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + UpdateNodeBackupConfigurationResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + updateNodeReplaceConfiguration( + UpdateNodeReplaceConfigurationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateNodeReplaceConfigurationRequest, + UpdateNodeReplaceConfigurationResponse> + handler) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getNodeReplaceConfigurationId(), + "nodeReplaceConfigurationId must not be blank"); + Objects.requireNonNull( + request.getUpdateNodeReplaceConfigurationDetails(), + "updateNodeReplaceConfigurationDetails is required"); + + return clientCall(request, UpdateNodeReplaceConfigurationResponse::builder) + .logger(LOG, "updateNodeReplaceConfiguration") + .serviceDetails( + "Bds", + "UpdateNodeReplaceConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/UpdateNodeReplaceConfiguration") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateNodeReplaceConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("nodeReplaceConfigurations") + .appendPathParam(request.getNodeReplaceConfigurationId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + UpdateNodeReplaceConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + UpdateNodeReplaceConfigurationResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + /** * Create a new client instance. * diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsClient.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsClient.java index d44992ae6a4..79c0e12fc28 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsClient.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsClient.java @@ -385,6 +385,37 @@ public AddWorkerNodesResponse addWorkerNodes(AddWorkerNodesRequest request) { .callSync(); } + @Override + public BackupNodeResponse backupNode(BackupNodeRequest request) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + Objects.requireNonNull(request.getBackupNodeDetails(), "backupNodeDetails is required"); + + return clientCall(request, BackupNodeResponse::builder) + .logger(LOG, "backupNode") + .serviceDetails( + "Bds", + "BackupNode", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/BackupNode") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(BackupNodeRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("actions") + .appendPathParam("backupNodes") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", BackupNodeResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", BackupNodeResponse.Builder::opcWorkRequestId) + .callSync(); + } + @Override public CertificateServiceInfoResponse certificateServiceInfo( CertificateServiceInfoRequest request) { @@ -578,6 +609,74 @@ public CreateBdsMetastoreConfigurationResponse createBdsMetastoreConfiguration( .callSync(); } + @Override + public CreateNodeBackupConfigurationResponse createNodeBackupConfiguration( + CreateNodeBackupConfigurationRequest request) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + Objects.requireNonNull( + request.getCreateNodeBackupConfigurationDetails(), + "createNodeBackupConfigurationDetails is required"); + + return clientCall(request, CreateNodeBackupConfigurationResponse::builder) + .logger(LOG, "createNodeBackupConfiguration") + .serviceDetails( + "Bds", + "CreateNodeBackupConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/CreateNodeBackupConfiguration") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateNodeBackupConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("nodeBackupConfigurations") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + CreateNodeBackupConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + CreateNodeBackupConfigurationResponse.Builder::opcWorkRequestId) + .callSync(); + } + + @Override + public CreateNodeReplaceConfigurationResponse createNodeReplaceConfiguration( + CreateNodeReplaceConfigurationRequest request) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + Objects.requireNonNull( + request.getCreateNodeReplaceConfigurationDetails(), + "createNodeReplaceConfigurationDetails is required"); + + return clientCall(request, CreateNodeReplaceConfigurationResponse::builder) + .logger(LOG, "createNodeReplaceConfiguration") + .serviceDetails( + "Bds", + "CreateNodeReplaceConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/CreateNodeReplaceConfiguration") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateNodeReplaceConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("nodeReplaceConfigurations") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + CreateNodeReplaceConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + CreateNodeReplaceConfigurationResponse.Builder::opcWorkRequestId) + .callSync(); + } + @Override public DeleteBdsApiKeyResponse deleteBdsApiKey(DeleteBdsApiKeyRequest request) { @@ -667,6 +766,71 @@ public DeleteBdsMetastoreConfigurationResponse deleteBdsMetastoreConfiguration( .callSync(); } + @Override + public DeleteNodeBackupResponse deleteNodeBackup(DeleteNodeBackupRequest request) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank(request.getNodeBackupId(), "nodeBackupId must not be blank"); + + return clientCall(request, DeleteNodeBackupResponse::builder) + .logger(LOG, "deleteNodeBackup") + .serviceDetails( + "Bds", + "DeleteNodeBackup", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/NodeBackup/DeleteNodeBackup") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteNodeBackupRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("nodeBackups") + .appendPathParam(request.getNodeBackupId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleResponseHeaderString( + "opc-request-id", DeleteNodeBackupResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", DeleteNodeBackupResponse.Builder::opcWorkRequestId) + .callSync(); + } + + @Override + public DeleteNodeBackupConfigurationResponse deleteNodeBackupConfiguration( + DeleteNodeBackupConfigurationRequest request) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getNodeBackupConfigurationId(), + "nodeBackupConfigurationId must not be blank"); + + return clientCall(request, DeleteNodeBackupConfigurationResponse::builder) + .logger(LOG, "deleteNodeBackupConfiguration") + .serviceDetails( + "Bds", + "DeleteNodeBackupConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/NodeBackupConfiguration/DeleteNodeBackupConfiguration") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteNodeBackupConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("nodeBackupConfigurations") + .appendPathParam(request.getNodeBackupConfigurationId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleResponseHeaderString( + "opc-request-id", + DeleteNodeBackupConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteNodeBackupConfigurationResponse.Builder::opcWorkRequestId) + .callSync(); + } + @Override public DisableCertificateResponse disableCertificate(DisableCertificateRequest request) { @@ -893,6 +1057,107 @@ public GetBdsMetastoreConfigurationResponse getBdsMetastoreConfiguration( .callSync(); } + @Override + public GetNodeBackupResponse getNodeBackup(GetNodeBackupRequest request) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank(request.getNodeBackupId(), "nodeBackupId must not be blank"); + + return clientCall(request, GetNodeBackupResponse::builder) + .logger(LOG, "getNodeBackup") + .serviceDetails( + "Bds", + "GetNodeBackup", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/GetNodeBackup") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetNodeBackupRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("nodeBackups") + .appendPathParam(request.getNodeBackupId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.bds.model.NodeBackup.class, + GetNodeBackupResponse.Builder::nodeBackup) + .handleResponseHeaderString( + "opc-request-id", GetNodeBackupResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", GetNodeBackupResponse.Builder::etag) + .callSync(); + } + + @Override + public GetNodeBackupConfigurationResponse getNodeBackupConfiguration( + GetNodeBackupConfigurationRequest request) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getNodeBackupConfigurationId(), + "nodeBackupConfigurationId must not be blank"); + + return clientCall(request, GetNodeBackupConfigurationResponse::builder) + .logger(LOG, "getNodeBackupConfiguration") + .serviceDetails( + "Bds", + "GetNodeBackupConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/GetNodeBackupConfiguration") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetNodeBackupConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("nodeBackupConfigurations") + .appendPathParam(request.getNodeBackupConfigurationId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.bds.model.NodeBackupConfiguration.class, + GetNodeBackupConfigurationResponse.Builder::nodeBackupConfiguration) + .handleResponseHeaderString( + "opc-request-id", GetNodeBackupConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", GetNodeBackupConfigurationResponse.Builder::etag) + .callSync(); + } + + @Override + public GetNodeReplaceConfigurationResponse getNodeReplaceConfiguration( + GetNodeReplaceConfigurationRequest request) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getNodeReplaceConfigurationId(), + "nodeReplaceConfigurationId must not be blank"); + + return clientCall(request, GetNodeReplaceConfigurationResponse::builder) + .logger(LOG, "getNodeReplaceConfiguration") + .serviceDetails( + "Bds", + "GetNodeReplaceConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/GetNodeReplaceConfiguration") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetNodeReplaceConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("nodeReplaceConfigurations") + .appendPathParam(request.getNodeReplaceConfigurationId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.bds.model.NodeReplaceConfiguration.class, + GetNodeReplaceConfigurationResponse.Builder::nodeReplaceConfiguration) + .handleResponseHeaderString( + "opc-request-id", GetNodeReplaceConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", GetNodeReplaceConfigurationResponse.Builder::etag) + .callSync(); + } + @Override public GetOsPatchDetailsResponse getOsPatchDetails(GetOsPatchDetailsRequest request) { @@ -1166,6 +1431,116 @@ public ListBdsMetastoreConfigurationsResponse listBdsMetastoreConfigurations( .callSync(); } + @Override + public ListNodeBackupConfigurationsResponse listNodeBackupConfigurations( + ListNodeBackupConfigurationsRequest request) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + return clientCall(request, ListNodeBackupConfigurationsResponse::builder) + .logger(LOG, "listNodeBackupConfigurations") + .serviceDetails( + "Bds", + "ListNodeBackupConfigurations", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/ListNodeBackupConfigurations") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListNodeBackupConfigurationsRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("nodeBackupConfigurations") + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBodyList( + com.oracle.bmc.bds.model.NodeBackupConfigurationSummary.class, + ListNodeBackupConfigurationsResponse.Builder::items) + .handleResponseHeaderString( + "opc-request-id", + ListNodeBackupConfigurationsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListNodeBackupConfigurationsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListNodeBackupsResponse listNodeBackups(ListNodeBackupsRequest request) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + return clientCall(request, ListNodeBackupsResponse::builder) + .logger(LOG, "listNodeBackups") + .serviceDetails( + "Bds", + "ListNodeBackups", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/ListNodeBackups") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListNodeBackupsRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("nodeBackups") + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("nodeHostName", request.getNodeHostName()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBodyList( + com.oracle.bmc.bds.model.NodeBackupSummary.class, + ListNodeBackupsResponse.Builder::items) + .handleResponseHeaderString( + "opc-request-id", ListNodeBackupsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListNodeBackupsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListNodeReplaceConfigurationsResponse listNodeReplaceConfigurations( + ListNodeReplaceConfigurationsRequest request) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + return clientCall(request, ListNodeReplaceConfigurationsResponse::builder) + .logger(LOG, "listNodeReplaceConfigurations") + .serviceDetails( + "Bds", + "ListNodeReplaceConfigurations", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/ListNodeReplaceConfigurations") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListNodeReplaceConfigurationsRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("nodeReplaceConfigurations") + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBodyList( + com.oracle.bmc.bds.model.NodeReplaceConfigurationSummary.class, + ListNodeReplaceConfigurationsResponse.Builder::items) + .handleResponseHeaderString( + "opc-request-id", + ListNodeReplaceConfigurationsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListNodeReplaceConfigurationsResponse.Builder::opcNextPage) + .callSync(); + } + @Override public ListOsPatchesResponse listOsPatches(ListOsPatchesRequest request) { @@ -1504,6 +1879,48 @@ public RemoveNodeResponse removeNode(RemoveNodeRequest request) { .callSync(); } + @Override + public RemoveNodeReplaceConfigurationResponse removeNodeReplaceConfiguration( + RemoveNodeReplaceConfigurationRequest request) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getNodeReplaceConfigurationId(), + "nodeReplaceConfigurationId must not be blank"); + Objects.requireNonNull( + request.getRemoveNodeReplaceConfigurationDetails(), + "removeNodeReplaceConfigurationDetails is required"); + + return clientCall(request, RemoveNodeReplaceConfigurationResponse::builder) + .logger(LOG, "removeNodeReplaceConfiguration") + .serviceDetails( + "Bds", + "RemoveNodeReplaceConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/NodeReplaceConfiguration/RemoveNodeReplaceConfiguration") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RemoveNodeReplaceConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("nodeReplaceConfigurations") + .appendPathParam(request.getNodeReplaceConfigurationId()) + .appendPathParam("actions") + .appendPathParam("remove") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + RemoveNodeReplaceConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + RemoveNodeReplaceConfigurationResponse.Builder::opcWorkRequestId) + .callSync(); + } + @Override public RenewCertificateResponse renewCertificate(RenewCertificateRequest request) { @@ -1536,6 +1953,37 @@ public RenewCertificateResponse renewCertificate(RenewCertificateRequest request .callSync(); } + @Override + public ReplaceNodeResponse replaceNode(ReplaceNodeRequest request) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + Objects.requireNonNull(request.getReplaceNodeDetails(), "replaceNodeDetails is required"); + + return clientCall(request, ReplaceNodeResponse::builder) + .logger(LOG, "replaceNode") + .serviceDetails( + "Bds", + "ReplaceNode", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/ReplaceNode") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ReplaceNodeRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("actions") + .appendPathParam("replaceNode") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", ReplaceNodeResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", ReplaceNodeResponse.Builder::opcWorkRequestId) + .callSync(); + } + @Override public RestartNodeResponse restartNode(RestartNodeRequest request) { @@ -1812,6 +2260,86 @@ public UpdateBdsMetastoreConfigurationResponse updateBdsMetastoreConfiguration( .callSync(); } + @Override + public UpdateNodeBackupConfigurationResponse updateNodeBackupConfiguration( + UpdateNodeBackupConfigurationRequest request) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getNodeBackupConfigurationId(), + "nodeBackupConfigurationId must not be blank"); + Objects.requireNonNull( + request.getUpdateNodeBackupConfigurationDetails(), + "updateNodeBackupConfigurationDetails is required"); + + return clientCall(request, UpdateNodeBackupConfigurationResponse::builder) + .logger(LOG, "updateNodeBackupConfiguration") + .serviceDetails( + "Bds", + "UpdateNodeBackupConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/UpdateNodeBackupConfiguration") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateNodeBackupConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("nodeBackupConfigurations") + .appendPathParam(request.getNodeBackupConfigurationId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + UpdateNodeBackupConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + UpdateNodeBackupConfigurationResponse.Builder::opcWorkRequestId) + .callSync(); + } + + @Override + public UpdateNodeReplaceConfigurationResponse updateNodeReplaceConfiguration( + UpdateNodeReplaceConfigurationRequest request) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getNodeReplaceConfigurationId(), + "nodeReplaceConfigurationId must not be blank"); + Objects.requireNonNull( + request.getUpdateNodeReplaceConfigurationDetails(), + "updateNodeReplaceConfigurationDetails is required"); + + return clientCall(request, UpdateNodeReplaceConfigurationResponse::builder) + .logger(LOG, "updateNodeReplaceConfiguration") + .serviceDetails( + "Bds", + "UpdateNodeReplaceConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/UpdateNodeReplaceConfiguration") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateNodeReplaceConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("nodeReplaceConfigurations") + .appendPathParam(request.getNodeReplaceConfigurationId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + UpdateNodeReplaceConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + UpdateNodeReplaceConfigurationResponse.Builder::opcWorkRequestId) + .callSync(); + } + @Override public BdsWaiters getWaiters() { return waiters; diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsPaginators.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsPaginators.java index 28c2283baa4..3dc90171f76 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsPaginators.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsPaginators.java @@ -525,6 +525,373 @@ public ListBdsMetastoreConfigurationsResponse apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the + * listNodeBackupConfigurations 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 + listNodeBackupConfigurationsResponseIterator( + final ListNodeBackupConfigurationsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListNodeBackupConfigurationsRequest.Builder, + ListNodeBackupConfigurationsRequest, + ListNodeBackupConfigurationsResponse>( + new java.util.function.Supplier() { + @Override + public ListNodeBackupConfigurationsRequest.Builder get() { + return ListNodeBackupConfigurationsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListNodeBackupConfigurationsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListNodeBackupConfigurationsRequest.Builder>, + ListNodeBackupConfigurationsRequest>() { + @Override + public ListNodeBackupConfigurationsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListNodeBackupConfigurationsRequest.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< + ListNodeBackupConfigurationsRequest, + ListNodeBackupConfigurationsResponse>() { + @Override + public ListNodeBackupConfigurationsResponse apply( + ListNodeBackupConfigurationsRequest request) { + return client.listNodeBackupConfigurations(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.bds.model.NodeBackupConfigurationSummary} objects contained in responses from + * the listNodeBackupConfigurations 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.bds.model.NodeBackupConfigurationSummary} objects contained in responses + * received from the service. + */ + public Iterable + listNodeBackupConfigurationsRecordIterator( + final ListNodeBackupConfigurationsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListNodeBackupConfigurationsRequest.Builder, + ListNodeBackupConfigurationsRequest, + ListNodeBackupConfigurationsResponse, + com.oracle.bmc.bds.model.NodeBackupConfigurationSummary>( + new java.util.function.Supplier() { + @Override + public ListNodeBackupConfigurationsRequest.Builder get() { + return ListNodeBackupConfigurationsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListNodeBackupConfigurationsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListNodeBackupConfigurationsRequest.Builder>, + ListNodeBackupConfigurationsRequest>() { + @Override + public ListNodeBackupConfigurationsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListNodeBackupConfigurationsRequest.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< + ListNodeBackupConfigurationsRequest, + ListNodeBackupConfigurationsResponse>() { + @Override + public ListNodeBackupConfigurationsResponse apply( + ListNodeBackupConfigurationsRequest request) { + return client.listNodeBackupConfigurations(request); + } + }, + new java.util.function.Function< + ListNodeBackupConfigurationsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListNodeBackupConfigurationsResponse response) { + return response.getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listNodeBackups 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 listNodeBackupsResponseIterator( + final ListNodeBackupsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListNodeBackupsRequest.Builder, ListNodeBackupsRequest, ListNodeBackupsResponse>( + new java.util.function.Supplier() { + @Override + public ListNodeBackupsRequest.Builder get() { + return ListNodeBackupsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListNodeBackupsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListNodeBackupsRequest.Builder>, + ListNodeBackupsRequest>() { + @Override + public ListNodeBackupsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListNodeBackupsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function() { + @Override + public ListNodeBackupsResponse apply(ListNodeBackupsRequest request) { + return client.listNodeBackups(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.bds.model.NodeBackupSummary} objects contained in responses from the + * listNodeBackups 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.bds.model.NodeBackupSummary} objects contained in responses received from + * the service. + */ + public Iterable listNodeBackupsRecordIterator( + final ListNodeBackupsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListNodeBackupsRequest.Builder, + ListNodeBackupsRequest, + ListNodeBackupsResponse, + com.oracle.bmc.bds.model.NodeBackupSummary>( + new java.util.function.Supplier() { + @Override + public ListNodeBackupsRequest.Builder get() { + return ListNodeBackupsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListNodeBackupsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListNodeBackupsRequest.Builder>, + ListNodeBackupsRequest>() { + @Override + public ListNodeBackupsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListNodeBackupsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function() { + @Override + public ListNodeBackupsResponse apply(ListNodeBackupsRequest request) { + return client.listNodeBackups(request); + } + }, + new java.util.function.Function< + ListNodeBackupsResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListNodeBackupsResponse response) { + return response.getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listNodeReplaceConfigurations 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 + listNodeReplaceConfigurationsResponseIterator( + final ListNodeReplaceConfigurationsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListNodeReplaceConfigurationsRequest.Builder, + ListNodeReplaceConfigurationsRequest, + ListNodeReplaceConfigurationsResponse>( + new java.util.function.Supplier() { + @Override + public ListNodeReplaceConfigurationsRequest.Builder get() { + return ListNodeReplaceConfigurationsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListNodeReplaceConfigurationsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListNodeReplaceConfigurationsRequest.Builder>, + ListNodeReplaceConfigurationsRequest>() { + @Override + public ListNodeReplaceConfigurationsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListNodeReplaceConfigurationsRequest.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< + ListNodeReplaceConfigurationsRequest, + ListNodeReplaceConfigurationsResponse>() { + @Override + public ListNodeReplaceConfigurationsResponse apply( + ListNodeReplaceConfigurationsRequest request) { + return client.listNodeReplaceConfigurations(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.bds.model.NodeReplaceConfigurationSummary} objects contained in responses from + * the listNodeReplaceConfigurations 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.bds.model.NodeReplaceConfigurationSummary} objects contained in responses + * received from the service. + */ + public Iterable + listNodeReplaceConfigurationsRecordIterator( + final ListNodeReplaceConfigurationsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListNodeReplaceConfigurationsRequest.Builder, + ListNodeReplaceConfigurationsRequest, + ListNodeReplaceConfigurationsResponse, + com.oracle.bmc.bds.model.NodeReplaceConfigurationSummary>( + new java.util.function.Supplier() { + @Override + public ListNodeReplaceConfigurationsRequest.Builder get() { + return ListNodeReplaceConfigurationsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListNodeReplaceConfigurationsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListNodeReplaceConfigurationsRequest.Builder>, + ListNodeReplaceConfigurationsRequest>() { + @Override + public ListNodeReplaceConfigurationsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListNodeReplaceConfigurationsRequest.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< + ListNodeReplaceConfigurationsRequest, + ListNodeReplaceConfigurationsResponse>() { + @Override + public ListNodeReplaceConfigurationsResponse apply( + ListNodeReplaceConfigurationsRequest request) { + return client.listNodeReplaceConfigurations(request); + } + }, + new java.util.function.Function< + ListNodeReplaceConfigurationsResponse, + java.util.List< + com.oracle.bmc.bds.model.NodeReplaceConfigurationSummary>>() { + @Override + public java.util.List + apply(ListNodeReplaceConfigurationsResponse response) { + return response.getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listOsPatches * operation. This iterable will fetch more data from the server as needed. diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsWaiters.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsWaiters.java index 831ff5c11ef..dea79719f4d 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsWaiters.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsWaiters.java @@ -457,6 +457,334 @@ public boolean test(GetBdsMetastoreConfigurationResponse response) { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forNodeBackup( + GetNodeBackupRequest request, + com.oracle.bmc.bds.model.NodeBackup.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 forNodeBackup( + 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 forNodeBackup( + GetNodeBackupRequest request, + com.oracle.bmc.bds.model.NodeBackup.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 forNodeBackup( + 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 forNodeBackup( + GetNodeBackupRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.bds.model.NodeBackup.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 forNodeBackup( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for NodeBackup. + private com.oracle.bmc.waiter.Waiter forNodeBackup( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetNodeBackupRequest request, + final com.oracle.bmc.bds.model.NodeBackup.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< + GetNodeBackupRequest, GetNodeBackupResponse>() { + @Override + public GetNodeBackupResponse apply(GetNodeBackupRequest request) { + return client.getNodeBackup(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetNodeBackupResponse response) { + return targetStatesSet.contains( + response.getNodeBackup().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.bds.model.NodeBackup.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< + GetNodeBackupConfigurationRequest, GetNodeBackupConfigurationResponse> + forNodeBackupConfiguration( + GetNodeBackupConfigurationRequest request, + com.oracle.bmc.bds.model.NodeBackupConfiguration.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 forNodeBackupConfiguration( + 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< + GetNodeBackupConfigurationRequest, GetNodeBackupConfigurationResponse> + forNodeBackupConfiguration( + GetNodeBackupConfigurationRequest request, + com.oracle.bmc.bds.model.NodeBackupConfiguration.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 forNodeBackupConfiguration( + 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< + GetNodeBackupConfigurationRequest, GetNodeBackupConfigurationResponse> + forNodeBackupConfiguration( + GetNodeBackupConfigurationRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.bds.model.NodeBackupConfiguration.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 forNodeBackupConfiguration( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for NodeBackupConfiguration. + private com.oracle.bmc.waiter.Waiter< + GetNodeBackupConfigurationRequest, GetNodeBackupConfigurationResponse> + forNodeBackupConfiguration( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetNodeBackupConfigurationRequest request, + final com.oracle.bmc.bds.model.NodeBackupConfiguration.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< + GetNodeBackupConfigurationRequest, + GetNodeBackupConfigurationResponse>() { + @Override + public GetNodeBackupConfigurationResponse apply( + GetNodeBackupConfigurationRequest request) { + return client.getNodeBackupConfiguration(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetNodeBackupConfigurationResponse response) { + return targetStatesSet.contains( + response.getNodeBackupConfiguration().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.bds.model.NodeBackupConfiguration.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< + GetNodeReplaceConfigurationRequest, GetNodeReplaceConfigurationResponse> + forNodeReplaceConfiguration( + GetNodeReplaceConfigurationRequest request, + com.oracle.bmc.bds.model.NodeReplaceConfiguration.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 forNodeReplaceConfiguration( + 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< + GetNodeReplaceConfigurationRequest, GetNodeReplaceConfigurationResponse> + forNodeReplaceConfiguration( + GetNodeReplaceConfigurationRequest request, + com.oracle.bmc.bds.model.NodeReplaceConfiguration.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 forNodeReplaceConfiguration( + 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< + GetNodeReplaceConfigurationRequest, GetNodeReplaceConfigurationResponse> + forNodeReplaceConfiguration( + GetNodeReplaceConfigurationRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.bds.model.NodeReplaceConfiguration.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 forNodeReplaceConfiguration( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for NodeReplaceConfiguration. + private com.oracle.bmc.waiter.Waiter< + GetNodeReplaceConfigurationRequest, GetNodeReplaceConfigurationResponse> + forNodeReplaceConfiguration( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetNodeReplaceConfigurationRequest request, + final com.oracle.bmc.bds.model.NodeReplaceConfiguration.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< + GetNodeReplaceConfigurationRequest, + GetNodeReplaceConfigurationResponse>() { + @Override + public GetNodeReplaceConfigurationResponse apply( + GetNodeReplaceConfigurationRequest request) { + return client.getNodeReplaceConfiguration(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetNodeReplaceConfigurationResponse response) { + return targetStatesSet.contains( + response.getNodeReplaceConfiguration().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.bds.model.NodeReplaceConfiguration.LifecycleState + .Deleted)), + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using default configuration. * diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BackupNodeDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BackupNodeDetails.java new file mode 100644 index 00000000000..4bb7e2f11a9 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BackupNodeDetails.java @@ -0,0 +1,167 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.model; + +/** + * The information about the nodes to backup.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = BackupNodeDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class BackupNodeDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"levelTypeDetails", "backupType"}) + public BackupNodeDetails(LevelTypeDetails levelTypeDetails, NodeBackup.BackupType backupType) { + super(); + this.levelTypeDetails = levelTypeDetails; + this.backupType = backupType; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("levelTypeDetails") + private LevelTypeDetails levelTypeDetails; + + public Builder levelTypeDetails(LevelTypeDetails levelTypeDetails) { + this.levelTypeDetails = levelTypeDetails; + this.__explicitlySet__.add("levelTypeDetails"); + return this; + } + /** + * Incremental backup type includes only the changes since the last backup. Full backup type + * includes all changes since the volume was created. + */ + @com.fasterxml.jackson.annotation.JsonProperty("backupType") + private NodeBackup.BackupType backupType; + + /** + * Incremental backup type includes only the changes since the last backup. Full backup type + * includes all changes since the volume was created. + * + * @param backupType the value to set + * @return this builder + */ + public Builder backupType(NodeBackup.BackupType backupType) { + this.backupType = backupType; + this.__explicitlySet__.add("backupType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public BackupNodeDetails build() { + BackupNodeDetails model = new BackupNodeDetails(this.levelTypeDetails, this.backupType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BackupNodeDetails model) { + if (model.wasPropertyExplicitlySet("levelTypeDetails")) { + this.levelTypeDetails(model.getLevelTypeDetails()); + } + if (model.wasPropertyExplicitlySet("backupType")) { + this.backupType(model.getBackupType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @com.fasterxml.jackson.annotation.JsonProperty("levelTypeDetails") + private final LevelTypeDetails levelTypeDetails; + + public LevelTypeDetails getLevelTypeDetails() { + return levelTypeDetails; + } + + /** + * Incremental backup type includes only the changes since the last backup. Full backup type + * includes all changes since the volume was created. + */ + @com.fasterxml.jackson.annotation.JsonProperty("backupType") + private final NodeBackup.BackupType backupType; + + /** + * Incremental backup type includes only the changes since the last backup. Full backup type + * includes all changes since the volume was created. + * + * @return the value + */ + public NodeBackup.BackupType getBackupType() { + return backupType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("BackupNodeDetails("); + sb.append("super=").append(super.toString()); + sb.append("levelTypeDetails=").append(String.valueOf(this.levelTypeDetails)); + sb.append(", backupType=").append(String.valueOf(this.backupType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof BackupNodeDetails)) { + return false; + } + + BackupNodeDetails other = (BackupNodeDetails) o; + return java.util.Objects.equals(this.levelTypeDetails, other.levelTypeDetails) + && java.util.Objects.equals(this.backupType, other.backupType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.levelTypeDetails == null ? 43 : this.levelTypeDetails.hashCode()); + result = (result * PRIME) + (this.backupType == null ? 43 : this.backupType.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateNodeBackupConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateNodeBackupConfigurationDetails.java new file mode 100644 index 00000000000..b0f7093cd40 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateNodeBackupConfigurationDetails.java @@ -0,0 +1,359 @@ +/** + * 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.bds.model; + +/** + * The information about the NodeBackupConfiguration.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateNodeBackupConfigurationDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateNodeBackupConfigurationDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "levelTypeDetails", + "displayName", + "timezone", + "schedule", + "numberOfBackupsToRetain", + "backupType" + }) + public CreateNodeBackupConfigurationDetails( + LevelTypeDetails levelTypeDetails, + String displayName, + String timezone, + String schedule, + Integer numberOfBackupsToRetain, + NodeBackup.BackupType backupType) { + super(); + this.levelTypeDetails = levelTypeDetails; + this.displayName = displayName; + this.timezone = timezone; + this.schedule = schedule; + this.numberOfBackupsToRetain = numberOfBackupsToRetain; + this.backupType = backupType; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("levelTypeDetails") + private LevelTypeDetails levelTypeDetails; + + public Builder levelTypeDetails(LevelTypeDetails levelTypeDetails) { + this.levelTypeDetails = levelTypeDetails; + this.__explicitlySet__.add("levelTypeDetails"); + return this; + } + /** + * A user-friendly name. Only ASCII alphanumeric characters with no spaces allowed. The name + * does not have to be unique, and it may be changed. Avoid entering confidential + * information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Only ASCII alphanumeric characters with no spaces allowed. The name + * does not have to be unique, and it may be changed. Avoid entering confidential + * information. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The time zone of the execution schedule, in IANA time zone database name format */ + @com.fasterxml.jackson.annotation.JsonProperty("timezone") + private String timezone; + + /** + * The time zone of the execution schedule, in IANA time zone database name format + * + * @param timezone the value to set + * @return this builder + */ + public Builder timezone(String timezone) { + this.timezone = timezone; + this.__explicitlySet__.add("timezone"); + return this; + } + /** + * Day/time recurrence (specified following RFC 5545) at which to trigger the backup + * process. Currently only DAILY, WEEKLY and MONTHLY frequency is supported. Days of the + * week are specified using BYDAY field. Time of the day is specified using BYHOUR. Other + * fields are not supported. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schedule") + private String schedule; + + /** + * Day/time recurrence (specified following RFC 5545) at which to trigger the backup + * process. Currently only DAILY, WEEKLY and MONTHLY frequency is supported. Days of the + * week are specified using BYDAY field. Time of the day is specified using BYHOUR. Other + * fields are not supported. + * + * @param schedule the value to set + * @return this builder + */ + public Builder schedule(String schedule) { + this.schedule = schedule; + this.__explicitlySet__.add("schedule"); + return this; + } + /** Number of backup copies to retain. */ + @com.fasterxml.jackson.annotation.JsonProperty("numberOfBackupsToRetain") + private Integer numberOfBackupsToRetain; + + /** + * Number of backup copies to retain. + * + * @param numberOfBackupsToRetain the value to set + * @return this builder + */ + public Builder numberOfBackupsToRetain(Integer numberOfBackupsToRetain) { + this.numberOfBackupsToRetain = numberOfBackupsToRetain; + this.__explicitlySet__.add("numberOfBackupsToRetain"); + return this; + } + /** + * Incremental backup type includes only the changes since the last backup. Full backup type + * includes all changes since the volume was created. + */ + @com.fasterxml.jackson.annotation.JsonProperty("backupType") + private NodeBackup.BackupType backupType; + + /** + * Incremental backup type includes only the changes since the last backup. Full backup type + * includes all changes since the volume was created. + * + * @param backupType the value to set + * @return this builder + */ + public Builder backupType(NodeBackup.BackupType backupType) { + this.backupType = backupType; + this.__explicitlySet__.add("backupType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateNodeBackupConfigurationDetails build() { + CreateNodeBackupConfigurationDetails model = + new CreateNodeBackupConfigurationDetails( + this.levelTypeDetails, + this.displayName, + this.timezone, + this.schedule, + this.numberOfBackupsToRetain, + this.backupType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateNodeBackupConfigurationDetails model) { + if (model.wasPropertyExplicitlySet("levelTypeDetails")) { + this.levelTypeDetails(model.getLevelTypeDetails()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("timezone")) { + this.timezone(model.getTimezone()); + } + if (model.wasPropertyExplicitlySet("schedule")) { + this.schedule(model.getSchedule()); + } + if (model.wasPropertyExplicitlySet("numberOfBackupsToRetain")) { + this.numberOfBackupsToRetain(model.getNumberOfBackupsToRetain()); + } + if (model.wasPropertyExplicitlySet("backupType")) { + this.backupType(model.getBackupType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @com.fasterxml.jackson.annotation.JsonProperty("levelTypeDetails") + private final LevelTypeDetails levelTypeDetails; + + public LevelTypeDetails getLevelTypeDetails() { + return levelTypeDetails; + } + + /** + * A user-friendly name. Only ASCII alphanumeric characters with no spaces allowed. The name + * does not have to be unique, and it may be changed. Avoid entering confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Only ASCII alphanumeric characters with no spaces allowed. The name + * does not have to be unique, and it may be changed. Avoid entering confidential information. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The time zone of the execution schedule, in IANA time zone database name format */ + @com.fasterxml.jackson.annotation.JsonProperty("timezone") + private final String timezone; + + /** + * The time zone of the execution schedule, in IANA time zone database name format + * + * @return the value + */ + public String getTimezone() { + return timezone; + } + + /** + * Day/time recurrence (specified following RFC 5545) at which to trigger the backup process. + * Currently only DAILY, WEEKLY and MONTHLY frequency is supported. Days of the week are + * specified using BYDAY field. Time of the day is specified using BYHOUR. Other fields are not + * supported. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schedule") + private final String schedule; + + /** + * Day/time recurrence (specified following RFC 5545) at which to trigger the backup process. + * Currently only DAILY, WEEKLY and MONTHLY frequency is supported. Days of the week are + * specified using BYDAY field. Time of the day is specified using BYHOUR. Other fields are not + * supported. + * + * @return the value + */ + public String getSchedule() { + return schedule; + } + + /** Number of backup copies to retain. */ + @com.fasterxml.jackson.annotation.JsonProperty("numberOfBackupsToRetain") + private final Integer numberOfBackupsToRetain; + + /** + * Number of backup copies to retain. + * + * @return the value + */ + public Integer getNumberOfBackupsToRetain() { + return numberOfBackupsToRetain; + } + + /** + * Incremental backup type includes only the changes since the last backup. Full backup type + * includes all changes since the volume was created. + */ + @com.fasterxml.jackson.annotation.JsonProperty("backupType") + private final NodeBackup.BackupType backupType; + + /** + * Incremental backup type includes only the changes since the last backup. Full backup type + * includes all changes since the volume was created. + * + * @return the value + */ + public NodeBackup.BackupType getBackupType() { + return backupType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateNodeBackupConfigurationDetails("); + sb.append("super=").append(super.toString()); + sb.append("levelTypeDetails=").append(String.valueOf(this.levelTypeDetails)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", timezone=").append(String.valueOf(this.timezone)); + sb.append(", schedule=").append(String.valueOf(this.schedule)); + sb.append(", numberOfBackupsToRetain=") + .append(String.valueOf(this.numberOfBackupsToRetain)); + sb.append(", backupType=").append(String.valueOf(this.backupType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateNodeBackupConfigurationDetails)) { + return false; + } + + CreateNodeBackupConfigurationDetails other = (CreateNodeBackupConfigurationDetails) o; + return java.util.Objects.equals(this.levelTypeDetails, other.levelTypeDetails) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.timezone, other.timezone) + && java.util.Objects.equals(this.schedule, other.schedule) + && java.util.Objects.equals( + this.numberOfBackupsToRetain, other.numberOfBackupsToRetain) + && java.util.Objects.equals(this.backupType, other.backupType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.levelTypeDetails == null ? 43 : this.levelTypeDetails.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.timezone == null ? 43 : this.timezone.hashCode()); + result = (result * PRIME) + (this.schedule == null ? 43 : this.schedule.hashCode()); + result = + (result * PRIME) + + (this.numberOfBackupsToRetain == null + ? 43 + : this.numberOfBackupsToRetain.hashCode()); + result = (result * PRIME) + (this.backupType == null ? 43 : this.backupType.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateNodeReplaceConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateNodeReplaceConfigurationDetails.java new file mode 100644 index 00000000000..33c33c6a8fa --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateNodeReplaceConfigurationDetails.java @@ -0,0 +1,305 @@ +/** + * 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.bds.model; + +/** + * The information about the NodeReplaceConfiguration
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateNodeReplaceConfigurationDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateNodeReplaceConfigurationDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "levelTypeDetails", + "displayName", + "clusterAdminPassword", + "metricType", + "durationInMinutes" + }) + public CreateNodeReplaceConfigurationDetails( + LevelTypeDetails levelTypeDetails, + String displayName, + String clusterAdminPassword, + NodeReplaceConfiguration.MetricType metricType, + Integer durationInMinutes) { + super(); + this.levelTypeDetails = levelTypeDetails; + this.displayName = displayName; + this.clusterAdminPassword = clusterAdminPassword; + this.metricType = metricType; + this.durationInMinutes = durationInMinutes; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("levelTypeDetails") + private LevelTypeDetails levelTypeDetails; + + public Builder levelTypeDetails(LevelTypeDetails levelTypeDetails) { + this.levelTypeDetails = levelTypeDetails; + this.__explicitlySet__.add("levelTypeDetails"); + return this; + } + /** + * A user-friendly name. Only ASCII alphanumeric characters with no spaces allowed. The name + * does not have to be unique, and it may be changed. Avoid entering confidential + * information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Only ASCII alphanumeric characters with no spaces allowed. The name + * does not have to be unique, and it may be changed. 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; + } + /** Base-64 encoded password for the cluster admin user. */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + private String clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * + * @param clusterAdminPassword the value to set + * @return this builder + */ + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = clusterAdminPassword; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** Type of compute instance health metric to use for node replacement */ + @com.fasterxml.jackson.annotation.JsonProperty("metricType") + private NodeReplaceConfiguration.MetricType metricType; + + /** + * Type of compute instance health metric to use for node replacement + * + * @param metricType the value to set + * @return this builder + */ + public Builder metricType(NodeReplaceConfiguration.MetricType metricType) { + this.metricType = metricType; + this.__explicitlySet__.add("metricType"); + return this; + } + /** + * This value is the minimum period of time to wait before triggering node replacement. The + * value is in minutes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("durationInMinutes") + private Integer durationInMinutes; + + /** + * This value is the minimum period of time to wait before triggering node replacement. The + * value is in minutes. + * + * @param durationInMinutes the value to set + * @return this builder + */ + public Builder durationInMinutes(Integer durationInMinutes) { + this.durationInMinutes = durationInMinutes; + this.__explicitlySet__.add("durationInMinutes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateNodeReplaceConfigurationDetails build() { + CreateNodeReplaceConfigurationDetails model = + new CreateNodeReplaceConfigurationDetails( + this.levelTypeDetails, + this.displayName, + this.clusterAdminPassword, + this.metricType, + this.durationInMinutes); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateNodeReplaceConfigurationDetails model) { + if (model.wasPropertyExplicitlySet("levelTypeDetails")) { + this.levelTypeDetails(model.getLevelTypeDetails()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("clusterAdminPassword")) { + this.clusterAdminPassword(model.getClusterAdminPassword()); + } + if (model.wasPropertyExplicitlySet("metricType")) { + this.metricType(model.getMetricType()); + } + if (model.wasPropertyExplicitlySet("durationInMinutes")) { + this.durationInMinutes(model.getDurationInMinutes()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @com.fasterxml.jackson.annotation.JsonProperty("levelTypeDetails") + private final LevelTypeDetails levelTypeDetails; + + public LevelTypeDetails getLevelTypeDetails() { + return levelTypeDetails; + } + + /** + * A user-friendly name. Only ASCII alphanumeric characters with no spaces allowed. The name + * does not have to be unique, and it may be changed. Avoid entering confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Only ASCII alphanumeric characters with no spaces allowed. The name + * does not have to be unique, and it may be changed. Avoid entering confidential information. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Base-64 encoded password for the cluster admin user. */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + private final String clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + public String getClusterAdminPassword() { + return clusterAdminPassword; + } + + /** Type of compute instance health metric to use for node replacement */ + @com.fasterxml.jackson.annotation.JsonProperty("metricType") + private final NodeReplaceConfiguration.MetricType metricType; + + /** + * Type of compute instance health metric to use for node replacement + * + * @return the value + */ + public NodeReplaceConfiguration.MetricType getMetricType() { + return metricType; + } + + /** + * This value is the minimum period of time to wait before triggering node replacement. The + * value is in minutes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("durationInMinutes") + private final Integer durationInMinutes; + + /** + * This value is the minimum period of time to wait before triggering node replacement. The + * value is in minutes. + * + * @return the value + */ + public Integer getDurationInMinutes() { + return durationInMinutes; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateNodeReplaceConfigurationDetails("); + sb.append("super=").append(super.toString()); + sb.append("levelTypeDetails=").append(String.valueOf(this.levelTypeDetails)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", clusterAdminPassword=").append(""); + sb.append(", metricType=").append(String.valueOf(this.metricType)); + sb.append(", durationInMinutes=").append(String.valueOf(this.durationInMinutes)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateNodeReplaceConfigurationDetails)) { + return false; + } + + CreateNodeReplaceConfigurationDetails other = (CreateNodeReplaceConfigurationDetails) o; + return java.util.Objects.equals(this.levelTypeDetails, other.levelTypeDetails) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.clusterAdminPassword, other.clusterAdminPassword) + && java.util.Objects.equals(this.metricType, other.metricType) + && java.util.Objects.equals(this.durationInMinutes, other.durationInMinutes) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.levelTypeDetails == null ? 43 : this.levelTypeDetails.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.clusterAdminPassword == null + ? 43 + : this.clusterAdminPassword.hashCode()); + result = (result * PRIME) + (this.metricType == null ? 43 : this.metricType.hashCode()); + result = + (result * PRIME) + + (this.durationInMinutes == null ? 43 : this.durationInMinutes.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/LevelTypeDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/LevelTypeDetails.java new file mode 100644 index 00000000000..064a8020a53 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/LevelTypeDetails.java @@ -0,0 +1,131 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.model; + +/** + * Details of the type of level used to trigger the creation of a new node backup configuration or + * node replacement configuration.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "levelType", + defaultImpl = LevelTypeDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = NodeTypeLevelDetails.class, + name = "NODE_TYPE_LEVEL"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = NodeLevelDetails.class, + name = "NODE_LEVEL") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class LevelTypeDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected LevelTypeDetails() { + 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("LevelTypeDetails("); + 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 LevelTypeDetails)) { + return false; + } + + LevelTypeDetails other = (LevelTypeDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * Type of level used to trigger the creation of a new node backup configuration or node + * replacement configuration. + */ + public enum LevelType implements com.oracle.bmc.http.internal.BmcEnum { + NodeLevel("NODE_LEVEL"), + NodeTypeLevel("NODE_TYPE_LEVEL"), + + /** + * 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(LevelType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LevelType v : LevelType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LevelType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LevelType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LevelType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/Node.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/Node.java index a807a86ac7d..3eb339523bb 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/Node.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/Node.java @@ -43,7 +43,9 @@ public final class Node extends com.oracle.bmc.http.client.internal.ExplicitlySe "localDisksTotalSizeInGBs", "timeMaintenanceRebootDue", "osVersion", - "isRebootRequired" + "isRebootRequired", + "timeReplaced", + "nodeBackupId" }) public Node( String instanceId, @@ -67,7 +69,9 @@ public Node( Double localDisksTotalSizeInGBs, java.util.Date timeMaintenanceRebootDue, String osVersion, - Boolean isRebootRequired) { + Boolean isRebootRequired, + java.util.Date timeReplaced, + String nodeBackupId) { super(); this.instanceId = instanceId; this.displayName = displayName; @@ -91,6 +95,8 @@ public Node( this.timeMaintenanceRebootDue = timeMaintenanceRebootDue; this.osVersion = osVersion; this.isRebootRequired = isRebootRequired; + this.timeReplaced = timeReplaced; + this.nodeBackupId = nodeBackupId; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -440,6 +446,36 @@ public Builder isRebootRequired(Boolean isRebootRequired) { this.__explicitlySet__.add("isRebootRequired"); return this; } + /** The date and time the instance was replaced by a new vm with a node backup. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeReplaced") + private java.util.Date timeReplaced; + + /** + * The date and time the instance was replaced by a new vm with a node backup. + * + * @param timeReplaced the value to set + * @return this builder + */ + public Builder timeReplaced(java.util.Date timeReplaced) { + this.timeReplaced = timeReplaced; + this.__explicitlySet__.add("timeReplaced"); + return this; + } + /** The node back id that was used for replacing the node. */ + @com.fasterxml.jackson.annotation.JsonProperty("nodeBackupId") + private String nodeBackupId; + + /** + * The node back id that was used for replacing the node. + * + * @param nodeBackupId the value to set + * @return this builder + */ + public Builder nodeBackupId(String nodeBackupId) { + this.nodeBackupId = nodeBackupId; + this.__explicitlySet__.add("nodeBackupId"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -468,7 +504,9 @@ public Node build() { this.localDisksTotalSizeInGBs, this.timeMaintenanceRebootDue, this.osVersion, - this.isRebootRequired); + this.isRebootRequired, + this.timeReplaced, + this.nodeBackupId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -543,6 +581,12 @@ public Builder copy(Node model) { if (model.wasPropertyExplicitlySet("isRebootRequired")) { this.isRebootRequired(model.getIsRebootRequired()); } + if (model.wasPropertyExplicitlySet("timeReplaced")) { + this.timeReplaced(model.getTimeReplaced()); + } + if (model.wasPropertyExplicitlySet("nodeBackupId")) { + this.nodeBackupId(model.getNodeBackupId()); + } return this; } } @@ -960,6 +1004,32 @@ public Boolean getIsRebootRequired() { return isRebootRequired; } + /** The date and time the instance was replaced by a new vm with a node backup. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeReplaced") + private final java.util.Date timeReplaced; + + /** + * The date and time the instance was replaced by a new vm with a node backup. + * + * @return the value + */ + public java.util.Date getTimeReplaced() { + return timeReplaced; + } + + /** The node back id that was used for replacing the node. */ + @com.fasterxml.jackson.annotation.JsonProperty("nodeBackupId") + private final String nodeBackupId; + + /** + * The node back id that was used for replacing the node. + * + * @return the value + */ + public String getNodeBackupId() { + return nodeBackupId; + } + @Override public String toString() { return this.toString(true); @@ -999,6 +1069,8 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.timeMaintenanceRebootDue)); sb.append(", osVersion=").append(String.valueOf(this.osVersion)); sb.append(", isRebootRequired=").append(String.valueOf(this.isRebootRequired)); + sb.append(", timeReplaced=").append(String.valueOf(this.timeReplaced)); + sb.append(", nodeBackupId=").append(String.valueOf(this.nodeBackupId)); sb.append(")"); return sb.toString(); } @@ -1037,6 +1109,8 @@ public boolean equals(Object o) { this.timeMaintenanceRebootDue, other.timeMaintenanceRebootDue) && java.util.Objects.equals(this.osVersion, other.osVersion) && java.util.Objects.equals(this.isRebootRequired, other.isRebootRequired) + && java.util.Objects.equals(this.timeReplaced, other.timeReplaced) + && java.util.Objects.equals(this.nodeBackupId, other.nodeBackupId) && super.equals(other); } @@ -1088,6 +1162,8 @@ public int hashCode() { result = (result * PRIME) + (this.isRebootRequired == null ? 43 : this.isRebootRequired.hashCode()); + result = (result * PRIME) + (this.timeReplaced == null ? 43 : this.timeReplaced.hashCode()); + result = (result * PRIME) + (this.nodeBackupId == null ? 43 : this.nodeBackupId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/NodeBackup.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/NodeBackup.java new file mode 100644 index 00000000000..13ed2f0b8ef --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/NodeBackup.java @@ -0,0 +1,619 @@ +/** + * 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.bds.model; + +/** + * The information about the Node's backup.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = NodeBackup.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class NodeBackup extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "nodeInstanceId", + "nodeHostName", + "backupTriggerType", + "nodeBackupConfigId", + "backupType", + "lifecycleState", + "timeCreated" + }) + public NodeBackup( + String id, + String displayName, + String nodeInstanceId, + String nodeHostName, + BackupTriggerType backupTriggerType, + String nodeBackupConfigId, + BackupType backupType, + LifecycleState lifecycleState, + java.util.Date timeCreated) { + super(); + this.id = id; + this.displayName = displayName; + this.nodeInstanceId = nodeInstanceId; + this.nodeHostName = nodeHostName; + this.backupTriggerType = backupTriggerType; + this.nodeBackupConfigId = nodeBackupConfigId; + this.backupType = backupType; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The id of the node backup. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The id of the node backup. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** BDS generated name for the backup. Format is nodeHostName_timeCreated */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * BDS generated name for the backup. Format is nodeHostName_timeCreated + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The instance OCID of the node, which is the resource from which the node backup was + * acquired. + */ + @com.fasterxml.jackson.annotation.JsonProperty("nodeInstanceId") + private String nodeInstanceId; + + /** + * The instance OCID of the node, which is the resource from which the node backup was + * acquired. + * + * @param nodeInstanceId the value to set + * @return this builder + */ + public Builder nodeInstanceId(String nodeInstanceId) { + this.nodeInstanceId = nodeInstanceId; + this.__explicitlySet__.add("nodeInstanceId"); + return this; + } + /** Host name of the node to which this backup belongs. */ + @com.fasterxml.jackson.annotation.JsonProperty("nodeHostName") + private String nodeHostName; + + /** + * Host name of the node to which this backup belongs. + * + * @param nodeHostName the value to set + * @return this builder + */ + public Builder nodeHostName(String nodeHostName) { + this.nodeHostName = nodeHostName; + this.__explicitlySet__.add("nodeHostName"); + return this; + } + /** type based on how backup action was initiated. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupTriggerType") + private BackupTriggerType backupTriggerType; + + /** + * type based on how backup action was initiated. + * + * @param backupTriggerType the value to set + * @return this builder + */ + public Builder backupTriggerType(BackupTriggerType backupTriggerType) { + this.backupTriggerType = backupTriggerType; + this.__explicitlySet__.add("backupTriggerType"); + return this; + } + /** + * The ID of the nodeBackupConfiguration if the NodeBackup is automatically created by + * applying the configuration. + */ + @com.fasterxml.jackson.annotation.JsonProperty("nodeBackupConfigId") + private String nodeBackupConfigId; + + /** + * The ID of the nodeBackupConfiguration if the NodeBackup is automatically created by + * applying the configuration. + * + * @param nodeBackupConfigId the value to set + * @return this builder + */ + public Builder nodeBackupConfigId(String nodeBackupConfigId) { + this.nodeBackupConfigId = nodeBackupConfigId; + this.__explicitlySet__.add("nodeBackupConfigId"); + return this; + } + /** + * Incremental backup type includes only the changes since the last backup. Full backup type + * includes all changes since the volume was created. + */ + @com.fasterxml.jackson.annotation.JsonProperty("backupType") + private BackupType backupType; + + /** + * Incremental backup type includes only the changes since the last backup. Full backup type + * includes all changes since the volume was created. + * + * @param backupType the value to set + * @return this builder + */ + public Builder backupType(BackupType backupType) { + this.backupType = backupType; + this.__explicitlySet__.add("backupType"); + return this; + } + /** The state of the NodeBackup. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The state of the NodeBackup. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** The time the cluster was created, shown as an RFC 3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the cluster was created, shown as an RFC 3339 formatted datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public NodeBackup build() { + NodeBackup model = + new NodeBackup( + this.id, + this.displayName, + this.nodeInstanceId, + this.nodeHostName, + this.backupTriggerType, + this.nodeBackupConfigId, + this.backupType, + this.lifecycleState, + this.timeCreated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(NodeBackup model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("nodeInstanceId")) { + this.nodeInstanceId(model.getNodeInstanceId()); + } + if (model.wasPropertyExplicitlySet("nodeHostName")) { + this.nodeHostName(model.getNodeHostName()); + } + if (model.wasPropertyExplicitlySet("backupTriggerType")) { + this.backupTriggerType(model.getBackupTriggerType()); + } + if (model.wasPropertyExplicitlySet("nodeBackupConfigId")) { + this.nodeBackupConfigId(model.getNodeBackupConfigId()); + } + if (model.wasPropertyExplicitlySet("backupType")) { + this.backupType(model.getBackupType()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The id of the node backup. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The id of the node backup. + * + * @return the value + */ + public String getId() { + return id; + } + + /** BDS generated name for the backup. Format is nodeHostName_timeCreated */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * BDS generated name for the backup. Format is nodeHostName_timeCreated + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * The instance OCID of the node, which is the resource from which the node backup was acquired. + */ + @com.fasterxml.jackson.annotation.JsonProperty("nodeInstanceId") + private final String nodeInstanceId; + + /** + * The instance OCID of the node, which is the resource from which the node backup was acquired. + * + * @return the value + */ + public String getNodeInstanceId() { + return nodeInstanceId; + } + + /** Host name of the node to which this backup belongs. */ + @com.fasterxml.jackson.annotation.JsonProperty("nodeHostName") + private final String nodeHostName; + + /** + * Host name of the node to which this backup belongs. + * + * @return the value + */ + public String getNodeHostName() { + return nodeHostName; + } + + /** type based on how backup action was initiated. */ + public enum BackupTriggerType implements com.oracle.bmc.http.internal.BmcEnum { + Manual("MANUAL"), + Scheduled("SCHEDULED"), + + /** + * 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(BackupTriggerType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (BackupTriggerType v : BackupTriggerType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + BackupTriggerType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static BackupTriggerType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'BackupTriggerType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** type based on how backup action was initiated. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupTriggerType") + private final BackupTriggerType backupTriggerType; + + /** + * type based on how backup action was initiated. + * + * @return the value + */ + public BackupTriggerType getBackupTriggerType() { + return backupTriggerType; + } + + /** + * The ID of the nodeBackupConfiguration if the NodeBackup is automatically created by applying + * the configuration. + */ + @com.fasterxml.jackson.annotation.JsonProperty("nodeBackupConfigId") + private final String nodeBackupConfigId; + + /** + * The ID of the nodeBackupConfiguration if the NodeBackup is automatically created by applying + * the configuration. + * + * @return the value + */ + public String getNodeBackupConfigId() { + return nodeBackupConfigId; + } + + /** + * Incremental backup type includes only the changes since the last backup. Full backup type + * includes all changes since the volume was created. + */ + public enum BackupType implements com.oracle.bmc.http.internal.BmcEnum { + Full("FULL"), + Incremental("INCREMENTAL"), + + /** + * 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(BackupType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (BackupType v : BackupType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + BackupType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static BackupType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'BackupType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Incremental backup type includes only the changes since the last backup. Full backup type + * includes all changes since the volume was created. + */ + @com.fasterxml.jackson.annotation.JsonProperty("backupType") + private final BackupType backupType; + + /** + * Incremental backup type includes only the changes since the last backup. Full backup type + * includes all changes since the volume was created. + * + * @return the value + */ + public BackupType getBackupType() { + return backupType; + } + + /** The state of the NodeBackup. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + Active("ACTIVE"), + Updating("UPDATING"), + Deleting("DELETING"), + Deleted("DELETED"), + Failed("FAILED"), + Partial("PARTIAL"), + + /** + * 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 state of the NodeBackup. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The state of the NodeBackup. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** The time the cluster was created, shown as an RFC 3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the cluster was created, shown as an RFC 3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("NodeBackup("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", nodeInstanceId=").append(String.valueOf(this.nodeInstanceId)); + sb.append(", nodeHostName=").append(String.valueOf(this.nodeHostName)); + sb.append(", backupTriggerType=").append(String.valueOf(this.backupTriggerType)); + sb.append(", nodeBackupConfigId=").append(String.valueOf(this.nodeBackupConfigId)); + sb.append(", backupType=").append(String.valueOf(this.backupType)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof NodeBackup)) { + return false; + } + + NodeBackup other = (NodeBackup) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.nodeInstanceId, other.nodeInstanceId) + && java.util.Objects.equals(this.nodeHostName, other.nodeHostName) + && java.util.Objects.equals(this.backupTriggerType, other.backupTriggerType) + && java.util.Objects.equals(this.nodeBackupConfigId, other.nodeBackupConfigId) + && java.util.Objects.equals(this.backupType, other.backupType) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.nodeInstanceId == null ? 43 : this.nodeInstanceId.hashCode()); + result = (result * PRIME) + (this.nodeHostName == null ? 43 : this.nodeHostName.hashCode()); + result = + (result * PRIME) + + (this.backupTriggerType == null ? 43 : this.backupTriggerType.hashCode()); + result = + (result * PRIME) + + (this.nodeBackupConfigId == null + ? 43 + : this.nodeBackupConfigId.hashCode()); + result = (result * PRIME) + (this.backupType == null ? 43 : this.backupType.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/NodeBackupConfiguration.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/NodeBackupConfiguration.java new file mode 100644 index 00000000000..ca657f15d40 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/NodeBackupConfiguration.java @@ -0,0 +1,619 @@ +/** + * 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.bds.model; + +/** + * The information about the NodeBackupConfiguration.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = NodeBackupConfiguration.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class NodeBackupConfiguration + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "bdsInstanceId", + "displayName", + "levelTypeDetails", + "lifecycleState", + "timeCreated", + "timeUpdated", + "timezone", + "schedule", + "numberOfBackupsToRetain", + "backupType" + }) + public NodeBackupConfiguration( + String id, + String bdsInstanceId, + String displayName, + LevelTypeDetails levelTypeDetails, + LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String timezone, + String schedule, + Integer numberOfBackupsToRetain, + NodeBackup.BackupType backupType) { + super(); + this.id = id; + this.bdsInstanceId = bdsInstanceId; + this.displayName = displayName; + this.levelTypeDetails = levelTypeDetails; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.timezone = timezone; + this.schedule = schedule; + this.numberOfBackupsToRetain = numberOfBackupsToRetain; + this.backupType = backupType; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The unique identifier for the NodeBackupConfiguration. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The unique identifier for the NodeBackupConfiguration. + * + * @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 bdsInstance which is the parent resource id. */ + @com.fasterxml.jackson.annotation.JsonProperty("bdsInstanceId") + private String bdsInstanceId; + + /** + * The OCID of the bdsInstance which is the parent resource id. + * + * @param bdsInstanceId the value to set + * @return this builder + */ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + this.__explicitlySet__.add("bdsInstanceId"); + return this; + } + /** + * A user-friendly name. Only ASCII alphanumeric characters with no spaces allowed. The name + * does not have to be unique, and it may be changed. Avoid entering confidential + * information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Only ASCII alphanumeric characters with no spaces allowed. The name + * does not have to be unique, and it may be changed. 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; + } + + @com.fasterxml.jackson.annotation.JsonProperty("levelTypeDetails") + private LevelTypeDetails levelTypeDetails; + + public Builder levelTypeDetails(LevelTypeDetails levelTypeDetails) { + this.levelTypeDetails = levelTypeDetails; + this.__explicitlySet__.add("levelTypeDetails"); + return this; + } + /** The state of the NodeBackupConfiguration. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The state of the NodeBackupConfiguration. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The time the NodeBackupConfiguration was created, shown as an RFC 3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the NodeBackupConfiguration was created, shown as an RFC 3339 formatted datetime + * string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time the NodeBackupConfiguration was updated, shown as an RFC 3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the NodeBackupConfiguration was updated, shown as an RFC 3339 formatted datetime + * string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** The time zone of the execution schedule, in IANA time zone database name format */ + @com.fasterxml.jackson.annotation.JsonProperty("timezone") + private String timezone; + + /** + * The time zone of the execution schedule, in IANA time zone database name format + * + * @param timezone the value to set + * @return this builder + */ + public Builder timezone(String timezone) { + this.timezone = timezone; + this.__explicitlySet__.add("timezone"); + return this; + } + /** + * Day/time recurrence (specified following RFC 5545) at which to trigger the backup + * process. Currently only DAILY, WEEKLY and MONTHLY frequency is supported. Days of the + * week are specified using BYDAY field. Time of the day is specified using BYHOUR. Other + * fields are not supported. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schedule") + private String schedule; + + /** + * Day/time recurrence (specified following RFC 5545) at which to trigger the backup + * process. Currently only DAILY, WEEKLY and MONTHLY frequency is supported. Days of the + * week are specified using BYDAY field. Time of the day is specified using BYHOUR. Other + * fields are not supported. + * + * @param schedule the value to set + * @return this builder + */ + public Builder schedule(String schedule) { + this.schedule = schedule; + this.__explicitlySet__.add("schedule"); + return this; + } + /** Number of backup copies to retain. */ + @com.fasterxml.jackson.annotation.JsonProperty("numberOfBackupsToRetain") + private Integer numberOfBackupsToRetain; + + /** + * Number of backup copies to retain. + * + * @param numberOfBackupsToRetain the value to set + * @return this builder + */ + public Builder numberOfBackupsToRetain(Integer numberOfBackupsToRetain) { + this.numberOfBackupsToRetain = numberOfBackupsToRetain; + this.__explicitlySet__.add("numberOfBackupsToRetain"); + return this; + } + /** + * Incremental backup type includes only the changes since the last backup. Full backup type + * includes all changes since the volume was created. + */ + @com.fasterxml.jackson.annotation.JsonProperty("backupType") + private NodeBackup.BackupType backupType; + + /** + * Incremental backup type includes only the changes since the last backup. Full backup type + * includes all changes since the volume was created. + * + * @param backupType the value to set + * @return this builder + */ + public Builder backupType(NodeBackup.BackupType backupType) { + this.backupType = backupType; + this.__explicitlySet__.add("backupType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public NodeBackupConfiguration build() { + NodeBackupConfiguration model = + new NodeBackupConfiguration( + this.id, + this.bdsInstanceId, + this.displayName, + this.levelTypeDetails, + this.lifecycleState, + this.timeCreated, + this.timeUpdated, + this.timezone, + this.schedule, + this.numberOfBackupsToRetain, + this.backupType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(NodeBackupConfiguration model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("bdsInstanceId")) { + this.bdsInstanceId(model.getBdsInstanceId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("levelTypeDetails")) { + this.levelTypeDetails(model.getLevelTypeDetails()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("timezone")) { + this.timezone(model.getTimezone()); + } + if (model.wasPropertyExplicitlySet("schedule")) { + this.schedule(model.getSchedule()); + } + if (model.wasPropertyExplicitlySet("numberOfBackupsToRetain")) { + this.numberOfBackupsToRetain(model.getNumberOfBackupsToRetain()); + } + if (model.wasPropertyExplicitlySet("backupType")) { + this.backupType(model.getBackupType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The unique identifier for the NodeBackupConfiguration. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The unique identifier for the NodeBackupConfiguration. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The OCID of the bdsInstance which is the parent resource id. */ + @com.fasterxml.jackson.annotation.JsonProperty("bdsInstanceId") + private final String bdsInstanceId; + + /** + * The OCID of the bdsInstance which is the parent resource id. + * + * @return the value + */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + + /** + * A user-friendly name. Only ASCII alphanumeric characters with no spaces allowed. The name + * does not have to be unique, and it may be changed. Avoid entering confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Only ASCII alphanumeric characters with no spaces allowed. The name + * does not have to be unique, and it may be changed. Avoid entering confidential information. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + @com.fasterxml.jackson.annotation.JsonProperty("levelTypeDetails") + private final LevelTypeDetails levelTypeDetails; + + public LevelTypeDetails getLevelTypeDetails() { + return levelTypeDetails; + } + + /** The state of the NodeBackupConfiguration. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + Active("ACTIVE"), + Updating("UPDATING"), + 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 state of the NodeBackupConfiguration. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The state of the NodeBackupConfiguration. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The time the NodeBackupConfiguration was created, shown as an RFC 3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the NodeBackupConfiguration was created, shown as an RFC 3339 formatted datetime + * string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the NodeBackupConfiguration was updated, shown as an RFC 3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the NodeBackupConfiguration was updated, shown as an RFC 3339 formatted datetime + * string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** The time zone of the execution schedule, in IANA time zone database name format */ + @com.fasterxml.jackson.annotation.JsonProperty("timezone") + private final String timezone; + + /** + * The time zone of the execution schedule, in IANA time zone database name format + * + * @return the value + */ + public String getTimezone() { + return timezone; + } + + /** + * Day/time recurrence (specified following RFC 5545) at which to trigger the backup process. + * Currently only DAILY, WEEKLY and MONTHLY frequency is supported. Days of the week are + * specified using BYDAY field. Time of the day is specified using BYHOUR. Other fields are not + * supported. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schedule") + private final String schedule; + + /** + * Day/time recurrence (specified following RFC 5545) at which to trigger the backup process. + * Currently only DAILY, WEEKLY and MONTHLY frequency is supported. Days of the week are + * specified using BYDAY field. Time of the day is specified using BYHOUR. Other fields are not + * supported. + * + * @return the value + */ + public String getSchedule() { + return schedule; + } + + /** Number of backup copies to retain. */ + @com.fasterxml.jackson.annotation.JsonProperty("numberOfBackupsToRetain") + private final Integer numberOfBackupsToRetain; + + /** + * Number of backup copies to retain. + * + * @return the value + */ + public Integer getNumberOfBackupsToRetain() { + return numberOfBackupsToRetain; + } + + /** + * Incremental backup type includes only the changes since the last backup. Full backup type + * includes all changes since the volume was created. + */ + @com.fasterxml.jackson.annotation.JsonProperty("backupType") + private final NodeBackup.BackupType backupType; + + /** + * Incremental backup type includes only the changes since the last backup. Full backup type + * includes all changes since the volume was created. + * + * @return the value + */ + public NodeBackup.BackupType getBackupType() { + return backupType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("NodeBackupConfiguration("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", levelTypeDetails=").append(String.valueOf(this.levelTypeDetails)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", timezone=").append(String.valueOf(this.timezone)); + sb.append(", schedule=").append(String.valueOf(this.schedule)); + sb.append(", numberOfBackupsToRetain=") + .append(String.valueOf(this.numberOfBackupsToRetain)); + sb.append(", backupType=").append(String.valueOf(this.backupType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof NodeBackupConfiguration)) { + return false; + } + + NodeBackupConfiguration other = (NodeBackupConfiguration) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.levelTypeDetails, other.levelTypeDetails) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.timezone, other.timezone) + && java.util.Objects.equals(this.schedule, other.schedule) + && java.util.Objects.equals( + this.numberOfBackupsToRetain, other.numberOfBackupsToRetain) + && java.util.Objects.equals(this.backupType, other.backupType) + && 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.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.levelTypeDetails == null ? 43 : this.levelTypeDetails.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.timezone == null ? 43 : this.timezone.hashCode()); + result = (result * PRIME) + (this.schedule == null ? 43 : this.schedule.hashCode()); + result = + (result * PRIME) + + (this.numberOfBackupsToRetain == null + ? 43 + : this.numberOfBackupsToRetain.hashCode()); + result = (result * PRIME) + (this.backupType == null ? 43 : this.backupType.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/NodeBackupConfigurationSummary.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/NodeBackupConfigurationSummary.java new file mode 100644 index 00000000000..0345d9bc7b8 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/NodeBackupConfigurationSummary.java @@ -0,0 +1,387 @@ +/** + * 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.bds.model; + +/** + * The information about the NodeBackupConfiguration.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = NodeBackupConfigurationSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class NodeBackupConfigurationSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "bdsInstanceId", + "displayName", + "levelTypeDetails", + "lifecycleState", + "timeCreated", + "timeUpdated" + }) + public NodeBackupConfigurationSummary( + String id, + String bdsInstanceId, + String displayName, + LevelTypeDetails levelTypeDetails, + NodeBackupConfiguration.LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(); + this.id = id; + this.bdsInstanceId = bdsInstanceId; + this.displayName = displayName; + this.levelTypeDetails = levelTypeDetails; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The id of the NodeBackupConfiguration. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The id of the NodeBackupConfiguration. + * + * @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 bdsInstance which is the parent resource id. */ + @com.fasterxml.jackson.annotation.JsonProperty("bdsInstanceId") + private String bdsInstanceId; + + /** + * The OCID of the bdsInstance which is the parent resource id. + * + * @param bdsInstanceId the value to set + * @return this builder + */ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + this.__explicitlySet__.add("bdsInstanceId"); + return this; + } + /** + * A user-friendly name. Only ASCII alphanumeric characters with no spaces allowed. The name + * does not have to be unique, and it may be changed. Avoid entering confidential + * information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Only ASCII alphanumeric characters with no spaces allowed. The name + * does not have to be unique, and it may be changed. 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; + } + + @com.fasterxml.jackson.annotation.JsonProperty("levelTypeDetails") + private LevelTypeDetails levelTypeDetails; + + public Builder levelTypeDetails(LevelTypeDetails levelTypeDetails) { + this.levelTypeDetails = levelTypeDetails; + this.__explicitlySet__.add("levelTypeDetails"); + return this; + } + /** The state of the NodeBackupConfiguration. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private NodeBackupConfiguration.LifecycleState lifecycleState; + + /** + * The state of the NodeBackupConfiguration. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(NodeBackupConfiguration.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The time the NodeBackupConfiguration was created, shown as an RFC 3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the NodeBackupConfiguration was created, shown as an RFC 3339 formatted datetime + * string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time the NodeBackupConfiguration was updated, shown as an RFC 3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the NodeBackupConfiguration was updated, shown as an RFC 3339 formatted datetime + * string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public NodeBackupConfigurationSummary build() { + NodeBackupConfigurationSummary model = + new NodeBackupConfigurationSummary( + this.id, + this.bdsInstanceId, + this.displayName, + this.levelTypeDetails, + this.lifecycleState, + this.timeCreated, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(NodeBackupConfigurationSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("bdsInstanceId")) { + this.bdsInstanceId(model.getBdsInstanceId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("levelTypeDetails")) { + this.levelTypeDetails(model.getLevelTypeDetails()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + 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 id of the NodeBackupConfiguration. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The id of the NodeBackupConfiguration. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The OCID of the bdsInstance which is the parent resource id. */ + @com.fasterxml.jackson.annotation.JsonProperty("bdsInstanceId") + private final String bdsInstanceId; + + /** + * The OCID of the bdsInstance which is the parent resource id. + * + * @return the value + */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + + /** + * A user-friendly name. Only ASCII alphanumeric characters with no spaces allowed. The name + * does not have to be unique, and it may be changed. Avoid entering confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Only ASCII alphanumeric characters with no spaces allowed. The name + * does not have to be unique, and it may be changed. Avoid entering confidential information. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + @com.fasterxml.jackson.annotation.JsonProperty("levelTypeDetails") + private final LevelTypeDetails levelTypeDetails; + + public LevelTypeDetails getLevelTypeDetails() { + return levelTypeDetails; + } + + /** The state of the NodeBackupConfiguration. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final NodeBackupConfiguration.LifecycleState lifecycleState; + + /** + * The state of the NodeBackupConfiguration. + * + * @return the value + */ + public NodeBackupConfiguration.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The time the NodeBackupConfiguration was created, shown as an RFC 3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the NodeBackupConfiguration was created, shown as an RFC 3339 formatted datetime + * string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the NodeBackupConfiguration was updated, shown as an RFC 3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the NodeBackupConfiguration was updated, shown as an RFC 3339 formatted datetime + * string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("NodeBackupConfigurationSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", levelTypeDetails=").append(String.valueOf(this.levelTypeDetails)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + 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 NodeBackupConfigurationSummary)) { + return false; + } + + NodeBackupConfigurationSummary other = (NodeBackupConfigurationSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.levelTypeDetails, other.levelTypeDetails) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && 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.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.levelTypeDetails == null ? 43 : this.levelTypeDetails.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/NodeBackupSummary.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/NodeBackupSummary.java new file mode 100644 index 00000000000..01d8edee22f --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/NodeBackupSummary.java @@ -0,0 +1,425 @@ +/** + * 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.bds.model; + +/** + * The information about the nodeBackupSummary.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = NodeBackupSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class NodeBackupSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "nodeInstanceId", + "nodeHostName", + "backupTriggerType", + "backupType", + "lifecycleState", + "timeCreated" + }) + public NodeBackupSummary( + String id, + String displayName, + String nodeInstanceId, + String nodeHostName, + NodeBackup.BackupTriggerType backupTriggerType, + NodeBackup.BackupType backupType, + NodeBackup.LifecycleState lifecycleState, + java.util.Date timeCreated) { + super(); + this.id = id; + this.displayName = displayName; + this.nodeInstanceId = nodeInstanceId; + this.nodeHostName = nodeHostName; + this.backupTriggerType = backupTriggerType; + this.backupType = backupType; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The id of the node backup. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The id of the node backup. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** BDS generated name for the backup. Format is nodeHostName_timeCreated. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * BDS generated name for the backup. Format is nodeHostName_timeCreated. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The instance OCID of the node, which is the resource from which the node backup was + * acquired. + */ + @com.fasterxml.jackson.annotation.JsonProperty("nodeInstanceId") + private String nodeInstanceId; + + /** + * The instance OCID of the node, which is the resource from which the node backup was + * acquired. + * + * @param nodeInstanceId the value to set + * @return this builder + */ + public Builder nodeInstanceId(String nodeInstanceId) { + this.nodeInstanceId = nodeInstanceId; + this.__explicitlySet__.add("nodeInstanceId"); + return this; + } + /** Host name of the node that the backup belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("nodeHostName") + private String nodeHostName; + + /** + * Host name of the node that the backup belongs to. + * + * @param nodeHostName the value to set + * @return this builder + */ + public Builder nodeHostName(String nodeHostName) { + this.nodeHostName = nodeHostName; + this.__explicitlySet__.add("nodeHostName"); + return this; + } + /** type based on how backup action was initiated. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupTriggerType") + private NodeBackup.BackupTriggerType backupTriggerType; + + /** + * type based on how backup action was initiated. + * + * @param backupTriggerType the value to set + * @return this builder + */ + public Builder backupTriggerType(NodeBackup.BackupTriggerType backupTriggerType) { + this.backupTriggerType = backupTriggerType; + this.__explicitlySet__.add("backupTriggerType"); + return this; + } + /** + * Incremental backup type includes only the changes since the last backup. Full backup type + * includes all changes since the volume was created + */ + @com.fasterxml.jackson.annotation.JsonProperty("backupType") + private NodeBackup.BackupType backupType; + + /** + * Incremental backup type includes only the changes since the last backup. Full backup type + * includes all changes since the volume was created + * + * @param backupType the value to set + * @return this builder + */ + public Builder backupType(NodeBackup.BackupType backupType) { + this.backupType = backupType; + this.__explicitlySet__.add("backupType"); + return this; + } + /** The state of NodeBackup. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private NodeBackup.LifecycleState lifecycleState; + + /** + * The state of NodeBackup. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(NodeBackup.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** The time the cluster was created, shown as an RFC 3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the cluster was created, shown as an RFC 3339 formatted datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public NodeBackupSummary build() { + NodeBackupSummary model = + new NodeBackupSummary( + this.id, + this.displayName, + this.nodeInstanceId, + this.nodeHostName, + this.backupTriggerType, + this.backupType, + this.lifecycleState, + this.timeCreated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(NodeBackupSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("nodeInstanceId")) { + this.nodeInstanceId(model.getNodeInstanceId()); + } + if (model.wasPropertyExplicitlySet("nodeHostName")) { + this.nodeHostName(model.getNodeHostName()); + } + if (model.wasPropertyExplicitlySet("backupTriggerType")) { + this.backupTriggerType(model.getBackupTriggerType()); + } + if (model.wasPropertyExplicitlySet("backupType")) { + this.backupType(model.getBackupType()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The id of the node backup. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The id of the node backup. + * + * @return the value + */ + public String getId() { + return id; + } + + /** BDS generated name for the backup. Format is nodeHostName_timeCreated. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * BDS generated name for the backup. Format is nodeHostName_timeCreated. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * The instance OCID of the node, which is the resource from which the node backup was acquired. + */ + @com.fasterxml.jackson.annotation.JsonProperty("nodeInstanceId") + private final String nodeInstanceId; + + /** + * The instance OCID of the node, which is the resource from which the node backup was acquired. + * + * @return the value + */ + public String getNodeInstanceId() { + return nodeInstanceId; + } + + /** Host name of the node that the backup belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("nodeHostName") + private final String nodeHostName; + + /** + * Host name of the node that the backup belongs to. + * + * @return the value + */ + public String getNodeHostName() { + return nodeHostName; + } + + /** type based on how backup action was initiated. */ + @com.fasterxml.jackson.annotation.JsonProperty("backupTriggerType") + private final NodeBackup.BackupTriggerType backupTriggerType; + + /** + * type based on how backup action was initiated. + * + * @return the value + */ + public NodeBackup.BackupTriggerType getBackupTriggerType() { + return backupTriggerType; + } + + /** + * Incremental backup type includes only the changes since the last backup. Full backup type + * includes all changes since the volume was created + */ + @com.fasterxml.jackson.annotation.JsonProperty("backupType") + private final NodeBackup.BackupType backupType; + + /** + * Incremental backup type includes only the changes since the last backup. Full backup type + * includes all changes since the volume was created + * + * @return the value + */ + public NodeBackup.BackupType getBackupType() { + return backupType; + } + + /** The state of NodeBackup. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final NodeBackup.LifecycleState lifecycleState; + + /** + * The state of NodeBackup. + * + * @return the value + */ + public NodeBackup.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** The time the cluster was created, shown as an RFC 3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the cluster was created, shown as an RFC 3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("NodeBackupSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", nodeInstanceId=").append(String.valueOf(this.nodeInstanceId)); + sb.append(", nodeHostName=").append(String.valueOf(this.nodeHostName)); + sb.append(", backupTriggerType=").append(String.valueOf(this.backupTriggerType)); + sb.append(", backupType=").append(String.valueOf(this.backupType)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof NodeBackupSummary)) { + return false; + } + + NodeBackupSummary other = (NodeBackupSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.nodeInstanceId, other.nodeInstanceId) + && java.util.Objects.equals(this.nodeHostName, other.nodeHostName) + && java.util.Objects.equals(this.backupTriggerType, other.backupTriggerType) + && java.util.Objects.equals(this.backupType, other.backupType) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.nodeInstanceId == null ? 43 : this.nodeInstanceId.hashCode()); + result = (result * PRIME) + (this.nodeHostName == null ? 43 : this.nodeHostName.hashCode()); + result = + (result * PRIME) + + (this.backupTriggerType == null ? 43 : this.backupTriggerType.hashCode()); + result = (result * PRIME) + (this.backupType == null ? 43 : this.backupType.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/NodeLevelDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/NodeLevelDetails.java new file mode 100644 index 00000000000..42fba4c38f6 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/NodeLevelDetails.java @@ -0,0 +1,135 @@ +/** + * 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.bds.model; + +/** + * Details of node level used to trigger the creation of a new node backup configuration and node + * replacement configuration.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = NodeLevelDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "levelType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class NodeLevelDetails extends LevelTypeDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Host name of the node to create backup configuration. */ + @com.fasterxml.jackson.annotation.JsonProperty("nodeHostName") + private String nodeHostName; + + /** + * Host name of the node to create backup configuration. + * + * @param nodeHostName the value to set + * @return this builder + */ + public Builder nodeHostName(String nodeHostName) { + this.nodeHostName = nodeHostName; + this.__explicitlySet__.add("nodeHostName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public NodeLevelDetails build() { + NodeLevelDetails model = new NodeLevelDetails(this.nodeHostName); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(NodeLevelDetails model) { + if (model.wasPropertyExplicitlySet("nodeHostName")) { + this.nodeHostName(model.getNodeHostName()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public NodeLevelDetails(String nodeHostName) { + super(); + this.nodeHostName = nodeHostName; + } + + /** Host name of the node to create backup configuration. */ + @com.fasterxml.jackson.annotation.JsonProperty("nodeHostName") + private final String nodeHostName; + + /** + * Host name of the node to create backup configuration. + * + * @return the value + */ + public String getNodeHostName() { + return nodeHostName; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("NodeLevelDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", nodeHostName=").append(String.valueOf(this.nodeHostName)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof NodeLevelDetails)) { + return false; + } + + NodeLevelDetails other = (NodeLevelDetails) o; + return java.util.Objects.equals(this.nodeHostName, other.nodeHostName) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.nodeHostName == null ? 43 : this.nodeHostName.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/NodeReplaceConfiguration.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/NodeReplaceConfiguration.java new file mode 100644 index 00000000000..52e62cf9b38 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/NodeReplaceConfiguration.java @@ -0,0 +1,569 @@ +/** + * 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.bds.model; + +/** + * The information about the NodeReplaceConfiguration.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = NodeReplaceConfiguration.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class NodeReplaceConfiguration + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "bdsInstanceId", + "displayName", + "levelTypeDetails", + "lifecycleState", + "timeCreated", + "timeUpdated", + "metricType", + "durationInMinutes" + }) + public NodeReplaceConfiguration( + String id, + String bdsInstanceId, + String displayName, + LevelTypeDetails levelTypeDetails, + LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + MetricType metricType, + Integer durationInMinutes) { + super(); + this.id = id; + this.bdsInstanceId = bdsInstanceId; + this.displayName = displayName; + this.levelTypeDetails = levelTypeDetails; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.metricType = metricType; + this.durationInMinutes = durationInMinutes; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The unique identifier for the NodeReplaceConfiguration. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The unique identifier for the NodeReplaceConfiguration. + * + * @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 bdsInstance which is the parent resource id. */ + @com.fasterxml.jackson.annotation.JsonProperty("bdsInstanceId") + private String bdsInstanceId; + + /** + * The OCID of the bdsInstance which is the parent resource id. + * + * @param bdsInstanceId the value to set + * @return this builder + */ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + this.__explicitlySet__.add("bdsInstanceId"); + return this; + } + /** + * A user-friendly name. Only ASCII alphanumeric characters with no spaces allowed. The name + * does not have to be unique, and it may be changed. Avoid entering confidential + * information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Only ASCII alphanumeric characters with no spaces allowed. The name + * does not have to be unique, and it may be changed. 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; + } + + @com.fasterxml.jackson.annotation.JsonProperty("levelTypeDetails") + private LevelTypeDetails levelTypeDetails; + + public Builder levelTypeDetails(LevelTypeDetails levelTypeDetails) { + this.levelTypeDetails = levelTypeDetails; + this.__explicitlySet__.add("levelTypeDetails"); + return this; + } + /** The state of the NodeReplaceConfiguration. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The state of the NodeReplaceConfiguration. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The time the NodeReplaceConfiguration was created, shown as an RFC 3339 formatted + * datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the NodeReplaceConfiguration was created, shown as an RFC 3339 formatted + * datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time the NodeReplaceConfiguration was updated, shown as an RFC 3339 formatted + * datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the NodeReplaceConfiguration was updated, shown as an RFC 3339 formatted + * datetime string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** Type of compute instance health metric to use for node replacement */ + @com.fasterxml.jackson.annotation.JsonProperty("metricType") + private MetricType metricType; + + /** + * Type of compute instance health metric to use for node replacement + * + * @param metricType the value to set + * @return this builder + */ + public Builder metricType(MetricType metricType) { + this.metricType = metricType; + this.__explicitlySet__.add("metricType"); + return this; + } + /** + * This value is the minimum period of time to wait for metric emission before triggering + * node replacement. The value is in minutes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("durationInMinutes") + private Integer durationInMinutes; + + /** + * This value is the minimum period of time to wait for metric emission before triggering + * node replacement. The value is in minutes. + * + * @param durationInMinutes the value to set + * @return this builder + */ + public Builder durationInMinutes(Integer durationInMinutes) { + this.durationInMinutes = durationInMinutes; + this.__explicitlySet__.add("durationInMinutes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public NodeReplaceConfiguration build() { + NodeReplaceConfiguration model = + new NodeReplaceConfiguration( + this.id, + this.bdsInstanceId, + this.displayName, + this.levelTypeDetails, + this.lifecycleState, + this.timeCreated, + this.timeUpdated, + this.metricType, + this.durationInMinutes); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(NodeReplaceConfiguration model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("bdsInstanceId")) { + this.bdsInstanceId(model.getBdsInstanceId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("levelTypeDetails")) { + this.levelTypeDetails(model.getLevelTypeDetails()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("metricType")) { + this.metricType(model.getMetricType()); + } + if (model.wasPropertyExplicitlySet("durationInMinutes")) { + this.durationInMinutes(model.getDurationInMinutes()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The unique identifier for the NodeReplaceConfiguration. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The unique identifier for the NodeReplaceConfiguration. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The OCID of the bdsInstance which is the parent resource id. */ + @com.fasterxml.jackson.annotation.JsonProperty("bdsInstanceId") + private final String bdsInstanceId; + + /** + * The OCID of the bdsInstance which is the parent resource id. + * + * @return the value + */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + + /** + * A user-friendly name. Only ASCII alphanumeric characters with no spaces allowed. The name + * does not have to be unique, and it may be changed. Avoid entering confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Only ASCII alphanumeric characters with no spaces allowed. The name + * does not have to be unique, and it may be changed. Avoid entering confidential information. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + @com.fasterxml.jackson.annotation.JsonProperty("levelTypeDetails") + private final LevelTypeDetails levelTypeDetails; + + public LevelTypeDetails getLevelTypeDetails() { + return levelTypeDetails; + } + + /** The state of the NodeReplaceConfiguration. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + Active("ACTIVE"), + Updating("UPDATING"), + 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 state of the NodeReplaceConfiguration. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The state of the NodeReplaceConfiguration. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The time the NodeReplaceConfiguration was created, shown as an RFC 3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the NodeReplaceConfiguration was created, shown as an RFC 3339 formatted datetime + * string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the NodeReplaceConfiguration was updated, shown as an RFC 3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the NodeReplaceConfiguration was updated, shown as an RFC 3339 formatted datetime + * string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** Type of compute instance health metric to use for node replacement */ + public enum MetricType implements com.oracle.bmc.http.internal.BmcEnum { + InstanceStatus("INSTANCE_STATUS"), + InstanceAccessibilityStatus("INSTANCE_ACCESSIBILITY_STATUS"), + + /** + * 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(MetricType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MetricType v : MetricType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MetricType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MetricType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MetricType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Type of compute instance health metric to use for node replacement */ + @com.fasterxml.jackson.annotation.JsonProperty("metricType") + private final MetricType metricType; + + /** + * Type of compute instance health metric to use for node replacement + * + * @return the value + */ + public MetricType getMetricType() { + return metricType; + } + + /** + * This value is the minimum period of time to wait for metric emission before triggering node + * replacement. The value is in minutes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("durationInMinutes") + private final Integer durationInMinutes; + + /** + * This value is the minimum period of time to wait for metric emission before triggering node + * replacement. The value is in minutes. + * + * @return the value + */ + public Integer getDurationInMinutes() { + return durationInMinutes; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("NodeReplaceConfiguration("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", levelTypeDetails=").append(String.valueOf(this.levelTypeDetails)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", metricType=").append(String.valueOf(this.metricType)); + sb.append(", durationInMinutes=").append(String.valueOf(this.durationInMinutes)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof NodeReplaceConfiguration)) { + return false; + } + + NodeReplaceConfiguration other = (NodeReplaceConfiguration) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.levelTypeDetails, other.levelTypeDetails) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.metricType, other.metricType) + && java.util.Objects.equals(this.durationInMinutes, other.durationInMinutes) + && 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.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.levelTypeDetails == null ? 43 : this.levelTypeDetails.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.metricType == null ? 43 : this.metricType.hashCode()); + result = + (result * PRIME) + + (this.durationInMinutes == null ? 43 : this.durationInMinutes.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/NodeReplaceConfigurationSummary.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/NodeReplaceConfigurationSummary.java new file mode 100644 index 00000000000..6f334533e91 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/NodeReplaceConfigurationSummary.java @@ -0,0 +1,387 @@ +/** + * 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.bds.model; + +/** + * The information about the NodeReplaceConfigurationSummary.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = NodeReplaceConfigurationSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class NodeReplaceConfigurationSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "bdsInstanceId", + "displayName", + "levelTypeDetails", + "lifecycleState", + "timeCreated", + "timeUpdated" + }) + public NodeReplaceConfigurationSummary( + String id, + String bdsInstanceId, + String displayName, + LevelTypeDetails levelTypeDetails, + NodeReplaceConfiguration.LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(); + this.id = id; + this.bdsInstanceId = bdsInstanceId; + this.displayName = displayName; + this.levelTypeDetails = levelTypeDetails; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The id of the NodeReplaceConfiguration. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The id of the NodeReplaceConfiguration. + * + * @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 bdsInstance which is the parent resource id. */ + @com.fasterxml.jackson.annotation.JsonProperty("bdsInstanceId") + private String bdsInstanceId; + + /** + * The OCID of the bdsInstance which is the parent resource id. + * + * @param bdsInstanceId the value to set + * @return this builder + */ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + this.__explicitlySet__.add("bdsInstanceId"); + return this; + } + /** + * A user-friendly name. Only ASCII alphanumeric characters with no spaces allowed. The name + * does not have to be unique, and it may be changed. Avoid entering confidential + * information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Only ASCII alphanumeric characters with no spaces allowed. The name + * does not have to be unique, and it may be changed. 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; + } + + @com.fasterxml.jackson.annotation.JsonProperty("levelTypeDetails") + private LevelTypeDetails levelTypeDetails; + + public Builder levelTypeDetails(LevelTypeDetails levelTypeDetails) { + this.levelTypeDetails = levelTypeDetails; + this.__explicitlySet__.add("levelTypeDetails"); + return this; + } + /** The state of the NodeReplaceConfiguration. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private NodeReplaceConfiguration.LifecycleState lifecycleState; + + /** + * The state of the NodeReplaceConfiguration. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(NodeReplaceConfiguration.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The time the NodeReplaceConfiguration was created, shown as an RFC 3339 formatted + * datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the NodeReplaceConfiguration was created, shown as an RFC 3339 formatted + * datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time the NodeReplaceConfiguration was updated, shown as an RFC 3339 formatted + * datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the NodeReplaceConfiguration was updated, shown as an RFC 3339 formatted + * datetime string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public NodeReplaceConfigurationSummary build() { + NodeReplaceConfigurationSummary model = + new NodeReplaceConfigurationSummary( + this.id, + this.bdsInstanceId, + this.displayName, + this.levelTypeDetails, + this.lifecycleState, + this.timeCreated, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(NodeReplaceConfigurationSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("bdsInstanceId")) { + this.bdsInstanceId(model.getBdsInstanceId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("levelTypeDetails")) { + this.levelTypeDetails(model.getLevelTypeDetails()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + 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 id of the NodeReplaceConfiguration. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The id of the NodeReplaceConfiguration. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The OCID of the bdsInstance which is the parent resource id. */ + @com.fasterxml.jackson.annotation.JsonProperty("bdsInstanceId") + private final String bdsInstanceId; + + /** + * The OCID of the bdsInstance which is the parent resource id. + * + * @return the value + */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + + /** + * A user-friendly name. Only ASCII alphanumeric characters with no spaces allowed. The name + * does not have to be unique, and it may be changed. Avoid entering confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Only ASCII alphanumeric characters with no spaces allowed. The name + * does not have to be unique, and it may be changed. Avoid entering confidential information. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + @com.fasterxml.jackson.annotation.JsonProperty("levelTypeDetails") + private final LevelTypeDetails levelTypeDetails; + + public LevelTypeDetails getLevelTypeDetails() { + return levelTypeDetails; + } + + /** The state of the NodeReplaceConfiguration. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final NodeReplaceConfiguration.LifecycleState lifecycleState; + + /** + * The state of the NodeReplaceConfiguration. + * + * @return the value + */ + public NodeReplaceConfiguration.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The time the NodeReplaceConfiguration was created, shown as an RFC 3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the NodeReplaceConfiguration was created, shown as an RFC 3339 formatted datetime + * string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the NodeReplaceConfiguration was updated, shown as an RFC 3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the NodeReplaceConfiguration was updated, shown as an RFC 3339 formatted datetime + * string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("NodeReplaceConfigurationSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", levelTypeDetails=").append(String.valueOf(this.levelTypeDetails)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + 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 NodeReplaceConfigurationSummary)) { + return false; + } + + NodeReplaceConfigurationSummary other = (NodeReplaceConfigurationSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.levelTypeDetails, other.levelTypeDetails) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && 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.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.levelTypeDetails == null ? 43 : this.levelTypeDetails.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/NodeTypeLevelDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/NodeTypeLevelDetails.java new file mode 100644 index 00000000000..63c8295ab9e --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/NodeTypeLevelDetails.java @@ -0,0 +1,143 @@ +/** + * 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.bds.model; + +/** + * Details of node type level used to trigger the creation of a new node backup configuration and + * node replacement configuration.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = NodeTypeLevelDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "levelType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class NodeTypeLevelDetails extends LevelTypeDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Type of the node or nodes of the node backup configuration or node replacement + * configuration which are going to be created. + */ + @com.fasterxml.jackson.annotation.JsonProperty("nodeType") + private Node.NodeType nodeType; + + /** + * Type of the node or nodes of the node backup configuration or node replacement + * configuration which are going to be created. + * + * @param nodeType the value to set + * @return this builder + */ + public Builder nodeType(Node.NodeType nodeType) { + this.nodeType = nodeType; + this.__explicitlySet__.add("nodeType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public NodeTypeLevelDetails build() { + NodeTypeLevelDetails model = new NodeTypeLevelDetails(this.nodeType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(NodeTypeLevelDetails model) { + if (model.wasPropertyExplicitlySet("nodeType")) { + this.nodeType(model.getNodeType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public NodeTypeLevelDetails(Node.NodeType nodeType) { + super(); + this.nodeType = nodeType; + } + + /** + * Type of the node or nodes of the node backup configuration or node replacement configuration + * which are going to be created. + */ + @com.fasterxml.jackson.annotation.JsonProperty("nodeType") + private final Node.NodeType nodeType; + + /** + * Type of the node or nodes of the node backup configuration or node replacement configuration + * which are going to be created. + * + * @return the value + */ + public Node.NodeType getNodeType() { + return nodeType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("NodeTypeLevelDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", nodeType=").append(String.valueOf(this.nodeType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof NodeTypeLevelDetails)) { + return false; + } + + NodeTypeLevelDetails other = (NodeTypeLevelDetails) o; + return java.util.Objects.equals(this.nodeType, other.nodeType) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.nodeType == null ? 43 : this.nodeType.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/OperationTypes.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/OperationTypes.java index 344f168a3d2..4e202835905 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/OperationTypes.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/OperationTypes.java @@ -43,6 +43,15 @@ public enum OperationTypes implements com.oracle.bmc.http.internal.BmcEnum { RemoveKafka("REMOVE_KAFKA"), ExecuteBootstrapScript("EXECUTE_BOOTSTRAP_SCRIPT"), OdhServiceCertificateUpdate("ODH_SERVICE_CERTIFICATE_UPDATE"), + CreateBackupConfig("CREATE_BACKUP_CONFIG"), + UpdateBackupConfig("UPDATE_BACKUP_CONFIG"), + DeleteBackupConfig("DELETE_BACKUP_CONFIG"), + CreateNodeReplaceConfig("CREATE_NODE_REPLACE_CONFIG"), + UpdateNodeReplaceConfig("UPDATE_NODE_REPLACE_CONFIG"), + DeleteNodeReplaceConfig("DELETE_NODE_REPLACE_CONFIG"), + BackupNodes("BACKUP_NODES"), + DeleteNodeBackup("DELETE_NODE_BACKUP"), + ReplaceNode("REPLACE_NODE"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveNodeReplaceConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveNodeReplaceConfigurationDetails.java new file mode 100644 index 00000000000..83c1dbfcdca --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RemoveNodeReplaceConfigurationDetails.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.bds.model; + +/** + * The information about the NodeReplaceConfiguration that being removed.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RemoveNodeReplaceConfigurationDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RemoveNodeReplaceConfigurationDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword"}) + public RemoveNodeReplaceConfigurationDetails(String clusterAdminPassword) { + super(); + this.clusterAdminPassword = clusterAdminPassword; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Base-64 encoded password for the cluster admin user. */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + private String clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * + * @param clusterAdminPassword the value to set + * @return this builder + */ + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = clusterAdminPassword; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RemoveNodeReplaceConfigurationDetails build() { + RemoveNodeReplaceConfigurationDetails model = + new RemoveNodeReplaceConfigurationDetails(this.clusterAdminPassword); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RemoveNodeReplaceConfigurationDetails model) { + if (model.wasPropertyExplicitlySet("clusterAdminPassword")) { + this.clusterAdminPassword(model.getClusterAdminPassword()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Base-64 encoded password for the cluster admin user. */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + private final String clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + public String getClusterAdminPassword() { + return clusterAdminPassword; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("RemoveNodeReplaceConfigurationDetails("); + sb.append("super=").append(super.toString()); + sb.append("clusterAdminPassword=").append(""); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RemoveNodeReplaceConfigurationDetails)) { + return false; + } + + RemoveNodeReplaceConfigurationDetails other = (RemoveNodeReplaceConfigurationDetails) o; + return java.util.Objects.equals(this.clusterAdminPassword, other.clusterAdminPassword) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.clusterAdminPassword == null + ? 43 + : this.clusterAdminPassword.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ReplaceNodeDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ReplaceNodeDetails.java new file mode 100644 index 00000000000..a980c731f02 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ReplaceNodeDetails.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.bds.model; + +/** + * The information about the node to be replaced.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ReplaceNodeDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ReplaceNodeDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "nodeHostName", + "nodeBackupId", + "clusterAdminPassword", + "shape" + }) + public ReplaceNodeDetails( + String nodeHostName, String nodeBackupId, String clusterAdminPassword, String shape) { + super(); + this.nodeHostName = nodeHostName; + this.nodeBackupId = nodeBackupId; + this.clusterAdminPassword = clusterAdminPassword; + this.shape = shape; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Host name of the node to replace. MASTER, UTILITY and EDGE node are only supported types + */ + @com.fasterxml.jackson.annotation.JsonProperty("nodeHostName") + private String nodeHostName; + + /** + * Host name of the node to replace. MASTER, UTILITY and EDGE node are only supported types + * + * @param nodeHostName the value to set + * @return this builder + */ + public Builder nodeHostName(String nodeHostName) { + this.nodeHostName = nodeHostName; + this.__explicitlySet__.add("nodeHostName"); + return this; + } + /** The id of the nodeBackup to use for replacing the node. */ + @com.fasterxml.jackson.annotation.JsonProperty("nodeBackupId") + private String nodeBackupId; + + /** + * The id of the nodeBackup to use for replacing the node. + * + * @param nodeBackupId the value to set + * @return this builder + */ + public Builder nodeBackupId(String nodeBackupId) { + this.nodeBackupId = nodeBackupId; + this.__explicitlySet__.add("nodeBackupId"); + return this; + } + /** Base-64 encoded password for the cluster admin user. */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + private String clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * + * @param clusterAdminPassword the value to set + * @return this builder + */ + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = clusterAdminPassword; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** + * Shape of the new vm when replacing the node. If not provided, BDS will attempt to replace + * the node with the shape of current node. + */ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private String shape; + + /** + * Shape of the new vm when replacing the node. If not provided, BDS will attempt to replace + * the node with the shape of current node. + * + * @param shape the value to set + * @return this builder + */ + public Builder shape(String shape) { + this.shape = shape; + this.__explicitlySet__.add("shape"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ReplaceNodeDetails build() { + ReplaceNodeDetails model = + new ReplaceNodeDetails( + this.nodeHostName, + this.nodeBackupId, + this.clusterAdminPassword, + this.shape); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ReplaceNodeDetails model) { + if (model.wasPropertyExplicitlySet("nodeHostName")) { + this.nodeHostName(model.getNodeHostName()); + } + if (model.wasPropertyExplicitlySet("nodeBackupId")) { + this.nodeBackupId(model.getNodeBackupId()); + } + if (model.wasPropertyExplicitlySet("clusterAdminPassword")) { + this.clusterAdminPassword(model.getClusterAdminPassword()); + } + if (model.wasPropertyExplicitlySet("shape")) { + this.shape(model.getShape()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Host name of the node to replace. MASTER, UTILITY and EDGE node are only supported types */ + @com.fasterxml.jackson.annotation.JsonProperty("nodeHostName") + private final String nodeHostName; + + /** + * Host name of the node to replace. MASTER, UTILITY and EDGE node are only supported types + * + * @return the value + */ + public String getNodeHostName() { + return nodeHostName; + } + + /** The id of the nodeBackup to use for replacing the node. */ + @com.fasterxml.jackson.annotation.JsonProperty("nodeBackupId") + private final String nodeBackupId; + + /** + * The id of the nodeBackup to use for replacing the node. + * + * @return the value + */ + public String getNodeBackupId() { + return nodeBackupId; + } + + /** Base-64 encoded password for the cluster admin user. */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + private final String clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + public String getClusterAdminPassword() { + return clusterAdminPassword; + } + + /** + * Shape of the new vm when replacing the node. If not provided, BDS will attempt to replace the + * node with the shape of current node. + */ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private final String shape; + + /** + * Shape of the new vm when replacing the node. If not provided, BDS will attempt to replace the + * node with the shape of current node. + * + * @return the value + */ + public String getShape() { + return shape; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ReplaceNodeDetails("); + sb.append("super=").append(super.toString()); + sb.append("nodeHostName=").append(String.valueOf(this.nodeHostName)); + sb.append(", nodeBackupId=").append(String.valueOf(this.nodeBackupId)); + sb.append(", clusterAdminPassword=").append(""); + sb.append(", shape=").append(String.valueOf(this.shape)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ReplaceNodeDetails)) { + return false; + } + + ReplaceNodeDetails other = (ReplaceNodeDetails) o; + return java.util.Objects.equals(this.nodeHostName, other.nodeHostName) + && java.util.Objects.equals(this.nodeBackupId, other.nodeBackupId) + && java.util.Objects.equals(this.clusterAdminPassword, other.clusterAdminPassword) + && java.util.Objects.equals(this.shape, other.shape) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.nodeHostName == null ? 43 : this.nodeHostName.hashCode()); + result = (result * PRIME) + (this.nodeBackupId == null ? 43 : this.nodeBackupId.hashCode()); + result = + (result * PRIME) + + (this.clusterAdminPassword == null + ? 43 + : this.clusterAdminPassword.hashCode()); + result = (result * PRIME) + (this.shape == null ? 43 : this.shape.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateNodeBackupConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateNodeBackupConfigurationDetails.java new file mode 100644 index 00000000000..32791e8f720 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateNodeBackupConfigurationDetails.java @@ -0,0 +1,359 @@ +/** + * 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.bds.model; + +/** + * The information about the NodeBackupConfiguration that is being updated.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateNodeBackupConfigurationDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateNodeBackupConfigurationDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "levelTypeDetails", + "displayName", + "timezone", + "schedule", + "numberOfBackupsToRetain", + "backupType" + }) + public UpdateNodeBackupConfigurationDetails( + LevelTypeDetails levelTypeDetails, + String displayName, + String timezone, + String schedule, + Integer numberOfBackupsToRetain, + NodeBackup.BackupType backupType) { + super(); + this.levelTypeDetails = levelTypeDetails; + this.displayName = displayName; + this.timezone = timezone; + this.schedule = schedule; + this.numberOfBackupsToRetain = numberOfBackupsToRetain; + this.backupType = backupType; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("levelTypeDetails") + private LevelTypeDetails levelTypeDetails; + + public Builder levelTypeDetails(LevelTypeDetails levelTypeDetails) { + this.levelTypeDetails = levelTypeDetails; + this.__explicitlySet__.add("levelTypeDetails"); + return this; + } + /** + * A user-friendly name. Only ASCII alphanumeric characters with no spaces allowed. The name + * does not have to be unique, and it may be changed. Avoid entering confidential + * information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Only ASCII alphanumeric characters with no spaces allowed. The name + * does not have to be unique, and it may be changed. Avoid entering confidential + * information. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The time zone of the execution schedule, in IANA time zone database name format */ + @com.fasterxml.jackson.annotation.JsonProperty("timezone") + private String timezone; + + /** + * The time zone of the execution schedule, in IANA time zone database name format + * + * @param timezone the value to set + * @return this builder + */ + public Builder timezone(String timezone) { + this.timezone = timezone; + this.__explicitlySet__.add("timezone"); + return this; + } + /** + * Day/time recurrence (specified following RFC 5545) at which to trigger the backup + * process. Currently only DAILY, WEEKLY and MONTHLY frequency is supported. Days of the + * week are specified using BYDAY field. Time of the day is specified using BYHOUR. Other + * fields are not supported. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schedule") + private String schedule; + + /** + * Day/time recurrence (specified following RFC 5545) at which to trigger the backup + * process. Currently only DAILY, WEEKLY and MONTHLY frequency is supported. Days of the + * week are specified using BYDAY field. Time of the day is specified using BYHOUR. Other + * fields are not supported. + * + * @param schedule the value to set + * @return this builder + */ + public Builder schedule(String schedule) { + this.schedule = schedule; + this.__explicitlySet__.add("schedule"); + return this; + } + /** Number of backup copies to retain. */ + @com.fasterxml.jackson.annotation.JsonProperty("numberOfBackupsToRetain") + private Integer numberOfBackupsToRetain; + + /** + * Number of backup copies to retain. + * + * @param numberOfBackupsToRetain the value to set + * @return this builder + */ + public Builder numberOfBackupsToRetain(Integer numberOfBackupsToRetain) { + this.numberOfBackupsToRetain = numberOfBackupsToRetain; + this.__explicitlySet__.add("numberOfBackupsToRetain"); + return this; + } + /** + * Incremental backup type includes only the changes since the last backup. Full backup type + * includes all changes since the volume was created. + */ + @com.fasterxml.jackson.annotation.JsonProperty("backupType") + private NodeBackup.BackupType backupType; + + /** + * Incremental backup type includes only the changes since the last backup. Full backup type + * includes all changes since the volume was created. + * + * @param backupType the value to set + * @return this builder + */ + public Builder backupType(NodeBackup.BackupType backupType) { + this.backupType = backupType; + this.__explicitlySet__.add("backupType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateNodeBackupConfigurationDetails build() { + UpdateNodeBackupConfigurationDetails model = + new UpdateNodeBackupConfigurationDetails( + this.levelTypeDetails, + this.displayName, + this.timezone, + this.schedule, + this.numberOfBackupsToRetain, + this.backupType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateNodeBackupConfigurationDetails model) { + if (model.wasPropertyExplicitlySet("levelTypeDetails")) { + this.levelTypeDetails(model.getLevelTypeDetails()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("timezone")) { + this.timezone(model.getTimezone()); + } + if (model.wasPropertyExplicitlySet("schedule")) { + this.schedule(model.getSchedule()); + } + if (model.wasPropertyExplicitlySet("numberOfBackupsToRetain")) { + this.numberOfBackupsToRetain(model.getNumberOfBackupsToRetain()); + } + if (model.wasPropertyExplicitlySet("backupType")) { + this.backupType(model.getBackupType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @com.fasterxml.jackson.annotation.JsonProperty("levelTypeDetails") + private final LevelTypeDetails levelTypeDetails; + + public LevelTypeDetails getLevelTypeDetails() { + return levelTypeDetails; + } + + /** + * A user-friendly name. Only ASCII alphanumeric characters with no spaces allowed. The name + * does not have to be unique, and it may be changed. Avoid entering confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Only ASCII alphanumeric characters with no spaces allowed. The name + * does not have to be unique, and it may be changed. Avoid entering confidential information. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The time zone of the execution schedule, in IANA time zone database name format */ + @com.fasterxml.jackson.annotation.JsonProperty("timezone") + private final String timezone; + + /** + * The time zone of the execution schedule, in IANA time zone database name format + * + * @return the value + */ + public String getTimezone() { + return timezone; + } + + /** + * Day/time recurrence (specified following RFC 5545) at which to trigger the backup process. + * Currently only DAILY, WEEKLY and MONTHLY frequency is supported. Days of the week are + * specified using BYDAY field. Time of the day is specified using BYHOUR. Other fields are not + * supported. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schedule") + private final String schedule; + + /** + * Day/time recurrence (specified following RFC 5545) at which to trigger the backup process. + * Currently only DAILY, WEEKLY and MONTHLY frequency is supported. Days of the week are + * specified using BYDAY field. Time of the day is specified using BYHOUR. Other fields are not + * supported. + * + * @return the value + */ + public String getSchedule() { + return schedule; + } + + /** Number of backup copies to retain. */ + @com.fasterxml.jackson.annotation.JsonProperty("numberOfBackupsToRetain") + private final Integer numberOfBackupsToRetain; + + /** + * Number of backup copies to retain. + * + * @return the value + */ + public Integer getNumberOfBackupsToRetain() { + return numberOfBackupsToRetain; + } + + /** + * Incremental backup type includes only the changes since the last backup. Full backup type + * includes all changes since the volume was created. + */ + @com.fasterxml.jackson.annotation.JsonProperty("backupType") + private final NodeBackup.BackupType backupType; + + /** + * Incremental backup type includes only the changes since the last backup. Full backup type + * includes all changes since the volume was created. + * + * @return the value + */ + public NodeBackup.BackupType getBackupType() { + return backupType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateNodeBackupConfigurationDetails("); + sb.append("super=").append(super.toString()); + sb.append("levelTypeDetails=").append(String.valueOf(this.levelTypeDetails)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", timezone=").append(String.valueOf(this.timezone)); + sb.append(", schedule=").append(String.valueOf(this.schedule)); + sb.append(", numberOfBackupsToRetain=") + .append(String.valueOf(this.numberOfBackupsToRetain)); + sb.append(", backupType=").append(String.valueOf(this.backupType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateNodeBackupConfigurationDetails)) { + return false; + } + + UpdateNodeBackupConfigurationDetails other = (UpdateNodeBackupConfigurationDetails) o; + return java.util.Objects.equals(this.levelTypeDetails, other.levelTypeDetails) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.timezone, other.timezone) + && java.util.Objects.equals(this.schedule, other.schedule) + && java.util.Objects.equals( + this.numberOfBackupsToRetain, other.numberOfBackupsToRetain) + && java.util.Objects.equals(this.backupType, other.backupType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.levelTypeDetails == null ? 43 : this.levelTypeDetails.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.timezone == null ? 43 : this.timezone.hashCode()); + result = (result * PRIME) + (this.schedule == null ? 43 : this.schedule.hashCode()); + result = + (result * PRIME) + + (this.numberOfBackupsToRetain == null + ? 43 + : this.numberOfBackupsToRetain.hashCode()); + result = (result * PRIME) + (this.backupType == null ? 43 : this.backupType.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateNodeReplaceConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateNodeReplaceConfigurationDetails.java new file mode 100644 index 00000000000..ec94f1f4169 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateNodeReplaceConfigurationDetails.java @@ -0,0 +1,263 @@ +/** + * 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.bds.model; + +/** + * The information about the NodeReplaceConfiguration
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateNodeReplaceConfigurationDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateNodeReplaceConfigurationDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "levelTypeDetails", + "displayName", + "metricType", + "durationInMinutes" + }) + public UpdateNodeReplaceConfigurationDetails( + LevelTypeDetails levelTypeDetails, + String displayName, + NodeReplaceConfiguration.MetricType metricType, + Integer durationInMinutes) { + super(); + this.levelTypeDetails = levelTypeDetails; + this.displayName = displayName; + this.metricType = metricType; + this.durationInMinutes = durationInMinutes; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("levelTypeDetails") + private LevelTypeDetails levelTypeDetails; + + public Builder levelTypeDetails(LevelTypeDetails levelTypeDetails) { + this.levelTypeDetails = levelTypeDetails; + this.__explicitlySet__.add("levelTypeDetails"); + return this; + } + /** + * A user-friendly name. Only ASCII alphanumeric characters with no spaces allowed. The name + * does not have to be unique, and it may be changed. Avoid entering confidential + * information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Only ASCII alphanumeric characters with no spaces allowed. The name + * does not have to be unique, and it may be changed. 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; + } + /** Type of compute instance health metric to use for node replacement */ + @com.fasterxml.jackson.annotation.JsonProperty("metricType") + private NodeReplaceConfiguration.MetricType metricType; + + /** + * Type of compute instance health metric to use for node replacement + * + * @param metricType the value to set + * @return this builder + */ + public Builder metricType(NodeReplaceConfiguration.MetricType metricType) { + this.metricType = metricType; + this.__explicitlySet__.add("metricType"); + return this; + } + /** + * This value is the pending duration time to wait for metric emission before triggering + * node replacement. The value is in minutes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("durationInMinutes") + private Integer durationInMinutes; + + /** + * This value is the pending duration time to wait for metric emission before triggering + * node replacement. The value is in minutes. + * + * @param durationInMinutes the value to set + * @return this builder + */ + public Builder durationInMinutes(Integer durationInMinutes) { + this.durationInMinutes = durationInMinutes; + this.__explicitlySet__.add("durationInMinutes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateNodeReplaceConfigurationDetails build() { + UpdateNodeReplaceConfigurationDetails model = + new UpdateNodeReplaceConfigurationDetails( + this.levelTypeDetails, + this.displayName, + this.metricType, + this.durationInMinutes); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateNodeReplaceConfigurationDetails model) { + if (model.wasPropertyExplicitlySet("levelTypeDetails")) { + this.levelTypeDetails(model.getLevelTypeDetails()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("metricType")) { + this.metricType(model.getMetricType()); + } + if (model.wasPropertyExplicitlySet("durationInMinutes")) { + this.durationInMinutes(model.getDurationInMinutes()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @com.fasterxml.jackson.annotation.JsonProperty("levelTypeDetails") + private final LevelTypeDetails levelTypeDetails; + + public LevelTypeDetails getLevelTypeDetails() { + return levelTypeDetails; + } + + /** + * A user-friendly name. Only ASCII alphanumeric characters with no spaces allowed. The name + * does not have to be unique, and it may be changed. Avoid entering confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Only ASCII alphanumeric characters with no spaces allowed. The name + * does not have to be unique, and it may be changed. Avoid entering confidential information. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Type of compute instance health metric to use for node replacement */ + @com.fasterxml.jackson.annotation.JsonProperty("metricType") + private final NodeReplaceConfiguration.MetricType metricType; + + /** + * Type of compute instance health metric to use for node replacement + * + * @return the value + */ + public NodeReplaceConfiguration.MetricType getMetricType() { + return metricType; + } + + /** + * This value is the pending duration time to wait for metric emission before triggering node + * replacement. The value is in minutes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("durationInMinutes") + private final Integer durationInMinutes; + + /** + * This value is the pending duration time to wait for metric emission before triggering node + * replacement. The value is in minutes. + * + * @return the value + */ + public Integer getDurationInMinutes() { + return durationInMinutes; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateNodeReplaceConfigurationDetails("); + sb.append("super=").append(super.toString()); + sb.append("levelTypeDetails=").append(String.valueOf(this.levelTypeDetails)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", metricType=").append(String.valueOf(this.metricType)); + sb.append(", durationInMinutes=").append(String.valueOf(this.durationInMinutes)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateNodeReplaceConfigurationDetails)) { + return false; + } + + UpdateNodeReplaceConfigurationDetails other = (UpdateNodeReplaceConfigurationDetails) o; + return java.util.Objects.equals(this.levelTypeDetails, other.levelTypeDetails) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.metricType, other.metricType) + && java.util.Objects.equals(this.durationInMinutes, other.durationInMinutes) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.levelTypeDetails == null ? 43 : this.levelTypeDetails.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.metricType == null ? 43 : this.metricType.hashCode()); + result = + (result * PRIME) + + (this.durationInMinutes == null ? 43 : this.durationInMinutes.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/BackupNodeRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/BackupNodeRequest.java new file mode 100644 index 00000000000..82e8e6bac83 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/BackupNodeRequest.java @@ -0,0 +1,345 @@ +/** + * 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.bds.requests; + +import com.oracle.bmc.bds.model.*; +/** + * Example: Click here to see how to use BackupNodeRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class BackupNodeRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the cluster. */ + private String bdsInstanceId; + + /** The OCID of the cluster. */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + /** Details for Taking the node's backup */ + private com.oracle.bmc.bds.model.BackupNodeDetails backupNodeDetails; + + /** Details for Taking the node's backup */ + public com.oracle.bmc.bds.model.BackupNodeDetails getBackupNodeDetails() { + return backupNodeDetails; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + 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; + } + /** + * 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.bds.model.BackupNodeDetails getBody$() { + return backupNodeDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + BackupNodeRequest, com.oracle.bmc.bds.model.BackupNodeDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the cluster. */ + private String bdsInstanceId = null; + + /** + * The OCID of the cluster. + * + * @param bdsInstanceId the value to set + * @return this builder instance + */ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + return this; + } + + /** Details for Taking the node's backup */ + private com.oracle.bmc.bds.model.BackupNodeDetails backupNodeDetails = null; + + /** + * Details for Taking the node's backup + * + * @param backupNodeDetails the value to set + * @return this builder instance + */ + public Builder backupNodeDetails( + com.oracle.bmc.bds.model.BackupNodeDetails backupNodeDetails) { + this.backupNodeDetails = backupNodeDetails; + 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; + } + + /** + * 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; + } + + /** + * 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(BackupNodeRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + backupNodeDetails(o.getBackupNodeDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of BackupNodeRequest 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 BackupNodeRequest + */ + public BackupNodeRequest build() { + BackupNodeRequest 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.bds.model.BackupNodeDetails body) { + backupNodeDetails(body); + return this; + } + + /** + * Build the instance of BackupNodeRequest 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 BackupNodeRequest + */ + public BackupNodeRequest buildWithoutInvocationCallback() { + BackupNodeRequest request = new BackupNodeRequest(); + request.bdsInstanceId = bdsInstanceId; + request.backupNodeDetails = backupNodeDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + return request; + // new BackupNodeRequest(bdsInstanceId, backupNodeDetails, opcRequestId, ifMatch, + // 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() + .bdsInstanceId(bdsInstanceId) + .backupNodeDetails(backupNodeDetails) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .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(",bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(",backupNodeDetails=").append(String.valueOf(this.backupNodeDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + 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 BackupNodeRequest)) { + return false; + } + + BackupNodeRequest other = (BackupNodeRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals(this.backupNodeDetails, other.backupNodeDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = + (result * PRIME) + + (this.backupNodeDetails == null ? 43 : this.backupNodeDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/CreateNodeBackupConfigurationRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/CreateNodeBackupConfigurationRequest.java new file mode 100644 index 00000000000..088cbedb77d --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/CreateNodeBackupConfigurationRequest.java @@ -0,0 +1,313 @@ +/** + * 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.bds.requests; + +import com.oracle.bmc.bds.model.*; +/** + * Example: Click here to see how to use + * CreateNodeBackupConfigurationRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class CreateNodeBackupConfigurationRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.bds.model.CreateNodeBackupConfigurationDetails> { + + /** The OCID of the cluster. */ + private String bdsInstanceId; + + /** The OCID of the cluster. */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + /** Details for adding nodeBackupConfiguration to the BDS cluster. */ + private com.oracle.bmc.bds.model.CreateNodeBackupConfigurationDetails + createNodeBackupConfigurationDetails; + + /** Details for adding nodeBackupConfiguration to the BDS cluster. */ + public com.oracle.bmc.bds.model.CreateNodeBackupConfigurationDetails + getCreateNodeBackupConfigurationDetails() { + return createNodeBackupConfigurationDetails; + } + /** 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.bds.model.CreateNodeBackupConfigurationDetails getBody$() { + return createNodeBackupConfigurationDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateNodeBackupConfigurationRequest, + com.oracle.bmc.bds.model.CreateNodeBackupConfigurationDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the cluster. */ + private String bdsInstanceId = null; + + /** + * The OCID of the cluster. + * + * @param bdsInstanceId the value to set + * @return this builder instance + */ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + return this; + } + + /** Details for adding nodeBackupConfiguration to the BDS cluster. */ + private com.oracle.bmc.bds.model.CreateNodeBackupConfigurationDetails + createNodeBackupConfigurationDetails = null; + + /** + * Details for adding nodeBackupConfiguration to the BDS cluster. + * + * @param createNodeBackupConfigurationDetails the value to set + * @return this builder instance + */ + public Builder createNodeBackupConfigurationDetails( + com.oracle.bmc.bds.model.CreateNodeBackupConfigurationDetails + createNodeBackupConfigurationDetails) { + this.createNodeBackupConfigurationDetails = createNodeBackupConfigurationDetails; + 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(CreateNodeBackupConfigurationRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + createNodeBackupConfigurationDetails(o.getCreateNodeBackupConfigurationDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateNodeBackupConfigurationRequest 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 CreateNodeBackupConfigurationRequest + */ + public CreateNodeBackupConfigurationRequest build() { + CreateNodeBackupConfigurationRequest 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.bds.model.CreateNodeBackupConfigurationDetails body) { + createNodeBackupConfigurationDetails(body); + return this; + } + + /** + * Build the instance of CreateNodeBackupConfigurationRequest 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 CreateNodeBackupConfigurationRequest + */ + public CreateNodeBackupConfigurationRequest buildWithoutInvocationCallback() { + CreateNodeBackupConfigurationRequest request = + new CreateNodeBackupConfigurationRequest(); + request.bdsInstanceId = bdsInstanceId; + request.createNodeBackupConfigurationDetails = createNodeBackupConfigurationDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new CreateNodeBackupConfigurationRequest(bdsInstanceId, + // createNodeBackupConfigurationDetails, 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() + .bdsInstanceId(bdsInstanceId) + .createNodeBackupConfigurationDetails(createNodeBackupConfigurationDetails) + .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(",bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(",createNodeBackupConfigurationDetails=") + .append(String.valueOf(this.createNodeBackupConfigurationDetails)); + 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 CreateNodeBackupConfigurationRequest)) { + return false; + } + + CreateNodeBackupConfigurationRequest other = (CreateNodeBackupConfigurationRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals( + this.createNodeBackupConfigurationDetails, + other.createNodeBackupConfigurationDetails) + && 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.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = + (result * PRIME) + + (this.createNodeBackupConfigurationDetails == null + ? 43 + : this.createNodeBackupConfigurationDetails.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-bds/src/main/java/com/oracle/bmc/bds/requests/CreateNodeReplaceConfigurationRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/CreateNodeReplaceConfigurationRequest.java new file mode 100644 index 00000000000..145de022c31 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/CreateNodeReplaceConfigurationRequest.java @@ -0,0 +1,313 @@ +/** + * 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.bds.requests; + +import com.oracle.bmc.bds.model.*; +/** + * Example: Click here to see how to use + * CreateNodeReplaceConfigurationRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class CreateNodeReplaceConfigurationRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.bds.model.CreateNodeReplaceConfigurationDetails> { + + /** The OCID of the cluster. */ + private String bdsInstanceId; + + /** The OCID of the cluster. */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + /** Details for adding nodeReplaceConfiguration to the BDS cluster. */ + private com.oracle.bmc.bds.model.CreateNodeReplaceConfigurationDetails + createNodeReplaceConfigurationDetails; + + /** Details for adding nodeReplaceConfiguration to the BDS cluster. */ + public com.oracle.bmc.bds.model.CreateNodeReplaceConfigurationDetails + getCreateNodeReplaceConfigurationDetails() { + return createNodeReplaceConfigurationDetails; + } + /** 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.bds.model.CreateNodeReplaceConfigurationDetails getBody$() { + return createNodeReplaceConfigurationDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateNodeReplaceConfigurationRequest, + com.oracle.bmc.bds.model.CreateNodeReplaceConfigurationDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the cluster. */ + private String bdsInstanceId = null; + + /** + * The OCID of the cluster. + * + * @param bdsInstanceId the value to set + * @return this builder instance + */ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + return this; + } + + /** Details for adding nodeReplaceConfiguration to the BDS cluster. */ + private com.oracle.bmc.bds.model.CreateNodeReplaceConfigurationDetails + createNodeReplaceConfigurationDetails = null; + + /** + * Details for adding nodeReplaceConfiguration to the BDS cluster. + * + * @param createNodeReplaceConfigurationDetails the value to set + * @return this builder instance + */ + public Builder createNodeReplaceConfigurationDetails( + com.oracle.bmc.bds.model.CreateNodeReplaceConfigurationDetails + createNodeReplaceConfigurationDetails) { + this.createNodeReplaceConfigurationDetails = createNodeReplaceConfigurationDetails; + 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(CreateNodeReplaceConfigurationRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + createNodeReplaceConfigurationDetails(o.getCreateNodeReplaceConfigurationDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateNodeReplaceConfigurationRequest 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 CreateNodeReplaceConfigurationRequest + */ + public CreateNodeReplaceConfigurationRequest build() { + CreateNodeReplaceConfigurationRequest 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.bds.model.CreateNodeReplaceConfigurationDetails body) { + createNodeReplaceConfigurationDetails(body); + return this; + } + + /** + * Build the instance of CreateNodeReplaceConfigurationRequest 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 CreateNodeReplaceConfigurationRequest + */ + public CreateNodeReplaceConfigurationRequest buildWithoutInvocationCallback() { + CreateNodeReplaceConfigurationRequest request = + new CreateNodeReplaceConfigurationRequest(); + request.bdsInstanceId = bdsInstanceId; + request.createNodeReplaceConfigurationDetails = createNodeReplaceConfigurationDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new CreateNodeReplaceConfigurationRequest(bdsInstanceId, + // createNodeReplaceConfigurationDetails, 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() + .bdsInstanceId(bdsInstanceId) + .createNodeReplaceConfigurationDetails(createNodeReplaceConfigurationDetails) + .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(",bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(",createNodeReplaceConfigurationDetails=") + .append(String.valueOf(this.createNodeReplaceConfigurationDetails)); + 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 CreateNodeReplaceConfigurationRequest)) { + return false; + } + + CreateNodeReplaceConfigurationRequest other = (CreateNodeReplaceConfigurationRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals( + this.createNodeReplaceConfigurationDetails, + other.createNodeReplaceConfigurationDetails) + && 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.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = + (result * PRIME) + + (this.createNodeReplaceConfigurationDetails == null + ? 43 + : this.createNodeReplaceConfigurationDetails.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-bds/src/main/java/com/oracle/bmc/bds/requests/DeleteNodeBackupConfigurationRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/DeleteNodeBackupConfigurationRequest.java new file mode 100644 index 00000000000..93320d5f8e4 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/DeleteNodeBackupConfigurationRequest.java @@ -0,0 +1,276 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.requests; + +import com.oracle.bmc.bds.model.*; +/** + * Example: Click here to see how to use + * DeleteNodeBackupConfigurationRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class DeleteNodeBackupConfigurationRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the cluster. */ + private String bdsInstanceId; + + /** The OCID of the cluster. */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + /** Unique Oracle-assigned identifier of the NodeBackupConfiguration. */ + private String nodeBackupConfigurationId; + + /** Unique Oracle-assigned identifier of the NodeBackupConfiguration. */ + public String getNodeBackupConfigurationId() { + return nodeBackupConfigurationId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + 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< + DeleteNodeBackupConfigurationRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the cluster. */ + private String bdsInstanceId = null; + + /** + * The OCID of the cluster. + * + * @param bdsInstanceId the value to set + * @return this builder instance + */ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + return this; + } + + /** Unique Oracle-assigned identifier of the NodeBackupConfiguration. */ + private String nodeBackupConfigurationId = null; + + /** + * Unique Oracle-assigned identifier of the NodeBackupConfiguration. + * + * @param nodeBackupConfigurationId the value to set + * @return this builder instance + */ + public Builder nodeBackupConfigurationId(String nodeBackupConfigurationId) { + this.nodeBackupConfigurationId = nodeBackupConfigurationId; + 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; + } + + /** + * 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(DeleteNodeBackupConfigurationRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + nodeBackupConfigurationId(o.getNodeBackupConfigurationId()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteNodeBackupConfigurationRequest 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 DeleteNodeBackupConfigurationRequest + */ + public DeleteNodeBackupConfigurationRequest build() { + DeleteNodeBackupConfigurationRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteNodeBackupConfigurationRequest 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 DeleteNodeBackupConfigurationRequest + */ + public DeleteNodeBackupConfigurationRequest buildWithoutInvocationCallback() { + DeleteNodeBackupConfigurationRequest request = + new DeleteNodeBackupConfigurationRequest(); + request.bdsInstanceId = bdsInstanceId; + request.nodeBackupConfigurationId = nodeBackupConfigurationId; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new DeleteNodeBackupConfigurationRequest(bdsInstanceId, nodeBackupConfigurationId, + // 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() + .bdsInstanceId(bdsInstanceId) + .nodeBackupConfigurationId(nodeBackupConfigurationId) + .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(",bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(",nodeBackupConfigurationId=") + .append(String.valueOf(this.nodeBackupConfigurationId)); + 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 DeleteNodeBackupConfigurationRequest)) { + return false; + } + + DeleteNodeBackupConfigurationRequest other = (DeleteNodeBackupConfigurationRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals( + this.nodeBackupConfigurationId, other.nodeBackupConfigurationId) + && 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.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = + (result * PRIME) + + (this.nodeBackupConfigurationId == null + ? 43 + : this.nodeBackupConfigurationId.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-bds/src/main/java/com/oracle/bmc/bds/requests/DeleteNodeBackupRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/DeleteNodeBackupRequest.java new file mode 100644 index 00000000000..d83ba9ee4ca --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/DeleteNodeBackupRequest.java @@ -0,0 +1,266 @@ +/** + * 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.bds.requests; + +import com.oracle.bmc.bds.model.*; +/** + * Example: Click here to see how to use DeleteNodeBackupRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class DeleteNodeBackupRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the cluster. */ + private String bdsInstanceId; + + /** The OCID of the cluster. */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + /** Unique assigned identifier of the nodeBackupId. */ + private String nodeBackupId; + + /** Unique assigned identifier of the nodeBackupId. */ + public String getNodeBackupId() { + return nodeBackupId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + 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< + DeleteNodeBackupRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the cluster. */ + private String bdsInstanceId = null; + + /** + * The OCID of the cluster. + * + * @param bdsInstanceId the value to set + * @return this builder instance + */ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + return this; + } + + /** Unique assigned identifier of the nodeBackupId. */ + private String nodeBackupId = null; + + /** + * Unique assigned identifier of the nodeBackupId. + * + * @param nodeBackupId the value to set + * @return this builder instance + */ + public Builder nodeBackupId(String nodeBackupId) { + this.nodeBackupId = nodeBackupId; + 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; + } + + /** + * 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(DeleteNodeBackupRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + nodeBackupId(o.getNodeBackupId()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteNodeBackupRequest 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 DeleteNodeBackupRequest + */ + public DeleteNodeBackupRequest build() { + DeleteNodeBackupRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteNodeBackupRequest 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 DeleteNodeBackupRequest + */ + public DeleteNodeBackupRequest buildWithoutInvocationCallback() { + DeleteNodeBackupRequest request = new DeleteNodeBackupRequest(); + request.bdsInstanceId = bdsInstanceId; + request.nodeBackupId = nodeBackupId; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new DeleteNodeBackupRequest(bdsInstanceId, nodeBackupId, 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() + .bdsInstanceId(bdsInstanceId) + .nodeBackupId(nodeBackupId) + .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(",bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(",nodeBackupId=").append(String.valueOf(this.nodeBackupId)); + 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 DeleteNodeBackupRequest)) { + return false; + } + + DeleteNodeBackupRequest other = (DeleteNodeBackupRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals(this.nodeBackupId, other.nodeBackupId) + && 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.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = (result * PRIME) + (this.nodeBackupId == null ? 43 : this.nodeBackupId.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-bds/src/main/java/com/oracle/bmc/bds/requests/GetNodeBackupConfigurationRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/GetNodeBackupConfigurationRequest.java new file mode 100644 index 00000000000..755a000f3fe --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/GetNodeBackupConfigurationRequest.java @@ -0,0 +1,230 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.requests; + +import com.oracle.bmc.bds.model.*; +/** + * Example: Click here to see how to use + * GetNodeBackupConfigurationRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class GetNodeBackupConfigurationRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the cluster. */ + private String bdsInstanceId; + + /** The OCID of the cluster. */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + /** Unique Oracle-assigned identifier of the NodeBackupConfiguration. */ + private String nodeBackupConfigurationId; + + /** Unique Oracle-assigned identifier of the NodeBackupConfiguration. */ + public String getNodeBackupConfigurationId() { + return nodeBackupConfigurationId; + } + /** 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< + GetNodeBackupConfigurationRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the cluster. */ + private String bdsInstanceId = null; + + /** + * The OCID of the cluster. + * + * @param bdsInstanceId the value to set + * @return this builder instance + */ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + return this; + } + + /** Unique Oracle-assigned identifier of the NodeBackupConfiguration. */ + private String nodeBackupConfigurationId = null; + + /** + * Unique Oracle-assigned identifier of the NodeBackupConfiguration. + * + * @param nodeBackupConfigurationId the value to set + * @return this builder instance + */ + public Builder nodeBackupConfigurationId(String nodeBackupConfigurationId) { + this.nodeBackupConfigurationId = nodeBackupConfigurationId; + 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(GetNodeBackupConfigurationRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + nodeBackupConfigurationId(o.getNodeBackupConfigurationId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetNodeBackupConfigurationRequest 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 GetNodeBackupConfigurationRequest + */ + public GetNodeBackupConfigurationRequest build() { + GetNodeBackupConfigurationRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetNodeBackupConfigurationRequest 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 GetNodeBackupConfigurationRequest + */ + public GetNodeBackupConfigurationRequest buildWithoutInvocationCallback() { + GetNodeBackupConfigurationRequest request = new GetNodeBackupConfigurationRequest(); + request.bdsInstanceId = bdsInstanceId; + request.nodeBackupConfigurationId = nodeBackupConfigurationId; + request.opcRequestId = opcRequestId; + return request; + // new GetNodeBackupConfigurationRequest(bdsInstanceId, nodeBackupConfigurationId, + // 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() + .bdsInstanceId(bdsInstanceId) + .nodeBackupConfigurationId(nodeBackupConfigurationId) + .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(",bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(",nodeBackupConfigurationId=") + .append(String.valueOf(this.nodeBackupConfigurationId)); + 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 GetNodeBackupConfigurationRequest)) { + return false; + } + + GetNodeBackupConfigurationRequest other = (GetNodeBackupConfigurationRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals( + this.nodeBackupConfigurationId, other.nodeBackupConfigurationId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = + (result * PRIME) + + (this.nodeBackupConfigurationId == null + ? 43 + : this.nodeBackupConfigurationId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/GetNodeBackupRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/GetNodeBackupRequest.java new file mode 100644 index 00000000000..25ced99b75e --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/GetNodeBackupRequest.java @@ -0,0 +1,221 @@ +/** + * 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.bds.requests; + +import com.oracle.bmc.bds.model.*; +/** + * Example: Click here to see how to use GetNodeBackupRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class GetNodeBackupRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the cluster. */ + private String bdsInstanceId; + + /** The OCID of the cluster. */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + /** Unique assigned identifier of the nodeBackupId. */ + private String nodeBackupId; + + /** Unique assigned identifier of the nodeBackupId. */ + public String getNodeBackupId() { + return nodeBackupId; + } + /** 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< + GetNodeBackupRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the cluster. */ + private String bdsInstanceId = null; + + /** + * The OCID of the cluster. + * + * @param bdsInstanceId the value to set + * @return this builder instance + */ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + return this; + } + + /** Unique assigned identifier of the nodeBackupId. */ + private String nodeBackupId = null; + + /** + * Unique assigned identifier of the nodeBackupId. + * + * @param nodeBackupId the value to set + * @return this builder instance + */ + public Builder nodeBackupId(String nodeBackupId) { + this.nodeBackupId = nodeBackupId; + 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(GetNodeBackupRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + nodeBackupId(o.getNodeBackupId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetNodeBackupRequest 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 GetNodeBackupRequest + */ + public GetNodeBackupRequest build() { + GetNodeBackupRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetNodeBackupRequest 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 GetNodeBackupRequest + */ + public GetNodeBackupRequest buildWithoutInvocationCallback() { + GetNodeBackupRequest request = new GetNodeBackupRequest(); + request.bdsInstanceId = bdsInstanceId; + request.nodeBackupId = nodeBackupId; + request.opcRequestId = opcRequestId; + return request; + // new GetNodeBackupRequest(bdsInstanceId, nodeBackupId, 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() + .bdsInstanceId(bdsInstanceId) + .nodeBackupId(nodeBackupId) + .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(",bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(",nodeBackupId=").append(String.valueOf(this.nodeBackupId)); + 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 GetNodeBackupRequest)) { + return false; + } + + GetNodeBackupRequest other = (GetNodeBackupRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals(this.nodeBackupId, other.nodeBackupId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = (result * PRIME) + (this.nodeBackupId == null ? 43 : this.nodeBackupId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/GetNodeReplaceConfigurationRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/GetNodeReplaceConfigurationRequest.java new file mode 100644 index 00000000000..5484cba2e8c --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/GetNodeReplaceConfigurationRequest.java @@ -0,0 +1,230 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.requests; + +import com.oracle.bmc.bds.model.*; +/** + * Example: Click here to see how to use + * GetNodeReplaceConfigurationRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class GetNodeReplaceConfigurationRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the cluster. */ + private String bdsInstanceId; + + /** The OCID of the cluster. */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + /** Unique Oracle-assigned identifier of the NodeReplaceConfiguration. */ + private String nodeReplaceConfigurationId; + + /** Unique Oracle-assigned identifier of the NodeReplaceConfiguration. */ + public String getNodeReplaceConfigurationId() { + return nodeReplaceConfigurationId; + } + /** 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< + GetNodeReplaceConfigurationRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the cluster. */ + private String bdsInstanceId = null; + + /** + * The OCID of the cluster. + * + * @param bdsInstanceId the value to set + * @return this builder instance + */ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + return this; + } + + /** Unique Oracle-assigned identifier of the NodeReplaceConfiguration. */ + private String nodeReplaceConfigurationId = null; + + /** + * Unique Oracle-assigned identifier of the NodeReplaceConfiguration. + * + * @param nodeReplaceConfigurationId the value to set + * @return this builder instance + */ + public Builder nodeReplaceConfigurationId(String nodeReplaceConfigurationId) { + this.nodeReplaceConfigurationId = nodeReplaceConfigurationId; + 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(GetNodeReplaceConfigurationRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + nodeReplaceConfigurationId(o.getNodeReplaceConfigurationId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetNodeReplaceConfigurationRequest 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 GetNodeReplaceConfigurationRequest + */ + public GetNodeReplaceConfigurationRequest build() { + GetNodeReplaceConfigurationRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetNodeReplaceConfigurationRequest 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 GetNodeReplaceConfigurationRequest + */ + public GetNodeReplaceConfigurationRequest buildWithoutInvocationCallback() { + GetNodeReplaceConfigurationRequest request = new GetNodeReplaceConfigurationRequest(); + request.bdsInstanceId = bdsInstanceId; + request.nodeReplaceConfigurationId = nodeReplaceConfigurationId; + request.opcRequestId = opcRequestId; + return request; + // new GetNodeReplaceConfigurationRequest(bdsInstanceId, nodeReplaceConfigurationId, + // 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() + .bdsInstanceId(bdsInstanceId) + .nodeReplaceConfigurationId(nodeReplaceConfigurationId) + .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(",bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(",nodeReplaceConfigurationId=") + .append(String.valueOf(this.nodeReplaceConfigurationId)); + 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 GetNodeReplaceConfigurationRequest)) { + return false; + } + + GetNodeReplaceConfigurationRequest other = (GetNodeReplaceConfigurationRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals( + this.nodeReplaceConfigurationId, other.nodeReplaceConfigurationId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = + (result * PRIME) + + (this.nodeReplaceConfigurationId == null + ? 43 + : this.nodeReplaceConfigurationId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListNodeBackupConfigurationsRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListNodeBackupConfigurationsRequest.java new file mode 100644 index 00000000000..5c86d964f71 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListNodeBackupConfigurationsRequest.java @@ -0,0 +1,425 @@ +/** + * 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.bds.requests; + +import com.oracle.bmc.bds.model.*; +/** + * Example: Click here to see how to use + * ListNodeBackupConfigurationsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class ListNodeBackupConfigurationsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the cluster. */ + private String bdsInstanceId; + + /** The OCID of the cluster. */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + /** + * The page token representing the page at which to start retrieving results. This is usually + * retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually + * retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. If no value is specified timeCreated + * is default. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. If no value is specified timeCreated + * is default. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. If no value is specified timeCreated + * is default. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either 'asc' or 'desc'. */ + private com.oracle.bmc.bds.model.SortOrders sortOrder; + + /** The sort order to use, either 'asc' or 'desc'. */ + public com.oracle.bmc.bds.model.SortOrders getSortOrder() { + return sortOrder; + } + /** A filter to return only resources that match the entire display name given. */ + private String displayName; + + /** A filter to return only resources that match the entire display name given. */ + public String getDisplayName() { + return displayName; + } + /** The state of the NodeBackupConfiguration configuration. */ + private com.oracle.bmc.bds.model.NodeBackupConfiguration.LifecycleState lifecycleState; + + /** The state of the NodeBackupConfiguration configuration. */ + public com.oracle.bmc.bds.model.NodeBackupConfiguration.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** 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< + ListNodeBackupConfigurationsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the cluster. */ + private String bdsInstanceId = null; + + /** + * The OCID of the cluster. + * + * @param bdsInstanceId the value to set + * @return this builder instance + */ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is + * usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is + * usually retrieved from a previous list call. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. If no value is specified + * timeCreated is default. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. If no value is specified + * timeCreated is default. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The sort order to use, either 'asc' or 'desc'. */ + private com.oracle.bmc.bds.model.SortOrders 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.bds.model.SortOrders sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** A filter to return only resources that match the entire display name given. */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** The state of the NodeBackupConfiguration configuration. */ + private com.oracle.bmc.bds.model.NodeBackupConfiguration.LifecycleState lifecycleState = + null; + + /** + * The state of the NodeBackupConfiguration configuration. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.bds.model.NodeBackupConfiguration.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + 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(ListNodeBackupConfigurationsRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + page(o.getPage()); + limit(o.getLimit()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + displayName(o.getDisplayName()); + lifecycleState(o.getLifecycleState()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListNodeBackupConfigurationsRequest 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 ListNodeBackupConfigurationsRequest + */ + public ListNodeBackupConfigurationsRequest build() { + ListNodeBackupConfigurationsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListNodeBackupConfigurationsRequest 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 ListNodeBackupConfigurationsRequest + */ + public ListNodeBackupConfigurationsRequest buildWithoutInvocationCallback() { + ListNodeBackupConfigurationsRequest request = new ListNodeBackupConfigurationsRequest(); + request.bdsInstanceId = bdsInstanceId; + request.page = page; + request.limit = limit; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.displayName = displayName; + request.lifecycleState = lifecycleState; + request.opcRequestId = opcRequestId; + return request; + // new ListNodeBackupConfigurationsRequest(bdsInstanceId, page, limit, sortBy, + // sortOrder, displayName, lifecycleState, 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() + .bdsInstanceId(bdsInstanceId) + .page(page) + .limit(limit) + .sortBy(sortBy) + .sortOrder(sortOrder) + .displayName(displayName) + .lifecycleState(lifecycleState) + .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(",bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + 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(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + 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 ListNodeBackupConfigurationsRequest)) { + return false; + } + + ListNodeBackupConfigurationsRequest other = (ListNodeBackupConfigurationsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && 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.displayName, other.displayName) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.bdsInstanceId == null ? 43 : this.bdsInstanceId.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()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListNodeBackupsRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListNodeBackupsRequest.java new file mode 100644 index 00000000000..56cb4b2ac62 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListNodeBackupsRequest.java @@ -0,0 +1,449 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.requests; + +import com.oracle.bmc.bds.model.*; +/** + * Example: Click here to see how to use ListNodeBackupsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class ListNodeBackupsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the cluster. */ + private String bdsInstanceId; + + /** The OCID of the cluster. */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + /** + * The page token representing the page at which to start retrieving results. This is usually + * retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually + * retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. If no value is specified timeCreated + * is default. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. If no value is specified timeCreated + * is default. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. If no value is specified timeCreated + * is default. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either 'asc' or 'desc'. */ + private com.oracle.bmc.bds.model.SortOrders sortOrder; + + /** The sort order to use, either 'asc' or 'desc'. */ + public com.oracle.bmc.bds.model.SortOrders getSortOrder() { + return sortOrder; + } + /** The node host name belonged to a node that has a node backup. */ + private String nodeHostName; + + /** The node host name belonged to a node that has a node backup. */ + public String getNodeHostName() { + return nodeHostName; + } + /** The state of the Node's Backup. */ + private com.oracle.bmc.bds.model.NodeBackup.LifecycleState lifecycleState; + + /** The state of the Node's Backup. */ + public com.oracle.bmc.bds.model.NodeBackup.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** The display name belonged to the node backup. */ + private String displayName; + + /** The display name belonged to the node backup. */ + public String getDisplayName() { + return displayName; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListNodeBackupsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the cluster. */ + private String bdsInstanceId = null; + + /** + * The OCID of the cluster. + * + * @param bdsInstanceId the value to set + * @return this builder instance + */ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is + * usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is + * usually retrieved from a previous list call. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. If no value is specified + * timeCreated is default. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. If no value is specified + * timeCreated is default. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The sort order to use, either 'asc' or 'desc'. */ + private com.oracle.bmc.bds.model.SortOrders 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.bds.model.SortOrders sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** The node host name belonged to a node that has a node backup. */ + private String nodeHostName = null; + + /** + * The node host name belonged to a node that has a node backup. + * + * @param nodeHostName the value to set + * @return this builder instance + */ + public Builder nodeHostName(String nodeHostName) { + this.nodeHostName = nodeHostName; + return this; + } + + /** The state of the Node's Backup. */ + private com.oracle.bmc.bds.model.NodeBackup.LifecycleState lifecycleState = null; + + /** + * The state of the Node's Backup. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.bds.model.NodeBackup.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + 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 display name belonged to the node backup. */ + private String displayName = null; + + /** + * The display name belonged to the node backup. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + 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(ListNodeBackupsRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + page(o.getPage()); + limit(o.getLimit()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + nodeHostName(o.getNodeHostName()); + lifecycleState(o.getLifecycleState()); + opcRequestId(o.getOpcRequestId()); + displayName(o.getDisplayName()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListNodeBackupsRequest 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 ListNodeBackupsRequest + */ + public ListNodeBackupsRequest build() { + ListNodeBackupsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListNodeBackupsRequest 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 ListNodeBackupsRequest + */ + public ListNodeBackupsRequest buildWithoutInvocationCallback() { + ListNodeBackupsRequest request = new ListNodeBackupsRequest(); + request.bdsInstanceId = bdsInstanceId; + request.page = page; + request.limit = limit; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.nodeHostName = nodeHostName; + request.lifecycleState = lifecycleState; + request.opcRequestId = opcRequestId; + request.displayName = displayName; + return request; + // new ListNodeBackupsRequest(bdsInstanceId, page, limit, sortBy, sortOrder, + // nodeHostName, lifecycleState, opcRequestId, displayName); + } + } + + /** + * 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() + .bdsInstanceId(bdsInstanceId) + .page(page) + .limit(limit) + .sortBy(sortBy) + .sortOrder(sortOrder) + .nodeHostName(nodeHostName) + .lifecycleState(lifecycleState) + .opcRequestId(opcRequestId) + .displayName(displayName); + } + + /** + * 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(",bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + 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(",nodeHostName=").append(String.valueOf(this.nodeHostName)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListNodeBackupsRequest)) { + return false; + } + + ListNodeBackupsRequest other = (ListNodeBackupsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && 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.nodeHostName, other.nodeHostName) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.displayName, other.displayName); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.bdsInstanceId == null ? 43 : this.bdsInstanceId.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()); + result = (result * PRIME) + (this.nodeHostName == null ? 43 : this.nodeHostName.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListNodeReplaceConfigurationsRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListNodeReplaceConfigurationsRequest.java new file mode 100644 index 00000000000..ad8f4ac5b14 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListNodeReplaceConfigurationsRequest.java @@ -0,0 +1,426 @@ +/** + * 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.bds.requests; + +import com.oracle.bmc.bds.model.*; +/** + * Example: Click here to see how to use + * ListNodeReplaceConfigurationsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class ListNodeReplaceConfigurationsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the cluster. */ + private String bdsInstanceId; + + /** The OCID of the cluster. */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + /** + * The page token representing the page at which to start retrieving results. This is usually + * retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually + * retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. If no value is specified timeCreated + * is default. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. If no value is specified timeCreated + * is default. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. If no value is specified timeCreated + * is default. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either 'asc' or 'desc'. */ + private com.oracle.bmc.bds.model.SortOrders sortOrder; + + /** The sort order to use, either 'asc' or 'desc'. */ + public com.oracle.bmc.bds.model.SortOrders getSortOrder() { + return sortOrder; + } + /** A filter to return only resources that match the entire display name given. */ + private String displayName; + + /** A filter to return only resources that match the entire display name given. */ + public String getDisplayName() { + return displayName; + } + /** The state of the NodeReplaceConfiguration. */ + private com.oracle.bmc.bds.model.NodeReplaceConfiguration.LifecycleState lifecycleState; + + /** The state of the NodeReplaceConfiguration. */ + public com.oracle.bmc.bds.model.NodeReplaceConfiguration.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** 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< + ListNodeReplaceConfigurationsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the cluster. */ + private String bdsInstanceId = null; + + /** + * The OCID of the cluster. + * + * @param bdsInstanceId the value to set + * @return this builder instance + */ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is + * usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is + * usually retrieved from a previous list call. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. If no value is specified + * timeCreated is default. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. If no value is specified + * timeCreated is default. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The sort order to use, either 'asc' or 'desc'. */ + private com.oracle.bmc.bds.model.SortOrders 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.bds.model.SortOrders sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** A filter to return only resources that match the entire display name given. */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** The state of the NodeReplaceConfiguration. */ + private com.oracle.bmc.bds.model.NodeReplaceConfiguration.LifecycleState lifecycleState = + null; + + /** + * The state of the NodeReplaceConfiguration. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.bds.model.NodeReplaceConfiguration.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + 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(ListNodeReplaceConfigurationsRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + page(o.getPage()); + limit(o.getLimit()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + displayName(o.getDisplayName()); + lifecycleState(o.getLifecycleState()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListNodeReplaceConfigurationsRequest 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 ListNodeReplaceConfigurationsRequest + */ + public ListNodeReplaceConfigurationsRequest build() { + ListNodeReplaceConfigurationsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListNodeReplaceConfigurationsRequest 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 ListNodeReplaceConfigurationsRequest + */ + public ListNodeReplaceConfigurationsRequest buildWithoutInvocationCallback() { + ListNodeReplaceConfigurationsRequest request = + new ListNodeReplaceConfigurationsRequest(); + request.bdsInstanceId = bdsInstanceId; + request.page = page; + request.limit = limit; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.displayName = displayName; + request.lifecycleState = lifecycleState; + request.opcRequestId = opcRequestId; + return request; + // new ListNodeReplaceConfigurationsRequest(bdsInstanceId, page, limit, sortBy, + // sortOrder, displayName, lifecycleState, 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() + .bdsInstanceId(bdsInstanceId) + .page(page) + .limit(limit) + .sortBy(sortBy) + .sortOrder(sortOrder) + .displayName(displayName) + .lifecycleState(lifecycleState) + .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(",bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + 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(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + 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 ListNodeReplaceConfigurationsRequest)) { + return false; + } + + ListNodeReplaceConfigurationsRequest other = (ListNodeReplaceConfigurationsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && 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.displayName, other.displayName) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.bdsInstanceId == null ? 43 : this.bdsInstanceId.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()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/RemoveNodeReplaceConfigurationRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/RemoveNodeReplaceConfigurationRequest.java new file mode 100644 index 00000000000..23b3d08c6a3 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/RemoveNodeReplaceConfigurationRequest.java @@ -0,0 +1,391 @@ +/** + * 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.bds.requests; + +import com.oracle.bmc.bds.model.*; +/** + * Example: Click here to see how to use + * RemoveNodeReplaceConfigurationRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class RemoveNodeReplaceConfigurationRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.bds.model.RemoveNodeReplaceConfigurationDetails> { + + /** The OCID of the cluster. */ + private String bdsInstanceId; + + /** The OCID of the cluster. */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + /** Unique Oracle-assigned identifier of the NodeReplaceConfiguration. */ + private String nodeReplaceConfigurationId; + + /** Unique Oracle-assigned identifier of the NodeReplaceConfiguration. */ + public String getNodeReplaceConfigurationId() { + return nodeReplaceConfigurationId; + } + /** Details for removing NodeReplaceConfiguration */ + private com.oracle.bmc.bds.model.RemoveNodeReplaceConfigurationDetails + removeNodeReplaceConfigurationDetails; + + /** Details for removing NodeReplaceConfiguration */ + public com.oracle.bmc.bds.model.RemoveNodeReplaceConfigurationDetails + getRemoveNodeReplaceConfigurationDetails() { + return removeNodeReplaceConfigurationDetails; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + 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; + } + /** + * 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.bds.model.RemoveNodeReplaceConfigurationDetails getBody$() { + return removeNodeReplaceConfigurationDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RemoveNodeReplaceConfigurationRequest, + com.oracle.bmc.bds.model.RemoveNodeReplaceConfigurationDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the cluster. */ + private String bdsInstanceId = null; + + /** + * The OCID of the cluster. + * + * @param bdsInstanceId the value to set + * @return this builder instance + */ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + return this; + } + + /** Unique Oracle-assigned identifier of the NodeReplaceConfiguration. */ + private String nodeReplaceConfigurationId = null; + + /** + * Unique Oracle-assigned identifier of the NodeReplaceConfiguration. + * + * @param nodeReplaceConfigurationId the value to set + * @return this builder instance + */ + public Builder nodeReplaceConfigurationId(String nodeReplaceConfigurationId) { + this.nodeReplaceConfigurationId = nodeReplaceConfigurationId; + return this; + } + + /** Details for removing NodeReplaceConfiguration */ + private com.oracle.bmc.bds.model.RemoveNodeReplaceConfigurationDetails + removeNodeReplaceConfigurationDetails = null; + + /** + * Details for removing NodeReplaceConfiguration + * + * @param removeNodeReplaceConfigurationDetails the value to set + * @return this builder instance + */ + public Builder removeNodeReplaceConfigurationDetails( + com.oracle.bmc.bds.model.RemoveNodeReplaceConfigurationDetails + removeNodeReplaceConfigurationDetails) { + this.removeNodeReplaceConfigurationDetails = removeNodeReplaceConfigurationDetails; + 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; + } + + /** + * 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; + } + + /** + * 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(RemoveNodeReplaceConfigurationRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + nodeReplaceConfigurationId(o.getNodeReplaceConfigurationId()); + removeNodeReplaceConfigurationDetails(o.getRemoveNodeReplaceConfigurationDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RemoveNodeReplaceConfigurationRequest 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 RemoveNodeReplaceConfigurationRequest + */ + public RemoveNodeReplaceConfigurationRequest build() { + RemoveNodeReplaceConfigurationRequest 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.bds.model.RemoveNodeReplaceConfigurationDetails body) { + removeNodeReplaceConfigurationDetails(body); + return this; + } + + /** + * Build the instance of RemoveNodeReplaceConfigurationRequest 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 RemoveNodeReplaceConfigurationRequest + */ + public RemoveNodeReplaceConfigurationRequest buildWithoutInvocationCallback() { + RemoveNodeReplaceConfigurationRequest request = + new RemoveNodeReplaceConfigurationRequest(); + request.bdsInstanceId = bdsInstanceId; + request.nodeReplaceConfigurationId = nodeReplaceConfigurationId; + request.removeNodeReplaceConfigurationDetails = removeNodeReplaceConfigurationDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + return request; + // new RemoveNodeReplaceConfigurationRequest(bdsInstanceId, nodeReplaceConfigurationId, + // removeNodeReplaceConfigurationDetails, opcRequestId, ifMatch, 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() + .bdsInstanceId(bdsInstanceId) + .nodeReplaceConfigurationId(nodeReplaceConfigurationId) + .removeNodeReplaceConfigurationDetails(removeNodeReplaceConfigurationDetails) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .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(",bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(",nodeReplaceConfigurationId=") + .append(String.valueOf(this.nodeReplaceConfigurationId)); + sb.append(",removeNodeReplaceConfigurationDetails=") + .append(String.valueOf(this.removeNodeReplaceConfigurationDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + 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 RemoveNodeReplaceConfigurationRequest)) { + return false; + } + + RemoveNodeReplaceConfigurationRequest other = (RemoveNodeReplaceConfigurationRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals( + this.nodeReplaceConfigurationId, other.nodeReplaceConfigurationId) + && java.util.Objects.equals( + this.removeNodeReplaceConfigurationDetails, + other.removeNodeReplaceConfigurationDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = + (result * PRIME) + + (this.nodeReplaceConfigurationId == null + ? 43 + : this.nodeReplaceConfigurationId.hashCode()); + result = + (result * PRIME) + + (this.removeNodeReplaceConfigurationDetails == null + ? 43 + : this.removeNodeReplaceConfigurationDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ReplaceNodeRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ReplaceNodeRequest.java new file mode 100644 index 00000000000..15831480ca7 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ReplaceNodeRequest.java @@ -0,0 +1,347 @@ +/** + * 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.bds.requests; + +import com.oracle.bmc.bds.model.*; +/** + * Example: Click here to see how to use ReplaceNodeRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class ReplaceNodeRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the cluster. */ + private String bdsInstanceId; + + /** The OCID of the cluster. */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + /** Details for Replacing the node. */ + private com.oracle.bmc.bds.model.ReplaceNodeDetails replaceNodeDetails; + + /** Details for Replacing the node. */ + public com.oracle.bmc.bds.model.ReplaceNodeDetails getReplaceNodeDetails() { + return replaceNodeDetails; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * This if-match is for the BdsInstance. 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; + + /** + * This if-match is for the BdsInstance. 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; + } + /** + * 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.bds.model.ReplaceNodeDetails getBody$() { + return replaceNodeDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ReplaceNodeRequest, com.oracle.bmc.bds.model.ReplaceNodeDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the cluster. */ + private String bdsInstanceId = null; + + /** + * The OCID of the cluster. + * + * @param bdsInstanceId the value to set + * @return this builder instance + */ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + return this; + } + + /** Details for Replacing the node. */ + private com.oracle.bmc.bds.model.ReplaceNodeDetails replaceNodeDetails = null; + + /** + * Details for Replacing the node. + * + * @param replaceNodeDetails the value to set + * @return this builder instance + */ + public Builder replaceNodeDetails( + com.oracle.bmc.bds.model.ReplaceNodeDetails replaceNodeDetails) { + this.replaceNodeDetails = replaceNodeDetails; + 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; + } + + /** + * This if-match is for the BdsInstance. 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; + + /** + * This if-match is for the BdsInstance. 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; + } + + /** + * 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(ReplaceNodeRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + replaceNodeDetails(o.getReplaceNodeDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ReplaceNodeRequest 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 ReplaceNodeRequest + */ + public ReplaceNodeRequest build() { + ReplaceNodeRequest 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.bds.model.ReplaceNodeDetails body) { + replaceNodeDetails(body); + return this; + } + + /** + * Build the instance of ReplaceNodeRequest 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 ReplaceNodeRequest + */ + public ReplaceNodeRequest buildWithoutInvocationCallback() { + ReplaceNodeRequest request = new ReplaceNodeRequest(); + request.bdsInstanceId = bdsInstanceId; + request.replaceNodeDetails = replaceNodeDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + return request; + // new ReplaceNodeRequest(bdsInstanceId, replaceNodeDetails, opcRequestId, ifMatch, + // 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() + .bdsInstanceId(bdsInstanceId) + .replaceNodeDetails(replaceNodeDetails) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .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(",bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(",replaceNodeDetails=").append(String.valueOf(this.replaceNodeDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + 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 ReplaceNodeRequest)) { + return false; + } + + ReplaceNodeRequest other = (ReplaceNodeRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals(this.replaceNodeDetails, other.replaceNodeDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = + (result * PRIME) + + (this.replaceNodeDetails == null + ? 43 + : this.replaceNodeDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/UpdateNodeBackupConfigurationRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/UpdateNodeBackupConfigurationRequest.java new file mode 100644 index 00000000000..323d1f042b1 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/UpdateNodeBackupConfigurationRequest.java @@ -0,0 +1,391 @@ +/** + * 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.bds.requests; + +import com.oracle.bmc.bds.model.*; +/** + * Example: Click here to see how to use + * UpdateNodeBackupConfigurationRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class UpdateNodeBackupConfigurationRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.bds.model.UpdateNodeBackupConfigurationDetails> { + + /** The OCID of the cluster. */ + private String bdsInstanceId; + + /** The OCID of the cluster. */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + /** Unique Oracle-assigned identifier of the NodeBackupConfiguration. */ + private String nodeBackupConfigurationId; + + /** Unique Oracle-assigned identifier of the NodeBackupConfiguration. */ + public String getNodeBackupConfigurationId() { + return nodeBackupConfigurationId; + } + /** Details for updating the NodeBackupConfiguration. */ + private com.oracle.bmc.bds.model.UpdateNodeBackupConfigurationDetails + updateNodeBackupConfigurationDetails; + + /** Details for updating the NodeBackupConfiguration. */ + public com.oracle.bmc.bds.model.UpdateNodeBackupConfigurationDetails + getUpdateNodeBackupConfigurationDetails() { + return updateNodeBackupConfigurationDetails; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + 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; + } + /** + * 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.bds.model.UpdateNodeBackupConfigurationDetails getBody$() { + return updateNodeBackupConfigurationDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateNodeBackupConfigurationRequest, + com.oracle.bmc.bds.model.UpdateNodeBackupConfigurationDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the cluster. */ + private String bdsInstanceId = null; + + /** + * The OCID of the cluster. + * + * @param bdsInstanceId the value to set + * @return this builder instance + */ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + return this; + } + + /** Unique Oracle-assigned identifier of the NodeBackupConfiguration. */ + private String nodeBackupConfigurationId = null; + + /** + * Unique Oracle-assigned identifier of the NodeBackupConfiguration. + * + * @param nodeBackupConfigurationId the value to set + * @return this builder instance + */ + public Builder nodeBackupConfigurationId(String nodeBackupConfigurationId) { + this.nodeBackupConfigurationId = nodeBackupConfigurationId; + return this; + } + + /** Details for updating the NodeBackupConfiguration. */ + private com.oracle.bmc.bds.model.UpdateNodeBackupConfigurationDetails + updateNodeBackupConfigurationDetails = null; + + /** + * Details for updating the NodeBackupConfiguration. + * + * @param updateNodeBackupConfigurationDetails the value to set + * @return this builder instance + */ + public Builder updateNodeBackupConfigurationDetails( + com.oracle.bmc.bds.model.UpdateNodeBackupConfigurationDetails + updateNodeBackupConfigurationDetails) { + this.updateNodeBackupConfigurationDetails = updateNodeBackupConfigurationDetails; + 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; + } + + /** + * 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; + } + + /** + * 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(UpdateNodeBackupConfigurationRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + nodeBackupConfigurationId(o.getNodeBackupConfigurationId()); + updateNodeBackupConfigurationDetails(o.getUpdateNodeBackupConfigurationDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateNodeBackupConfigurationRequest 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 UpdateNodeBackupConfigurationRequest + */ + public UpdateNodeBackupConfigurationRequest build() { + UpdateNodeBackupConfigurationRequest 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.bds.model.UpdateNodeBackupConfigurationDetails body) { + updateNodeBackupConfigurationDetails(body); + return this; + } + + /** + * Build the instance of UpdateNodeBackupConfigurationRequest 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 UpdateNodeBackupConfigurationRequest + */ + public UpdateNodeBackupConfigurationRequest buildWithoutInvocationCallback() { + UpdateNodeBackupConfigurationRequest request = + new UpdateNodeBackupConfigurationRequest(); + request.bdsInstanceId = bdsInstanceId; + request.nodeBackupConfigurationId = nodeBackupConfigurationId; + request.updateNodeBackupConfigurationDetails = updateNodeBackupConfigurationDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + return request; + // new UpdateNodeBackupConfigurationRequest(bdsInstanceId, nodeBackupConfigurationId, + // updateNodeBackupConfigurationDetails, opcRequestId, ifMatch, 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() + .bdsInstanceId(bdsInstanceId) + .nodeBackupConfigurationId(nodeBackupConfigurationId) + .updateNodeBackupConfigurationDetails(updateNodeBackupConfigurationDetails) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .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(",bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(",nodeBackupConfigurationId=") + .append(String.valueOf(this.nodeBackupConfigurationId)); + sb.append(",updateNodeBackupConfigurationDetails=") + .append(String.valueOf(this.updateNodeBackupConfigurationDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + 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 UpdateNodeBackupConfigurationRequest)) { + return false; + } + + UpdateNodeBackupConfigurationRequest other = (UpdateNodeBackupConfigurationRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals( + this.nodeBackupConfigurationId, other.nodeBackupConfigurationId) + && java.util.Objects.equals( + this.updateNodeBackupConfigurationDetails, + other.updateNodeBackupConfigurationDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = + (result * PRIME) + + (this.nodeBackupConfigurationId == null + ? 43 + : this.nodeBackupConfigurationId.hashCode()); + result = + (result * PRIME) + + (this.updateNodeBackupConfigurationDetails == null + ? 43 + : this.updateNodeBackupConfigurationDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/UpdateNodeReplaceConfigurationRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/UpdateNodeReplaceConfigurationRequest.java new file mode 100644 index 00000000000..f7f84bfad09 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/UpdateNodeReplaceConfigurationRequest.java @@ -0,0 +1,391 @@ +/** + * 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.bds.requests; + +import com.oracle.bmc.bds.model.*; +/** + * Example: Click here to see how to use + * UpdateNodeReplaceConfigurationRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class UpdateNodeReplaceConfigurationRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.bds.model.UpdateNodeReplaceConfigurationDetails> { + + /** The OCID of the cluster. */ + private String bdsInstanceId; + + /** The OCID of the cluster. */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + /** Unique Oracle-assigned identifier of the NodeReplaceConfiguration. */ + private String nodeReplaceConfigurationId; + + /** Unique Oracle-assigned identifier of the NodeReplaceConfiguration. */ + public String getNodeReplaceConfigurationId() { + return nodeReplaceConfigurationId; + } + /** Details for updating the nodeReplaceConfiguration. */ + private com.oracle.bmc.bds.model.UpdateNodeReplaceConfigurationDetails + updateNodeReplaceConfigurationDetails; + + /** Details for updating the nodeReplaceConfiguration. */ + public com.oracle.bmc.bds.model.UpdateNodeReplaceConfigurationDetails + getUpdateNodeReplaceConfigurationDetails() { + return updateNodeReplaceConfigurationDetails; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + 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; + } + /** + * 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.bds.model.UpdateNodeReplaceConfigurationDetails getBody$() { + return updateNodeReplaceConfigurationDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateNodeReplaceConfigurationRequest, + com.oracle.bmc.bds.model.UpdateNodeReplaceConfigurationDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the cluster. */ + private String bdsInstanceId = null; + + /** + * The OCID of the cluster. + * + * @param bdsInstanceId the value to set + * @return this builder instance + */ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + return this; + } + + /** Unique Oracle-assigned identifier of the NodeReplaceConfiguration. */ + private String nodeReplaceConfigurationId = null; + + /** + * Unique Oracle-assigned identifier of the NodeReplaceConfiguration. + * + * @param nodeReplaceConfigurationId the value to set + * @return this builder instance + */ + public Builder nodeReplaceConfigurationId(String nodeReplaceConfigurationId) { + this.nodeReplaceConfigurationId = nodeReplaceConfigurationId; + return this; + } + + /** Details for updating the nodeReplaceConfiguration. */ + private com.oracle.bmc.bds.model.UpdateNodeReplaceConfigurationDetails + updateNodeReplaceConfigurationDetails = null; + + /** + * Details for updating the nodeReplaceConfiguration. + * + * @param updateNodeReplaceConfigurationDetails the value to set + * @return this builder instance + */ + public Builder updateNodeReplaceConfigurationDetails( + com.oracle.bmc.bds.model.UpdateNodeReplaceConfigurationDetails + updateNodeReplaceConfigurationDetails) { + this.updateNodeReplaceConfigurationDetails = updateNodeReplaceConfigurationDetails; + 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; + } + + /** + * 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; + } + + /** + * 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(UpdateNodeReplaceConfigurationRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + nodeReplaceConfigurationId(o.getNodeReplaceConfigurationId()); + updateNodeReplaceConfigurationDetails(o.getUpdateNodeReplaceConfigurationDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateNodeReplaceConfigurationRequest 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 UpdateNodeReplaceConfigurationRequest + */ + public UpdateNodeReplaceConfigurationRequest build() { + UpdateNodeReplaceConfigurationRequest 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.bds.model.UpdateNodeReplaceConfigurationDetails body) { + updateNodeReplaceConfigurationDetails(body); + return this; + } + + /** + * Build the instance of UpdateNodeReplaceConfigurationRequest 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 UpdateNodeReplaceConfigurationRequest + */ + public UpdateNodeReplaceConfigurationRequest buildWithoutInvocationCallback() { + UpdateNodeReplaceConfigurationRequest request = + new UpdateNodeReplaceConfigurationRequest(); + request.bdsInstanceId = bdsInstanceId; + request.nodeReplaceConfigurationId = nodeReplaceConfigurationId; + request.updateNodeReplaceConfigurationDetails = updateNodeReplaceConfigurationDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + return request; + // new UpdateNodeReplaceConfigurationRequest(bdsInstanceId, nodeReplaceConfigurationId, + // updateNodeReplaceConfigurationDetails, opcRequestId, ifMatch, 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() + .bdsInstanceId(bdsInstanceId) + .nodeReplaceConfigurationId(nodeReplaceConfigurationId) + .updateNodeReplaceConfigurationDetails(updateNodeReplaceConfigurationDetails) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .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(",bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(",nodeReplaceConfigurationId=") + .append(String.valueOf(this.nodeReplaceConfigurationId)); + sb.append(",updateNodeReplaceConfigurationDetails=") + .append(String.valueOf(this.updateNodeReplaceConfigurationDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + 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 UpdateNodeReplaceConfigurationRequest)) { + return false; + } + + UpdateNodeReplaceConfigurationRequest other = (UpdateNodeReplaceConfigurationRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals( + this.nodeReplaceConfigurationId, other.nodeReplaceConfigurationId) + && java.util.Objects.equals( + this.updateNodeReplaceConfigurationDetails, + other.updateNodeReplaceConfigurationDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = + (result * PRIME) + + (this.nodeReplaceConfigurationId == null + ? 43 + : this.nodeReplaceConfigurationId.hashCode()); + result = + (result * PRIME) + + (this.updateNodeReplaceConfigurationDetails == null + ? 43 + : this.updateNodeReplaceConfigurationDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/BackupNodeResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/BackupNodeResponse.java new file mode 100644 index 00000000000..bfdc93a0f9d --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/BackupNodeResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class BackupNodeResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private BackupNodeResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(BackupNodeResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public BackupNodeResponse build() { + return new BackupNodeResponse( + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof BackupNodeResponse)) { + return false; + } + + BackupNodeResponse other = (BackupNodeResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/CreateNodeBackupConfigurationResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/CreateNodeBackupConfigurationResponse.java new file mode 100644 index 00000000000..d1a494c4b89 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/CreateNodeBackupConfigurationResponse.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.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class CreateNodeBackupConfigurationResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private CreateNodeBackupConfigurationResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + CreateNodeBackupConfigurationResponse> { + 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 + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateNodeBackupConfigurationResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateNodeBackupConfigurationResponse build() { + return new CreateNodeBackupConfigurationResponse( + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateNodeBackupConfigurationResponse)) { + return false; + } + + CreateNodeBackupConfigurationResponse other = (CreateNodeBackupConfigurationResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/CreateNodeReplaceConfigurationResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/CreateNodeReplaceConfigurationResponse.java new file mode 100644 index 00000000000..32399eccbc2 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/CreateNodeReplaceConfigurationResponse.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.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class CreateNodeReplaceConfigurationResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private CreateNodeReplaceConfigurationResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + CreateNodeReplaceConfigurationResponse> { + 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 + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateNodeReplaceConfigurationResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateNodeReplaceConfigurationResponse build() { + return new CreateNodeReplaceConfigurationResponse( + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateNodeReplaceConfigurationResponse)) { + return false; + } + + CreateNodeReplaceConfigurationResponse other = (CreateNodeReplaceConfigurationResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/DeleteNodeBackupConfigurationResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/DeleteNodeBackupConfigurationResponse.java new file mode 100644 index 00000000000..a1730da66d8 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/DeleteNodeBackupConfigurationResponse.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.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class DeleteNodeBackupConfigurationResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private DeleteNodeBackupConfigurationResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + DeleteNodeBackupConfigurationResponse> { + 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 + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteNodeBackupConfigurationResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DeleteNodeBackupConfigurationResponse build() { + return new DeleteNodeBackupConfigurationResponse( + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteNodeBackupConfigurationResponse)) { + return false; + } + + DeleteNodeBackupConfigurationResponse other = (DeleteNodeBackupConfigurationResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/DeleteNodeBackupResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/DeleteNodeBackupResponse.java new file mode 100644 index 00000000000..5bc433b6097 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/DeleteNodeBackupResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class DeleteNodeBackupResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private DeleteNodeBackupResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteNodeBackupResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DeleteNodeBackupResponse build() { + return new DeleteNodeBackupResponse( + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteNodeBackupResponse)) { + return false; + } + + DeleteNodeBackupResponse other = (DeleteNodeBackupResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/GetNodeBackupConfigurationResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/GetNodeBackupConfigurationResponse.java new file mode 100644 index 00000000000..a4d9af6da7e --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/GetNodeBackupConfigurationResponse.java @@ -0,0 +1,215 @@ +/** + * 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.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class GetNodeBackupConfigurationResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this 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 NodeBackupConfiguration} instance. */ + private com.oracle.bmc.bds.model.NodeBackupConfiguration nodeBackupConfiguration; + + /** + * The returned {@code NodeBackupConfiguration} instance. + * + * @return the value + */ + public com.oracle.bmc.bds.model.NodeBackupConfiguration getNodeBackupConfiguration() { + return nodeBackupConfiguration; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "nodeBackupConfiguration" + }) + private GetNodeBackupConfigurationResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + com.oracle.bmc.bds.model.NodeBackupConfiguration nodeBackupConfiguration) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.nodeBackupConfiguration = nodeBackupConfiguration; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetNodeBackupConfigurationResponse> { + 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 + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this 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 NodeBackupConfiguration} instance. */ + private com.oracle.bmc.bds.model.NodeBackupConfiguration nodeBackupConfiguration; + + /** + * The returned {@code NodeBackupConfiguration} instance. + * + * @param nodeBackupConfiguration the value to set + * @return this builder + */ + public Builder nodeBackupConfiguration( + com.oracle.bmc.bds.model.NodeBackupConfiguration nodeBackupConfiguration) { + this.nodeBackupConfiguration = nodeBackupConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetNodeBackupConfigurationResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + nodeBackupConfiguration(o.getNodeBackupConfiguration()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetNodeBackupConfigurationResponse build() { + return new GetNodeBackupConfigurationResponse( + __httpStatusCode__, headers, opcRequestId, etag, nodeBackupConfiguration); + } + } + + /** + * 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(",nodeBackupConfiguration=").append(String.valueOf(nodeBackupConfiguration)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetNodeBackupConfigurationResponse)) { + return false; + } + + GetNodeBackupConfigurationResponse other = (GetNodeBackupConfigurationResponse) 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.nodeBackupConfiguration, other.nodeBackupConfiguration); + } + + @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.nodeBackupConfiguration == null + ? 43 + : this.nodeBackupConfiguration.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/GetNodeBackupResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/GetNodeBackupResponse.java new file mode 100644 index 00000000000..a39bf8a3129 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/GetNodeBackupResponse.java @@ -0,0 +1,208 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class GetNodeBackupResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this 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 NodeBackup} instance. */ + private com.oracle.bmc.bds.model.NodeBackup nodeBackup; + + /** + * The returned {@code NodeBackup} instance. + * + * @return the value + */ + public com.oracle.bmc.bds.model.NodeBackup getNodeBackup() { + return nodeBackup; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "nodeBackup" + }) + private GetNodeBackupResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + com.oracle.bmc.bds.model.NodeBackup nodeBackup) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.nodeBackup = nodeBackup; + } + + 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 + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this 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 NodeBackup} instance. */ + private com.oracle.bmc.bds.model.NodeBackup nodeBackup; + + /** + * The returned {@code NodeBackup} instance. + * + * @param nodeBackup the value to set + * @return this builder + */ + public Builder nodeBackup(com.oracle.bmc.bds.model.NodeBackup nodeBackup) { + this.nodeBackup = nodeBackup; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetNodeBackupResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + nodeBackup(o.getNodeBackup()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetNodeBackupResponse build() { + return new GetNodeBackupResponse( + __httpStatusCode__, headers, opcRequestId, etag, nodeBackup); + } + } + + /** + * 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(",nodeBackup=").append(String.valueOf(nodeBackup)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetNodeBackupResponse)) { + return false; + } + + GetNodeBackupResponse other = (GetNodeBackupResponse) 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.nodeBackup, other.nodeBackup); + } + + @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.nodeBackup == null ? 43 : this.nodeBackup.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/GetNodeReplaceConfigurationResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/GetNodeReplaceConfigurationResponse.java new file mode 100644 index 00000000000..d540aa2867e --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/GetNodeReplaceConfigurationResponse.java @@ -0,0 +1,215 @@ +/** + * 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.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class GetNodeReplaceConfigurationResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this 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 NodeReplaceConfiguration} instance. */ + private com.oracle.bmc.bds.model.NodeReplaceConfiguration nodeReplaceConfiguration; + + /** + * The returned {@code NodeReplaceConfiguration} instance. + * + * @return the value + */ + public com.oracle.bmc.bds.model.NodeReplaceConfiguration getNodeReplaceConfiguration() { + return nodeReplaceConfiguration; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "nodeReplaceConfiguration" + }) + private GetNodeReplaceConfigurationResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + com.oracle.bmc.bds.model.NodeReplaceConfiguration nodeReplaceConfiguration) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.nodeReplaceConfiguration = nodeReplaceConfiguration; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetNodeReplaceConfigurationResponse> { + 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 + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this 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 NodeReplaceConfiguration} instance. */ + private com.oracle.bmc.bds.model.NodeReplaceConfiguration nodeReplaceConfiguration; + + /** + * The returned {@code NodeReplaceConfiguration} instance. + * + * @param nodeReplaceConfiguration the value to set + * @return this builder + */ + public Builder nodeReplaceConfiguration( + com.oracle.bmc.bds.model.NodeReplaceConfiguration nodeReplaceConfiguration) { + this.nodeReplaceConfiguration = nodeReplaceConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetNodeReplaceConfigurationResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + nodeReplaceConfiguration(o.getNodeReplaceConfiguration()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetNodeReplaceConfigurationResponse build() { + return new GetNodeReplaceConfigurationResponse( + __httpStatusCode__, headers, opcRequestId, etag, nodeReplaceConfiguration); + } + } + + /** + * 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(",nodeReplaceConfiguration=").append(String.valueOf(nodeReplaceConfiguration)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetNodeReplaceConfigurationResponse)) { + return false; + } + + GetNodeReplaceConfigurationResponse other = (GetNodeReplaceConfigurationResponse) 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.nodeReplaceConfiguration, other.nodeReplaceConfiguration); + } + + @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.nodeReplaceConfiguration == null + ? 43 + : this.nodeReplaceConfiguration.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListNodeBackupConfigurationsResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListNodeBackupConfigurationsResponse.java new file mode 100644 index 00000000000..a286ac99070 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListNodeBackupConfigurationsResponse.java @@ -0,0 +1,222 @@ +/** + * 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.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class ListNodeBackupConfigurationsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this 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; + } + + /** A list of {@code com.oracle.bmc.bds.model.NodeBackupConfigurationSummary} instances. */ + private java.util.List items; + + /** + * A list of {@code com.oracle.bmc.bds.model.NodeBackupConfigurationSummary} instances. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "items" + }) + private ListNodeBackupConfigurationsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + java.util.List items) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.items = items; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListNodeBackupConfigurationsResponse> { + 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 + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this 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; + } + + /** A list of {@code com.oracle.bmc.bds.model.NodeBackupConfigurationSummary} instances. */ + private java.util.List items; + + /** + * A list of {@code com.oracle.bmc.bds.model.NodeBackupConfigurationSummary} instances. + * + * @param items the value to set + * @return this builder + */ + public Builder items( + java.util.List items) { + this.items = items; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListNodeBackupConfigurationsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + items(o.getItems()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListNodeBackupConfigurationsResponse build() { + return new ListNodeBackupConfigurationsResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, items); + } + } + + /** + * 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(",items=").append(String.valueOf(items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListNodeBackupConfigurationsResponse)) { + return false; + } + + ListNodeBackupConfigurationsResponse other = (ListNodeBackupConfigurationsResponse) 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.items, other.items); + } + + @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.items == null ? 43 : this.items.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListNodeBackupsResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListNodeBackupsResponse.java new file mode 100644 index 00000000000..86885c8fd11 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListNodeBackupsResponse.java @@ -0,0 +1,220 @@ +/** + * 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.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class ListNodeBackupsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this 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; + } + + /** A list of {@code com.oracle.bmc.bds.model.NodeBackupSummary} instances. */ + private java.util.List items; + + /** + * A list of {@code com.oracle.bmc.bds.model.NodeBackupSummary} instances. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "items" + }) + private ListNodeBackupsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + java.util.List items) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.items = items; + } + + 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 + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this 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; + } + + /** A list of {@code com.oracle.bmc.bds.model.NodeBackupSummary} instances. */ + private java.util.List items; + + /** + * A list of {@code com.oracle.bmc.bds.model.NodeBackupSummary} instances. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListNodeBackupsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + items(o.getItems()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListNodeBackupsResponse build() { + return new ListNodeBackupsResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, items); + } + } + + /** + * 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(",items=").append(String.valueOf(items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListNodeBackupsResponse)) { + return false; + } + + ListNodeBackupsResponse other = (ListNodeBackupsResponse) 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.items, other.items); + } + + @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.items == null ? 43 : this.items.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListNodeReplaceConfigurationsResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListNodeReplaceConfigurationsResponse.java new file mode 100644 index 00000000000..6c2eb80b522 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListNodeReplaceConfigurationsResponse.java @@ -0,0 +1,222 @@ +/** + * 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.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class ListNodeReplaceConfigurationsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this 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; + } + + /** A list of {@code com.oracle.bmc.bds.model.NodeReplaceConfigurationSummary} instances. */ + private java.util.List items; + + /** + * A list of {@code com.oracle.bmc.bds.model.NodeReplaceConfigurationSummary} instances. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "items" + }) + private ListNodeReplaceConfigurationsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + java.util.List items) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.items = items; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListNodeReplaceConfigurationsResponse> { + 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 + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this 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; + } + + /** A list of {@code com.oracle.bmc.bds.model.NodeReplaceConfigurationSummary} instances. */ + private java.util.List items; + + /** + * A list of {@code com.oracle.bmc.bds.model.NodeReplaceConfigurationSummary} instances. + * + * @param items the value to set + * @return this builder + */ + public Builder items( + java.util.List items) { + this.items = items; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListNodeReplaceConfigurationsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + items(o.getItems()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListNodeReplaceConfigurationsResponse build() { + return new ListNodeReplaceConfigurationsResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, items); + } + } + + /** + * 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(",items=").append(String.valueOf(items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListNodeReplaceConfigurationsResponse)) { + return false; + } + + ListNodeReplaceConfigurationsResponse other = (ListNodeReplaceConfigurationsResponse) 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.items, other.items); + } + + @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.items == null ? 43 : this.items.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/RemoveNodeReplaceConfigurationResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/RemoveNodeReplaceConfigurationResponse.java new file mode 100644 index 00000000000..0b38d571b94 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/RemoveNodeReplaceConfigurationResponse.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.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class RemoveNodeReplaceConfigurationResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private RemoveNodeReplaceConfigurationResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + RemoveNodeReplaceConfigurationResponse> { + 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 + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(RemoveNodeReplaceConfigurationResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public RemoveNodeReplaceConfigurationResponse build() { + return new RemoveNodeReplaceConfigurationResponse( + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RemoveNodeReplaceConfigurationResponse)) { + return false; + } + + RemoveNodeReplaceConfigurationResponse other = (RemoveNodeReplaceConfigurationResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ReplaceNodeResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ReplaceNodeResponse.java new file mode 100644 index 00000000000..cf3d64a77a6 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ReplaceNodeResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class ReplaceNodeResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private ReplaceNodeResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ReplaceNodeResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ReplaceNodeResponse build() { + return new ReplaceNodeResponse( + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ReplaceNodeResponse)) { + return false; + } + + ReplaceNodeResponse other = (ReplaceNodeResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/UpdateNodeBackupConfigurationResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/UpdateNodeBackupConfigurationResponse.java new file mode 100644 index 00000000000..a01149efef9 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/UpdateNodeBackupConfigurationResponse.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.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class UpdateNodeBackupConfigurationResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private UpdateNodeBackupConfigurationResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + UpdateNodeBackupConfigurationResponse> { + 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 + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateNodeBackupConfigurationResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateNodeBackupConfigurationResponse build() { + return new UpdateNodeBackupConfigurationResponse( + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateNodeBackupConfigurationResponse)) { + return false; + } + + UpdateNodeBackupConfigurationResponse other = (UpdateNodeBackupConfigurationResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/UpdateNodeReplaceConfigurationResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/UpdateNodeReplaceConfigurationResponse.java new file mode 100644 index 00000000000..2fddb6edf91 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/UpdateNodeReplaceConfigurationResponse.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.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class UpdateNodeReplaceConfigurationResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private UpdateNodeReplaceConfigurationResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + UpdateNodeReplaceConfigurationResponse> { + 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 + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateNodeReplaceConfigurationResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateNodeReplaceConfigurationResponse build() { + return new UpdateNodeReplaceConfigurationResponse( + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateNodeReplaceConfigurationResponse)) { + return false; + } + + UpdateNodeReplaceConfigurationResponse other = (UpdateNodeReplaceConfigurationResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-bds/reflect-config.json b/bmc-bds/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-bds/reflect-config.json index 9a36936d3cd..b4162fe5624 100644 --- a/bmc-bds/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-bds/reflect-config.json +++ b/bmc-bds/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-bds/reflect-config.json @@ -311,6 +311,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.BackupNodeDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.BackupNodeDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.bds.model.BatchingBasedPatchingConfigs", @@ -597,6 +611,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.CreateNodeBackupConfigurationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.CreateNodeBackupConfigurationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.bds.model.CreateNodeDetails", @@ -611,6 +639,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.CreateNodeReplaceConfigurationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.CreateNodeReplaceConfigurationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.bds.model.DayBasedHorizontalScalingScheduleDetails", @@ -792,6 +834,19 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.LevelTypeDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.LevelTypeDetails$LevelType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.bds.model.MetricBasedHorizontalScaleInConfig", @@ -936,6 +991,154 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.NodeBackup", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.NodeBackup$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.NodeBackup$BackupTriggerType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.NodeBackup$BackupType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.NodeBackup$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.NodeBackupConfiguration", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.NodeBackupConfiguration$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.NodeBackupConfiguration$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.NodeBackupConfigurationSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.NodeBackupConfigurationSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.NodeBackupSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.NodeBackupSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.NodeLevelDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.NodeLevelDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.NodeReplaceConfiguration", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.NodeReplaceConfiguration$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.NodeReplaceConfiguration$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.NodeReplaceConfiguration$MetricType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.NodeReplaceConfigurationSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.NodeReplaceConfigurationSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.NodeTypeLevelDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.NodeTypeLevelDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.bds.model.OperationStatus", @@ -1111,6 +1314,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.RemoveNodeReplaceConfigurationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.RemoveNodeReplaceConfigurationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.bds.model.RenewCertificateDetails", @@ -1125,6 +1342,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.ReplaceNodeDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.ReplaceNodeDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.bds.model.RestartNodeDetails", @@ -1360,6 +1591,34 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.UpdateNodeBackupConfigurationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.UpdateNodeBackupConfigurationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.UpdateNodeReplaceConfigurationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.UpdateNodeReplaceConfigurationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.bds.model.UpdateScheduleBasedHorizontalScalingPolicyDetails", diff --git a/bmc-blockchain/pom.xml b/bmc-blockchain/pom.xml index 1f8b2756909..00d611eae1b 100644 --- a/bmc-blockchain/pom.xml +++ b/bmc-blockchain/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-blockchain @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-bom/pom.xml b/bmc-bom/pom.xml index f3c5c9648b9..a17de7f1726 100644 --- a/bmc-bom/pom.xml +++ b/bmc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk - 3.41.2 + 3.41.3 oci-java-sdk-bom pom Oracle Cloud Infrastructure SDK - BOM @@ -38,921 +38,927 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-shaded-full - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-audit - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-containerengine - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-core - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-database - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-dns - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-email - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-filestorage - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-identity - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-loadbalancer - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-objectstorage - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.41.2 + 3.41.3 com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.41.2 + 3.41.3 com.oracle.oci.sdk oci-java-sdk-addons-resteasy-client-configurator - 3.41.2 + 3.41.3 com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.41.2 + 3.41.3 com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.41.2 + 3.41.3 com.oracle.oci.sdk oci-java-sdk-addons-sasl-oke-workload-identity - 3.41.2 + 3.41.3 com.oracle.oci.sdk oci-java-sdk-resourcesearch - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-addons-apache - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-announcementsservice - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-healthchecks - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-waas - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-streaming - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-resourcemanager - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-monitoring - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-ons - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-autoscaling - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-budget - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-workrequests - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-limits - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-functions - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-events - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-dts - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-oce - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-oda - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-analytics - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-integration - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-osmanagement - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-marketplace - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-apigateway - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-datacatalog - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-dataflow - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-datascience - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-nosql - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-secrets - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-vault - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-bds - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-encryption - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-cims - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-datasafe - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-mysql - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-dataintegration - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-ocvp - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-usageapi - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-blockchain - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-loggingingestion - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-logging - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-loganalytics - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-managementdashboard - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-sch - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-loggingsearch - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-managementagent - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-cloudguard - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-opsi - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-computeinstanceagent - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-optimizer - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-tenantmanagercontrolplane - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-rover - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-databasemanagement - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-artifacts - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-apmsynthetics - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-goldengate - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-apmcontrolplane - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-apmtraces - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-networkloadbalancer - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-vulnerabilityscanning - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-databasemigration - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-servicecatalog - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-ailanguage - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-operatoraccesscontrol - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-bastion - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-genericartifactscontent - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-jms - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-devops - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-aianomalydetection - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-datalabelingservice - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-datalabelingservicedataplane - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-apmconfig - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-waf - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-certificates - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-certificatesmanagement - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-usage - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-databasetools - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-servicemanagerproxy - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-appmgmtcontrol - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-ospgateway - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-identitydataplane - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-visualbuilder - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-osubusage - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-osubsubscription - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-osuborganizationsubscription - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-osubbillingschedule - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-dashboardservice - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-threatintelligence - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-aivision - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-aispeech - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-stackmonitoring - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-servicemesh - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-adm - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-licensemanager - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-onesubscription - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-governancerulescontrolplane - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-waa - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-networkfirewall - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-vnmonitoring - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-emwarehouse - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-lockbox - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-fusionapps - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-mediaservices - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-opa - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-opensearch - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-cloudmigrations - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-cloudbridge - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-disasterrecovery - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-containerinstances - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-aidocument - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-queue - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-recovery - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-vbsinst - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-identitydomains - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-accessgovernancecp - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-ocicontrolcenter - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-osmanagementhub - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-fleetsoftwareupdate - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-computecloudatcustomer - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-marketplacepublisher - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-redis - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-jmsjavadownloads - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-psql - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-generativeai - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-capacitymanagement - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-globallydistributeddatabase - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-desktops - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-emaildataplane - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-clusterplacementgroups - 3.41.2 + 3.41.3 false com.oracle.oci.sdk oci-java-sdk-marketplaceprivateoffer - 3.41.2 + 3.41.3 + false + + + com.oracle.oci.sdk + oci-java-sdk-resourcescheduler + 3.41.3 false diff --git a/bmc-budget/pom.xml b/bmc-budget/pom.xml index 305e4bd9eb8..60584dcb804 100644 --- a/bmc-budget/pom.xml +++ b/bmc-budget/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-budget @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-capacitymanagement/pom.xml b/bmc-capacitymanagement/pom.xml index 22b244e72d8..b60304a6812 100644 --- a/bmc-capacitymanagement/pom.xml +++ b/bmc-capacitymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-capacitymanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-certificates/pom.xml b/bmc-certificates/pom.xml index c684c67a678..08ba3a6de83 100644 --- a/bmc-certificates/pom.xml +++ b/bmc-certificates/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-certificates @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-certificatesmanagement/pom.xml b/bmc-certificatesmanagement/pom.xml index 1cbc8e707f4..b01d08c1e0a 100644 --- a/bmc-certificatesmanagement/pom.xml +++ b/bmc-certificatesmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-certificatesmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-cims/pom.xml b/bmc-cims/pom.xml index 5fc4c72dd54..0c54abc350c 100644 --- a/bmc-cims/pom.xml +++ b/bmc-cims/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-cims @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-circuitbreaker/pom.xml b/bmc-circuitbreaker/pom.xml index cd9d5af5ce2..55f68f08ebb 100644 --- a/bmc-circuitbreaker/pom.xml +++ b/bmc-circuitbreaker/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-circuitbreaker diff --git a/bmc-cloudbridge/pom.xml b/bmc-cloudbridge/pom.xml index c14f2261f4e..761d0c75b1c 100644 --- a/bmc-cloudbridge/pom.xml +++ b/bmc-cloudbridge/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-cloudbridge @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-cloudguard/pom.xml b/bmc-cloudguard/pom.xml index 996387aa479..1c28ab6ff26 100644 --- a/bmc-cloudguard/pom.xml +++ b/bmc-cloudguard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-cloudguard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-cloudmigrations/pom.xml b/bmc-cloudmigrations/pom.xml index a3f68eb1786..e42da0bc725 100644 --- a/bmc-cloudmigrations/pom.xml +++ b/bmc-cloudmigrations/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-cloudmigrations @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-clusterplacementgroups/pom.xml b/bmc-clusterplacementgroups/pom.xml index a4126414f54..c5e8eb1423c 100644 --- a/bmc-clusterplacementgroups/pom.xml +++ b/bmc-clusterplacementgroups/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-clusterplacementgroups @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-clusterplacementgroups/src/main/java/com/oracle/bmc/clusterplacementgroups/ClusterPlacementGroupsCPAsyncClient.java b/bmc-clusterplacementgroups/src/main/java/com/oracle/bmc/clusterplacementgroups/ClusterPlacementGroupsCPAsyncClient.java index 82f53e58384..5574a2125fb 100644 --- a/bmc-clusterplacementgroups/src/main/java/com/oracle/bmc/clusterplacementgroups/ClusterPlacementGroupsCPAsyncClient.java +++ b/bmc-clusterplacementgroups/src/main/java/com/oracle/bmc/clusterplacementgroups/ClusterPlacementGroupsCPAsyncClient.java @@ -111,7 +111,10 @@ public void setRegion(String regionId) { return clientCall(request, ActivateClusterPlacementGroupResponse::builder) .logger(LOG, "activateClusterPlacementGroup") - .serviceDetails("ClusterPlacementGroupsCP", "ActivateClusterPlacementGroup", "") + .serviceDetails( + "ClusterPlacementGroupsCP", + "ActivateClusterPlacementGroup", + "https://docs.oracle.com/iaas/api/#/en/clusterplacementgroups/20230801/ClusterPlacementGroup/ActivateClusterPlacementGroup") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ActivateClusterPlacementGroupRequest::builder) .basePath("/20230801") @@ -145,7 +148,10 @@ public java.util.concurrent.Future cancelWorkRequest( return clientCall(request, CancelWorkRequestResponse::builder) .logger(LOG, "cancelWorkRequest") - .serviceDetails("ClusterPlacementGroupsCP", "CancelWorkRequest", "") + .serviceDetails( + "ClusterPlacementGroupsCP", + "CancelWorkRequest", + "https://docs.oracle.com/iaas/api/#/en/clusterplacementgroups/20230801/WorkRequest/CancelWorkRequest") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(CancelWorkRequestRequest::builder) .basePath("/20230801") @@ -177,7 +183,9 @@ public java.util.concurrent.Future cancelWorkRequest( return clientCall(request, ChangeClusterPlacementGroupCompartmentResponse::builder) .logger(LOG, "changeClusterPlacementGroupCompartment") .serviceDetails( - "ClusterPlacementGroupsCP", "ChangeClusterPlacementGroupCompartment", "") + "ClusterPlacementGroupsCP", + "ChangeClusterPlacementGroupCompartment", + "https://docs.oracle.com/iaas/api/#/en/clusterplacementgroups/20230801/ClusterPlacementGroup/ChangeClusterPlacementGroupCompartment") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ChangeClusterPlacementGroupCompartmentRequest::builder) .basePath("/20230801") @@ -210,7 +218,10 @@ public java.util.concurrent.Future cancelWorkRequest( return clientCall(request, CreateClusterPlacementGroupResponse::builder) .logger(LOG, "createClusterPlacementGroup") - .serviceDetails("ClusterPlacementGroupsCP", "CreateClusterPlacementGroup", "") + .serviceDetails( + "ClusterPlacementGroupsCP", + "CreateClusterPlacementGroup", + "https://docs.oracle.com/iaas/api/#/en/clusterplacementgroups/20230801/ClusterPlacementGroup/CreateClusterPlacementGroup") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CreateClusterPlacementGroupRequest::builder) .basePath("/20230801") @@ -252,7 +263,10 @@ public java.util.concurrent.Future cancelWorkRequest( return clientCall(request, DeactivateClusterPlacementGroupResponse::builder) .logger(LOG, "deactivateClusterPlacementGroup") - .serviceDetails("ClusterPlacementGroupsCP", "DeactivateClusterPlacementGroup", "") + .serviceDetails( + "ClusterPlacementGroupsCP", + "DeactivateClusterPlacementGroup", + "https://docs.oracle.com/iaas/api/#/en/clusterplacementgroups/20230801/ClusterPlacementGroup/DeactivateClusterPlacementGroup") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(DeactivateClusterPlacementGroupRequest::builder) .basePath("/20230801") @@ -289,7 +303,10 @@ public java.util.concurrent.Future cancelWorkRequest( return clientCall(request, DeleteClusterPlacementGroupResponse::builder) .logger(LOG, "deleteClusterPlacementGroup") - .serviceDetails("ClusterPlacementGroupsCP", "DeleteClusterPlacementGroup", "") + .serviceDetails( + "ClusterPlacementGroupsCP", + "DeleteClusterPlacementGroup", + "https://docs.oracle.com/iaas/api/#/en/clusterplacementgroups/20230801/ClusterPlacementGroup/DeleteClusterPlacementGroup") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(DeleteClusterPlacementGroupRequest::builder) .basePath("/20230801") @@ -318,7 +335,10 @@ public java.util.concurrent.Future getClusterP return clientCall(request, GetClusterPlacementGroupResponse::builder) .logger(LOG, "getClusterPlacementGroup") - .serviceDetails("ClusterPlacementGroupsCP", "GetClusterPlacementGroup", "") + .serviceDetails( + "ClusterPlacementGroupsCP", + "GetClusterPlacementGroup", + "https://docs.oracle.com/iaas/api/#/en/clusterplacementgroups/20230801/ClusterPlacementGroup/GetClusterPlacementGroup") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetClusterPlacementGroupRequest::builder) .basePath("/20230801") @@ -346,7 +366,10 @@ public java.util.concurrent.Future getWorkRequest( return clientCall(request, GetWorkRequestResponse::builder) .logger(LOG, "getWorkRequest") - .serviceDetails("ClusterPlacementGroupsCP", "GetWorkRequest", "") + .serviceDetails( + "ClusterPlacementGroupsCP", + "GetWorkRequest", + "https://docs.oracle.com/iaas/api/#/en/clusterplacementgroups/20230801/WorkRequest/GetWorkRequest") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetWorkRequestRequest::builder) .basePath("/20230801") @@ -376,7 +399,10 @@ public java.util.concurrent.Future getWorkRequest( return clientCall(request, ListClusterPlacementGroupsResponse::builder) .logger(LOG, "listClusterPlacementGroups") - .serviceDetails("ClusterPlacementGroupsCP", "ListClusterPlacementGroups", "") + .serviceDetails( + "ClusterPlacementGroupsCP", + "ListClusterPlacementGroups", + "https://docs.oracle.com/iaas/api/#/en/clusterplacementgroups/20230801/ClusterPlacementGroupCollection/ListClusterPlacementGroups") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListClusterPlacementGroupsRequest::builder) .basePath("/20230801") @@ -415,7 +441,10 @@ public java.util.concurrent.Future listWorkReques return clientCall(request, ListWorkRequestErrorsResponse::builder) .logger(LOG, "listWorkRequestErrors") - .serviceDetails("ClusterPlacementGroupsCP", "ListWorkRequestErrors", "") + .serviceDetails( + "ClusterPlacementGroupsCP", + "ListWorkRequestErrors", + "https://docs.oracle.com/iaas/api/#/en/clusterplacementgroups/20230801/WorkRequestError/ListWorkRequestErrors") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestErrorsRequest::builder) .basePath("/20230801") @@ -450,7 +479,10 @@ public java.util.concurrent.Future listWorkRequestL return clientCall(request, ListWorkRequestLogsResponse::builder) .logger(LOG, "listWorkRequestLogs") - .serviceDetails("ClusterPlacementGroupsCP", "ListWorkRequestLogs", "") + .serviceDetails( + "ClusterPlacementGroupsCP", + "ListWorkRequestLogs", + "https://docs.oracle.com/iaas/api/#/en/clusterplacementgroups/20230801/WorkRequestLogEntry/ListWorkRequestLogs") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestLogsRequest::builder) .basePath("/20230801") @@ -483,7 +515,10 @@ public java.util.concurrent.Future listWorkRequests( return clientCall(request, ListWorkRequestsResponse::builder) .logger(LOG, "listWorkRequests") - .serviceDetails("ClusterPlacementGroupsCP", "ListWorkRequests", "") + .serviceDetails( + "ClusterPlacementGroupsCP", + "ListWorkRequests", + "https://docs.oracle.com/iaas/api/#/en/clusterplacementgroups/20230801/WorkRequest/ListWorkRequests") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestsRequest::builder) .basePath("/20230801") @@ -526,7 +561,10 @@ public java.util.concurrent.Future listWorkRequests( return clientCall(request, UpdateClusterPlacementGroupResponse::builder) .logger(LOG, "updateClusterPlacementGroup") - .serviceDetails("ClusterPlacementGroupsCP", "UpdateClusterPlacementGroup", "") + .serviceDetails( + "ClusterPlacementGroupsCP", + "UpdateClusterPlacementGroup", + "https://docs.oracle.com/iaas/api/#/en/clusterplacementgroups/20230801/ClusterPlacementGroup/UpdateClusterPlacementGroup") .method(com.oracle.bmc.http.client.Method.PUT) .requestBuilder(UpdateClusterPlacementGroupRequest::builder) .basePath("/20230801") diff --git a/bmc-clusterplacementgroups/src/main/java/com/oracle/bmc/clusterplacementgroups/ClusterPlacementGroupsCPClient.java b/bmc-clusterplacementgroups/src/main/java/com/oracle/bmc/clusterplacementgroups/ClusterPlacementGroupsCPClient.java index 12481135702..0a3623f8121 100644 --- a/bmc-clusterplacementgroups/src/main/java/com/oracle/bmc/clusterplacementgroups/ClusterPlacementGroupsCPClient.java +++ b/bmc-clusterplacementgroups/src/main/java/com/oracle/bmc/clusterplacementgroups/ClusterPlacementGroupsCPClient.java @@ -134,7 +134,10 @@ public ActivateClusterPlacementGroupResponse activateClusterPlacementGroup( return clientCall(request, ActivateClusterPlacementGroupResponse::builder) .logger(LOG, "activateClusterPlacementGroup") - .serviceDetails("ClusterPlacementGroupsCP", "ActivateClusterPlacementGroup", "") + .serviceDetails( + "ClusterPlacementGroupsCP", + "ActivateClusterPlacementGroup", + "https://docs.oracle.com/iaas/api/#/en/clusterplacementgroups/20230801/ClusterPlacementGroup/ActivateClusterPlacementGroup") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ActivateClusterPlacementGroupRequest::builder) .basePath("/20230801") @@ -165,7 +168,10 @@ public CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest requ return clientCall(request, CancelWorkRequestResponse::builder) .logger(LOG, "cancelWorkRequest") - .serviceDetails("ClusterPlacementGroupsCP", "CancelWorkRequest", "") + .serviceDetails( + "ClusterPlacementGroupsCP", + "CancelWorkRequest", + "https://docs.oracle.com/iaas/api/#/en/clusterplacementgroups/20230801/WorkRequest/CancelWorkRequest") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(CancelWorkRequestRequest::builder) .basePath("/20230801") @@ -193,7 +199,9 @@ public ChangeClusterPlacementGroupCompartmentResponse changeClusterPlacementGrou return clientCall(request, ChangeClusterPlacementGroupCompartmentResponse::builder) .logger(LOG, "changeClusterPlacementGroupCompartment") .serviceDetails( - "ClusterPlacementGroupsCP", "ChangeClusterPlacementGroupCompartment", "") + "ClusterPlacementGroupsCP", + "ChangeClusterPlacementGroupCompartment", + "https://docs.oracle.com/iaas/api/#/en/clusterplacementgroups/20230801/ClusterPlacementGroup/ChangeClusterPlacementGroupCompartment") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ChangeClusterPlacementGroupCompartmentRequest::builder) .basePath("/20230801") @@ -222,7 +230,10 @@ public CreateClusterPlacementGroupResponse createClusterPlacementGroup( return clientCall(request, CreateClusterPlacementGroupResponse::builder) .logger(LOG, "createClusterPlacementGroup") - .serviceDetails("ClusterPlacementGroupsCP", "CreateClusterPlacementGroup", "") + .serviceDetails( + "ClusterPlacementGroupsCP", + "CreateClusterPlacementGroup", + "https://docs.oracle.com/iaas/api/#/en/clusterplacementgroups/20230801/ClusterPlacementGroup/CreateClusterPlacementGroup") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CreateClusterPlacementGroupRequest::builder) .basePath("/20230801") @@ -260,7 +271,10 @@ public DeactivateClusterPlacementGroupResponse deactivateClusterPlacementGroup( return clientCall(request, DeactivateClusterPlacementGroupResponse::builder) .logger(LOG, "deactivateClusterPlacementGroup") - .serviceDetails("ClusterPlacementGroupsCP", "DeactivateClusterPlacementGroup", "") + .serviceDetails( + "ClusterPlacementGroupsCP", + "DeactivateClusterPlacementGroup", + "https://docs.oracle.com/iaas/api/#/en/clusterplacementgroups/20230801/ClusterPlacementGroup/DeactivateClusterPlacementGroup") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(DeactivateClusterPlacementGroupRequest::builder) .basePath("/20230801") @@ -293,7 +307,10 @@ public DeleteClusterPlacementGroupResponse deleteClusterPlacementGroup( return clientCall(request, DeleteClusterPlacementGroupResponse::builder) .logger(LOG, "deleteClusterPlacementGroup") - .serviceDetails("ClusterPlacementGroupsCP", "DeleteClusterPlacementGroup", "") + .serviceDetails( + "ClusterPlacementGroupsCP", + "DeleteClusterPlacementGroup", + "https://docs.oracle.com/iaas/api/#/en/clusterplacementgroups/20230801/ClusterPlacementGroup/DeleteClusterPlacementGroup") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(DeleteClusterPlacementGroupRequest::builder) .basePath("/20230801") @@ -320,7 +337,10 @@ public GetClusterPlacementGroupResponse getClusterPlacementGroup( return clientCall(request, GetClusterPlacementGroupResponse::builder) .logger(LOG, "getClusterPlacementGroup") - .serviceDetails("ClusterPlacementGroupsCP", "GetClusterPlacementGroup", "") + .serviceDetails( + "ClusterPlacementGroupsCP", + "GetClusterPlacementGroup", + "https://docs.oracle.com/iaas/api/#/en/clusterplacementgroups/20230801/ClusterPlacementGroup/GetClusterPlacementGroup") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetClusterPlacementGroupRequest::builder) .basePath("/20230801") @@ -345,7 +365,10 @@ public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { return clientCall(request, GetWorkRequestResponse::builder) .logger(LOG, "getWorkRequest") - .serviceDetails("ClusterPlacementGroupsCP", "GetWorkRequest", "") + .serviceDetails( + "ClusterPlacementGroupsCP", + "GetWorkRequest", + "https://docs.oracle.com/iaas/api/#/en/clusterplacementgroups/20230801/WorkRequest/GetWorkRequest") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetWorkRequestRequest::builder) .basePath("/20230801") @@ -371,7 +394,10 @@ public ListClusterPlacementGroupsResponse listClusterPlacementGroups( return clientCall(request, ListClusterPlacementGroupsResponse::builder) .logger(LOG, "listClusterPlacementGroups") - .serviceDetails("ClusterPlacementGroupsCP", "ListClusterPlacementGroups", "") + .serviceDetails( + "ClusterPlacementGroupsCP", + "ListClusterPlacementGroups", + "https://docs.oracle.com/iaas/api/#/en/clusterplacementgroups/20230801/ClusterPlacementGroupCollection/ListClusterPlacementGroups") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListClusterPlacementGroupsRequest::builder) .basePath("/20230801") @@ -408,7 +434,10 @@ public ListWorkRequestErrorsResponse listWorkRequestErrors( return clientCall(request, ListWorkRequestErrorsResponse::builder) .logger(LOG, "listWorkRequestErrors") - .serviceDetails("ClusterPlacementGroupsCP", "ListWorkRequestErrors", "") + .serviceDetails( + "ClusterPlacementGroupsCP", + "ListWorkRequestErrors", + "https://docs.oracle.com/iaas/api/#/en/clusterplacementgroups/20230801/WorkRequestError/ListWorkRequestErrors") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestErrorsRequest::builder) .basePath("/20230801") @@ -440,7 +469,10 @@ public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsReques return clientCall(request, ListWorkRequestLogsResponse::builder) .logger(LOG, "listWorkRequestLogs") - .serviceDetails("ClusterPlacementGroupsCP", "ListWorkRequestLogs", "") + .serviceDetails( + "ClusterPlacementGroupsCP", + "ListWorkRequestLogs", + "https://docs.oracle.com/iaas/api/#/en/clusterplacementgroups/20230801/WorkRequestLogEntry/ListWorkRequestLogs") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestLogsRequest::builder) .basePath("/20230801") @@ -470,7 +502,10 @@ public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request return clientCall(request, ListWorkRequestsResponse::builder) .logger(LOG, "listWorkRequests") - .serviceDetails("ClusterPlacementGroupsCP", "ListWorkRequests", "") + .serviceDetails( + "ClusterPlacementGroupsCP", + "ListWorkRequests", + "https://docs.oracle.com/iaas/api/#/en/clusterplacementgroups/20230801/WorkRequest/ListWorkRequests") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestsRequest::builder) .basePath("/20230801") @@ -509,7 +544,10 @@ public UpdateClusterPlacementGroupResponse updateClusterPlacementGroup( return clientCall(request, UpdateClusterPlacementGroupResponse::builder) .logger(LOG, "updateClusterPlacementGroup") - .serviceDetails("ClusterPlacementGroupsCP", "UpdateClusterPlacementGroup", "") + .serviceDetails( + "ClusterPlacementGroupsCP", + "UpdateClusterPlacementGroup", + "https://docs.oracle.com/iaas/api/#/en/clusterplacementgroups/20230801/ClusterPlacementGroup/UpdateClusterPlacementGroup") .method(com.oracle.bmc.http.client.Method.PUT) .requestBuilder(UpdateClusterPlacementGroupRequest::builder) .basePath("/20230801") 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 bcbc810e80e..2a279622dc8 100644 --- a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml +++ b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-choices - 3.41.2 + 3.41.3 ../pom.xml @@ -68,7 +68,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.41.2 + 3.41.3 @@ -77,7 +77,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.41.2 + 3.41.3 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 7dc8f9d0eee..2a7fab9c466 100644 --- a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml +++ b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-choices - 3.41.2 + 3.41.3 ../pom.xml @@ -70,7 +70,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.41.2 + 3.41.3 @@ -79,7 +79,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.41.2 + 3.41.3 jakarta.ws.rs diff --git a/bmc-common-httpclient-choices/pom.xml b/bmc-common-httpclient-choices/pom.xml index 512cde6e9c4..c3451fc67d7 100644 --- a/bmc-common-httpclient-choices/pom.xml +++ b/bmc-common-httpclient-choices/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml diff --git a/bmc-common-httpclient/pom.xml b/bmc-common-httpclient/pom.xml index c05ae5e3bac..b2ccee505cc 100644 --- a/bmc-common-httpclient/pom.xml +++ b/bmc-common-httpclient/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml diff --git a/bmc-common/pom.xml b/bmc-common/pom.xml index f1971787172..d08a73cdb85 100644 --- a/bmc-common/pom.xml +++ b/bmc-common/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml @@ -67,18 +67,18 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.41.2 + 3.41.3 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.41.2 + 3.41.3 com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.41.2 + 3.41.3 test diff --git a/bmc-computecloudatcustomer/pom.xml b/bmc-computecloudatcustomer/pom.xml index 120e4ae6ee3..c930157fc62 100644 --- a/bmc-computecloudatcustomer/pom.xml +++ b/bmc-computecloudatcustomer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-computecloudatcustomer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-computeinstanceagent/pom.xml b/bmc-computeinstanceagent/pom.xml index 86129c6e2c8..9b5d9c41202 100644 --- a/bmc-computeinstanceagent/pom.xml +++ b/bmc-computeinstanceagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-computeinstanceagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-containerengine/pom.xml b/bmc-containerengine/pom.xml index c86b27e041c..adb81ff0704 100644 --- a/bmc-containerengine/pom.xml +++ b/bmc-containerengine/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-containerinstances/pom.xml b/bmc-containerinstances/pom.xml index c4816c22191..ad06e489d1c 100644 --- a/bmc-containerinstances/pom.xml +++ b/bmc-containerinstances/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-containerinstances @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-core/pom.xml b/bmc-core/pom.xml index 4d1e7a0d8cf..d752d056966 100644 --- a/bmc-core/pom.xml +++ b/bmc-core/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.41.2 + 3.41.3 diff --git a/bmc-dashboardservice/pom.xml b/bmc-dashboardservice/pom.xml index d62ebfd9465..50e4d3d0e1f 100644 --- a/bmc-dashboardservice/pom.xml +++ b/bmc-dashboardservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-dashboardservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-database/pom.xml b/bmc-database/pom.xml index ae26989272f..ad23d8a0a6a 100644 --- a/bmc-database/pom.xml +++ b/bmc-database/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.41.2 + 3.41.3 diff --git a/bmc-databasemanagement/pom.xml b/bmc-databasemanagement/pom.xml index 813b380cbe1..7ef79eb044f 100644 --- a/bmc-databasemanagement/pom.xml +++ b/bmc-databasemanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-databasemanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-databasemigration/pom.xml b/bmc-databasemigration/pom.xml index 06436317bc0..5117f317d62 100644 --- a/bmc-databasemigration/pom.xml +++ b/bmc-databasemigration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-databasemigration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-databasetools/pom.xml b/bmc-databasetools/pom.xml index 1352322c657..9d1e4b45456 100644 --- a/bmc-databasetools/pom.xml +++ b/bmc-databasetools/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-databasetools @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-datacatalog/pom.xml b/bmc-datacatalog/pom.xml index f11f2f1e595..4cbf9880196 100644 --- a/bmc-datacatalog/pom.xml +++ b/bmc-datacatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-datacatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-dataflow/pom.xml b/bmc-dataflow/pom.xml index d57624c9f0f..71faa84910b 100644 --- a/bmc-dataflow/pom.xml +++ b/bmc-dataflow/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-dataflow @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-dataintegration/pom.xml b/bmc-dataintegration/pom.xml index b3170a6ab1d..d1fd2ccb0ca 100644 --- a/bmc-dataintegration/pom.xml +++ b/bmc-dataintegration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-dataintegration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-datalabelingservice/pom.xml b/bmc-datalabelingservice/pom.xml index 48beeff4a32..2a1dc13ae97 100644 --- a/bmc-datalabelingservice/pom.xml +++ b/bmc-datalabelingservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-datalabelingservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-datalabelingservicedataplane/pom.xml b/bmc-datalabelingservicedataplane/pom.xml index ae34daf67fe..35fd0d4be85 100644 --- a/bmc-datalabelingservicedataplane/pom.xml +++ b/bmc-datalabelingservicedataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-datalabelingservicedataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-datasafe/pom.xml b/bmc-datasafe/pom.xml index 6d028f2a7c9..f55601e7095 100644 --- a/bmc-datasafe/pom.xml +++ b/bmc-datasafe/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-datasafe @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-datascience/pom.xml b/bmc-datascience/pom.xml index bf455db3330..239b24eab56 100644 --- a/bmc-datascience/pom.xml +++ b/bmc-datascience/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-datascience @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/DataScienceAsyncClient.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/DataScienceAsyncClient.java index db53a697fd3..45689f2bc43 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/DataScienceAsyncClient.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/DataScienceAsyncClient.java @@ -272,6 +272,7 @@ public java.util.concurrent.Future cancelPipelineRun( .appendPathParam(request.getPipelineRunId()) .appendPathParam("actions") .appendPathParam("cancelPipelineRun") + .appendQueryParam("terminateGracefully", request.getTerminateGracefully()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) @@ -804,6 +805,7 @@ public java.util.concurrent.Future createJobRun( .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-parent-rpt-url", request.getOpcParentRptUrl()) .hasBody() .handleBody( com.oracle.bmc.datascience.model.JobRun.class, @@ -904,6 +906,7 @@ public java.util.concurrent.Future createModelDep .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-parent-rpt-url", request.getOpcParentRptUrl()) .hasBody() .handleBody( com.oracle.bmc.datascience.model.ModelDeployment.class, @@ -1081,6 +1084,7 @@ public java.util.concurrent.Future createPipelineRun( .accept("application/json") .appendHeader("opc-retry-token", request.getOpcRetryToken()) .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-parent-rpt-url", request.getOpcParentRptUrl()) .hasBody() .handleBody( com.oracle.bmc.datascience.model.PipelineRun.class, diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/DataScienceClient.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/DataScienceClient.java index a18a1e27d02..4ccb65cee6e 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/DataScienceClient.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/DataScienceClient.java @@ -285,6 +285,7 @@ public CancelPipelineRunResponse cancelPipelineRun(CancelPipelineRunRequest requ .appendPathParam(request.getPipelineRunId()) .appendPathParam("actions") .appendPathParam("cancelPipelineRun") + .appendQueryParam("terminateGracefully", request.getTerminateGracefully()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) @@ -762,6 +763,7 @@ public CreateJobRunResponse createJobRun(CreateJobRunRequest request) { .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-parent-rpt-url", request.getOpcParentRptUrl()) .operationUsesDefaultRetries() .hasBody() .handleBody( @@ -855,6 +857,7 @@ public CreateModelDeploymentResponse createModelDeployment( .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-parent-rpt-url", request.getOpcParentRptUrl()) .operationUsesDefaultRetries() .hasBody() .handleBody( @@ -1020,6 +1023,7 @@ public CreatePipelineRunResponse createPipelineRun(CreatePipelineRunRequest requ .accept("application/json") .appendHeader("opc-retry-token", request.getOpcRetryToken()) .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-parent-rpt-url", request.getOpcParentRptUrl()) .operationUsesDefaultRetries() .hasBody() .handleBody( diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/FastLaunchJobConfigSummary.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/FastLaunchJobConfigSummary.java index bd8ca863c0a..36600548915 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/FastLaunchJobConfigSummary.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/FastLaunchJobConfigSummary.java @@ -248,6 +248,7 @@ public enum ShapeSeries implements com.oracle.bmc.http.internal.BmcEnum { AmdRome("AMD_ROME"), IntelSkylake("INTEL_SKYLAKE"), NvidiaGpu("NVIDIA_GPU"), + Generic("GENERIC"), Legacy("LEGACY"), Arm("ARM"), diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/JobShapeSummary.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/JobShapeSummary.java index 3846573803a..c127c431a6a 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/JobShapeSummary.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/JobShapeSummary.java @@ -179,6 +179,7 @@ public enum ShapeSeries implements com.oracle.bmc.http.internal.BmcEnum { AmdRome("AMD_ROME"), IntelSkylake("INTEL_SKYLAKE"), NvidiaGpu("NVIDIA_GPU"), + Generic("GENERIC"), Legacy("LEGACY"), Arm("ARM"), diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ModelDeploymentShapeSeries.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ModelDeploymentShapeSeries.java index 61c140919e8..401aa915131 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ModelDeploymentShapeSeries.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/ModelDeploymentShapeSeries.java @@ -10,6 +10,7 @@ public enum ModelDeploymentShapeSeries implements com.oracle.bmc.http.internal.B AmdRome("AMD_ROME"), IntelSkylake("INTEL_SKYLAKE"), NvidiaGpu("NVIDIA_GPU"), + Generic("GENERIC"), Legacy("LEGACY"), Arm("ARM"), diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/NotebookSessionShapeSeries.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/NotebookSessionShapeSeries.java index a8c37fa39c7..72d565bb75b 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/NotebookSessionShapeSeries.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/NotebookSessionShapeSeries.java @@ -10,6 +10,7 @@ public enum NotebookSessionShapeSeries implements com.oracle.bmc.http.internal.B AmdRome("AMD_ROME"), IntelSkylake("INTEL_SKYLAKE"), NvidiaGpu("NVIDIA_GPU"), + Generic("GENERIC"), Legacy("LEGACY"), Arm("ARM"), diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineContainerConfigurationDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineContainerConfigurationDetails.java new file mode 100644 index 00000000000..387263547db --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineContainerConfigurationDetails.java @@ -0,0 +1,124 @@ +/** + * 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.datascience.model; + +/** + * Container Details for a step in pipeline.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "containerType", + defaultImpl = PipelineContainerConfigurationDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PipelineOcirContainerConfigurationDetails.class, + name = "OCIR_CONTAINER") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class PipelineContainerConfigurationDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected PipelineContainerConfigurationDetails() { + 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("PipelineContainerConfigurationDetails("); + 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 PipelineContainerConfigurationDetails)) { + return false; + } + + PipelineContainerConfigurationDetails other = (PipelineContainerConfigurationDetails) 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 container. */ + public enum ContainerType implements com.oracle.bmc.http.internal.BmcEnum { + OcirContainer("OCIR_CONTAINER"), + + /** + * 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(ContainerType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ContainerType v : ContainerType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ContainerType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ContainerType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ContainerType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineContainerStepDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineContainerStepDetails.java new file mode 100644 index 00000000000..89486bb7bcc --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineContainerStepDetails.java @@ -0,0 +1,267 @@ +/** + * 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.datascience.model; + +/** + * The type of step where user provides the container details for an execution engine managed by the + * pipelines service.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PipelineContainerStepDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "stepType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PipelineContainerStepDetails extends PipelineStepDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("stepName") + private String stepName; + + public Builder stepName(String stepName) { + this.stepName = stepName; + this.__explicitlySet__.add("stepName"); + 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("dependsOn") + private java.util.List dependsOn; + + public Builder dependsOn(java.util.List dependsOn) { + this.dependsOn = dependsOn; + this.__explicitlySet__.add("dependsOn"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("stepConfigurationDetails") + private PipelineStepConfigurationDetails stepConfigurationDetails; + + public Builder stepConfigurationDetails( + PipelineStepConfigurationDetails stepConfigurationDetails) { + this.stepConfigurationDetails = stepConfigurationDetails; + this.__explicitlySet__.add("stepConfigurationDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("stepInfrastructureConfigurationDetails") + private PipelineInfrastructureConfigurationDetails stepInfrastructureConfigurationDetails; + + public Builder stepInfrastructureConfigurationDetails( + PipelineInfrastructureConfigurationDetails stepInfrastructureConfigurationDetails) { + this.stepInfrastructureConfigurationDetails = stepInfrastructureConfigurationDetails; + this.__explicitlySet__.add("stepInfrastructureConfigurationDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("stepContainerConfigurationDetails") + private PipelineContainerConfigurationDetails stepContainerConfigurationDetails; + + public Builder stepContainerConfigurationDetails( + PipelineContainerConfigurationDetails stepContainerConfigurationDetails) { + this.stepContainerConfigurationDetails = stepContainerConfigurationDetails; + this.__explicitlySet__.add("stepContainerConfigurationDetails"); + return this; + } + /** A flag to indicate whether the artifact has been uploaded for this step or not. */ + @com.fasterxml.jackson.annotation.JsonProperty("isArtifactUploaded") + private Boolean isArtifactUploaded; + + /** + * A flag to indicate whether the artifact has been uploaded for this step or not. + * + * @param isArtifactUploaded the value to set + * @return this builder + */ + public Builder isArtifactUploaded(Boolean isArtifactUploaded) { + this.isArtifactUploaded = isArtifactUploaded; + this.__explicitlySet__.add("isArtifactUploaded"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PipelineContainerStepDetails build() { + PipelineContainerStepDetails model = + new PipelineContainerStepDetails( + this.stepName, + this.description, + this.dependsOn, + this.stepConfigurationDetails, + this.stepInfrastructureConfigurationDetails, + this.stepContainerConfigurationDetails, + this.isArtifactUploaded); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PipelineContainerStepDetails model) { + if (model.wasPropertyExplicitlySet("stepName")) { + this.stepName(model.getStepName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("dependsOn")) { + this.dependsOn(model.getDependsOn()); + } + if (model.wasPropertyExplicitlySet("stepConfigurationDetails")) { + this.stepConfigurationDetails(model.getStepConfigurationDetails()); + } + if (model.wasPropertyExplicitlySet("stepInfrastructureConfigurationDetails")) { + this.stepInfrastructureConfigurationDetails( + model.getStepInfrastructureConfigurationDetails()); + } + if (model.wasPropertyExplicitlySet("stepContainerConfigurationDetails")) { + this.stepContainerConfigurationDetails( + model.getStepContainerConfigurationDetails()); + } + if (model.wasPropertyExplicitlySet("isArtifactUploaded")) { + this.isArtifactUploaded(model.getIsArtifactUploaded()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PipelineContainerStepDetails( + String stepName, + String description, + java.util.List dependsOn, + PipelineStepConfigurationDetails stepConfigurationDetails, + PipelineInfrastructureConfigurationDetails stepInfrastructureConfigurationDetails, + PipelineContainerConfigurationDetails stepContainerConfigurationDetails, + Boolean isArtifactUploaded) { + super(stepName, description, dependsOn, stepConfigurationDetails); + this.stepInfrastructureConfigurationDetails = stepInfrastructureConfigurationDetails; + this.stepContainerConfigurationDetails = stepContainerConfigurationDetails; + this.isArtifactUploaded = isArtifactUploaded; + } + + @com.fasterxml.jackson.annotation.JsonProperty("stepInfrastructureConfigurationDetails") + private final PipelineInfrastructureConfigurationDetails stepInfrastructureConfigurationDetails; + + public PipelineInfrastructureConfigurationDetails getStepInfrastructureConfigurationDetails() { + return stepInfrastructureConfigurationDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("stepContainerConfigurationDetails") + private final PipelineContainerConfigurationDetails stepContainerConfigurationDetails; + + public PipelineContainerConfigurationDetails getStepContainerConfigurationDetails() { + return stepContainerConfigurationDetails; + } + + /** A flag to indicate whether the artifact has been uploaded for this step or not. */ + @com.fasterxml.jackson.annotation.JsonProperty("isArtifactUploaded") + private final Boolean isArtifactUploaded; + + /** + * A flag to indicate whether the artifact has been uploaded for this step or not. + * + * @return the value + */ + public Boolean getIsArtifactUploaded() { + return isArtifactUploaded; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PipelineContainerStepDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", stepInfrastructureConfigurationDetails=") + .append(String.valueOf(this.stepInfrastructureConfigurationDetails)); + sb.append(", stepContainerConfigurationDetails=") + .append(String.valueOf(this.stepContainerConfigurationDetails)); + sb.append(", isArtifactUploaded=").append(String.valueOf(this.isArtifactUploaded)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PipelineContainerStepDetails)) { + return false; + } + + PipelineContainerStepDetails other = (PipelineContainerStepDetails) o; + return java.util.Objects.equals( + this.stepInfrastructureConfigurationDetails, + other.stepInfrastructureConfigurationDetails) + && java.util.Objects.equals( + this.stepContainerConfigurationDetails, + other.stepContainerConfigurationDetails) + && java.util.Objects.equals(this.isArtifactUploaded, other.isArtifactUploaded) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.stepInfrastructureConfigurationDetails == null + ? 43 + : this.stepInfrastructureConfigurationDetails.hashCode()); + result = + (result * PRIME) + + (this.stepContainerConfigurationDetails == null + ? 43 + : this.stepContainerConfigurationDetails.hashCode()); + result = + (result * PRIME) + + (this.isArtifactUploaded == null + ? 43 + : this.isArtifactUploaded.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineContainerStepRun.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineContainerStepRun.java new file mode 100644 index 00000000000..e38cf5575b7 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineContainerStepRun.java @@ -0,0 +1,170 @@ +/** + * 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.datascience.model; + +/** + * Detail of each ContainerStepRun.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PipelineContainerStepRun.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "stepType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PipelineContainerStepRun extends PipelineStepRun { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private java.util.Date timeFinished; + + public Builder timeFinished(java.util.Date timeFinished) { + this.timeFinished = timeFinished; + this.__explicitlySet__.add("timeFinished"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("stepName") + private String stepName; + + public Builder stepName(String stepName) { + this.stepName = stepName; + this.__explicitlySet__.add("stepName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PipelineContainerStepRun build() { + PipelineContainerStepRun model = + new PipelineContainerStepRun( + this.timeStarted, + this.timeFinished, + this.stepName, + this.lifecycleState, + this.lifecycleDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PipelineContainerStepRun model) { + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeFinished")) { + this.timeFinished(model.getTimeFinished()); + } + if (model.wasPropertyExplicitlySet("stepName")) { + this.stepName(model.getStepName()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + 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); + } + + @Deprecated + public PipelineContainerStepRun( + java.util.Date timeStarted, + java.util.Date timeFinished, + String stepName, + LifecycleState lifecycleState, + String lifecycleDetails) { + super(timeStarted, timeFinished, stepName, lifecycleState, 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("PipelineContainerStepRun("); + 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 PipelineContainerStepRun)) { + return false; + } + + PipelineContainerStepRun other = (PipelineContainerStepRun) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineContainerStepUpdateDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineContainerStepUpdateDetails.java new file mode 100644 index 00000000000..7e53c419ef4 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineContainerStepUpdateDetails.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.datascience.model; + +/** + * Update the details for a container step type.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PipelineContainerStepUpdateDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "stepType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PipelineContainerStepUpdateDetails extends PipelineStepUpdateDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("stepName") + private String stepName; + + public Builder stepName(String stepName) { + this.stepName = stepName; + this.__explicitlySet__.add("stepName"); + 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("stepConfigurationDetails") + private PipelineStepConfigurationDetails stepConfigurationDetails; + + public Builder stepConfigurationDetails( + PipelineStepConfigurationDetails stepConfigurationDetails) { + this.stepConfigurationDetails = stepConfigurationDetails; + this.__explicitlySet__.add("stepConfigurationDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("stepInfrastructureConfigurationDetails") + private PipelineInfrastructureConfigurationDetails stepInfrastructureConfigurationDetails; + + public Builder stepInfrastructureConfigurationDetails( + PipelineInfrastructureConfigurationDetails stepInfrastructureConfigurationDetails) { + this.stepInfrastructureConfigurationDetails = stepInfrastructureConfigurationDetails; + this.__explicitlySet__.add("stepInfrastructureConfigurationDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PipelineContainerStepUpdateDetails build() { + PipelineContainerStepUpdateDetails model = + new PipelineContainerStepUpdateDetails( + this.stepName, + this.description, + this.stepConfigurationDetails, + this.stepInfrastructureConfigurationDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PipelineContainerStepUpdateDetails model) { + if (model.wasPropertyExplicitlySet("stepName")) { + this.stepName(model.getStepName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("stepConfigurationDetails")) { + this.stepConfigurationDetails(model.getStepConfigurationDetails()); + } + if (model.wasPropertyExplicitlySet("stepInfrastructureConfigurationDetails")) { + this.stepInfrastructureConfigurationDetails( + model.getStepInfrastructureConfigurationDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PipelineContainerStepUpdateDetails( + String stepName, + String description, + PipelineStepConfigurationDetails stepConfigurationDetails, + PipelineInfrastructureConfigurationDetails stepInfrastructureConfigurationDetails) { + super(stepName, description, stepConfigurationDetails); + this.stepInfrastructureConfigurationDetails = stepInfrastructureConfigurationDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("stepInfrastructureConfigurationDetails") + private final PipelineInfrastructureConfigurationDetails stepInfrastructureConfigurationDetails; + + public PipelineInfrastructureConfigurationDetails getStepInfrastructureConfigurationDetails() { + return stepInfrastructureConfigurationDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PipelineContainerStepUpdateDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", stepInfrastructureConfigurationDetails=") + .append(String.valueOf(this.stepInfrastructureConfigurationDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PipelineContainerStepUpdateDetails)) { + return false; + } + + PipelineContainerStepUpdateDetails other = (PipelineContainerStepUpdateDetails) o; + return java.util.Objects.equals( + this.stepInfrastructureConfigurationDetails, + other.stepInfrastructureConfigurationDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.stepInfrastructureConfigurationDetails == null + ? 43 + : this.stepInfrastructureConfigurationDetails.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineCustomScriptStepUpdateDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineCustomScriptStepUpdateDetails.java index f29396637dd..93b7bf6ab4e 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineCustomScriptStepUpdateDetails.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineCustomScriptStepUpdateDetails.java @@ -56,13 +56,26 @@ public Builder stepConfigurationDetails( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("stepInfrastructureConfigurationDetails") + private PipelineInfrastructureConfigurationDetails stepInfrastructureConfigurationDetails; + + public Builder stepInfrastructureConfigurationDetails( + PipelineInfrastructureConfigurationDetails stepInfrastructureConfigurationDetails) { + this.stepInfrastructureConfigurationDetails = stepInfrastructureConfigurationDetails; + this.__explicitlySet__.add("stepInfrastructureConfigurationDetails"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public PipelineCustomScriptStepUpdateDetails build() { PipelineCustomScriptStepUpdateDetails model = new PipelineCustomScriptStepUpdateDetails( - this.stepName, this.description, this.stepConfigurationDetails); + this.stepName, + this.description, + this.stepConfigurationDetails, + this.stepInfrastructureConfigurationDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -80,6 +93,10 @@ public Builder copy(PipelineCustomScriptStepUpdateDetails model) { if (model.wasPropertyExplicitlySet("stepConfigurationDetails")) { this.stepConfigurationDetails(model.getStepConfigurationDetails()); } + if (model.wasPropertyExplicitlySet("stepInfrastructureConfigurationDetails")) { + this.stepInfrastructureConfigurationDetails( + model.getStepInfrastructureConfigurationDetails()); + } return this; } } @@ -97,8 +114,17 @@ public Builder toBuilder() { public PipelineCustomScriptStepUpdateDetails( String stepName, String description, - PipelineStepConfigurationDetails stepConfigurationDetails) { + PipelineStepConfigurationDetails stepConfigurationDetails, + PipelineInfrastructureConfigurationDetails stepInfrastructureConfigurationDetails) { super(stepName, description, stepConfigurationDetails); + this.stepInfrastructureConfigurationDetails = stepInfrastructureConfigurationDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("stepInfrastructureConfigurationDetails") + private final PipelineInfrastructureConfigurationDetails stepInfrastructureConfigurationDetails; + + public PipelineInfrastructureConfigurationDetails getStepInfrastructureConfigurationDetails() { + return stepInfrastructureConfigurationDetails; } @Override @@ -116,6 +142,8 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("PipelineCustomScriptStepUpdateDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", stepInfrastructureConfigurationDetails=") + .append(String.valueOf(this.stepInfrastructureConfigurationDetails)); sb.append(")"); return sb.toString(); } @@ -130,13 +158,21 @@ public boolean equals(Object o) { } PipelineCustomScriptStepUpdateDetails other = (PipelineCustomScriptStepUpdateDetails) o; - return super.equals(other); + return java.util.Objects.equals( + this.stepInfrastructureConfigurationDetails, + other.stepInfrastructureConfigurationDetails) + && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = + (result * PRIME) + + (this.stepInfrastructureConfigurationDetails == null + ? 43 + : this.stepInfrastructureConfigurationDetails.hashCode()); return result; } } diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineInfrastructureConfigurationDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineInfrastructureConfigurationDetails.java index 9bcde2fc1ab..27cbf24078d 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineInfrastructureConfigurationDetails.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineInfrastructureConfigurationDetails.java @@ -23,14 +23,21 @@ public final class PipelineInfrastructureConfigurationDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"shapeName", "blockStorageSizeInGBs", "shapeConfigDetails"}) + @java.beans.ConstructorProperties({ + "shapeName", + "blockStorageSizeInGBs", + "subnetId", + "shapeConfigDetails" + }) public PipelineInfrastructureConfigurationDetails( String shapeName, Integer blockStorageSizeInGBs, + String subnetId, PipelineShapeConfigDetails shapeConfigDetails) { super(); this.shapeName = shapeName; this.blockStorageSizeInGBs = blockStorageSizeInGBs; + this.subnetId = subnetId; this.shapeConfigDetails = shapeConfigDetails; } @@ -66,6 +73,25 @@ public Builder blockStorageSizeInGBs(Integer blockStorageSizeInGBs) { this.__explicitlySet__.add("blockStorageSizeInGBs"); return this; } + /** + * The subnet to create a secondary vnic in to attach to the instance running the pipeline + * step. + */ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private String subnetId; + + /** + * The subnet to create a secondary vnic in to attach to the instance running the pipeline + * step. + * + * @param subnetId the value to set + * @return this builder + */ + public Builder subnetId(String subnetId) { + this.subnetId = subnetId; + this.__explicitlySet__.add("subnetId"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("shapeConfigDetails") private PipelineShapeConfigDetails shapeConfigDetails; @@ -82,7 +108,10 @@ public Builder shapeConfigDetails(PipelineShapeConfigDetails shapeConfigDetails) public PipelineInfrastructureConfigurationDetails build() { PipelineInfrastructureConfigurationDetails model = new PipelineInfrastructureConfigurationDetails( - this.shapeName, this.blockStorageSizeInGBs, this.shapeConfigDetails); + this.shapeName, + this.blockStorageSizeInGBs, + this.subnetId, + this.shapeConfigDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -97,6 +126,9 @@ public Builder copy(PipelineInfrastructureConfigurationDetails model) { if (model.wasPropertyExplicitlySet("blockStorageSizeInGBs")) { this.blockStorageSizeInGBs(model.getBlockStorageSizeInGBs()); } + if (model.wasPropertyExplicitlySet("subnetId")) { + this.subnetId(model.getSubnetId()); + } if (model.wasPropertyExplicitlySet("shapeConfigDetails")) { this.shapeConfigDetails(model.getShapeConfigDetails()); } @@ -139,6 +171,21 @@ public Integer getBlockStorageSizeInGBs() { return blockStorageSizeInGBs; } + /** + * The subnet to create a secondary vnic in to attach to the instance running the pipeline step. + */ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private final String subnetId; + + /** + * The subnet to create a secondary vnic in to attach to the instance running the pipeline step. + * + * @return the value + */ + public String getSubnetId() { + return subnetId; + } + @com.fasterxml.jackson.annotation.JsonProperty("shapeConfigDetails") private final PipelineShapeConfigDetails shapeConfigDetails; @@ -163,6 +210,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("shapeName=").append(String.valueOf(this.shapeName)); sb.append(", blockStorageSizeInGBs=").append(String.valueOf(this.blockStorageSizeInGBs)); + sb.append(", subnetId=").append(String.valueOf(this.subnetId)); sb.append(", shapeConfigDetails=").append(String.valueOf(this.shapeConfigDetails)); sb.append(")"); return sb.toString(); @@ -181,6 +229,7 @@ public boolean equals(Object o) { (PipelineInfrastructureConfigurationDetails) o; return java.util.Objects.equals(this.shapeName, other.shapeName) && java.util.Objects.equals(this.blockStorageSizeInGBs, other.blockStorageSizeInGBs) + && java.util.Objects.equals(this.subnetId, other.subnetId) && java.util.Objects.equals(this.shapeConfigDetails, other.shapeConfigDetails) && super.equals(other); } @@ -195,6 +244,7 @@ public int hashCode() { + (this.blockStorageSizeInGBs == null ? 43 : this.blockStorageSizeInGBs.hashCode()); + result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); result = (result * PRIME) + (this.shapeConfigDetails == null diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineOcirContainerConfigurationDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineOcirContainerConfigurationDetails.java new file mode 100644 index 00000000000..b76990174ea --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineOcirContainerConfigurationDetails.java @@ -0,0 +1,346 @@ +/** + * 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.datascience.model; + +/** + * Container configuration based on image stored in OCI Container Registry.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PipelineOcirContainerConfigurationDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "containerType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PipelineOcirContainerConfigurationDetails + extends PipelineContainerConfigurationDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The full path to the Oracle Container Repository (OCIR) registry, image, and tag in a + * canonical format. + */ + @com.fasterxml.jackson.annotation.JsonProperty("image") + private String image; + + /** + * The full path to the Oracle Container Repository (OCIR) registry, image, and tag in a + * canonical format. + * + * @param image the value to set + * @return this builder + */ + public Builder image(String image) { + this.image = image; + this.__explicitlySet__.add("image"); + return this; + } + /** + * The container image run [CMD](https://docs.docker.com/engine/reference/builder/#cmd) as a + * list of strings. Use {@code CMD} as arguments to the {@code ENTRYPOINT} or the only + * command to run in the absence of an {@code ENTRYPOINT}. The combined size of {@code CMD} + * and {@code ENTRYPOINT} must be less than 2048 bytes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("cmd") + private java.util.List cmd; + + /** + * The container image run [CMD](https://docs.docker.com/engine/reference/builder/#cmd) as a + * list of strings. Use {@code CMD} as arguments to the {@code ENTRYPOINT} or the only + * command to run in the absence of an {@code ENTRYPOINT}. The combined size of {@code CMD} + * and {@code ENTRYPOINT} must be less than 2048 bytes. + * + * @param cmd the value to set + * @return this builder + */ + public Builder cmd(java.util.List cmd) { + this.cmd = cmd; + this.__explicitlySet__.add("cmd"); + return this; + } + /** + * The container image run + * [ENTRYPOINT](https://docs.docker.com/engine/reference/builder/#entrypoint) as a list of + * strings. Accept the {@code CMD} as extra arguments. The combined size of {@code CMD} and + * {@code ENTRYPOINT} must be less than 2048 bytes. More information on how {@code CMD} and + * {@code ENTRYPOINT} interact are + * [here](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + */ + @com.fasterxml.jackson.annotation.JsonProperty("entrypoint") + private java.util.List entrypoint; + + /** + * The container image run + * [ENTRYPOINT](https://docs.docker.com/engine/reference/builder/#entrypoint) as a list of + * strings. Accept the {@code CMD} as extra arguments. The combined size of {@code CMD} and + * {@code ENTRYPOINT} must be less than 2048 bytes. More information on how {@code CMD} and + * {@code ENTRYPOINT} interact are + * [here](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * + * @param entrypoint the value to set + * @return this builder + */ + public Builder entrypoint(java.util.List entrypoint) { + this.entrypoint = entrypoint; + this.__explicitlySet__.add("entrypoint"); + return this; + } + /** + * The digest of the container image. For example, {@code + * sha256:881303a6b2738834d795a32b4a98eb0e5e3d1cad590a712d1e04f9b2fa90a030} + */ + @com.fasterxml.jackson.annotation.JsonProperty("imageDigest") + private String imageDigest; + + /** + * The digest of the container image. For example, {@code + * sha256:881303a6b2738834d795a32b4a98eb0e5e3d1cad590a712d1e04f9b2fa90a030} + * + * @param imageDigest the value to set + * @return this builder + */ + public Builder imageDigest(String imageDigest) { + this.imageDigest = imageDigest; + this.__explicitlySet__.add("imageDigest"); + return this; + } + /** OCID of the container image signature */ + @com.fasterxml.jackson.annotation.JsonProperty("imageSignatureId") + private String imageSignatureId; + + /** + * OCID of the container image signature + * + * @param imageSignatureId the value to set + * @return this builder + */ + public Builder imageSignatureId(String imageSignatureId) { + this.imageSignatureId = imageSignatureId; + this.__explicitlySet__.add("imageSignatureId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PipelineOcirContainerConfigurationDetails build() { + PipelineOcirContainerConfigurationDetails model = + new PipelineOcirContainerConfigurationDetails( + this.image, + this.cmd, + this.entrypoint, + this.imageDigest, + this.imageSignatureId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PipelineOcirContainerConfigurationDetails model) { + if (model.wasPropertyExplicitlySet("image")) { + this.image(model.getImage()); + } + if (model.wasPropertyExplicitlySet("cmd")) { + this.cmd(model.getCmd()); + } + if (model.wasPropertyExplicitlySet("entrypoint")) { + this.entrypoint(model.getEntrypoint()); + } + if (model.wasPropertyExplicitlySet("imageDigest")) { + this.imageDigest(model.getImageDigest()); + } + if (model.wasPropertyExplicitlySet("imageSignatureId")) { + this.imageSignatureId(model.getImageSignatureId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PipelineOcirContainerConfigurationDetails( + String image, + java.util.List cmd, + java.util.List entrypoint, + String imageDigest, + String imageSignatureId) { + super(); + this.image = image; + this.cmd = cmd; + this.entrypoint = entrypoint; + this.imageDigest = imageDigest; + this.imageSignatureId = imageSignatureId; + } + + /** + * The full path to the Oracle Container Repository (OCIR) registry, image, and tag in a + * canonical format. + */ + @com.fasterxml.jackson.annotation.JsonProperty("image") + private final String image; + + /** + * The full path to the Oracle Container Repository (OCIR) registry, image, and tag in a + * canonical format. + * + * @return the value + */ + public String getImage() { + return image; + } + + /** + * The container image run [CMD](https://docs.docker.com/engine/reference/builder/#cmd) as a + * list of strings. Use {@code CMD} as arguments to the {@code ENTRYPOINT} or the only command + * to run in the absence of an {@code ENTRYPOINT}. The combined size of {@code CMD} and {@code + * ENTRYPOINT} must be less than 2048 bytes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("cmd") + private final java.util.List cmd; + + /** + * The container image run [CMD](https://docs.docker.com/engine/reference/builder/#cmd) as a + * list of strings. Use {@code CMD} as arguments to the {@code ENTRYPOINT} or the only command + * to run in the absence of an {@code ENTRYPOINT}. The combined size of {@code CMD} and {@code + * ENTRYPOINT} must be less than 2048 bytes. + * + * @return the value + */ + public java.util.List getCmd() { + return cmd; + } + + /** + * The container image run + * [ENTRYPOINT](https://docs.docker.com/engine/reference/builder/#entrypoint) as a list of + * strings. Accept the {@code CMD} as extra arguments. The combined size of {@code CMD} and + * {@code ENTRYPOINT} must be less than 2048 bytes. More information on how {@code CMD} and + * {@code ENTRYPOINT} interact are + * [here](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + */ + @com.fasterxml.jackson.annotation.JsonProperty("entrypoint") + private final java.util.List entrypoint; + + /** + * The container image run + * [ENTRYPOINT](https://docs.docker.com/engine/reference/builder/#entrypoint) as a list of + * strings. Accept the {@code CMD} as extra arguments. The combined size of {@code CMD} and + * {@code ENTRYPOINT} must be less than 2048 bytes. More information on how {@code CMD} and + * {@code ENTRYPOINT} interact are + * [here](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). + * + * @return the value + */ + public java.util.List getEntrypoint() { + return entrypoint; + } + + /** + * The digest of the container image. For example, {@code + * sha256:881303a6b2738834d795a32b4a98eb0e5e3d1cad590a712d1e04f9b2fa90a030} + */ + @com.fasterxml.jackson.annotation.JsonProperty("imageDigest") + private final String imageDigest; + + /** + * The digest of the container image. For example, {@code + * sha256:881303a6b2738834d795a32b4a98eb0e5e3d1cad590a712d1e04f9b2fa90a030} + * + * @return the value + */ + public String getImageDigest() { + return imageDigest; + } + + /** OCID of the container image signature */ + @com.fasterxml.jackson.annotation.JsonProperty("imageSignatureId") + private final String imageSignatureId; + + /** + * OCID of the container image signature + * + * @return the value + */ + public String getImageSignatureId() { + return imageSignatureId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PipelineOcirContainerConfigurationDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", image=").append(String.valueOf(this.image)); + sb.append(", cmd=").append(String.valueOf(this.cmd)); + sb.append(", entrypoint=").append(String.valueOf(this.entrypoint)); + sb.append(", imageDigest=").append(String.valueOf(this.imageDigest)); + sb.append(", imageSignatureId=").append(String.valueOf(this.imageSignatureId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PipelineOcirContainerConfigurationDetails)) { + return false; + } + + PipelineOcirContainerConfigurationDetails other = + (PipelineOcirContainerConfigurationDetails) o; + return java.util.Objects.equals(this.image, other.image) + && java.util.Objects.equals(this.cmd, other.cmd) + && java.util.Objects.equals(this.entrypoint, other.entrypoint) + && java.util.Objects.equals(this.imageDigest, other.imageDigest) + && java.util.Objects.equals(this.imageSignatureId, other.imageSignatureId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.image == null ? 43 : this.image.hashCode()); + result = (result * PRIME) + (this.cmd == null ? 43 : this.cmd.hashCode()); + result = (result * PRIME) + (this.entrypoint == null ? 43 : this.entrypoint.hashCode()); + result = (result * PRIME) + (this.imageDigest == null ? 43 : this.imageDigest.hashCode()); + result = + (result * PRIME) + + (this.imageSignatureId == null ? 43 : this.imageSignatureId.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineStepDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineStepDetails.java index a65169ccc1a..b196a8669ba 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineStepDetails.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineStepDetails.java @@ -22,6 +22,9 @@ property = "stepType", defaultImpl = PipelineStepDetails.class) @com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PipelineContainerStepDetails.class, + name = "CONTAINER"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = PipelineMLJobStepDetails.class, name = "ML_JOB"), @@ -163,6 +166,7 @@ public int hashCode() { public enum StepType implements com.oracle.bmc.http.internal.BmcEnum { MlJob("ML_JOB"), CustomScript("CUSTOM_SCRIPT"), + Container("CONTAINER"), /** * This value is used if a service returns a value for this enum that is not recognized by diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineStepOverrideDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineStepOverrideDetails.java index e2b7095faa5..a5bcc6877d6 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineStepOverrideDetails.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineStepOverrideDetails.java @@ -23,12 +23,19 @@ public final class PipelineStepOverrideDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"stepName", "stepConfigurationDetails"}) + @java.beans.ConstructorProperties({ + "stepName", + "stepConfigurationDetails", + "stepContainerConfigurationDetails" + }) public PipelineStepOverrideDetails( - String stepName, PipelineStepConfigurationDetails stepConfigurationDetails) { + String stepName, + PipelineStepConfigurationDetails stepConfigurationDetails, + PipelineContainerConfigurationDetails stepContainerConfigurationDetails) { super(); this.stepName = stepName; this.stepConfigurationDetails = stepConfigurationDetails; + this.stepContainerConfigurationDetails = stepContainerConfigurationDetails; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -59,12 +66,25 @@ public Builder stepConfigurationDetails( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("stepContainerConfigurationDetails") + private PipelineContainerConfigurationDetails stepContainerConfigurationDetails; + + public Builder stepContainerConfigurationDetails( + PipelineContainerConfigurationDetails stepContainerConfigurationDetails) { + this.stepContainerConfigurationDetails = stepContainerConfigurationDetails; + this.__explicitlySet__.add("stepContainerConfigurationDetails"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public PipelineStepOverrideDetails build() { PipelineStepOverrideDetails model = - new PipelineStepOverrideDetails(this.stepName, this.stepConfigurationDetails); + new PipelineStepOverrideDetails( + this.stepName, + this.stepConfigurationDetails, + this.stepContainerConfigurationDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -79,6 +99,10 @@ public Builder copy(PipelineStepOverrideDetails model) { if (model.wasPropertyExplicitlySet("stepConfigurationDetails")) { this.stepConfigurationDetails(model.getStepConfigurationDetails()); } + if (model.wasPropertyExplicitlySet("stepContainerConfigurationDetails")) { + this.stepContainerConfigurationDetails( + model.getStepContainerConfigurationDetails()); + } return this; } } @@ -112,6 +136,13 @@ public PipelineStepConfigurationDetails getStepConfigurationDetails() { return stepConfigurationDetails; } + @com.fasterxml.jackson.annotation.JsonProperty("stepContainerConfigurationDetails") + private final PipelineContainerConfigurationDetails stepContainerConfigurationDetails; + + public PipelineContainerConfigurationDetails getStepContainerConfigurationDetails() { + return stepContainerConfigurationDetails; + } + @Override public String toString() { return this.toString(true); @@ -130,6 +161,8 @@ public String toString(boolean includeByteArrayContents) { sb.append("stepName=").append(String.valueOf(this.stepName)); sb.append(", stepConfigurationDetails=") .append(String.valueOf(this.stepConfigurationDetails)); + sb.append(", stepContainerConfigurationDetails=") + .append(String.valueOf(this.stepContainerConfigurationDetails)); sb.append(")"); return sb.toString(); } @@ -147,6 +180,9 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.stepName, other.stepName) && java.util.Objects.equals( this.stepConfigurationDetails, other.stepConfigurationDetails) + && java.util.Objects.equals( + this.stepContainerConfigurationDetails, + other.stepContainerConfigurationDetails) && super.equals(other); } @@ -160,6 +196,11 @@ public int hashCode() { + (this.stepConfigurationDetails == null ? 43 : this.stepConfigurationDetails.hashCode()); + result = + (result * PRIME) + + (this.stepContainerConfigurationDetails == null + ? 43 + : this.stepContainerConfigurationDetails.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineStepRun.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineStepRun.java index c94be683b82..65bd1142764 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineStepRun.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineStepRun.java @@ -22,6 +22,9 @@ property = "stepType", defaultImpl = PipelineStepRun.class) @com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PipelineContainerStepRun.class, + name = "CONTAINER"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = PipelineCustomScriptStepRun.class, name = "CUSTOM_SCRIPT"), @@ -243,6 +246,7 @@ public int hashCode() { public enum StepType implements com.oracle.bmc.http.internal.BmcEnum { MlJob("ML_JOB"), CustomScript("CUSTOM_SCRIPT"), + Container("CONTAINER"), /** * This value is used if a service returns a value for this enum that is not recognized by diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineStepUpdateDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineStepUpdateDetails.java index 945d0afa070..106e6e4fb43 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineStepUpdateDetails.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineStepUpdateDetails.java @@ -27,7 +27,10 @@ name = "ML_JOB"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = PipelineCustomScriptStepUpdateDetails.class, - name = "CUSTOM_SCRIPT") + name = "CUSTOM_SCRIPT"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PipelineContainerStepUpdateDetails.class, + name = "CONTAINER") }) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) @@ -137,6 +140,7 @@ public int hashCode() { public enum StepType implements com.oracle.bmc.http.internal.BmcEnum { MlJob("ML_JOB"), CustomScript("CUSTOM_SCRIPT"), + Container("CONTAINER"), ; private final String value; diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdatePipelineDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdatePipelineDetails.java index 737a7465e9b..41b7975ce27 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdatePipelineDetails.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdatePipelineDetails.java @@ -27,6 +27,7 @@ public final class UpdatePipelineDetails "displayName", "description", "configurationDetails", + "infrastructureConfigurationDetails", "logConfigurationDetails", "stepDetails", "freeformTags", @@ -36,6 +37,7 @@ public UpdatePipelineDetails( String displayName, String description, PipelineConfigurationDetails configurationDetails, + PipelineInfrastructureConfigurationDetails infrastructureConfigurationDetails, PipelineLogConfigurationDetails logConfigurationDetails, java.util.List stepDetails, java.util.Map freeformTags, @@ -44,6 +46,7 @@ public UpdatePipelineDetails( this.displayName = displayName; this.description = description; this.configurationDetails = configurationDetails; + this.infrastructureConfigurationDetails = infrastructureConfigurationDetails; this.logConfigurationDetails = logConfigurationDetails; this.stepDetails = stepDetails; this.freeformTags = freeformTags; @@ -92,6 +95,16 @@ public Builder configurationDetails(PipelineConfigurationDetails configurationDe return this; } + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureConfigurationDetails") + private PipelineInfrastructureConfigurationDetails infrastructureConfigurationDetails; + + public Builder infrastructureConfigurationDetails( + PipelineInfrastructureConfigurationDetails infrastructureConfigurationDetails) { + this.infrastructureConfigurationDetails = infrastructureConfigurationDetails; + this.__explicitlySet__.add("infrastructureConfigurationDetails"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("logConfigurationDetails") private PipelineLogConfigurationDetails logConfigurationDetails; @@ -102,15 +115,15 @@ public Builder logConfigurationDetails( return this; } /** - * Array of update details for each step. Only step configurations are allowed to be - * updated. + * Array of update details for each step. Only step configurations and step infrastructure + * configurations are allowed to be updated. */ @com.fasterxml.jackson.annotation.JsonProperty("stepDetails") private java.util.List stepDetails; /** - * Array of update details for each step. Only step configurations are allowed to be - * updated. + * Array of update details for each step. Only step configurations and step infrastructure + * configurations are allowed to be updated. * * @param stepDetails the value to set * @return this builder @@ -175,6 +188,7 @@ public UpdatePipelineDetails build() { this.displayName, this.description, this.configurationDetails, + this.infrastructureConfigurationDetails, this.logConfigurationDetails, this.stepDetails, this.freeformTags, @@ -196,6 +210,10 @@ public Builder copy(UpdatePipelineDetails model) { if (model.wasPropertyExplicitlySet("configurationDetails")) { this.configurationDetails(model.getConfigurationDetails()); } + if (model.wasPropertyExplicitlySet("infrastructureConfigurationDetails")) { + this.infrastructureConfigurationDetails( + model.getInfrastructureConfigurationDetails()); + } if (model.wasPropertyExplicitlySet("logConfigurationDetails")) { this.logConfigurationDetails(model.getLogConfigurationDetails()); } @@ -254,6 +272,13 @@ public PipelineConfigurationDetails getConfigurationDetails() { return configurationDetails; } + @com.fasterxml.jackson.annotation.JsonProperty("infrastructureConfigurationDetails") + private final PipelineInfrastructureConfigurationDetails infrastructureConfigurationDetails; + + public PipelineInfrastructureConfigurationDetails getInfrastructureConfigurationDetails() { + return infrastructureConfigurationDetails; + } + @com.fasterxml.jackson.annotation.JsonProperty("logConfigurationDetails") private final PipelineLogConfigurationDetails logConfigurationDetails; @@ -262,13 +287,15 @@ public PipelineLogConfigurationDetails getLogConfigurationDetails() { } /** - * Array of update details for each step. Only step configurations are allowed to be updated. + * Array of update details for each step. Only step configurations and step infrastructure + * configurations are allowed to be updated. */ @com.fasterxml.jackson.annotation.JsonProperty("stepDetails") private final java.util.List stepDetails; /** - * Array of update details for each step. Only step configurations are allowed to be updated. + * Array of update details for each step. Only step configurations and step infrastructure + * configurations are allowed to be updated. * * @return the value */ @@ -334,6 +361,8 @@ public String toString(boolean includeByteArrayContents) { sb.append("displayName=").append(String.valueOf(this.displayName)); sb.append(", description=").append(String.valueOf(this.description)); sb.append(", configurationDetails=").append(String.valueOf(this.configurationDetails)); + sb.append(", infrastructureConfigurationDetails=") + .append(String.valueOf(this.infrastructureConfigurationDetails)); sb.append(", logConfigurationDetails=") .append(String.valueOf(this.logConfigurationDetails)); sb.append(", stepDetails=").append(String.valueOf(this.stepDetails)); @@ -356,6 +385,9 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.configurationDetails, other.configurationDetails) + && java.util.Objects.equals( + this.infrastructureConfigurationDetails, + other.infrastructureConfigurationDetails) && java.util.Objects.equals( this.logConfigurationDetails, other.logConfigurationDetails) && java.util.Objects.equals(this.stepDetails, other.stepDetails) @@ -375,6 +407,11 @@ public int hashCode() { + (this.configurationDetails == null ? 43 : this.configurationDetails.hashCode()); + result = + (result * PRIME) + + (this.infrastructureConfigurationDetails == null + ? 43 + : this.infrastructureConfigurationDetails.hashCode()); result = (result * PRIME) + (this.logConfigurationDetails == null diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/requests/CancelPipelineRunRequest.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/requests/CancelPipelineRunRequest.java index 5e7ddf2808b..c797b9438bc 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/requests/CancelPipelineRunRequest.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/requests/CancelPipelineRunRequest.java @@ -75,6 +75,13 @@ public String getOpcRetryToken() { public String getIfMatch() { return ifMatch; } + /** A boolean value to specify whether to terminate pipeline run gracefully. */ + private Boolean terminateGracefully; + + /** A boolean value to specify whether to terminate pipeline run gracefully. */ + public Boolean getTerminateGracefully() { + return terminateGracefully; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -164,6 +171,20 @@ public Builder ifMatch(String ifMatch) { return this; } + /** A boolean value to specify whether to terminate pipeline run gracefully. */ + private Boolean terminateGracefully = null; + + /** + * A boolean value to specify whether to terminate pipeline run gracefully. + * + * @param terminateGracefully the value to set + * @return this builder instance + */ + public Builder terminateGracefully(Boolean terminateGracefully) { + this.terminateGracefully = terminateGracefully; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -198,6 +219,7 @@ public Builder copy(CancelPipelineRunRequest o) { opcRequestId(o.getOpcRequestId()); opcRetryToken(o.getOpcRetryToken()); ifMatch(o.getIfMatch()); + terminateGracefully(o.getTerminateGracefully()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -236,8 +258,10 @@ public CancelPipelineRunRequest buildWithoutInvocationCallback() { request.opcRequestId = opcRequestId; request.opcRetryToken = opcRetryToken; request.ifMatch = ifMatch; + request.terminateGracefully = terminateGracefully; return request; - // new CancelPipelineRunRequest(pipelineRunId, opcRequestId, opcRetryToken, ifMatch); + // new CancelPipelineRunRequest(pipelineRunId, opcRequestId, opcRetryToken, ifMatch, + // terminateGracefully); } } @@ -251,7 +275,8 @@ public Builder toBuilder() { .pipelineRunId(pipelineRunId) .opcRequestId(opcRequestId) .opcRetryToken(opcRetryToken) - .ifMatch(ifMatch); + .ifMatch(ifMatch) + .terminateGracefully(terminateGracefully); } /** @@ -272,6 +297,7 @@ public String toString() { 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(",terminateGracefully=").append(String.valueOf(this.terminateGracefully)); sb.append(")"); return sb.toString(); } @@ -290,7 +316,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.pipelineRunId, other.pipelineRunId) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) - && java.util.Objects.equals(this.ifMatch, other.ifMatch); + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.terminateGracefully, other.terminateGracefully); } @Override @@ -305,6 +332,11 @@ public int hashCode() { (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.terminateGracefully == null + ? 43 + : this.terminateGracefully.hashCode()); return result; } } diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/requests/CreateJobRunRequest.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/requests/CreateJobRunRequest.java index 88ee3d5e54e..b9feaec5719 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/requests/CreateJobRunRequest.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/requests/CreateJobRunRequest.java @@ -54,6 +54,13 @@ public String getOpcRequestId() { public String getOpcRetryToken() { return opcRetryToken; } + /** URL to fetch the Resource Principal Token from the parent resource. */ + private String opcParentRptUrl; + + /** URL to fetch the Resource Principal Token from the parent resource. */ + public String getOpcParentRptUrl() { + return opcParentRptUrl; + } /** * Alternative accessor for the body parameter. @@ -129,6 +136,20 @@ public Builder opcRetryToken(String opcRetryToken) { return this; } + /** URL to fetch the Resource Principal Token from the parent resource. */ + private String opcParentRptUrl = null; + + /** + * URL to fetch the Resource Principal Token from the parent resource. + * + * @param opcParentRptUrl the value to set + * @return this builder instance + */ + public Builder opcParentRptUrl(String opcParentRptUrl) { + this.opcParentRptUrl = opcParentRptUrl; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -162,6 +183,7 @@ public Builder copy(CreateJobRunRequest o) { createJobRunDetails(o.getCreateJobRunDetails()); opcRequestId(o.getOpcRequestId()); opcRetryToken(o.getOpcRetryToken()); + opcParentRptUrl(o.getOpcParentRptUrl()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -211,8 +233,10 @@ public CreateJobRunRequest buildWithoutInvocationCallback() { request.createJobRunDetails = createJobRunDetails; request.opcRequestId = opcRequestId; request.opcRetryToken = opcRetryToken; + request.opcParentRptUrl = opcParentRptUrl; return request; - // new CreateJobRunRequest(createJobRunDetails, opcRequestId, opcRetryToken); + // new CreateJobRunRequest(createJobRunDetails, opcRequestId, opcRetryToken, + // opcParentRptUrl); } } @@ -225,7 +249,8 @@ public Builder toBuilder() { return new Builder() .createJobRunDetails(createJobRunDetails) .opcRequestId(opcRequestId) - .opcRetryToken(opcRetryToken); + .opcRetryToken(opcRetryToken) + .opcParentRptUrl(opcParentRptUrl); } /** @@ -245,6 +270,7 @@ public String toString() { sb.append(",createJobRunDetails=").append(String.valueOf(this.createJobRunDetails)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcParentRptUrl=").append(String.valueOf(this.opcParentRptUrl)); sb.append(")"); return sb.toString(); } @@ -262,7 +288,8 @@ public boolean equals(Object o) { return super.equals(o) && java.util.Objects.equals(this.createJobRunDetails, other.createJobRunDetails) && 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.opcParentRptUrl, other.opcParentRptUrl); } @Override @@ -278,6 +305,9 @@ public int hashCode() { result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = + (result * PRIME) + + (this.opcParentRptUrl == null ? 43 : this.opcParentRptUrl.hashCode()); return result; } } diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/requests/CreateModelDeploymentRequest.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/requests/CreateModelDeploymentRequest.java index 74c7afa64e6..865b2a15f64 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/requests/CreateModelDeploymentRequest.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/requests/CreateModelDeploymentRequest.java @@ -57,6 +57,13 @@ public String getOpcRequestId() { public String getOpcRetryToken() { return opcRetryToken; } + /** URL to fetch the Resource Principal Token from the parent resource. */ + private String opcParentRptUrl; + + /** URL to fetch the Resource Principal Token from the parent resource. */ + public String getOpcParentRptUrl() { + return opcParentRptUrl; + } /** * Alternative accessor for the body parameter. @@ -135,6 +142,20 @@ public Builder opcRetryToken(String opcRetryToken) { return this; } + /** URL to fetch the Resource Principal Token from the parent resource. */ + private String opcParentRptUrl = null; + + /** + * URL to fetch the Resource Principal Token from the parent resource. + * + * @param opcParentRptUrl the value to set + * @return this builder instance + */ + public Builder opcParentRptUrl(String opcParentRptUrl) { + this.opcParentRptUrl = opcParentRptUrl; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -168,6 +189,7 @@ public Builder copy(CreateModelDeploymentRequest o) { createModelDeploymentDetails(o.getCreateModelDeploymentDetails()); opcRequestId(o.getOpcRequestId()); opcRetryToken(o.getOpcRetryToken()); + opcParentRptUrl(o.getOpcParentRptUrl()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -217,9 +239,10 @@ public CreateModelDeploymentRequest buildWithoutInvocationCallback() { request.createModelDeploymentDetails = createModelDeploymentDetails; request.opcRequestId = opcRequestId; request.opcRetryToken = opcRetryToken; + request.opcParentRptUrl = opcParentRptUrl; return request; // new CreateModelDeploymentRequest(createModelDeploymentDetails, opcRequestId, - // opcRetryToken); + // opcRetryToken, opcParentRptUrl); } } @@ -232,7 +255,8 @@ public Builder toBuilder() { return new Builder() .createModelDeploymentDetails(createModelDeploymentDetails) .opcRequestId(opcRequestId) - .opcRetryToken(opcRetryToken); + .opcRetryToken(opcRetryToken) + .opcParentRptUrl(opcParentRptUrl); } /** @@ -253,6 +277,7 @@ public String toString() { .append(String.valueOf(this.createModelDeploymentDetails)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcParentRptUrl=").append(String.valueOf(this.opcParentRptUrl)); sb.append(")"); return sb.toString(); } @@ -271,7 +296,8 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.createModelDeploymentDetails, other.createModelDeploymentDetails) && 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.opcParentRptUrl, other.opcParentRptUrl); } @Override @@ -287,6 +313,9 @@ public int hashCode() { result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = + (result * PRIME) + + (this.opcParentRptUrl == null ? 43 : this.opcParentRptUrl.hashCode()); return result; } } diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/requests/CreatePipelineRunRequest.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/requests/CreatePipelineRunRequest.java index 2c947e02a02..47702063c70 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/requests/CreatePipelineRunRequest.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/requests/CreatePipelineRunRequest.java @@ -54,6 +54,13 @@ public String getOpcRetryToken() { public String getOpcRequestId() { return opcRequestId; } + /** URL to fetch the Resource Principal Token from the parent resource. */ + private String opcParentRptUrl; + + /** URL to fetch the Resource Principal Token from the parent resource. */ + public String getOpcParentRptUrl() { + return opcParentRptUrl; + } /** * Alternative accessor for the body parameter. @@ -132,6 +139,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** URL to fetch the Resource Principal Token from the parent resource. */ + private String opcParentRptUrl = null; + + /** + * URL to fetch the Resource Principal Token from the parent resource. + * + * @param opcParentRptUrl the value to set + * @return this builder instance + */ + public Builder opcParentRptUrl(String opcParentRptUrl) { + this.opcParentRptUrl = opcParentRptUrl; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -165,6 +186,7 @@ public Builder copy(CreatePipelineRunRequest o) { createPipelineRunDetails(o.getCreatePipelineRunDetails()); opcRetryToken(o.getOpcRetryToken()); opcRequestId(o.getOpcRequestId()); + opcParentRptUrl(o.getOpcParentRptUrl()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -214,8 +236,10 @@ public CreatePipelineRunRequest buildWithoutInvocationCallback() { request.createPipelineRunDetails = createPipelineRunDetails; request.opcRetryToken = opcRetryToken; request.opcRequestId = opcRequestId; + request.opcParentRptUrl = opcParentRptUrl; return request; - // new CreatePipelineRunRequest(createPipelineRunDetails, opcRetryToken, opcRequestId); + // new CreatePipelineRunRequest(createPipelineRunDetails, opcRetryToken, opcRequestId, + // opcParentRptUrl); } } @@ -228,7 +252,8 @@ public Builder toBuilder() { return new Builder() .createPipelineRunDetails(createPipelineRunDetails) .opcRetryToken(opcRetryToken) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .opcParentRptUrl(opcParentRptUrl); } /** @@ -249,6 +274,7 @@ public String toString() { .append(String.valueOf(this.createPipelineRunDetails)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcParentRptUrl=").append(String.valueOf(this.opcParentRptUrl)); sb.append(")"); return sb.toString(); } @@ -267,7 +293,8 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.createPipelineRunDetails, other.createPipelineRunDetails) && 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.opcParentRptUrl, other.opcParentRptUrl); } @Override @@ -283,6 +310,9 @@ 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.opcParentRptUrl == null ? 43 : this.opcParentRptUrl.hashCode()); return result; } } diff --git a/bmc-datascience/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-datascience/reflect-config.json b/bmc-datascience/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-datascience/reflect-config.json index 83f92c21f9e..b59cfcfa469 100644 --- a/bmc-datascience/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-datascience/reflect-config.json +++ b/bmc-datascience/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-datascience/reflect-config.json @@ -1228,6 +1228,61 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datascience.model.PipelineContainerConfigurationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datascience.model.PipelineContainerConfigurationDetails$ContainerType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datascience.model.PipelineContainerStepDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datascience.model.PipelineContainerStepDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datascience.model.PipelineContainerStepRun", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datascience.model.PipelineContainerStepRun$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datascience.model.PipelineContainerStepUpdateDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datascience.model.PipelineContainerStepUpdateDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.datascience.model.PipelineCustomScriptStepDetails", @@ -1360,6 +1415,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datascience.model.PipelineOcirContainerConfigurationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datascience.model.PipelineOcirContainerConfigurationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.datascience.model.PipelineRun", diff --git a/bmc-desktops/pom.xml b/bmc-desktops/pom.xml index ed86bb99943..b5cbce8fb79 100644 --- a/bmc-desktops/pom.xml +++ b/bmc-desktops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-desktops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-devops/pom.xml b/bmc-devops/pom.xml index 8cd8998c71a..efc5534f905 100644 --- a/bmc-devops/pom.xml +++ b/bmc-devops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-devops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-disasterrecovery/pom.xml b/bmc-disasterrecovery/pom.xml index c695fdb8a08..eb4e2af195f 100644 --- a/bmc-disasterrecovery/pom.xml +++ b/bmc-disasterrecovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-disasterrecovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-dns/pom.xml b/bmc-dns/pom.xml index d332d3cd8c5..93f90b2cb72 100644 --- a/bmc-dns/pom.xml +++ b/bmc-dns/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.41.2 + 3.41.3 diff --git a/bmc-dts/pom.xml b/bmc-dts/pom.xml index b995b204afd..4dfee203b81 100644 --- a/bmc-dts/pom.xml +++ b/bmc-dts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-dts @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-email/pom.xml b/bmc-email/pom.xml index d709ba633fd..ae5942cd5a3 100644 --- a/bmc-email/pom.xml +++ b/bmc-email/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-emaildataplane/pom.xml b/bmc-emaildataplane/pom.xml index 9750da7fe6d..460fa487a9b 100644 --- a/bmc-emaildataplane/pom.xml +++ b/bmc-emaildataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-emaildataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-emwarehouse/pom.xml b/bmc-emwarehouse/pom.xml index 2a0587f88af..41926ed596d 100644 --- a/bmc-emwarehouse/pom.xml +++ b/bmc-emwarehouse/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-emwarehouse @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-encryption/pom.xml b/bmc-encryption/pom.xml index 753cac73330..ee2ae799c74 100644 --- a/bmc-encryption/pom.xml +++ b/bmc-encryption/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml @@ -18,17 +18,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.41.2 + 3.41.3 com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.41.2 + 3.41.3 com.fasterxml.jackson.core @@ -43,7 +43,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.41.2 + 3.41.3 test diff --git a/bmc-enforcer-rules/pom.xml b/bmc-enforcer-rules/pom.xml index 7ff5907b734..30866f1be75 100644 --- a/bmc-enforcer-rules/pom.xml +++ b/bmc-enforcer-rules/pom.xml @@ -6,7 +6,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 oci-java-sdk-enforcer-rules diff --git a/bmc-events/pom.xml b/bmc-events/pom.xml index 1f7b784321e..ce40639dd6c 100644 --- a/bmc-events/pom.xml +++ b/bmc-events/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-events @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-examples/pom.xml b/bmc-examples/pom.xml index 46543875b93..d82e2c3b826 100644 --- a/bmc-examples/pom.xml +++ b/bmc-examples/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-examples @@ -71,14 +71,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.41.2 + 3.41.3 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.41.2 + 3.41.3 pom import @@ -689,5 +689,9 @@ com.oracle.oci.sdk oci-java-sdk-marketplaceprivateoffer + + com.oracle.oci.sdk + oci-java-sdk-resourcescheduler + \ No newline at end of file diff --git a/bmc-filestorage/pom.xml b/bmc-filestorage/pom.xml index deae1fe5234..8ec64f62a4f 100644 --- a/bmc-filestorage/pom.xml +++ b/bmc-filestorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-fleetsoftwareupdate/pom.xml b/bmc-fleetsoftwareupdate/pom.xml index fd3b7ebe9ee..9337968c8e5 100644 --- a/bmc-fleetsoftwareupdate/pom.xml +++ b/bmc-fleetsoftwareupdate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-fleetsoftwareupdate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-full/pom.xml b/bmc-full/pom.xml index 90df942acc9..4b1c3fb8b16 100644 --- a/bmc-full/pom.xml +++ b/bmc-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-full @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.41.2 + 3.41.3 pom import @@ -587,5 +587,9 @@ com.oracle.oci.sdk oci-java-sdk-marketplaceprivateoffer
+ + com.oracle.oci.sdk + oci-java-sdk-resourcescheduler + \ No newline at end of file diff --git a/bmc-functions/pom.xml b/bmc-functions/pom.xml index d10237b9049..fe66f71f69f 100644 --- a/bmc-functions/pom.xml +++ b/bmc-functions/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-functions @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-fusionapps/pom.xml b/bmc-fusionapps/pom.xml index 4df15412c48..4f645c7ef79 100644 --- a/bmc-fusionapps/pom.xml +++ b/bmc-fusionapps/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-fusionapps @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-generativeai/pom.xml b/bmc-generativeai/pom.xml index 4fee11eeb50..bdd6f3bd9e2 100644 --- a/bmc-generativeai/pom.xml +++ b/bmc-generativeai/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-generativeai @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-generativeaiinference/pom.xml b/bmc-generativeaiinference/pom.xml index 77bd174802e..3ab624346e1 100644 --- a/bmc-generativeaiinference/pom.xml +++ b/bmc-generativeaiinference/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-generativeaiinference @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-genericartifactscontent/pom.xml b/bmc-genericartifactscontent/pom.xml index a70896e75b9..d0ef64c0a71 100644 --- a/bmc-genericartifactscontent/pom.xml +++ b/bmc-genericartifactscontent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-genericartifactscontent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-globallydistributeddatabase/pom.xml b/bmc-globallydistributeddatabase/pom.xml index 3ca637effdb..83ef4431ae2 100644 --- a/bmc-globallydistributeddatabase/pom.xml +++ b/bmc-globallydistributeddatabase/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-globallydistributeddatabase @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-goldengate/pom.xml b/bmc-goldengate/pom.xml index b105e14d91a..b44893d80ce 100644 --- a/bmc-goldengate/pom.xml +++ b/bmc-goldengate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-goldengate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-governancerulescontrolplane/pom.xml b/bmc-governancerulescontrolplane/pom.xml index 1f8dce7f641..fba8d39d7ee 100644 --- a/bmc-governancerulescontrolplane/pom.xml +++ b/bmc-governancerulescontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-governancerulescontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-healthchecks/pom.xml b/bmc-healthchecks/pom.xml index be31e988a5d..ff187936009 100644 --- a/bmc-healthchecks/pom.xml +++ b/bmc-healthchecks/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-healthchecks @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-identity/pom.xml b/bmc-identity/pom.xml index a93595fd234..322c443299e 100644 --- a/bmc-identity/pom.xml +++ b/bmc-identity/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-identitydataplane/pom.xml b/bmc-identitydataplane/pom.xml index 2d57c82f17f..29049d9f0d7 100644 --- a/bmc-identitydataplane/pom.xml +++ b/bmc-identitydataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-identitydataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-identitydomains/pom.xml b/bmc-identitydomains/pom.xml index 4d7b71013bd..5c2468cee28 100644 --- a/bmc-identitydomains/pom.xml +++ b/bmc-identitydomains/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-identitydomains @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-integration/pom.xml b/bmc-integration/pom.xml index e9ab43e4c61..cc2ebb1e4ca 100644 --- a/bmc-integration/pom.xml +++ b/bmc-integration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-integration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-jms/pom.xml b/bmc-jms/pom.xml index 1ec62ec3de7..20733f00a3e 100644 --- a/bmc-jms/pom.xml +++ b/bmc-jms/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-jms @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-jmsjavadownloads/pom.xml b/bmc-jmsjavadownloads/pom.xml index 5efd74c4691..49d1df19544 100644 --- a/bmc-jmsjavadownloads/pom.xml +++ b/bmc-jmsjavadownloads/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-jmsjavadownloads @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-keymanagement/pom.xml b/bmc-keymanagement/pom.xml index 82e7c0bfb5a..208b0aaf992 100644 --- a/bmc-keymanagement/pom.xml +++ b/bmc-keymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-keymanagement @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-licensemanager/pom.xml b/bmc-licensemanager/pom.xml index 79cc8dd7326..dcfea2a733c 100644 --- a/bmc-licensemanager/pom.xml +++ b/bmc-licensemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-licensemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-limits/pom.xml b/bmc-limits/pom.xml index de37669c25a..332ec4f6517 100644 --- a/bmc-limits/pom.xml +++ b/bmc-limits/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-limits @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-loadbalancer/pom.xml b/bmc-loadbalancer/pom.xml index cda174b5ae4..155400fce6e 100644 --- a/bmc-loadbalancer/pom.xml +++ b/bmc-loadbalancer/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-lockbox/pom.xml b/bmc-lockbox/pom.xml index 0900459dcd8..fb50e917d4d 100644 --- a/bmc-lockbox/pom.xml +++ b/bmc-lockbox/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-lockbox @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-loganalytics/pom.xml b/bmc-loganalytics/pom.xml index b939ec87e16..6d9e646059b 100644 --- a/bmc-loganalytics/pom.xml +++ b/bmc-loganalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-loganalytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-logging/pom.xml b/bmc-logging/pom.xml index 205e93dd9ad..87aec9c6b52 100644 --- a/bmc-logging/pom.xml +++ b/bmc-logging/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-logging @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-loggingingestion/pom.xml b/bmc-loggingingestion/pom.xml index c757f482300..36a204679f0 100644 --- a/bmc-loggingingestion/pom.xml +++ b/bmc-loggingingestion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-loggingingestion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-loggingsearch/pom.xml b/bmc-loggingsearch/pom.xml index b4196e5b959..04e7f1a9d65 100644 --- a/bmc-loggingsearch/pom.xml +++ b/bmc-loggingsearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-loggingsearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-managementagent/pom.xml b/bmc-managementagent/pom.xml index c07ca163c2c..f447ac6c79f 100644 --- a/bmc-managementagent/pom.xml +++ b/bmc-managementagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-managementagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-managementdashboard/pom.xml b/bmc-managementdashboard/pom.xml index 50ca7981f0b..0e06dc7a398 100644 --- a/bmc-managementdashboard/pom.xml +++ b/bmc-managementdashboard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-managementdashboard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-marketplace/pom.xml b/bmc-marketplace/pom.xml index 0eae17e62c8..b070657ae21 100644 --- a/bmc-marketplace/pom.xml +++ b/bmc-marketplace/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-marketplace @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-marketplaceprivateoffer/pom.xml b/bmc-marketplaceprivateoffer/pom.xml index 4ba4a96a3ba..6f7b71d511d 100644 --- a/bmc-marketplaceprivateoffer/pom.xml +++ b/bmc-marketplaceprivateoffer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-marketplaceprivateoffer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-marketplacepublisher/pom.xml b/bmc-marketplacepublisher/pom.xml index df1d9b2a5aa..3d14d60ea1d 100644 --- a/bmc-marketplacepublisher/pom.xml +++ b/bmc-marketplacepublisher/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-marketplacepublisher @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-mediaservices/pom.xml b/bmc-mediaservices/pom.xml index 1ea7f32f273..f0f71719c61 100644 --- a/bmc-mediaservices/pom.xml +++ b/bmc-mediaservices/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-mediaservices @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-monitoring/pom.xml b/bmc-monitoring/pom.xml index ee76de750e5..15df52fcd5c 100644 --- a/bmc-monitoring/pom.xml +++ b/bmc-monitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-monitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-mysql/pom.xml b/bmc-mysql/pom.xml index 3441a48c06e..86242b22fe2 100644 --- a/bmc-mysql/pom.xml +++ b/bmc-mysql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-mysql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-networkfirewall/pom.xml b/bmc-networkfirewall/pom.xml index aa10c51e07b..b043b59f4cd 100644 --- a/bmc-networkfirewall/pom.xml +++ b/bmc-networkfirewall/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-networkfirewall @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-networkloadbalancer/pom.xml b/bmc-networkloadbalancer/pom.xml index 4f69cc2680e..8916b11c903 100644 --- a/bmc-networkloadbalancer/pom.xml +++ b/bmc-networkloadbalancer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-networkloadbalancer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-nosql/pom.xml b/bmc-nosql/pom.xml index 0de0720951f..b32f3fef394 100644 --- a/bmc-nosql/pom.xml +++ b/bmc-nosql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-nosql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-objectstorage/bmc-objectstorage-combined/pom.xml b/bmc-objectstorage/bmc-objectstorage-combined/pom.xml index e78a7fced38..3a4c0a5a9ef 100644 --- a/bmc-objectstorage/bmc-objectstorage-combined/pom.xml +++ b/bmc-objectstorage/bmc-objectstorage-combined/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-parent - 3.41.2 + 3.41.3 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.41.2 + 3.41.3 com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 3.41.2 + 3.41.3 diff --git a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml index 647af00a8c1..d563fa67262 100644 --- a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml +++ b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-parent - 3.41.2 + 3.41.3 ../pom.xml @@ -18,17 +18,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.41.2 + 3.41.3 com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.41.2 + 3.41.3 org.slf4j diff --git a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml index 3f00429037f..f31d00aeee0 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml +++ b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-parent - 3.41.2 + 3.41.3 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-objectstorage/pom.xml b/bmc-objectstorage/pom.xml index 102a1c54d98..8c23b822b36 100644 --- a/bmc-objectstorage/pom.xml +++ b/bmc-objectstorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml diff --git a/bmc-oce/pom.xml b/bmc-oce/pom.xml index 8f43c879724..5d9a3647cc2 100644 --- a/bmc-oce/pom.xml +++ b/bmc-oce/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-oce @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-ocicontrolcenter/pom.xml b/bmc-ocicontrolcenter/pom.xml index c65f721f54d..b1c4ff9a96d 100644 --- a/bmc-ocicontrolcenter/pom.xml +++ b/bmc-ocicontrolcenter/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-ocicontrolcenter @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-ocvp/pom.xml b/bmc-ocvp/pom.xml index 3a75e248b86..68c9d4f3263 100644 --- a/bmc-ocvp/pom.xml +++ b/bmc-ocvp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-ocvp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-oda/pom.xml b/bmc-oda/pom.xml index b692a39e054..64d3ae552ac 100644 --- a/bmc-oda/pom.xml +++ b/bmc-oda/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-oda @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-onesubscription/pom.xml b/bmc-onesubscription/pom.xml index 476fe441099..611132c7584 100644 --- a/bmc-onesubscription/pom.xml +++ b/bmc-onesubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-onesubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-ons/pom.xml b/bmc-ons/pom.xml index b6ba96d0a12..b87ff194632 100644 --- a/bmc-ons/pom.xml +++ b/bmc-ons/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-ons @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-opa/pom.xml b/bmc-opa/pom.xml index 689caeb9451..025f53ddf03 100644 --- a/bmc-opa/pom.xml +++ b/bmc-opa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-opa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-opensearch/pom.xml b/bmc-opensearch/pom.xml index 137bd2aa18e..58c947595b4 100644 --- a/bmc-opensearch/pom.xml +++ b/bmc-opensearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-opensearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-operatoraccesscontrol/pom.xml b/bmc-operatoraccesscontrol/pom.xml index 076cd24b12d..9e428bfa0af 100644 --- a/bmc-operatoraccesscontrol/pom.xml +++ b/bmc-operatoraccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-operatoraccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-opsi/pom.xml b/bmc-opsi/pom.xml index a891d24bea6..24755e46bd3 100644 --- a/bmc-opsi/pom.xml +++ b/bmc-opsi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-opsi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-optimizer/pom.xml b/bmc-optimizer/pom.xml index 38f664d4a37..fa3a74780eb 100644 --- a/bmc-optimizer/pom.xml +++ b/bmc-optimizer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-optimizer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-osmanagement/pom.xml b/bmc-osmanagement/pom.xml index 48833eb6fce..4afd9409e98 100644 --- a/bmc-osmanagement/pom.xml +++ b/bmc-osmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-osmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-osmanagementhub/pom.xml b/bmc-osmanagementhub/pom.xml index 9ecaf35f327..70756a45a37 100644 --- a/bmc-osmanagementhub/pom.xml +++ b/bmc-osmanagementhub/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-osmanagementhub @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-ospgateway/pom.xml b/bmc-ospgateway/pom.xml index ec93b63f178..752d117fc15 100644 --- a/bmc-ospgateway/pom.xml +++ b/bmc-ospgateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-ospgateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-osubbillingschedule/pom.xml b/bmc-osubbillingschedule/pom.xml index e93a1719e9c..dae70d5a3c7 100644 --- a/bmc-osubbillingschedule/pom.xml +++ b/bmc-osubbillingschedule/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-osubbillingschedule @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-osuborganizationsubscription/pom.xml b/bmc-osuborganizationsubscription/pom.xml index e3ece6f86ba..fff629fca04 100644 --- a/bmc-osuborganizationsubscription/pom.xml +++ b/bmc-osuborganizationsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-osuborganizationsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-osubsubscription/pom.xml b/bmc-osubsubscription/pom.xml index a4943317d57..60529dc09cf 100644 --- a/bmc-osubsubscription/pom.xml +++ b/bmc-osubsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-osubsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-osubusage/pom.xml b/bmc-osubusage/pom.xml index 336aabd8f42..176b6ccd48f 100644 --- a/bmc-osubusage/pom.xml +++ b/bmc-osubusage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-osubusage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ 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 fd66cafa3ed..1da5ac9b143 100644 --- a/bmc-other-examples/bmc-jersey-examples/pom.xml +++ b/bmc-other-examples/bmc-jersey-examples/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk-jersey-examples - 3.41.2 + 3.41.3 Oracle Cloud Infrastructure SDK - Examples using Jersey 2 HTTP client This project contains the examples on how to use the SDK used for Oracle Cloud Infrastructure with the Jersey 2 HTTP client https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm @@ -49,7 +49,7 @@ com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.41.2 + 3.41.3 false @@ -86,14 +86,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.41.2 + 3.41.3 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.41.2 + 3.41.3 pom import diff --git a/bmc-other-examples/bmc-jersey3-examples/pom.xml b/bmc-other-examples/bmc-jersey3-examples/pom.xml index 2dd7df1383e..279185ac644 100644 --- a/bmc-other-examples/bmc-jersey3-examples/pom.xml +++ b/bmc-other-examples/bmc-jersey3-examples/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk-jersey3-examples - 3.41.2 + 3.41.3 Oracle Cloud Infrastructure SDK - Examples using Jersey 3 HTTP client This project contains the examples on how to use the SDK used for Oracle Cloud Infrastructure with the Jersey 3 HTTP client https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm @@ -49,7 +49,7 @@ com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.41.2 + 3.41.3 false @@ -86,14 +86,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.41.2 + 3.41.3 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.41.2 + 3.41.3 pom import diff --git a/bmc-other-examples/native-maven-example/pom.xml b/bmc-other-examples/native-maven-example/pom.xml index 909db0c6891..61271077013 100644 --- a/bmc-other-examples/native-maven-example/pom.xml +++ b/bmc-other-examples/native-maven-example/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk-examples-native - 3.41.2 + 3.41.3 Oracle Cloud Infrastructure SDK - Native Example This project contains an example on how to use the SDK used for Oracle Cloud Infrastructure in a native executable https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm @@ -89,14 +89,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.41.2 + 3.41.3 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.41.2 + 3.41.3 pom import diff --git a/bmc-other-examples/pom.xml b/bmc-other-examples/pom.xml index 830bb448edd..384c1d12d7b 100644 --- a/bmc-other-examples/pom.xml +++ b/bmc-other-examples/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml diff --git a/bmc-psql/pom.xml b/bmc-psql/pom.xml index cceef26c849..d71ea8fb261 100644 --- a/bmc-psql/pom.xml +++ b/bmc-psql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-psql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-queue/pom.xml b/bmc-queue/pom.xml index d58085fcfec..396e8f8a483 100644 --- a/bmc-queue/pom.xml +++ b/bmc-queue/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-queue @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-recovery/pom.xml b/bmc-recovery/pom.xml index e1eb35e0ffb..59b57dd0dcc 100644 --- a/bmc-recovery/pom.xml +++ b/bmc-recovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-recovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-redis/pom.xml b/bmc-redis/pom.xml index 5db9ddcd579..7a7527057a7 100644 --- a/bmc-redis/pom.xml +++ b/bmc-redis/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-redis @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-resourcemanager/pom.xml b/bmc-resourcemanager/pom.xml index c4219d6506a..5a565c3939a 100644 --- a/bmc-resourcemanager/pom.xml +++ b/bmc-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-resourcemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-resourcescheduler/pom.xml b/bmc-resourcescheduler/pom.xml new file mode 100644 index 00000000000..1116ebd7b56 --- /dev/null +++ b/bmc-resourcescheduler/pom.xml @@ -0,0 +1,21 @@ + + + 4.0.0 + + com.oracle.oci.sdk + oci-java-sdk + 3.41.3 + ../pom.xml + + oci-java-sdk-resourcescheduler + Oracle Cloud Infrastructure SDK - Resource Scheduler + This project contains the SDK used for Oracle Cloud Infrastructure Resource Scheduler + https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm + + + com.oracle.oci.sdk + oci-java-sdk-common + 3.41.3 + + + \ No newline at end of file diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/Schedule.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/Schedule.java new file mode 100644 index 00000000000..9315788d702 --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/Schedule.java @@ -0,0 +1,284 @@ +/** + * 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.resourcescheduler; + +import com.oracle.bmc.resourcescheduler.requests.*; +import com.oracle.bmc.resourcescheduler.responses.*; + +/** + * Use the Resource scheduler API to manage schedules, to perform actions on a collection of + * resources. 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: 20240430") +public interface Schedule 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); + + /** + * This API activates a schedule. + * + * @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 ActivateSchedule + * API. + */ + ActivateScheduleResponse activateSchedule(ActivateScheduleRequest request); + + /** + * This API cancels a work request. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use CancelWorkRequest + * API. + */ + CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest request); + + /** + * Creates a Schedule + * + * @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 CreateSchedule API. + */ + CreateScheduleResponse createSchedule(CreateScheduleRequest request); + + /** + * This API deactivates a schedule. + * + * @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 DeactivateSchedule + * API. + */ + DeactivateScheduleResponse deactivateSchedule(DeactivateScheduleRequest request); + + /** + * This API deletes a schedule. + * + * @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 DeleteSchedule API. + */ + DeleteScheduleResponse deleteSchedule(DeleteScheduleRequest request); + + /** + * This API gets information about a schedule. + * + * @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 GetSchedule API. + */ + GetScheduleResponse getSchedule(GetScheduleRequest request); + + /** + * This API gets the details of a work request. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use GetWorkRequest API. + */ + GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request); + + /** + * This API gets a list of schedule resource types. + * + * @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 ListResourceTypes + * API. + */ + ListResourceTypesResponse listResourceTypes(ListResourceTypesRequest request); + + /** + * This API gets a list of schedules + * + * @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 ListSchedules API. + */ + ListSchedulesResponse listSchedules(ListSchedulesRequest request); + + /** + * This API lists the errors for a work request. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

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

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

Example: Click here to see how to use ListWorkRequests + * API. + */ + ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request); + + /** + * The API updates a schedule + * + * @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 UpdateSchedule API. + */ + UpdateScheduleResponse updateSchedule(UpdateScheduleRequest request); + + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + ScheduleWaiters 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. + */ + SchedulePaginators getPaginators(); +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/ScheduleAsync.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/ScheduleAsync.java new file mode 100644 index 00000000000..34d16143b0e --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/ScheduleAsync.java @@ -0,0 +1,263 @@ +/** + * 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.resourcescheduler; + +import com.oracle.bmc.resourcescheduler.requests.*; +import com.oracle.bmc.resourcescheduler.responses.*; + +/** + * Use the Resource scheduler API to manage schedules, to perform actions on a collection of + * resources. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public interface ScheduleAsync 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); + + /** + * This API activates a schedule. + * + * @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 activateSchedule( + ActivateScheduleRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * This API cancels a work request. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future cancelWorkRequest( + CancelWorkRequestRequest request, + com.oracle.bmc.responses.AsyncHandler< + CancelWorkRequestRequest, CancelWorkRequestResponse> + handler); + + /** + * Creates a Schedule + * + * @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 createSchedule( + CreateScheduleRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * This API deactivates a schedule. + * + * @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 deactivateSchedule( + DeactivateScheduleRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeactivateScheduleRequest, DeactivateScheduleResponse> + handler); + + /** + * This API deletes a schedule. + * + * @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 deleteSchedule( + DeleteScheduleRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * This API gets information about a schedule. + * + * @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 getSchedule( + GetScheduleRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * This API gets the details of a work request. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getWorkRequest( + GetWorkRequestRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * This API gets a list of schedule resource types. + * + * @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 listResourceTypes( + ListResourceTypesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListResourceTypesRequest, ListResourceTypesResponse> + handler); + + /** + * This API gets a list of schedules + * + * @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 listSchedules( + ListSchedulesRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * This API lists the errors for a work request. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listWorkRequestErrors( + ListWorkRequestErrorsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse> + handler); + + /** + * Lists the logs for a work request. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listWorkRequestLogs( + ListWorkRequestLogsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse> + handler); + + /** + * Lists the cloud scheduler work requests in a compartment. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listWorkRequests( + ListWorkRequestsRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * The API updates a schedule + * + * @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 updateSchedule( + UpdateScheduleRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/ScheduleAsyncClient.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/ScheduleAsyncClient.java new file mode 100644 index 00000000000..83cf4ed90be --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/ScheduleAsyncClient.java @@ -0,0 +1,657 @@ +/** + * 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.resourcescheduler; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.resourcescheduler.requests.*; +import com.oracle.bmc.resourcescheduler.responses.*; + +import java.util.Objects; + +/** + * Async client implementation for Schedule 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: 20240430") +public class ScheduleAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient + implements ScheduleAsync { + /** Service instance for Schedule. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName("SCHEDULE") + .serviceEndpointPrefix("") + .serviceEndpointTemplate( + "https://resource-scheduler.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ScheduleAsyncClient.class); + + ScheduleAsyncClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + super(builder, authenticationDetailsProvider); + } + + /** + * Create a builder for this client. + * + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be + * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder { + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "resourcescheduler"; + com.oracle.bmc.internal.Alloy.throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public ScheduleAsyncClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new ScheduleAsyncClient(this, authenticationDetailsProvider); + } + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + super.setRegion(region); + } + + @Override + public void setRegion(String regionId) { + super.setRegion(regionId); + } + + @Override + public java.util.concurrent.Future activateSchedule( + ActivateScheduleRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ActivateScheduleRequest, ActivateScheduleResponse> + handler) { + + Validate.notBlank(request.getScheduleId(), "scheduleId must not be blank"); + + return clientCall(request, ActivateScheduleResponse::builder) + .logger(LOG, "activateSchedule") + .serviceDetails("Schedule", "ActivateSchedule", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ActivateScheduleRequest::builder) + .basePath("/20240430") + .appendPathParam("schedules") + .appendPathParam(request.getScheduleId()) + .appendPathParam("actions") + .appendPathParam("activateSchedule") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .handleBody( + com.oracle.bmc.resourcescheduler.model.Schedule.class, + ActivateScheduleResponse.Builder::schedule) + .handleResponseHeaderString( + "opc-request-id", ActivateScheduleResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", ActivateScheduleResponse.Builder::etag) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future cancelWorkRequest( + CancelWorkRequestRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CancelWorkRequestRequest, CancelWorkRequestResponse> + handler) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, CancelWorkRequestResponse::builder) + .logger(LOG, "cancelWorkRequest") + .serviceDetails("Schedule", "CancelWorkRequest", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(CancelWorkRequestRequest::builder) + .basePath("/20240430") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", CancelWorkRequestResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future createSchedule( + CreateScheduleRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateScheduleRequest, CreateScheduleResponse> + handler) { + Objects.requireNonNull( + request.getCreateScheduleDetails(), "createScheduleDetails is required"); + + return clientCall(request, CreateScheduleResponse::builder) + .logger(LOG, "createSchedule") + .serviceDetails("Schedule", "CreateSchedule", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateScheduleRequest::builder) + .basePath("/20240430") + .appendPathParam("schedules") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.resourcescheduler.model.Schedule.class, + CreateScheduleResponse.Builder::schedule) + .handleResponseHeaderString("location", CreateScheduleResponse.Builder::location) + .handleResponseHeaderString( + "content-location", CreateScheduleResponse.Builder::contentLocation) + .handleResponseHeaderString("etag", CreateScheduleResponse.Builder::etag) + .handleResponseHeaderString( + "opc-work-request-id", CreateScheduleResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateScheduleResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future deactivateSchedule( + DeactivateScheduleRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeactivateScheduleRequest, DeactivateScheduleResponse> + handler) { + + Validate.notBlank(request.getScheduleId(), "scheduleId must not be blank"); + + return clientCall(request, DeactivateScheduleResponse::builder) + .logger(LOG, "deactivateSchedule") + .serviceDetails("Schedule", "DeactivateSchedule", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(DeactivateScheduleRequest::builder) + .basePath("/20240430") + .appendPathParam("schedules") + .appendPathParam(request.getScheduleId()) + .appendPathParam("actions") + .appendPathParam("deactivateSchedule") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .handleBody( + com.oracle.bmc.resourcescheduler.model.Schedule.class, + DeactivateScheduleResponse.Builder::schedule) + .handleResponseHeaderString( + "opc-request-id", DeactivateScheduleResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", DeactivateScheduleResponse.Builder::etag) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future deleteSchedule( + DeleteScheduleRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteScheduleRequest, DeleteScheduleResponse> + handler) { + + Validate.notBlank(request.getScheduleId(), "scheduleId must not be blank"); + + return clientCall(request, DeleteScheduleResponse::builder) + .logger(LOG, "deleteSchedule") + .serviceDetails("Schedule", "DeleteSchedule", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteScheduleRequest::builder) + .basePath("/20240430") + .appendPathParam("schedules") + .appendPathParam(request.getScheduleId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", DeleteScheduleResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getSchedule( + GetScheduleRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getScheduleId(), "scheduleId must not be blank"); + + return clientCall(request, GetScheduleResponse::builder) + .logger(LOG, "getSchedule") + .serviceDetails("Schedule", "GetSchedule", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetScheduleRequest::builder) + .basePath("/20240430") + .appendPathParam("schedules") + .appendPathParam(request.getScheduleId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.resourcescheduler.model.Schedule.class, + GetScheduleResponse.Builder::schedule) + .handleResponseHeaderString("etag", GetScheduleResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetScheduleResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getWorkRequest( + GetWorkRequestRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetWorkRequestRequest, GetWorkRequestResponse> + handler) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, GetWorkRequestResponse::builder) + .logger(LOG, "getWorkRequest") + .serviceDetails("Schedule", "GetWorkRequest", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetWorkRequestRequest::builder) + .basePath("/20240430") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.resourcescheduler.model.WorkRequest.class, + GetWorkRequestResponse.Builder::workRequest) + .handleResponseHeaderString("etag", GetWorkRequestResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetWorkRequestResponse.Builder::opcRequestId) + .handleResponseHeaderInteger( + "retry-after", GetWorkRequestResponse.Builder::retryAfter) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listResourceTypes( + ListResourceTypesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListResourceTypesRequest, ListResourceTypesResponse> + handler) { + + return clientCall(request, ListResourceTypesResponse::builder) + .logger(LOG, "listResourceTypes") + .serviceDetails("Schedule", "ListResourceTypes", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListResourceTypesRequest::builder) + .basePath("/20240430") + .appendPathParam("schedules") + .appendPathParam("resourceTypes") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.resourcescheduler.model.ResourceTypeCollection.class, + ListResourceTypesResponse.Builder::resourceTypeCollection) + .handleResponseHeaderString( + "opc-request-id", ListResourceTypesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListResourceTypesResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listSchedules( + ListSchedulesRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + return clientCall(request, ListSchedulesResponse::builder) + .logger(LOG, "listSchedules") + .serviceDetails("Schedule", "ListSchedules", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListSchedulesRequest::builder) + .basePath("/20240430") + .appendPathParam("schedules") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("scheduleId", request.getScheduleId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.resourcescheduler.model.ScheduleCollection.class, + ListSchedulesResponse.Builder::scheduleCollection) + .handleResponseHeaderString( + "opc-request-id", ListSchedulesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListSchedulesResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listWorkRequestErrors( + ListWorkRequestErrorsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse> + handler) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, ListWorkRequestErrorsResponse::builder) + .logger(LOG, "listWorkRequestErrors") + .serviceDetails("Schedule", "ListWorkRequestErrors", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestErrorsRequest::builder) + .basePath("/20240430") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .appendPathParam("errors") + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.resourcescheduler.model.WorkRequestErrorCollection.class, + ListWorkRequestErrorsResponse.Builder::workRequestErrorCollection) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestErrorsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestErrorsResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listWorkRequestLogs( + ListWorkRequestLogsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse> + handler) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, ListWorkRequestLogsResponse::builder) + .logger(LOG, "listWorkRequestLogs") + .serviceDetails("Schedule", "ListWorkRequestLogs", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestLogsRequest::builder) + .basePath("/20240430") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .appendPathParam("logs") + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.resourcescheduler.model.WorkRequestLogEntryCollection.class, + ListWorkRequestLogsResponse.Builder::workRequestLogEntryCollection) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestLogsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestLogsResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listWorkRequests( + ListWorkRequestsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestsRequest, ListWorkRequestsResponse> + handler) { + + return clientCall(request, ListWorkRequestsResponse::builder) + .logger(LOG, "listWorkRequests") + .serviceDetails("Schedule", "ListWorkRequests", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestsRequest::builder) + .basePath("/20240430") + .appendPathParam("workRequests") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("workRequestId", request.getWorkRequestId()) + .appendEnumQueryParam("status", request.getStatus()) + .appendQueryParam("resourceId", request.getResourceId()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("scheduleId", request.getScheduleId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.resourcescheduler.model.WorkRequestSummaryCollection.class, + ListWorkRequestsResponse.Builder::workRequestSummaryCollection) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future updateSchedule( + UpdateScheduleRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateScheduleRequest, UpdateScheduleResponse> + handler) { + + Validate.notBlank(request.getScheduleId(), "scheduleId must not be blank"); + Objects.requireNonNull( + request.getUpdateScheduleDetails(), "updateScheduleDetails is required"); + + return clientCall(request, UpdateScheduleResponse::builder) + .logger(LOG, "updateSchedule") + .serviceDetails("Schedule", "UpdateSchedule", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateScheduleRequest::builder) + .basePath("/20240430") + .appendPathParam("schedules") + .appendPathParam(request.getScheduleId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", UpdateScheduleResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateScheduleResponse.Builder::opcRequestId) + .callAsync(handler); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public ScheduleAsyncClient( + 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 ScheduleAsyncClient( + 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 ScheduleAsyncClient( + 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 ScheduleAsyncClient( + 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 ScheduleAsyncClient( + 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 ScheduleAsyncClient( + 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 ScheduleAsyncClient( + 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-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/ScheduleClient.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/ScheduleClient.java new file mode 100644 index 00000000000..38e8abaab63 --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/ScheduleClient.java @@ -0,0 +1,704 @@ +/** + * 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.resourcescheduler; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.resourcescheduler.requests.*; +import com.oracle.bmc.resourcescheduler.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: 20240430") +public class ScheduleClient extends com.oracle.bmc.http.internal.BaseSyncClient + implements Schedule { + /** Service instance for Schedule. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName("SCHEDULE") + .serviceEndpointPrefix("") + .serviceEndpointTemplate( + "https://resource-scheduler.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ScheduleClient.class); + + private final ScheduleWaiters waiters; + + private final SchedulePaginators paginators; + + ScheduleClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + java.util.concurrent.ExecutorService executorService) { + super( + builder, + authenticationDetailsProvider, + CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION); + + if (executorService == null) { + // up to 50 (core) threads, time out after 60s idle, all daemon + java.util.concurrent.ThreadPoolExecutor threadPoolExecutor = + new java.util.concurrent.ThreadPoolExecutor( + 50, + 50, + 60L, + java.util.concurrent.TimeUnit.SECONDS, + new java.util.concurrent.LinkedBlockingQueue(), + com.oracle.bmc.internal.ClientThreadFactory.builder() + .isDaemon(true) + .nameFormat("Schedule-waiters-%d") + .build()); + threadPoolExecutor.allowCoreThreadTimeOut(true); + + executorService = threadPoolExecutor; + } + this.waiters = new ScheduleWaiters(executorService, this); + + this.paginators = new SchedulePaginators(this); + } + + /** + * Create a builder for this client. + * + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be + * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder { + private java.util.concurrent.ExecutorService executorService; + + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "resourcescheduler"; + com.oracle.bmc.internal.Alloy.throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Set the ExecutorService for the client to be created. + * + * @param executorService executorService + * @return this builder + */ + public Builder executorService(java.util.concurrent.ExecutorService executorService) { + this.executorService = executorService; + return this; + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public ScheduleClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new ScheduleClient(this, authenticationDetailsProvider, executorService); + } + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + super.setRegion(region); + } + + @Override + public void setRegion(String regionId) { + super.setRegion(regionId); + } + + @Override + public ActivateScheduleResponse activateSchedule(ActivateScheduleRequest request) { + + Validate.notBlank(request.getScheduleId(), "scheduleId must not be blank"); + + return clientCall(request, ActivateScheduleResponse::builder) + .logger(LOG, "activateSchedule") + .serviceDetails("Schedule", "ActivateSchedule", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ActivateScheduleRequest::builder) + .basePath("/20240430") + .appendPathParam("schedules") + .appendPathParam(request.getScheduleId()) + .appendPathParam("actions") + .appendPathParam("activateSchedule") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.resourcescheduler.model.Schedule.class, + ActivateScheduleResponse.Builder::schedule) + .handleResponseHeaderString( + "opc-request-id", ActivateScheduleResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", ActivateScheduleResponse.Builder::etag) + .callSync(); + } + + @Override + public CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest request) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, CancelWorkRequestResponse::builder) + .logger(LOG, "cancelWorkRequest") + .serviceDetails("Schedule", "CancelWorkRequest", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(CancelWorkRequestRequest::builder) + .basePath("/20240430") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-request-id", CancelWorkRequestResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public CreateScheduleResponse createSchedule(CreateScheduleRequest request) { + Objects.requireNonNull( + request.getCreateScheduleDetails(), "createScheduleDetails is required"); + + return clientCall(request, CreateScheduleResponse::builder) + .logger(LOG, "createSchedule") + .serviceDetails("Schedule", "CreateSchedule", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateScheduleRequest::builder) + .basePath("/20240430") + .appendPathParam("schedules") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.resourcescheduler.model.Schedule.class, + CreateScheduleResponse.Builder::schedule) + .handleResponseHeaderString("location", CreateScheduleResponse.Builder::location) + .handleResponseHeaderString( + "content-location", CreateScheduleResponse.Builder::contentLocation) + .handleResponseHeaderString("etag", CreateScheduleResponse.Builder::etag) + .handleResponseHeaderString( + "opc-work-request-id", CreateScheduleResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateScheduleResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public DeactivateScheduleResponse deactivateSchedule(DeactivateScheduleRequest request) { + + Validate.notBlank(request.getScheduleId(), "scheduleId must not be blank"); + + return clientCall(request, DeactivateScheduleResponse::builder) + .logger(LOG, "deactivateSchedule") + .serviceDetails("Schedule", "DeactivateSchedule", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(DeactivateScheduleRequest::builder) + .basePath("/20240430") + .appendPathParam("schedules") + .appendPathParam(request.getScheduleId()) + .appendPathParam("actions") + .appendPathParam("deactivateSchedule") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.resourcescheduler.model.Schedule.class, + DeactivateScheduleResponse.Builder::schedule) + .handleResponseHeaderString( + "opc-request-id", DeactivateScheduleResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", DeactivateScheduleResponse.Builder::etag) + .callSync(); + } + + @Override + public DeleteScheduleResponse deleteSchedule(DeleteScheduleRequest request) { + + Validate.notBlank(request.getScheduleId(), "scheduleId must not be blank"); + + return clientCall(request, DeleteScheduleResponse::builder) + .logger(LOG, "deleteSchedule") + .serviceDetails("Schedule", "DeleteSchedule", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteScheduleRequest::builder) + .basePath("/20240430") + .appendPathParam("schedules") + .appendPathParam(request.getScheduleId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-request-id", DeleteScheduleResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetScheduleResponse getSchedule(GetScheduleRequest request) { + + Validate.notBlank(request.getScheduleId(), "scheduleId must not be blank"); + + return clientCall(request, GetScheduleResponse::builder) + .logger(LOG, "getSchedule") + .serviceDetails("Schedule", "GetSchedule", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetScheduleRequest::builder) + .basePath("/20240430") + .appendPathParam("schedules") + .appendPathParam(request.getScheduleId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.resourcescheduler.model.Schedule.class, + GetScheduleResponse.Builder::schedule) + .handleResponseHeaderString("etag", GetScheduleResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetScheduleResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, GetWorkRequestResponse::builder) + .logger(LOG, "getWorkRequest") + .serviceDetails("Schedule", "GetWorkRequest", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetWorkRequestRequest::builder) + .basePath("/20240430") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.resourcescheduler.model.WorkRequest.class, + GetWorkRequestResponse.Builder::workRequest) + .handleResponseHeaderString("etag", GetWorkRequestResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetWorkRequestResponse.Builder::opcRequestId) + .handleResponseHeaderInteger( + "retry-after", GetWorkRequestResponse.Builder::retryAfter) + .callSync(); + } + + @Override + public ListResourceTypesResponse listResourceTypes(ListResourceTypesRequest request) { + + return clientCall(request, ListResourceTypesResponse::builder) + .logger(LOG, "listResourceTypes") + .serviceDetails("Schedule", "ListResourceTypes", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListResourceTypesRequest::builder) + .basePath("/20240430") + .appendPathParam("schedules") + .appendPathParam("resourceTypes") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.resourcescheduler.model.ResourceTypeCollection.class, + ListResourceTypesResponse.Builder::resourceTypeCollection) + .handleResponseHeaderString( + "opc-request-id", ListResourceTypesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListResourceTypesResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListSchedulesResponse listSchedules(ListSchedulesRequest request) { + + return clientCall(request, ListSchedulesResponse::builder) + .logger(LOG, "listSchedules") + .serviceDetails("Schedule", "ListSchedules", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListSchedulesRequest::builder) + .basePath("/20240430") + .appendPathParam("schedules") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("scheduleId", request.getScheduleId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.resourcescheduler.model.ScheduleCollection.class, + ListSchedulesResponse.Builder::scheduleCollection) + .handleResponseHeaderString( + "opc-request-id", ListSchedulesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListSchedulesResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListWorkRequestErrorsResponse listWorkRequestErrors( + ListWorkRequestErrorsRequest request) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, ListWorkRequestErrorsResponse::builder) + .logger(LOG, "listWorkRequestErrors") + .serviceDetails("Schedule", "ListWorkRequestErrors", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestErrorsRequest::builder) + .basePath("/20240430") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .appendPathParam("errors") + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.resourcescheduler.model.WorkRequestErrorCollection.class, + ListWorkRequestErrorsResponse.Builder::workRequestErrorCollection) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestErrorsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestErrorsResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, ListWorkRequestLogsResponse::builder) + .logger(LOG, "listWorkRequestLogs") + .serviceDetails("Schedule", "ListWorkRequestLogs", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestLogsRequest::builder) + .basePath("/20240430") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .appendPathParam("logs") + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.resourcescheduler.model.WorkRequestLogEntryCollection.class, + ListWorkRequestLogsResponse.Builder::workRequestLogEntryCollection) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestLogsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestLogsResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request) { + + return clientCall(request, ListWorkRequestsResponse::builder) + .logger(LOG, "listWorkRequests") + .serviceDetails("Schedule", "ListWorkRequests", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestsRequest::builder) + .basePath("/20240430") + .appendPathParam("workRequests") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("workRequestId", request.getWorkRequestId()) + .appendEnumQueryParam("status", request.getStatus()) + .appendQueryParam("resourceId", request.getResourceId()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("scheduleId", request.getScheduleId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.resourcescheduler.model.WorkRequestSummaryCollection.class, + ListWorkRequestsResponse.Builder::workRequestSummaryCollection) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public UpdateScheduleResponse updateSchedule(UpdateScheduleRequest request) { + + Validate.notBlank(request.getScheduleId(), "scheduleId must not be blank"); + Objects.requireNonNull( + request.getUpdateScheduleDetails(), "updateScheduleDetails is required"); + + return clientCall(request, UpdateScheduleResponse::builder) + .logger(LOG, "updateSchedule") + .serviceDetails("Schedule", "UpdateSchedule", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateScheduleRequest::builder) + .basePath("/20240430") + .appendPathParam("schedules") + .appendPathParam(request.getScheduleId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", UpdateScheduleResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateScheduleResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ScheduleWaiters getWaiters() { + return waiters; + } + + @Override + public SchedulePaginators 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 ScheduleClient( + 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 ScheduleClient( + 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 ScheduleClient( + 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 ScheduleClient( + 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 ScheduleClient( + 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 ScheduleClient( + 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 ScheduleClient( + 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 ScheduleClient( + 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-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/SchedulePaginators.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/SchedulePaginators.java new file mode 100644 index 00000000000..0a2da3b83ae --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/SchedulePaginators.java @@ -0,0 +1,636 @@ +/** + * 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.resourcescheduler; + +import com.oracle.bmc.resourcescheduler.requests.*; +import com.oracle.bmc.resourcescheduler.responses.*; + +/** + * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface + * to any list operations of Schedule 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: 20240430") +public class SchedulePaginators { + private final Schedule client; + + public SchedulePaginators(Schedule client) { + this.client = client; + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listResourceTypes 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 listResourceTypesResponseIterator( + final ListResourceTypesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListResourceTypesRequest.Builder, + ListResourceTypesRequest, + ListResourceTypesResponse>( + new java.util.function.Supplier() { + @Override + public ListResourceTypesRequest.Builder get() { + return ListResourceTypesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListResourceTypesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListResourceTypesRequest.Builder>, + ListResourceTypesRequest>() { + @Override + public ListResourceTypesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListResourceTypesRequest.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< + ListResourceTypesRequest, ListResourceTypesResponse>() { + @Override + public ListResourceTypesResponse apply(ListResourceTypesRequest request) { + return client.listResourceTypes(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.resourcescheduler.model.ResourceType} objects contained in responses from the + * listResourceTypes 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.resourcescheduler.model.ResourceType} objects contained in responses + * received from the service. + */ + public Iterable + listResourceTypesRecordIterator(final ListResourceTypesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListResourceTypesRequest.Builder, + ListResourceTypesRequest, + ListResourceTypesResponse, + com.oracle.bmc.resourcescheduler.model.ResourceType>( + new java.util.function.Supplier() { + @Override + public ListResourceTypesRequest.Builder get() { + return ListResourceTypesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListResourceTypesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListResourceTypesRequest.Builder>, + ListResourceTypesRequest>() { + @Override + public ListResourceTypesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListResourceTypesRequest.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< + ListResourceTypesRequest, ListResourceTypesResponse>() { + @Override + public ListResourceTypesResponse apply(ListResourceTypesRequest request) { + return client.listResourceTypes(request); + } + }, + new java.util.function.Function< + ListResourceTypesResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListResourceTypesResponse response) { + return response.getResourceTypeCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listSchedules + * 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 listSchedulesResponseIterator( + final ListSchedulesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListSchedulesRequest.Builder, ListSchedulesRequest, ListSchedulesResponse>( + new java.util.function.Supplier() { + @Override + public ListSchedulesRequest.Builder get() { + return ListSchedulesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListSchedulesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSchedulesRequest.Builder>, + ListSchedulesRequest>() { + @Override + public ListSchedulesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSchedulesRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function() { + @Override + public ListSchedulesResponse apply(ListSchedulesRequest request) { + return client.listSchedules(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.resourcescheduler.model.ScheduleSummary} objects contained in responses from + * the listSchedules 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.resourcescheduler.model.ScheduleSummary} objects contained in responses + * received from the service. + */ + public Iterable + listSchedulesRecordIterator(final ListSchedulesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListSchedulesRequest.Builder, + ListSchedulesRequest, + ListSchedulesResponse, + com.oracle.bmc.resourcescheduler.model.ScheduleSummary>( + new java.util.function.Supplier() { + @Override + public ListSchedulesRequest.Builder get() { + return ListSchedulesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListSchedulesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSchedulesRequest.Builder>, + ListSchedulesRequest>() { + @Override + public ListSchedulesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSchedulesRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function() { + @Override + public ListSchedulesResponse apply(ListSchedulesRequest request) { + return client.listSchedules(request); + } + }, + new java.util.function.Function< + ListSchedulesResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListSchedulesResponse response) { + return response.getScheduleCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listWorkRequestErrors operation. This iterable will fetch more data from the server as + * needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listWorkRequestErrorsResponseIterator( + final ListWorkRequestErrorsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListWorkRequestErrorsRequest.Builder, + ListWorkRequestErrorsRequest, + ListWorkRequestErrorsResponse>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestErrorsRequest.Builder get() { + return ListWorkRequestErrorsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestErrorsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestErrorsRequest.Builder>, + ListWorkRequestErrorsRequest>() { + @Override + public ListWorkRequestErrorsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestErrorsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse>() { + @Override + public ListWorkRequestErrorsResponse apply( + ListWorkRequestErrorsRequest request) { + return client.listWorkRequestErrors(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.resourcescheduler.model.WorkRequestError} objects contained in responses from + * the listWorkRequestErrors operation. This iterable will fetch more data from the server as + * needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.resourcescheduler.model.WorkRequestError} objects contained in responses + * received from the service. + */ + public Iterable + listWorkRequestErrorsRecordIterator(final ListWorkRequestErrorsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListWorkRequestErrorsRequest.Builder, + ListWorkRequestErrorsRequest, + ListWorkRequestErrorsResponse, + com.oracle.bmc.resourcescheduler.model.WorkRequestError>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestErrorsRequest.Builder get() { + return ListWorkRequestErrorsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestErrorsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestErrorsRequest.Builder>, + ListWorkRequestErrorsRequest>() { + @Override + public ListWorkRequestErrorsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestErrorsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse>() { + @Override + public ListWorkRequestErrorsResponse apply( + ListWorkRequestErrorsRequest request) { + return client.listWorkRequestErrors(request); + } + }, + new java.util.function.Function< + ListWorkRequestErrorsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListWorkRequestErrorsResponse response) { + return response.getWorkRequestErrorCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listWorkRequestLogs operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listWorkRequestLogsResponseIterator( + final ListWorkRequestLogsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListWorkRequestLogsRequest.Builder, + ListWorkRequestLogsRequest, + ListWorkRequestLogsResponse>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestLogsRequest.Builder get() { + return ListWorkRequestLogsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestLogsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestLogsRequest.Builder>, + ListWorkRequestLogsRequest>() { + @Override + public ListWorkRequestLogsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestLogsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse>() { + @Override + public ListWorkRequestLogsResponse apply(ListWorkRequestLogsRequest request) { + return client.listWorkRequestLogs(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.resourcescheduler.model.WorkRequestLogEntry} objects contained in responses + * from the listWorkRequestLogs operation. This iterable will fetch more data from the server as + * needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.resourcescheduler.model.WorkRequestLogEntry} objects contained in + * responses received from the service. + */ + public Iterable + listWorkRequestLogsRecordIterator(final ListWorkRequestLogsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListWorkRequestLogsRequest.Builder, + ListWorkRequestLogsRequest, + ListWorkRequestLogsResponse, + com.oracle.bmc.resourcescheduler.model.WorkRequestLogEntry>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestLogsRequest.Builder get() { + return ListWorkRequestLogsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestLogsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestLogsRequest.Builder>, + ListWorkRequestLogsRequest>() { + @Override + public ListWorkRequestLogsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestLogsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse>() { + @Override + public ListWorkRequestLogsResponse apply(ListWorkRequestLogsRequest request) { + return client.listWorkRequestLogs(request); + } + }, + new java.util.function.Function< + ListWorkRequestLogsResponse, + java.util.List< + com.oracle.bmc.resourcescheduler.model.WorkRequestLogEntry>>() { + @Override + public java.util.List< + com.oracle.bmc.resourcescheduler.model.WorkRequestLogEntry> + apply(ListWorkRequestLogsResponse response) { + return response.getWorkRequestLogEntryCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listWorkRequests operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listWorkRequestsResponseIterator( + final ListWorkRequestsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListWorkRequestsRequest.Builder, ListWorkRequestsRequest, ListWorkRequestsResponse>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestsRequest.Builder get() { + return ListWorkRequestsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestsRequest.Builder>, + ListWorkRequestsRequest>() { + @Override + public ListWorkRequestsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestsRequest, ListWorkRequestsResponse>() { + @Override + public ListWorkRequestsResponse apply(ListWorkRequestsRequest request) { + return client.listWorkRequests(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.resourcescheduler.model.WorkRequestSummary} objects contained in responses + * from the listWorkRequests operation. This iterable will fetch more data from the server as + * needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.resourcescheduler.model.WorkRequestSummary} objects contained in responses + * received from the service. + */ + public Iterable + listWorkRequestsRecordIterator(final ListWorkRequestsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListWorkRequestsRequest.Builder, + ListWorkRequestsRequest, + ListWorkRequestsResponse, + com.oracle.bmc.resourcescheduler.model.WorkRequestSummary>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestsRequest.Builder get() { + return ListWorkRequestsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestsRequest.Builder>, + ListWorkRequestsRequest>() { + @Override + public ListWorkRequestsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestsRequest, ListWorkRequestsResponse>() { + @Override + public ListWorkRequestsResponse apply(ListWorkRequestsRequest request) { + return client.listWorkRequests(request); + } + }, + new java.util.function.Function< + ListWorkRequestsResponse, + java.util.List< + com.oracle.bmc.resourcescheduler.model.WorkRequestSummary>>() { + @Override + public java.util.List + apply(ListWorkRequestsResponse response) { + return response.getWorkRequestSummaryCollection().getItems(); + } + }); + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/ScheduleWaiters.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/ScheduleWaiters.java new file mode 100644 index 00000000000..400eb1c3016 --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/ScheduleWaiters.java @@ -0,0 +1,182 @@ +/** + * 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.resourcescheduler; + +import com.oracle.bmc.resourcescheduler.requests.*; +import com.oracle.bmc.resourcescheduler.responses.*; + +/** + * Collection of helper methods to produce {@link com.oracle.bmc.waiter.Waiter}s for different + * resources of Schedule. + * + *

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: 20240430") +public class ScheduleWaiters { + private final java.util.concurrent.ExecutorService executorService; + private final Schedule client; + + public ScheduleWaiters(java.util.concurrent.ExecutorService executorService, Schedule 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 forSchedule( + GetScheduleRequest request, + com.oracle.bmc.resourcescheduler.model.Schedule.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 forSchedule( + 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 forSchedule( + GetScheduleRequest request, + com.oracle.bmc.resourcescheduler.model.Schedule.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 forSchedule( + 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 forSchedule( + GetScheduleRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.resourcescheduler.model.Schedule.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 forSchedule( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for Schedule. + private com.oracle.bmc.waiter.Waiter forSchedule( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetScheduleRequest request, + final com.oracle.bmc.resourcescheduler.model.Schedule.LifecycleState... targetStates) { + final java.util.Set + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function() { + @Override + public GetScheduleResponse apply(GetScheduleRequest request) { + return client.getSchedule(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetScheduleResponse response) { + return targetStatesSet.contains( + response.getSchedule().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.resourcescheduler.model.Schedule.LifecycleState + .Deleted)), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using default configuration. + * + * @param request the request to send + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forWorkRequest(GetWorkRequestRequest request) { + return forWorkRequest(com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@linkcom.oracle.bmc.waiter. DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forWorkRequest( + GetWorkRequestRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + return forWorkRequest( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request); + } + + // Helper method to create a new Waiter for WorkRequest. + private com.oracle.bmc.waiter.Waiter + forWorkRequest( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetWorkRequestRequest request) { + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetWorkRequestRequest, GetWorkRequestResponse>() { + @Override + public GetWorkRequestResponse apply(GetWorkRequestRequest request) { + return client.getWorkRequest(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetWorkRequestResponse response) { + // work requests are complete once the time finished is available + return response.getWorkRequest().getTimeFinished() != null; + } + }, + false), + request); + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/ActionType.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/ActionType.java new file mode 100644 index 00000000000..2523d6d6fce --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/ActionType.java @@ -0,0 +1,56 @@ +/** + * 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.resourcescheduler.model; + +/** Possible types of actions. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public enum ActionType implements com.oracle.bmc.http.internal.BmcEnum { + Created("CREATED"), + Updated("UPDATED"), + Deleted("DELETED"), + InProgress("IN_PROGRESS"), + Related("RELATED"), + Failed("FAILED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(ActionType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ActionType v : ActionType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ActionType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ActionType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ActionType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/CompartmentIdResourceFilter.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/CompartmentIdResourceFilter.java new file mode 100644 index 00000000000..b5debbaee3a --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/CompartmentIdResourceFilter.java @@ -0,0 +1,178 @@ +/** + * 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.resourcescheduler.model; + +/** + * This is a resource filter for filtering resource based on compartment OCID.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CompartmentIdResourceFilter.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "attribute") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CompartmentIdResourceFilter extends ResourceFilter { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** This is the compartment used for filtering. */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private String value; + + /** + * This is the compartment used for filtering. + * + * @param value the value to set + * @return this builder + */ + public Builder value(String value) { + this.value = value; + this.__explicitlySet__.add("value"); + return this; + } + /** This sets whether to include child compartments. */ + @com.fasterxml.jackson.annotation.JsonProperty("shouldIncludeChildCompartments") + private Boolean shouldIncludeChildCompartments; + + /** + * This sets whether to include child compartments. + * + * @param shouldIncludeChildCompartments the value to set + * @return this builder + */ + public Builder shouldIncludeChildCompartments(Boolean shouldIncludeChildCompartments) { + this.shouldIncludeChildCompartments = shouldIncludeChildCompartments; + this.__explicitlySet__.add("shouldIncludeChildCompartments"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CompartmentIdResourceFilter build() { + CompartmentIdResourceFilter model = + new CompartmentIdResourceFilter( + this.value, this.shouldIncludeChildCompartments); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CompartmentIdResourceFilter model) { + if (model.wasPropertyExplicitlySet("value")) { + this.value(model.getValue()); + } + if (model.wasPropertyExplicitlySet("shouldIncludeChildCompartments")) { + this.shouldIncludeChildCompartments(model.getShouldIncludeChildCompartments()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CompartmentIdResourceFilter(String value, Boolean shouldIncludeChildCompartments) { + super(); + this.value = value; + this.shouldIncludeChildCompartments = shouldIncludeChildCompartments; + } + + /** This is the compartment used for filtering. */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final String value; + + /** + * This is the compartment used for filtering. + * + * @return the value + */ + public String getValue() { + return value; + } + + /** This sets whether to include child compartments. */ + @com.fasterxml.jackson.annotation.JsonProperty("shouldIncludeChildCompartments") + private final Boolean shouldIncludeChildCompartments; + + /** + * This sets whether to include child compartments. + * + * @return the value + */ + public Boolean getShouldIncludeChildCompartments() { + return shouldIncludeChildCompartments; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CompartmentIdResourceFilter("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", value=").append(String.valueOf(this.value)); + sb.append(", shouldIncludeChildCompartments=") + .append(String.valueOf(this.shouldIncludeChildCompartments)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CompartmentIdResourceFilter)) { + return false; + } + + CompartmentIdResourceFilter other = (CompartmentIdResourceFilter) o; + return java.util.Objects.equals(this.value, other.value) + && java.util.Objects.equals( + this.shouldIncludeChildCompartments, other.shouldIncludeChildCompartments) + && 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.shouldIncludeChildCompartments == null + ? 43 + : this.shouldIncludeChildCompartments.hashCode()); + return result; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/CreateScheduleDetails.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/CreateScheduleDetails.java new file mode 100644 index 00000000000..6e75bdb8620 --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/CreateScheduleDetails.java @@ -0,0 +1,740 @@ +/** + * 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.resourcescheduler.model; + +/** + * This is the data to create a schedule.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateScheduleDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateScheduleDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "displayName", + "description", + "action", + "recurrenceDetails", + "recurrenceType", + "resourceFilters", + "resources", + "timeStarts", + "timeEnds", + "freeformTags", + "definedTags" + }) + public CreateScheduleDetails( + String compartmentId, + String displayName, + String description, + Action action, + String recurrenceDetails, + RecurrenceType recurrenceType, + java.util.List resourceFilters, + java.util.List resources, + java.util.Date timeStarts, + java.util.Date timeEnds, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.compartmentId = compartmentId; + this.displayName = displayName; + this.description = description; + this.action = action; + this.recurrenceDetails = recurrenceDetails; + this.recurrenceType = recurrenceType; + this.resourceFilters = resourceFilters; + this.resources = resources; + this.timeStarts = timeStarts; + this.timeEnds = timeEnds; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment in which the schedule is created + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment in which the schedule is created + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * This is a user-friendly name for the schedule. It does not have to be unique, and it's + * changeable. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * This is a user-friendly name for the schedule. It does not have to be unique, and it's + * changeable. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** This is the description of the schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * This is the description of the schedule. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** This is the action that will be executed by the schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("action") + private Action action; + + /** + * This is the action that will be executed by the schedule. + * + * @param action the value to set + * @return this builder + */ + public Builder action(Action action) { + this.action = action; + this.__explicitlySet__.add("action"); + return this; + } + /** + * This is the frequency of recurrence of a schedule. The frequency field can either conform + * to RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value + * specified by the recurrenceType field. + */ + @com.fasterxml.jackson.annotation.JsonProperty("recurrenceDetails") + private String recurrenceDetails; + + /** + * This is the frequency of recurrence of a schedule. The frequency field can either conform + * to RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value + * specified by the recurrenceType field. + * + * @param recurrenceDetails the value to set + * @return this builder + */ + public Builder recurrenceDetails(String recurrenceDetails) { + this.recurrenceDetails = recurrenceDetails; + this.__explicitlySet__.add("recurrenceDetails"); + return this; + } + /** Type of recurrence of a schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("recurrenceType") + private RecurrenceType recurrenceType; + + /** + * Type of recurrence of a schedule + * + * @param recurrenceType the value to set + * @return this builder + */ + public Builder recurrenceType(RecurrenceType recurrenceType) { + this.recurrenceType = recurrenceType; + this.__explicitlySet__.add("recurrenceType"); + return this; + } + /** + * This is a list of resources filters. The schedule will be applied to resources matching + * all of them. + */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceFilters") + private java.util.List resourceFilters; + + /** + * This is a list of resources filters. The schedule will be applied to resources matching + * all of them. + * + * @param resourceFilters the value to set + * @return this builder + */ + public Builder resourceFilters(java.util.List resourceFilters) { + this.resourceFilters = resourceFilters; + this.__explicitlySet__.add("resourceFilters"); + return this; + } + /** This is the list of resources to which the scheduled operation is applied. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private java.util.List resources; + + /** + * This is the list of resources to which the scheduled operation is applied. + * + * @param resources the value to set + * @return this builder + */ + public Builder resources(java.util.List resources) { + this.resources = resources; + this.__explicitlySet__.add("resources"); + return this; + } + /** + * This is the date and time the schedule starts, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339) + * + *

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

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

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

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

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

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

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateScheduleDetails build() { + CreateScheduleDetails model = + new CreateScheduleDetails( + this.compartmentId, + this.displayName, + this.description, + this.action, + this.recurrenceDetails, + this.recurrenceType, + this.resourceFilters, + this.resources, + this.timeStarts, + this.timeEnds, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateScheduleDetails model) { + 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("action")) { + this.action(model.getAction()); + } + if (model.wasPropertyExplicitlySet("recurrenceDetails")) { + this.recurrenceDetails(model.getRecurrenceDetails()); + } + if (model.wasPropertyExplicitlySet("recurrenceType")) { + this.recurrenceType(model.getRecurrenceType()); + } + if (model.wasPropertyExplicitlySet("resourceFilters")) { + this.resourceFilters(model.getResourceFilters()); + } + if (model.wasPropertyExplicitlySet("resources")) { + this.resources(model.getResources()); + } + if (model.wasPropertyExplicitlySet("timeStarts")) { + this.timeStarts(model.getTimeStarts()); + } + if (model.wasPropertyExplicitlySet("timeEnds")) { + this.timeEnds(model.getTimeEnds()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment in which the schedule is created + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment in which the schedule is created + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * This is a user-friendly name for the schedule. It does not have to be unique, and it's + * changeable. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * This is a user-friendly name for the schedule. It does not have to be unique, and it's + * changeable. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** This is the description of the schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * This is the description of the schedule. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** This is the action that will be executed by the schedule. */ + public enum Action implements com.oracle.bmc.http.internal.BmcEnum { + StartResource("START_RESOURCE"), + StopResource("STOP_RESOURCE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Action v : Action.values()) { + map.put(v.getValue(), v); + } + } + + Action(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Action create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Action: " + key); + } + }; + /** This is the action that will be executed by the schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("action") + private final Action action; + + /** + * This is the action that will be executed by the schedule. + * + * @return the value + */ + public Action getAction() { + return action; + } + + /** + * This is the frequency of recurrence of a schedule. The frequency field can either conform to + * RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value specified by + * the recurrenceType field. + */ + @com.fasterxml.jackson.annotation.JsonProperty("recurrenceDetails") + private final String recurrenceDetails; + + /** + * This is the frequency of recurrence of a schedule. The frequency field can either conform to + * RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value specified by + * the recurrenceType field. + * + * @return the value + */ + public String getRecurrenceDetails() { + return recurrenceDetails; + } + + /** Type of recurrence of a schedule */ + public enum RecurrenceType implements com.oracle.bmc.http.internal.BmcEnum { + Cron("CRON"), + Ical("ICAL"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RecurrenceType v : RecurrenceType.values()) { + map.put(v.getValue(), v); + } + } + + RecurrenceType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RecurrenceType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid RecurrenceType: " + key); + } + }; + /** Type of recurrence of a schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("recurrenceType") + private final RecurrenceType recurrenceType; + + /** + * Type of recurrence of a schedule + * + * @return the value + */ + public RecurrenceType getRecurrenceType() { + return recurrenceType; + } + + /** + * This is a list of resources filters. The schedule will be applied to resources matching all + * of them. + */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceFilters") + private final java.util.List resourceFilters; + + /** + * This is a list of resources filters. The schedule will be applied to resources matching all + * of them. + * + * @return the value + */ + public java.util.List getResourceFilters() { + return resourceFilters; + } + + /** This is the list of resources to which the scheduled operation is applied. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private final java.util.List resources; + + /** + * This is the list of resources to which the scheduled operation is applied. + * + * @return the value + */ + public java.util.List getResources() { + return resources; + } + + /** + * This is the date and time the schedule starts, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339) + * + *

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

Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeStarts() { + return timeStarts; + } + + /** + * This is the date and time the schedule ends, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339) + * + *

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

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

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

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

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateScheduleDetails("); + sb.append("super=").append(super.toString()); + 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(", action=").append(String.valueOf(this.action)); + sb.append(", recurrenceDetails=").append(String.valueOf(this.recurrenceDetails)); + sb.append(", recurrenceType=").append(String.valueOf(this.recurrenceType)); + sb.append(", resourceFilters=").append(String.valueOf(this.resourceFilters)); + sb.append(", resources=").append(String.valueOf(this.resources)); + sb.append(", timeStarts=").append(String.valueOf(this.timeStarts)); + sb.append(", timeEnds=").append(String.valueOf(this.timeEnds)); + 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 CreateScheduleDetails)) { + return false; + } + + CreateScheduleDetails other = (CreateScheduleDetails) o; + return 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.action, other.action) + && java.util.Objects.equals(this.recurrenceDetails, other.recurrenceDetails) + && java.util.Objects.equals(this.recurrenceType, other.recurrenceType) + && java.util.Objects.equals(this.resourceFilters, other.resourceFilters) + && java.util.Objects.equals(this.resources, other.resources) + && java.util.Objects.equals(this.timeStarts, other.timeStarts) + && java.util.Objects.equals(this.timeEnds, other.timeEnds) + && 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.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.action == null ? 43 : this.action.hashCode()); + result = + (result * PRIME) + + (this.recurrenceDetails == null ? 43 : this.recurrenceDetails.hashCode()); + result = + (result * PRIME) + + (this.recurrenceType == null ? 43 : this.recurrenceType.hashCode()); + result = + (result * PRIME) + + (this.resourceFilters == null ? 43 : this.resourceFilters.hashCode()); + result = (result * PRIME) + (this.resources == null ? 43 : this.resources.hashCode()); + result = (result * PRIME) + (this.timeStarts == null ? 43 : this.timeStarts.hashCode()); + result = (result * PRIME) + (this.timeEnds == null ? 43 : this.timeEnds.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-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/DefinedTagFilterValue.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/DefinedTagFilterValue.java new file mode 100644 index 00000000000..07185c2aca8 --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/DefinedTagFilterValue.java @@ -0,0 +1,205 @@ +/** + * 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.resourcescheduler.model; + +/** + * This is a defined tag filter value.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DefinedTagFilterValue.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DefinedTagFilterValue + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"namespace", "tagKey", "value"}) + public DefinedTagFilterValue(String namespace, String tagKey, String value) { + super(); + this.namespace = namespace; + this.tagKey = tagKey; + this.value = value; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** This is the namespace of the defined tag. */ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private String namespace; + + /** + * This is the namespace of the defined tag. + * + * @param namespace the value to set + * @return this builder + */ + public Builder namespace(String namespace) { + this.namespace = namespace; + this.__explicitlySet__.add("namespace"); + return this; + } + /** This is the key of the defined tag. */ + @com.fasterxml.jackson.annotation.JsonProperty("tagKey") + private String tagKey; + + /** + * This is the key of the defined tag. + * + * @param tagKey the value to set + * @return this builder + */ + public Builder tagKey(String tagKey) { + this.tagKey = tagKey; + this.__explicitlySet__.add("tagKey"); + return this; + } + /** This is the value of the defined tag. */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private String value; + + /** + * This is the value of the defined tag. + * + * @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 DefinedTagFilterValue build() { + DefinedTagFilterValue model = + new DefinedTagFilterValue(this.namespace, this.tagKey, this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DefinedTagFilterValue model) { + if (model.wasPropertyExplicitlySet("namespace")) { + this.namespace(model.getNamespace()); + } + if (model.wasPropertyExplicitlySet("tagKey")) { + this.tagKey(model.getTagKey()); + } + 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); + } + + /** This is the namespace of the defined tag. */ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private final String namespace; + + /** + * This is the namespace of the defined tag. + * + * @return the value + */ + public String getNamespace() { + return namespace; + } + + /** This is the key of the defined tag. */ + @com.fasterxml.jackson.annotation.JsonProperty("tagKey") + private final String tagKey; + + /** + * This is the key of the defined tag. + * + * @return the value + */ + public String getTagKey() { + return tagKey; + } + + /** This is the value of the defined tag. */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final String value; + + /** + * This is the value of the defined tag. + * + * @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("DefinedTagFilterValue("); + sb.append("super=").append(super.toString()); + sb.append("namespace=").append(String.valueOf(this.namespace)); + sb.append(", tagKey=").append(String.valueOf(this.tagKey)); + 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 DefinedTagFilterValue)) { + return false; + } + + DefinedTagFilterValue other = (DefinedTagFilterValue) o; + return java.util.Objects.equals(this.namespace, other.namespace) + && java.util.Objects.equals(this.tagKey, other.tagKey) + && 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.namespace == null ? 43 : this.namespace.hashCode()); + result = (result * PRIME) + (this.tagKey == null ? 43 : this.tagKey.hashCode()); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/DefinedTagsResourceFilter.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/DefinedTagsResourceFilter.java new file mode 100644 index 00000000000..2cc9f5601fc --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/DefinedTagsResourceFilter.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.resourcescheduler.model; + +/** + * This is a resource filter for filtering resource based on a defined tag.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DefinedTagsResourceFilter.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "attribute") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DefinedTagsResourceFilter extends ResourceFilter { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** This is a defined tag filter value. */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private java.util.List value; + + /** + * This is a defined tag filter value. + * + * @param value the value to set + * @return this builder + */ + public Builder value(java.util.List 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 DefinedTagsResourceFilter build() { + DefinedTagsResourceFilter model = new DefinedTagsResourceFilter(this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DefinedTagsResourceFilter model) { + 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 DefinedTagsResourceFilter(java.util.List value) { + super(); + this.value = value; + } + + /** This is a defined tag filter value. */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final java.util.List value; + + /** + * This is a defined tag filter value. + * + * @return the value + */ + public java.util.List 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("DefinedTagsResourceFilter("); + 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 DefinedTagsResourceFilter)) { + return false; + } + + DefinedTagsResourceFilter other = (DefinedTagsResourceFilter) 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-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/LifecycleStateResourceFilter.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/LifecycleStateResourceFilter.java new file mode 100644 index 00000000000..abdd3b99ccf --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/LifecycleStateResourceFilter.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.resourcescheduler.model; + +/** + * This is a resource filter for filtering resources based on their lifecycle state.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = LifecycleStateResourceFilter.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "attribute") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class LifecycleStateResourceFilter extends ResourceFilter { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** This is a collection of resource lifecycle state values. */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private java.util.List value; + + /** + * This is a collection of resource lifecycle state values. + * + * @param value the value to set + * @return this builder + */ + public Builder value(java.util.List 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 LifecycleStateResourceFilter build() { + LifecycleStateResourceFilter model = new LifecycleStateResourceFilter(this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(LifecycleStateResourceFilter model) { + 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 LifecycleStateResourceFilter(java.util.List value) { + super(); + this.value = value; + } + + /** This is a collection of resource lifecycle state values. */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final java.util.List value; + + /** + * This is a collection of resource lifecycle state values. + * + * @return the value + */ + public java.util.List 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("LifecycleStateResourceFilter("); + 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 LifecycleStateResourceFilter)) { + return false; + } + + LifecycleStateResourceFilter other = (LifecycleStateResourceFilter) 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-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/OperationStatus.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/OperationStatus.java new file mode 100644 index 00000000000..8d688e06fc2 --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/OperationStatus.java @@ -0,0 +1,59 @@ +/** + * 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.resourcescheduler.model; + +/** This is the status of the work request. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public enum OperationStatus implements com.oracle.bmc.http.internal.BmcEnum { + Accepted("ACCEPTED"), + InProgress("IN_PROGRESS"), + Waiting("WAITING"), + NeedsAttention("NEEDS_ATTENTION"), + Failed("FAILED"), + Succeeded("SUCCEEDED"), + Canceling("CANCELING"), + Canceled("CANCELED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(OperationStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OperationStatus v : OperationStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + OperationStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OperationStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'OperationStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/OperationType.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/OperationType.java new file mode 100644 index 00000000000..32f1c0e4acf --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/OperationType.java @@ -0,0 +1,56 @@ +/** + * 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.resourcescheduler.model; + +/** This is the asynchronous operation tracked by the work request. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { + StartResource("START_RESOURCE"), + StopResource("STOP_RESOURCE"), + ChangeScheduleCompartment("CHANGE_SCHEDULE_COMPARTMENT"), + CreateSchedule("CREATE_SCHEDULE"), + UpdateSchedule("UPDATE_SCHEDULE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(OperationType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OperationType v : OperationType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + OperationType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OperationType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'OperationType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/Resource.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/Resource.java new file mode 100644 index 00000000000..c59885b4e78 --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/Resource.java @@ -0,0 +1,183 @@ +/** + * 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.resourcescheduler.model; + +/** + * This is the schedule resource entity.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Resource.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class Resource extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"id", "metadata"}) + public Resource(String id, java.util.Map metadata) { + super(); + this.id = id; + this.metadata = metadata; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** This is the resource OCID. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * This is the resource OCID. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * This is additional information that helps to identity the resource for the schedule. + * + *

{ "id": "" "metadata": { "namespaceName": "sampleNamespace", + * "bucketName": "sampleBucket" } } + */ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private java.util.Map metadata; + + /** + * This is additional information that helps to identity the resource for the schedule. + * + *

{ "id": "" "metadata": { "namespaceName": "sampleNamespace", + * "bucketName": "sampleBucket" } } + * + * @param metadata the value to set + * @return this builder + */ + public Builder metadata(java.util.Map metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Resource build() { + Resource model = new Resource(this.id, this.metadata); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Resource model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** This is the resource OCID. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * This is the resource OCID. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * This is additional information that helps to identity the resource for the schedule. + * + *

{ "id": "" "metadata": { "namespaceName": "sampleNamespace", "bucketName": + * "sampleBucket" } } + */ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final java.util.Map metadata; + + /** + * This is additional information that helps to identity the resource for the schedule. + * + *

{ "id": "" "metadata": { "namespaceName": "sampleNamespace", "bucketName": + * "sampleBucket" } } + * + * @return the value + */ + public java.util.Map getMetadata() { + return metadata; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Resource("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", metadata=").append(String.valueOf(this.metadata)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Resource)) { + return false; + } + + Resource other = (Resource) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.metadata, other.metadata) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/ResourceFilter.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/ResourceFilter.java new file mode 100644 index 00000000000..7d8278b6e77 --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/ResourceFilter.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.resourcescheduler.model; + +/** + * This is a generic filter used to decide which resources that the schedule be applied to.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "attribute", + defaultImpl = ResourceFilter.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = TimeCreatedResourceFilter.class, + name = "TIME_CREATED"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ResourceTypeResourceFilter.class, + name = "RESOURCE_TYPE"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = LifecycleStateResourceFilter.class, + name = "LIFECYCLE_STATE"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CompartmentIdResourceFilter.class, + name = "COMPARTMENT_ID"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DefinedTagsResourceFilter.class, + name = "DEFINED_TAGS") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class ResourceFilter extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected ResourceFilter() { + 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("ResourceFilter("); + 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 ResourceFilter)) { + return false; + } + + ResourceFilter other = (ResourceFilter) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** This is the resource attribute on which the threshold is defined. */ + public enum Attribute implements com.oracle.bmc.http.internal.BmcEnum { + CompartmentId("COMPARTMENT_ID"), + ResourceType("RESOURCE_TYPE"), + DefinedTags("DEFINED_TAGS"), + TimeCreated("TIME_CREATED"), + LifecycleState("LIFECYCLE_STATE"), + + /** + * 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(Attribute.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Attribute v : Attribute.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Attribute(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Attribute create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Attribute', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/ResourceType.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/ResourceType.java new file mode 100644 index 00000000000..c3fe02848a6 --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/ResourceType.java @@ -0,0 +1,131 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.resourcescheduler.model; + +/** + * This is a resource type supported by resource scheduler.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ResourceType.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ResourceType extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name"}) + public ResourceType(String name) { + super(); + this.name = name; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** This is a resource type supported by resource scheduler. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * This is a resource type supported by resource scheduler. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ResourceType build() { + ResourceType model = new ResourceType(this.name); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ResourceType model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** This is a resource type supported by resource scheduler. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * This is a resource type supported by resource scheduler. + * + * @return the value + */ + public String getName() { + return name; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ResourceType("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ResourceType)) { + return false; + } + + ResourceType other = (ResourceType) o; + return java.util.Objects.equals(this.name, other.name) && 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) + super.hashCode(); + return result; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/ResourceTypeCollection.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/ResourceTypeCollection.java new file mode 100644 index 00000000000..8687a6ec3a2 --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/ResourceTypeCollection.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.resourcescheduler.model; + +/** + * This is the collection of resource types supported by resource scheduler.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ResourceTypeCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ResourceTypeCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public ResourceTypeCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** This is the collection of resource types supported by resource scheduler. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * This is the collection of resource types supported by resource scheduler. + * + * @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 ResourceTypeCollection build() { + ResourceTypeCollection model = new ResourceTypeCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ResourceTypeCollection 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); + } + + /** This is the collection of resource types supported by resource scheduler. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * This is the collection of resource types supported by resource scheduler. + * + * @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("ResourceTypeCollection("); + 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 ResourceTypeCollection)) { + return false; + } + + ResourceTypeCollection other = (ResourceTypeCollection) 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-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/ResourceTypeResourceFilter.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/ResourceTypeResourceFilter.java new file mode 100644 index 00000000000..8f52d38b1bb --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/ResourceTypeResourceFilter.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.resourcescheduler.model; + +/** + * This is a resource filter for filtering resource based on resource type.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ResourceTypeResourceFilter.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "attribute") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ResourceTypeResourceFilter extends ResourceFilter { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** This is a collection of resource types. */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private java.util.List value; + + /** + * This is a collection of resource types. + * + * @param value the value to set + * @return this builder + */ + public Builder value(java.util.List 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 ResourceTypeResourceFilter build() { + ResourceTypeResourceFilter model = new ResourceTypeResourceFilter(this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ResourceTypeResourceFilter model) { + 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 ResourceTypeResourceFilter(java.util.List value) { + super(); + this.value = value; + } + + /** This is a collection of resource types. */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final java.util.List value; + + /** + * This is a collection of resource types. + * + * @return the value + */ + public java.util.List 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("ResourceTypeResourceFilter("); + 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 ResourceTypeResourceFilter)) { + return false; + } + + ResourceTypeResourceFilter other = (ResourceTypeResourceFilter) 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-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/Schedule.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/Schedule.java new file mode 100644 index 00000000000..429399befb1 --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/Schedule.java @@ -0,0 +1,1176 @@ +/** + * 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.resourcescheduler.model; + +/** + * A Schedule describes the date and time when an operation will be or has been applied to a set of + * resources. You must specify either the resources directly or provide a set of resource filters to + * select the resources. + * + *

To use any of the API operations, you must be authorized in an IAM policy. If you're not + * authorized, contact your administrator. If you're an administrator who needs to write policies to + * give users access, see [Getting Started with + * Policies](https://docs.cloud.oracle.com/iaas/Content/Identity/policiesgs/get-started-with-policies.htm). + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Schedule.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class Schedule extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "description", + "action", + "recurrenceDetails", + "recurrenceType", + "resourceFilters", + "resources", + "timeStarts", + "timeEnds", + "timeCreated", + "timeUpdated", + "timeLastRun", + "timeNextRun", + "lifecycleState", + "freeformTags", + "definedTags", + "systemTags" + }) + public Schedule( + String id, + String compartmentId, + String displayName, + String description, + Action action, + String recurrenceDetails, + RecurrenceType recurrenceType, + java.util.List resourceFilters, + java.util.List resources, + java.util.Date timeStarts, + java.util.Date timeEnds, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Date timeLastRun, + java.util.Date timeNextRun, + LifecycleState lifecycleState, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.description = description; + this.action = action; + this.recurrenceDetails = recurrenceDetails; + this.recurrenceType = recurrenceType; + this.resourceFilters = resourceFilters; + this.resources = resources; + this.timeStarts = timeStarts; + this.timeEnds = timeEnds; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.timeLastRun = timeLastRun; + this.timeNextRun = timeNextRun; + this.lifecycleState = lifecycleState; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the schedule + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the schedule + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment in which the schedule is created + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment in which the schedule is created + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * This is a user-friendly name for the schedule. It does not have to be unique, and it's + * changeable. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * This is a user-friendly name for the schedule. It does not have to be unique, and it's + * changeable. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** This is the description of the schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * This is the description of the schedule. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** This is the action that will be executed by the schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("action") + private Action action; + + /** + * This is the action that will be executed by the schedule. + * + * @param action the value to set + * @return this builder + */ + public Builder action(Action action) { + this.action = action; + this.__explicitlySet__.add("action"); + return this; + } + /** + * This is the frequency of recurrence of a schedule. The frequency field can either conform + * to RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value + * specified by the recurrenceType field. + */ + @com.fasterxml.jackson.annotation.JsonProperty("recurrenceDetails") + private String recurrenceDetails; + + /** + * This is the frequency of recurrence of a schedule. The frequency field can either conform + * to RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value + * specified by the recurrenceType field. + * + * @param recurrenceDetails the value to set + * @return this builder + */ + public Builder recurrenceDetails(String recurrenceDetails) { + this.recurrenceDetails = recurrenceDetails; + this.__explicitlySet__.add("recurrenceDetails"); + return this; + } + /** Type of recurrence of a schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("recurrenceType") + private RecurrenceType recurrenceType; + + /** + * Type of recurrence of a schedule + * + * @param recurrenceType the value to set + * @return this builder + */ + public Builder recurrenceType(RecurrenceType recurrenceType) { + this.recurrenceType = recurrenceType; + this.__explicitlySet__.add("recurrenceType"); + return this; + } + /** + * This is a list of resources filters. The schedule will be applied to resources matching + * all of them. + */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceFilters") + private java.util.List resourceFilters; + + /** + * This is a list of resources filters. The schedule will be applied to resources matching + * all of them. + * + * @param resourceFilters the value to set + * @return this builder + */ + public Builder resourceFilters(java.util.List resourceFilters) { + this.resourceFilters = resourceFilters; + this.__explicitlySet__.add("resourceFilters"); + return this; + } + /** This is the list of resources to which the scheduled operation is applied. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private java.util.List resources; + + /** + * This is the list of resources to which the scheduled operation is applied. + * + * @param resources the value to set + * @return this builder + */ + public Builder resources(java.util.List resources) { + this.resources = resources; + this.__explicitlySet__.add("resources"); + return this; + } + /** + * This is the date and time the schedule starts, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339) + * + *

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

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

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

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

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

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

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

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

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

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

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

Example: {@code 2016-08-25T21:10:29.600Z} + * + * @param timeNextRun the value to set + * @return this builder + */ + public Builder timeNextRun(java.util.Date timeNextRun) { + this.timeNextRun = timeNextRun; + this.__explicitlySet__.add("timeNextRun"); + return this; + } + /** This is the current state of a schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * This is the current state of a schedule. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * These are free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

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

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * These are 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; + + /** + * These are 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 Schedule build() { + Schedule model = + new Schedule( + this.id, + this.compartmentId, + this.displayName, + this.description, + this.action, + this.recurrenceDetails, + this.recurrenceType, + this.resourceFilters, + this.resources, + this.timeStarts, + this.timeEnds, + this.timeCreated, + this.timeUpdated, + this.timeLastRun, + this.timeNextRun, + this.lifecycleState, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Schedule 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("action")) { + this.action(model.getAction()); + } + if (model.wasPropertyExplicitlySet("recurrenceDetails")) { + this.recurrenceDetails(model.getRecurrenceDetails()); + } + if (model.wasPropertyExplicitlySet("recurrenceType")) { + this.recurrenceType(model.getRecurrenceType()); + } + if (model.wasPropertyExplicitlySet("resourceFilters")) { + this.resourceFilters(model.getResourceFilters()); + } + if (model.wasPropertyExplicitlySet("resources")) { + this.resources(model.getResources()); + } + if (model.wasPropertyExplicitlySet("timeStarts")) { + this.timeStarts(model.getTimeStarts()); + } + if (model.wasPropertyExplicitlySet("timeEnds")) { + this.timeEnds(model.getTimeEnds()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("timeLastRun")) { + this.timeLastRun(model.getTimeLastRun()); + } + if (model.wasPropertyExplicitlySet("timeNextRun")) { + this.timeNextRun(model.getTimeNextRun()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the schedule + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the schedule + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment in which the schedule is created + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment in which the schedule is created + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * This is a user-friendly name for the schedule. It does not have to be unique, and it's + * changeable. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * This is a user-friendly name for the schedule. It does not have to be unique, and it's + * changeable. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** This is the description of the schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * This is the description of the schedule. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** This is the action that will be executed by the schedule. */ + public enum Action implements com.oracle.bmc.http.internal.BmcEnum { + StartResource("START_RESOURCE"), + StopResource("STOP_RESOURCE"), + + /** + * 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(Action.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Action v : Action.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Action(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Action create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Action', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** This is the action that will be executed by the schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("action") + private final Action action; + + /** + * This is the action that will be executed by the schedule. + * + * @return the value + */ + public Action getAction() { + return action; + } + + /** + * This is the frequency of recurrence of a schedule. The frequency field can either conform to + * RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value specified by + * the recurrenceType field. + */ + @com.fasterxml.jackson.annotation.JsonProperty("recurrenceDetails") + private final String recurrenceDetails; + + /** + * This is the frequency of recurrence of a schedule. The frequency field can either conform to + * RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value specified by + * the recurrenceType field. + * + * @return the value + */ + public String getRecurrenceDetails() { + return recurrenceDetails; + } + + /** Type of recurrence of a schedule */ + public enum RecurrenceType implements com.oracle.bmc.http.internal.BmcEnum { + Cron("CRON"), + Ical("ICAL"), + + /** + * 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(RecurrenceType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RecurrenceType v : RecurrenceType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + RecurrenceType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RecurrenceType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'RecurrenceType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Type of recurrence of a schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("recurrenceType") + private final RecurrenceType recurrenceType; + + /** + * Type of recurrence of a schedule + * + * @return the value + */ + public RecurrenceType getRecurrenceType() { + return recurrenceType; + } + + /** + * This is a list of resources filters. The schedule will be applied to resources matching all + * of them. + */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceFilters") + private final java.util.List resourceFilters; + + /** + * This is a list of resources filters. The schedule will be applied to resources matching all + * of them. + * + * @return the value + */ + public java.util.List getResourceFilters() { + return resourceFilters; + } + + /** This is the list of resources to which the scheduled operation is applied. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private final java.util.List resources; + + /** + * This is the list of resources to which the scheduled operation is applied. + * + * @return the value + */ + public java.util.List getResources() { + return resources; + } + + /** + * This is the date and time the schedule starts, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339) + * + *

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

Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeStarts() { + return timeStarts; + } + + /** + * This is the date and time the schedule ends, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339) + * + *

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

Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeEnds() { + return timeEnds; + } + + /** + * This is the date and time the schedule was created, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + *

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

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

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

Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * This is the date and time the schedule runs last time, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + *

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

Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeLastRun() { + return timeLastRun; + } + + /** + * This is the date and time the schedule run the next time, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + *

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

Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeNextRun() { + return timeNextRun; + } + + /** This is the current state of a schedule. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Active("ACTIVE"), + Inactive("INACTIVE"), + Creating("CREATING"), + Updating("UPDATING"), + 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; + } + }; + /** This is the current state of a schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * This is the current state of a schedule. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * These are free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

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

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * These are 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; + + /** + * These are 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("Schedule("); + 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(", action=").append(String.valueOf(this.action)); + sb.append(", recurrenceDetails=").append(String.valueOf(this.recurrenceDetails)); + sb.append(", recurrenceType=").append(String.valueOf(this.recurrenceType)); + sb.append(", resourceFilters=").append(String.valueOf(this.resourceFilters)); + sb.append(", resources=").append(String.valueOf(this.resources)); + sb.append(", timeStarts=").append(String.valueOf(this.timeStarts)); + sb.append(", timeEnds=").append(String.valueOf(this.timeEnds)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", timeLastRun=").append(String.valueOf(this.timeLastRun)); + sb.append(", timeNextRun=").append(String.valueOf(this.timeNextRun)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Schedule)) { + return false; + } + + Schedule other = (Schedule) 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.action, other.action) + && java.util.Objects.equals(this.recurrenceDetails, other.recurrenceDetails) + && java.util.Objects.equals(this.recurrenceType, other.recurrenceType) + && java.util.Objects.equals(this.resourceFilters, other.resourceFilters) + && java.util.Objects.equals(this.resources, other.resources) + && java.util.Objects.equals(this.timeStarts, other.timeStarts) + && java.util.Objects.equals(this.timeEnds, other.timeEnds) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.timeLastRun, other.timeLastRun) + && java.util.Objects.equals(this.timeNextRun, other.timeNextRun) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.action == null ? 43 : this.action.hashCode()); + result = + (result * PRIME) + + (this.recurrenceDetails == null ? 43 : this.recurrenceDetails.hashCode()); + result = + (result * PRIME) + + (this.recurrenceType == null ? 43 : this.recurrenceType.hashCode()); + result = + (result * PRIME) + + (this.resourceFilters == null ? 43 : this.resourceFilters.hashCode()); + result = (result * PRIME) + (this.resources == null ? 43 : this.resources.hashCode()); + result = (result * PRIME) + (this.timeStarts == null ? 43 : this.timeStarts.hashCode()); + result = (result * PRIME) + (this.timeEnds == null ? 43 : this.timeEnds.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.timeLastRun == null ? 43 : this.timeLastRun.hashCode()); + result = (result * PRIME) + (this.timeNextRun == null ? 43 : this.timeNextRun.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/ScheduleCollection.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/ScheduleCollection.java new file mode 100644 index 00000000000..e43147ebd8c --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/ScheduleCollection.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.resourcescheduler.model; + +/** + * This is the list of schedule items.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ScheduleCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ScheduleCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public ScheduleCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** This is the list of schedule items. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * This is the list of schedule items. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ScheduleCollection build() { + ScheduleCollection model = new ScheduleCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ScheduleCollection 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); + } + + /** This is the list of schedule items. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * This is the list of schedule items. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ScheduleCollection("); + 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 ScheduleCollection)) { + return false; + } + + ScheduleCollection other = (ScheduleCollection) 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-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/ScheduleSummary.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/ScheduleSummary.java new file mode 100644 index 00000000000..b9cacefcda9 --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/ScheduleSummary.java @@ -0,0 +1,1158 @@ +/** + * 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.resourcescheduler.model; + +/** + * This is the summary information about a schedule.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ScheduleSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ScheduleSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "action", + "description", + "recurrenceDetails", + "recurrenceType", + "resourceFilters", + "resources", + "timeStarts", + "timeEnds", + "timeCreated", + "timeUpdated", + "timeLastRun", + "timeNextRun", + "lastRunStatus", + "lifecycleState", + "freeformTags", + "definedTags", + "systemTags" + }) + public ScheduleSummary( + String id, + String compartmentId, + String displayName, + Action action, + String description, + String recurrenceDetails, + RecurrenceType recurrenceType, + java.util.List resourceFilters, + java.util.List resources, + java.util.Date timeStarts, + java.util.Date timeEnds, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Date timeLastRun, + java.util.Date timeNextRun, + OperationStatus lastRunStatus, + Schedule.LifecycleState lifecycleState, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.action = action; + this.description = description; + this.recurrenceDetails = recurrenceDetails; + this.recurrenceType = recurrenceType; + this.resourceFilters = resourceFilters; + this.resources = resources; + this.timeStarts = timeStarts; + this.timeEnds = timeEnds; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.timeLastRun = timeLastRun; + this.timeNextRun = timeNextRun; + this.lastRunStatus = lastRunStatus; + this.lifecycleState = lifecycleState; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the schedule + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the schedule + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment in which the schedule is created + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment in which the schedule is created + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * This is a user-friendly name for the schedule. It does not have to be unique, and it's + * changeable. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * This is a user-friendly name for the schedule. It does not have to be unique, and it's + * changeable. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** This is the action that will be executed by the schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("action") + private Action action; + + /** + * This is the action that will be executed by the schedule. + * + * @param action the value to set + * @return this builder + */ + public Builder action(Action action) { + this.action = action; + this.__explicitlySet__.add("action"); + return this; + } + /** This is the description of the schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * This is the description of the schedule. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * This is the frequency of recurrence of a schedule. The frequency field can either conform + * to RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value + * specified by the recurrenceType field. + */ + @com.fasterxml.jackson.annotation.JsonProperty("recurrenceDetails") + private String recurrenceDetails; + + /** + * This is the frequency of recurrence of a schedule. The frequency field can either conform + * to RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value + * specified by the recurrenceType field. + * + * @param recurrenceDetails the value to set + * @return this builder + */ + public Builder recurrenceDetails(String recurrenceDetails) { + this.recurrenceDetails = recurrenceDetails; + this.__explicitlySet__.add("recurrenceDetails"); + return this; + } + /** Type of recurrence of a schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("recurrenceType") + private RecurrenceType recurrenceType; + + /** + * Type of recurrence of a schedule + * + * @param recurrenceType the value to set + * @return this builder + */ + public Builder recurrenceType(RecurrenceType recurrenceType) { + this.recurrenceType = recurrenceType; + this.__explicitlySet__.add("recurrenceType"); + return this; + } + /** + * This is a list of resources filters. The schedule will be applied to resources matching + * all of them. + */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceFilters") + private java.util.List resourceFilters; + + /** + * This is a list of resources filters. The schedule will be applied to resources matching + * all of them. + * + * @param resourceFilters the value to set + * @return this builder + */ + public Builder resourceFilters(java.util.List resourceFilters) { + this.resourceFilters = resourceFilters; + this.__explicitlySet__.add("resourceFilters"); + return this; + } + /** This is the list of resources to which the scheduled operation is applied. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private java.util.List resources; + + /** + * This is the list of resources to which the scheduled operation is applied. + * + * @param resources the value to set + * @return this builder + */ + public Builder resources(java.util.List resources) { + this.resources = resources; + this.__explicitlySet__.add("resources"); + return this; + } + /** + * This is the date and time the schedule starts, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339) + * + *

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

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

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

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

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

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

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

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

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

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

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

Example: {@code 2016-08-25T21:10:29.600Z} + * + * @param timeNextRun the value to set + * @return this builder + */ + public Builder timeNextRun(java.util.Date timeNextRun) { + this.timeNextRun = timeNextRun; + this.__explicitlySet__.add("timeNextRun"); + return this; + } + /** This is the status of the last work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("lastRunStatus") + private OperationStatus lastRunStatus; + + /** + * This is the status of the last work request. + * + * @param lastRunStatus the value to set + * @return this builder + */ + public Builder lastRunStatus(OperationStatus lastRunStatus) { + this.lastRunStatus = lastRunStatus; + this.__explicitlySet__.add("lastRunStatus"); + return this; + } + /** This is the current state of the schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private Schedule.LifecycleState lifecycleState; + + /** + * This is the current state of the schedule. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(Schedule.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * These are free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

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

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * These are 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; + + /** + * These are 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 ScheduleSummary build() { + ScheduleSummary model = + new ScheduleSummary( + this.id, + this.compartmentId, + this.displayName, + this.action, + this.description, + this.recurrenceDetails, + this.recurrenceType, + this.resourceFilters, + this.resources, + this.timeStarts, + this.timeEnds, + this.timeCreated, + this.timeUpdated, + this.timeLastRun, + this.timeNextRun, + this.lastRunStatus, + this.lifecycleState, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ScheduleSummary 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("action")) { + this.action(model.getAction()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("recurrenceDetails")) { + this.recurrenceDetails(model.getRecurrenceDetails()); + } + if (model.wasPropertyExplicitlySet("recurrenceType")) { + this.recurrenceType(model.getRecurrenceType()); + } + if (model.wasPropertyExplicitlySet("resourceFilters")) { + this.resourceFilters(model.getResourceFilters()); + } + if (model.wasPropertyExplicitlySet("resources")) { + this.resources(model.getResources()); + } + if (model.wasPropertyExplicitlySet("timeStarts")) { + this.timeStarts(model.getTimeStarts()); + } + if (model.wasPropertyExplicitlySet("timeEnds")) { + this.timeEnds(model.getTimeEnds()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("timeLastRun")) { + this.timeLastRun(model.getTimeLastRun()); + } + if (model.wasPropertyExplicitlySet("timeNextRun")) { + this.timeNextRun(model.getTimeNextRun()); + } + if (model.wasPropertyExplicitlySet("lastRunStatus")) { + this.lastRunStatus(model.getLastRunStatus()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the schedule + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the schedule + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment in which the schedule is created + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment in which the schedule is created + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * This is a user-friendly name for the schedule. It does not have to be unique, and it's + * changeable. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * This is a user-friendly name for the schedule. It does not have to be unique, and it's + * changeable. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** This is the action that will be executed by the schedule. */ + public enum Action implements com.oracle.bmc.http.internal.BmcEnum { + StartResource("START_RESOURCE"), + StopResource("STOP_RESOURCE"), + + /** + * 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(Action.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Action v : Action.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Action(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Action create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Action', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** This is the action that will be executed by the schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("action") + private final Action action; + + /** + * This is the action that will be executed by the schedule. + * + * @return the value + */ + public Action getAction() { + return action; + } + + /** This is the description of the schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * This is the description of the schedule. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** + * This is the frequency of recurrence of a schedule. The frequency field can either conform to + * RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value specified by + * the recurrenceType field. + */ + @com.fasterxml.jackson.annotation.JsonProperty("recurrenceDetails") + private final String recurrenceDetails; + + /** + * This is the frequency of recurrence of a schedule. The frequency field can either conform to + * RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value specified by + * the recurrenceType field. + * + * @return the value + */ + public String getRecurrenceDetails() { + return recurrenceDetails; + } + + /** Type of recurrence of a schedule */ + public enum RecurrenceType implements com.oracle.bmc.http.internal.BmcEnum { + Cron("CRON"), + Ical("ICAL"), + + /** + * 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(RecurrenceType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RecurrenceType v : RecurrenceType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + RecurrenceType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RecurrenceType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'RecurrenceType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Type of recurrence of a schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("recurrenceType") + private final RecurrenceType recurrenceType; + + /** + * Type of recurrence of a schedule + * + * @return the value + */ + public RecurrenceType getRecurrenceType() { + return recurrenceType; + } + + /** + * This is a list of resources filters. The schedule will be applied to resources matching all + * of them. + */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceFilters") + private final java.util.List resourceFilters; + + /** + * This is a list of resources filters. The schedule will be applied to resources matching all + * of them. + * + * @return the value + */ + public java.util.List getResourceFilters() { + return resourceFilters; + } + + /** This is the list of resources to which the scheduled operation is applied. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private final java.util.List resources; + + /** + * This is the list of resources to which the scheduled operation is applied. + * + * @return the value + */ + public java.util.List getResources() { + return resources; + } + + /** + * This is the date and time the schedule starts, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339) + * + *

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

Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeStarts() { + return timeStarts; + } + + /** + * This is the date and time the schedule ends, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339) + * + *

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

Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeEnds() { + return timeEnds; + } + + /** + * This is the date and time the schedule was created, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + *

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

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

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

Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * This is the date and time the schedule runs last time, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + *

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

Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeLastRun() { + return timeLastRun; + } + + /** + * This is the date and time the schedule run the next time, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + *

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

Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeNextRun() { + return timeNextRun; + } + + /** This is the status of the last work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("lastRunStatus") + private final OperationStatus lastRunStatus; + + /** + * This is the status of the last work request. + * + * @return the value + */ + public OperationStatus getLastRunStatus() { + return lastRunStatus; + } + + /** This is the current state of the schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final Schedule.LifecycleState lifecycleState; + + /** + * This is the current state of the schedule. + * + * @return the value + */ + public Schedule.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * These are free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

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

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * These are 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; + + /** + * These are 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("ScheduleSummary("); + 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(", action=").append(String.valueOf(this.action)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", recurrenceDetails=").append(String.valueOf(this.recurrenceDetails)); + sb.append(", recurrenceType=").append(String.valueOf(this.recurrenceType)); + sb.append(", resourceFilters=").append(String.valueOf(this.resourceFilters)); + sb.append(", resources=").append(String.valueOf(this.resources)); + sb.append(", timeStarts=").append(String.valueOf(this.timeStarts)); + sb.append(", timeEnds=").append(String.valueOf(this.timeEnds)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", timeLastRun=").append(String.valueOf(this.timeLastRun)); + sb.append(", timeNextRun=").append(String.valueOf(this.timeNextRun)); + sb.append(", lastRunStatus=").append(String.valueOf(this.lastRunStatus)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ScheduleSummary)) { + return false; + } + + ScheduleSummary other = (ScheduleSummary) 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.action, other.action) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.recurrenceDetails, other.recurrenceDetails) + && java.util.Objects.equals(this.recurrenceType, other.recurrenceType) + && java.util.Objects.equals(this.resourceFilters, other.resourceFilters) + && java.util.Objects.equals(this.resources, other.resources) + && java.util.Objects.equals(this.timeStarts, other.timeStarts) + && java.util.Objects.equals(this.timeEnds, other.timeEnds) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.timeLastRun, other.timeLastRun) + && java.util.Objects.equals(this.timeNextRun, other.timeNextRun) + && java.util.Objects.equals(this.lastRunStatus, other.lastRunStatus) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.action == null ? 43 : this.action.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.recurrenceDetails == null ? 43 : this.recurrenceDetails.hashCode()); + result = + (result * PRIME) + + (this.recurrenceType == null ? 43 : this.recurrenceType.hashCode()); + result = + (result * PRIME) + + (this.resourceFilters == null ? 43 : this.resourceFilters.hashCode()); + result = (result * PRIME) + (this.resources == null ? 43 : this.resources.hashCode()); + result = (result * PRIME) + (this.timeStarts == null ? 43 : this.timeStarts.hashCode()); + result = (result * PRIME) + (this.timeEnds == null ? 43 : this.timeEnds.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.timeLastRun == null ? 43 : this.timeLastRun.hashCode()); + result = (result * PRIME) + (this.timeNextRun == null ? 43 : this.timeNextRun.hashCode()); + result = + (result * PRIME) + + (this.lastRunStatus == null ? 43 : this.lastRunStatus.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/SortOrder.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/SortOrder.java new file mode 100644 index 00000000000..f34dccf1589 --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/SortOrder.java @@ -0,0 +1,43 @@ +/** + * 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.resourcescheduler.model; + +/** + * This sets the sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). The + * {@code displayName} sort order is case sensitive. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +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-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/TimeCreatedResourceFilter.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/TimeCreatedResourceFilter.java new file mode 100644 index 00000000000..e3e52db5c05 --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/TimeCreatedResourceFilter.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.resourcescheduler.model; + +/** + * This is a resource filter for filtering resources based on their creation time.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = TimeCreatedResourceFilter.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "attribute") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class TimeCreatedResourceFilter extends ResourceFilter { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** This is the condition for the filter in comparison to its creation time. */ + @com.fasterxml.jackson.annotation.JsonProperty("condition") + private Condition condition; + + /** + * This is the condition for the filter in comparison to its creation time. + * + * @param condition the value to set + * @return this builder + */ + public Builder condition(Condition condition) { + this.condition = condition; + this.__explicitlySet__.add("condition"); + return this; + } + /** This is the date and time as the value of the filter. */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private String value; + + /** + * This is the date and time as the value of the filter. + * + * @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 TimeCreatedResourceFilter build() { + TimeCreatedResourceFilter model = + new TimeCreatedResourceFilter(this.condition, this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TimeCreatedResourceFilter model) { + if (model.wasPropertyExplicitlySet("condition")) { + this.condition(model.getCondition()); + } + 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 TimeCreatedResourceFilter(Condition condition, String value) { + super(); + this.condition = condition; + this.value = value; + } + + /** This is the condition for the filter in comparison to its creation time. */ + public enum Condition implements com.oracle.bmc.http.internal.BmcEnum { + Equal("EQUAL"), + Before("BEFORE"), + After("AFTER"), + + /** + * 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(Condition.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Condition v : Condition.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Condition(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Condition create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Condition', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** This is the condition for the filter in comparison to its creation time. */ + @com.fasterxml.jackson.annotation.JsonProperty("condition") + private final Condition condition; + + /** + * This is the condition for the filter in comparison to its creation time. + * + * @return the value + */ + public Condition getCondition() { + return condition; + } + + /** This is the date and time as the value of the filter. */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final String value; + + /** + * This is the date and time as the value of the filter. + * + * @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("TimeCreatedResourceFilter("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", condition=").append(String.valueOf(this.condition)); + 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 TimeCreatedResourceFilter)) { + return false; + } + + TimeCreatedResourceFilter other = (TimeCreatedResourceFilter) o; + return java.util.Objects.equals(this.condition, other.condition) + && 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.condition == null ? 43 : this.condition.hashCode()); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + return result; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/UpdateScheduleDetails.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/UpdateScheduleDetails.java new file mode 100644 index 00000000000..d404faf096c --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/UpdateScheduleDetails.java @@ -0,0 +1,692 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.resourcescheduler.model; + +/** + * This is the data to update a schedule.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateScheduleDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateScheduleDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "description", + "action", + "recurrenceDetails", + "recurrenceType", + "resourceFilters", + "resources", + "timeStarts", + "timeEnds", + "freeformTags", + "definedTags" + }) + public UpdateScheduleDetails( + String displayName, + String description, + Action action, + String recurrenceDetails, + RecurrenceType recurrenceType, + java.util.List resourceFilters, + java.util.List resources, + java.util.Date timeStarts, + java.util.Date timeEnds, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.description = description; + this.action = action; + this.recurrenceDetails = recurrenceDetails; + this.recurrenceType = recurrenceType; + this.resourceFilters = resourceFilters; + this.resources = resources; + this.timeStarts = timeStarts; + this.timeEnds = timeEnds; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * This is a user-friendly name for the schedule. It does not have to be unique, and it's + * changeable. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * This is a user-friendly name for the schedule. It does not have to be unique, and it's + * changeable. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** This is the description of the schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * This is the description of the schedule. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** This is the action that will be executed by the schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("action") + private Action action; + + /** + * This is the action that will be executed by the schedule. + * + * @param action the value to set + * @return this builder + */ + public Builder action(Action action) { + this.action = action; + this.__explicitlySet__.add("action"); + return this; + } + /** + * This is the frequency of recurrence of a schedule. The frequency field can either conform + * to RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value + * specified by the recurrenceType field. + */ + @com.fasterxml.jackson.annotation.JsonProperty("recurrenceDetails") + private String recurrenceDetails; + + /** + * This is the frequency of recurrence of a schedule. The frequency field can either conform + * to RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value + * specified by the recurrenceType field. + * + * @param recurrenceDetails the value to set + * @return this builder + */ + public Builder recurrenceDetails(String recurrenceDetails) { + this.recurrenceDetails = recurrenceDetails; + this.__explicitlySet__.add("recurrenceDetails"); + return this; + } + /** Type of recurrence of a schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("recurrenceType") + private RecurrenceType recurrenceType; + + /** + * Type of recurrence of a schedule + * + * @param recurrenceType the value to set + * @return this builder + */ + public Builder recurrenceType(RecurrenceType recurrenceType) { + this.recurrenceType = recurrenceType; + this.__explicitlySet__.add("recurrenceType"); + return this; + } + /** + * This is a list of resources filters. The schedule will be applied to resources matching + * all of them. + */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceFilters") + private java.util.List resourceFilters; + + /** + * This is a list of resources filters. The schedule will be applied to resources matching + * all of them. + * + * @param resourceFilters the value to set + * @return this builder + */ + public Builder resourceFilters(java.util.List resourceFilters) { + this.resourceFilters = resourceFilters; + this.__explicitlySet__.add("resourceFilters"); + return this; + } + /** This is the list of resources to which the scheduled operation is applied. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private java.util.List resources; + + /** + * This is the list of resources to which the scheduled operation is applied. + * + * @param resources the value to set + * @return this builder + */ + public Builder resources(java.util.List resources) { + this.resources = resources; + this.__explicitlySet__.add("resources"); + return this; + } + /** + * This is the date and time the schedule starts, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339) + * + *

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

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

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

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

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

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

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateScheduleDetails build() { + UpdateScheduleDetails model = + new UpdateScheduleDetails( + this.displayName, + this.description, + this.action, + this.recurrenceDetails, + this.recurrenceType, + this.resourceFilters, + this.resources, + this.timeStarts, + this.timeEnds, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateScheduleDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("action")) { + this.action(model.getAction()); + } + if (model.wasPropertyExplicitlySet("recurrenceDetails")) { + this.recurrenceDetails(model.getRecurrenceDetails()); + } + if (model.wasPropertyExplicitlySet("recurrenceType")) { + this.recurrenceType(model.getRecurrenceType()); + } + if (model.wasPropertyExplicitlySet("resourceFilters")) { + this.resourceFilters(model.getResourceFilters()); + } + if (model.wasPropertyExplicitlySet("resources")) { + this.resources(model.getResources()); + } + if (model.wasPropertyExplicitlySet("timeStarts")) { + this.timeStarts(model.getTimeStarts()); + } + if (model.wasPropertyExplicitlySet("timeEnds")) { + this.timeEnds(model.getTimeEnds()); + } + 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); + } + + /** + * This is a user-friendly name for the schedule. It does not have to be unique, and it's + * changeable. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * This is a user-friendly name for the schedule. It does not have to be unique, and it's + * changeable. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** This is the description of the schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * This is the description of the schedule. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** This is the action that will be executed by the schedule. */ + public enum Action implements com.oracle.bmc.http.internal.BmcEnum { + StartResource("START_RESOURCE"), + StopResource("STOP_RESOURCE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Action v : Action.values()) { + map.put(v.getValue(), v); + } + } + + Action(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Action create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Action: " + key); + } + }; + /** This is the action that will be executed by the schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("action") + private final Action action; + + /** + * This is the action that will be executed by the schedule. + * + * @return the value + */ + public Action getAction() { + return action; + } + + /** + * This is the frequency of recurrence of a schedule. The frequency field can either conform to + * RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value specified by + * the recurrenceType field. + */ + @com.fasterxml.jackson.annotation.JsonProperty("recurrenceDetails") + private final String recurrenceDetails; + + /** + * This is the frequency of recurrence of a schedule. The frequency field can either conform to + * RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value specified by + * the recurrenceType field. + * + * @return the value + */ + public String getRecurrenceDetails() { + return recurrenceDetails; + } + + /** Type of recurrence of a schedule */ + public enum RecurrenceType implements com.oracle.bmc.http.internal.BmcEnum { + Cron("CRON"), + Ical("ICAL"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RecurrenceType v : RecurrenceType.values()) { + map.put(v.getValue(), v); + } + } + + RecurrenceType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RecurrenceType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid RecurrenceType: " + key); + } + }; + /** Type of recurrence of a schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("recurrenceType") + private final RecurrenceType recurrenceType; + + /** + * Type of recurrence of a schedule + * + * @return the value + */ + public RecurrenceType getRecurrenceType() { + return recurrenceType; + } + + /** + * This is a list of resources filters. The schedule will be applied to resources matching all + * of them. + */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceFilters") + private final java.util.List resourceFilters; + + /** + * This is a list of resources filters. The schedule will be applied to resources matching all + * of them. + * + * @return the value + */ + public java.util.List getResourceFilters() { + return resourceFilters; + } + + /** This is the list of resources to which the scheduled operation is applied. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private final java.util.List resources; + + /** + * This is the list of resources to which the scheduled operation is applied. + * + * @return the value + */ + public java.util.List getResources() { + return resources; + } + + /** + * This is the date and time the schedule starts, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339) + * + *

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

Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeStarts() { + return timeStarts; + } + + /** + * This is the date and time the schedule ends, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339) + * + *

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

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

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

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

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateScheduleDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", action=").append(String.valueOf(this.action)); + sb.append(", recurrenceDetails=").append(String.valueOf(this.recurrenceDetails)); + sb.append(", recurrenceType=").append(String.valueOf(this.recurrenceType)); + sb.append(", resourceFilters=").append(String.valueOf(this.resourceFilters)); + sb.append(", resources=").append(String.valueOf(this.resources)); + sb.append(", timeStarts=").append(String.valueOf(this.timeStarts)); + sb.append(", timeEnds=").append(String.valueOf(this.timeEnds)); + 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 UpdateScheduleDetails)) { + return false; + } + + UpdateScheduleDetails other = (UpdateScheduleDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.action, other.action) + && java.util.Objects.equals(this.recurrenceDetails, other.recurrenceDetails) + && java.util.Objects.equals(this.recurrenceType, other.recurrenceType) + && java.util.Objects.equals(this.resourceFilters, other.resourceFilters) + && java.util.Objects.equals(this.resources, other.resources) + && java.util.Objects.equals(this.timeStarts, other.timeStarts) + && java.util.Objects.equals(this.timeEnds, other.timeEnds) + && 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.action == null ? 43 : this.action.hashCode()); + result = + (result * PRIME) + + (this.recurrenceDetails == null ? 43 : this.recurrenceDetails.hashCode()); + result = + (result * PRIME) + + (this.recurrenceType == null ? 43 : this.recurrenceType.hashCode()); + result = + (result * PRIME) + + (this.resourceFilters == null ? 43 : this.resourceFilters.hashCode()); + result = (result * PRIME) + (this.resources == null ? 43 : this.resources.hashCode()); + result = (result * PRIME) + (this.timeStarts == null ? 43 : this.timeStarts.hashCode()); + result = (result * PRIME) + (this.timeEnds == null ? 43 : this.timeEnds.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-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/WorkRequest.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/WorkRequest.java new file mode 100644 index 00000000000..79bbaf81bd1 --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/WorkRequest.java @@ -0,0 +1,544 @@ +/** + * 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.resourcescheduler.model; + +/** + * This is an asynchronous work request. Work requests help you monitor long-running operations. + * When you start a long-running operation, the service creates a work request. A work request is an + * activity log that lets you track each step in the operation's progress. Each work request has an + * OCID that lets you interact with it programmatically and use it for automation.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = WorkRequest.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequest extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "operationType", + "status", + "id", + "compartmentId", + "resources", + "percentComplete", + "timeAccepted", + "timeStarted", + "timeFinished", + "timeUpdated" + }) + public WorkRequest( + OperationType operationType, + OperationStatus status, + String id, + String compartmentId, + java.util.List resources, + Float percentComplete, + java.util.Date timeAccepted, + java.util.Date timeStarted, + java.util.Date timeFinished, + java.util.Date timeUpdated) { + super(); + this.operationType = operationType; + this.status = status; + this.id = id; + this.compartmentId = compartmentId; + this.resources = resources; + this.percentComplete = percentComplete; + this.timeAccepted = timeAccepted; + this.timeStarted = timeStarted; + this.timeFinished = timeFinished; + this.timeUpdated = timeUpdated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The asynchronous operation tracked by this work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private OperationType operationType; + + /** + * The asynchronous operation tracked by this work request. + * + * @param operationType the value to set + * @return this builder + */ + public Builder operationType(OperationType operationType) { + this.operationType = operationType; + this.__explicitlySet__.add("operationType"); + return this; + } + /** This is the status of the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private OperationStatus status; + + /** + * This is the status of the work request. + * + * @param status the value to set + * @return this builder + */ + public Builder status(OperationStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the work request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the work request. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment that contains the work request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment that contains the work request. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** This is the resources that are affected by the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private java.util.List resources; + + /** + * This is the resources that are affected by the work request. + * + * @param resources the value to set + * @return this builder + */ + public Builder resources(java.util.List resources) { + this.resources = resources; + this.__explicitlySet__.add("resources"); + return this; + } + /** + * Shows the progress of the operation tracked by the work request, as a percentage of the + * total work that must be performed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private Float percentComplete; + + /** + * Shows the progress of the operation tracked by the work request, as a percentage of the + * total work that must be performed. + * + * @param percentComplete the value to set + * @return this builder + */ + public Builder percentComplete(Float percentComplete) { + this.percentComplete = percentComplete; + this.__explicitlySet__.add("percentComplete"); + return this; + } + /** + * This is the date and time the work request was created, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private java.util.Date timeAccepted; + + /** + * This is the date and time the work request was created, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + * @param timeAccepted the value to set + * @return this builder + */ + public Builder timeAccepted(java.util.Date timeAccepted) { + this.timeAccepted = timeAccepted; + this.__explicitlySet__.add("timeAccepted"); + return this; + } + /** + * This is the date and time the work request was started, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * This is the date and time the work request was started, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + * @param timeStarted the value to set + * @return this builder + */ + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + /** + * This is the date and time the work request was finished, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private java.util.Date timeFinished; + + /** + * This is the date and time the work request was finished, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @param timeFinished the value to set + * @return this builder + */ + public Builder timeFinished(java.util.Date timeFinished) { + this.timeFinished = timeFinished; + this.__explicitlySet__.add("timeFinished"); + return this; + } + /** + * This is the date and time the work request was updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * This is the date and time the work request was updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequest build() { + WorkRequest model = + new WorkRequest( + this.operationType, + this.status, + this.id, + this.compartmentId, + this.resources, + this.percentComplete, + this.timeAccepted, + this.timeStarted, + this.timeFinished, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequest model) { + if (model.wasPropertyExplicitlySet("operationType")) { + this.operationType(model.getOperationType()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("resources")) { + this.resources(model.getResources()); + } + if (model.wasPropertyExplicitlySet("percentComplete")) { + this.percentComplete(model.getPercentComplete()); + } + if (model.wasPropertyExplicitlySet("timeAccepted")) { + this.timeAccepted(model.getTimeAccepted()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeFinished")) { + this.timeFinished(model.getTimeFinished()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The asynchronous operation tracked by this work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private final OperationType operationType; + + /** + * The asynchronous operation tracked by this work request. + * + * @return the value + */ + public OperationType getOperationType() { + return operationType; + } + + /** This is the status of the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final OperationStatus status; + + /** + * This is the status of the work request. + * + * @return the value + */ + public OperationStatus getStatus() { + return status; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the work request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the work request. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment that contains the work request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment that contains the work request. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** This is the resources that are affected by the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private final java.util.List resources; + + /** + * This is the resources that are affected by the work request. + * + * @return the value + */ + public java.util.List getResources() { + return resources; + } + + /** + * Shows the progress of the operation tracked by the work request, as a percentage of the total + * work that must be performed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private final Float percentComplete; + + /** + * Shows the progress of the operation tracked by the work request, as a percentage of the total + * work that must be performed. + * + * @return the value + */ + public Float getPercentComplete() { + return percentComplete; + } + + /** + * This is the date and time the work request was created, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private final java.util.Date timeAccepted; + + /** + * This is the date and time the work request was created, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeAccepted() { + return timeAccepted; + } + + /** + * This is the date and time the work request was started, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * This is the date and time the work request was started, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** + * This is the date and time the work request was finished, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private final java.util.Date timeFinished; + + /** + * This is the date and time the work request was finished, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeFinished() { + return timeFinished; + } + + /** + * This is the date and time the work request was updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * This is the date and time the work request was updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequest("); + sb.append("super=").append(super.toString()); + sb.append("operationType=").append(String.valueOf(this.operationType)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", resources=").append(String.valueOf(this.resources)); + sb.append(", percentComplete=").append(String.valueOf(this.percentComplete)); + sb.append(", timeAccepted=").append(String.valueOf(this.timeAccepted)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append(", timeFinished=").append(String.valueOf(this.timeFinished)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequest)) { + return false; + } + + WorkRequest other = (WorkRequest) o; + return java.util.Objects.equals(this.operationType, other.operationType) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.resources, other.resources) + && java.util.Objects.equals(this.percentComplete, other.percentComplete) + && java.util.Objects.equals(this.timeAccepted, other.timeAccepted) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeFinished, other.timeFinished) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.operationType == null ? 43 : this.operationType.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.resources == null ? 43 : this.resources.hashCode()); + result = + (result * PRIME) + + (this.percentComplete == null ? 43 : this.percentComplete.hashCode()); + result = (result * PRIME) + (this.timeAccepted == null ? 43 : this.timeAccepted.hashCode()); + result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); + result = (result * PRIME) + (this.timeFinished == null ? 43 : this.timeFinished.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/WorkRequestError.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/WorkRequestError.java new file mode 100644 index 00000000000..5ebc7711eff --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/WorkRequestError.java @@ -0,0 +1,220 @@ +/** + * 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.resourcescheduler.model; + +/** + * This is an error encountered while performing an operation that is tracked by a work request. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = WorkRequestError.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestError + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"code", "message", "timestamp"}) + public WorkRequestError(String code, String message, java.util.Date timestamp) { + super(); + this.code = code; + this.message = message; + this.timestamp = timestamp; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A machine-usable code for the error that occurred. For a list of error codes, see [API + * Errors](https://docs.cloud.oracle.com/iaas/Content/API/References/apierrors.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private String code; + + /** + * A machine-usable code for the error that occurred. For a list of error codes, see [API + * Errors](https://docs.cloud.oracle.com/iaas/Content/API/References/apierrors.htm). + * + * @param code the value to set + * @return this builder + */ + public Builder code(String code) { + this.code = code; + this.__explicitlySet__.add("code"); + return this; + } + /** This is a human-readable error message. */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + /** + * This is a human-readable error message. + * + * @param message the value to set + * @return this builder + */ + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + /** + * This is the date and time the error occurred, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private java.util.Date timestamp; + + /** + * This is the date and time the error occurred, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + * @param timestamp the value to set + * @return this builder + */ + public Builder timestamp(java.util.Date timestamp) { + this.timestamp = timestamp; + this.__explicitlySet__.add("timestamp"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestError build() { + WorkRequestError model = new WorkRequestError(this.code, this.message, this.timestamp); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestError model) { + if (model.wasPropertyExplicitlySet("code")) { + this.code(model.getCode()); + } + if (model.wasPropertyExplicitlySet("message")) { + this.message(model.getMessage()); + } + if (model.wasPropertyExplicitlySet("timestamp")) { + this.timestamp(model.getTimestamp()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A machine-usable code for the error that occurred. For a list of error codes, see [API + * Errors](https://docs.cloud.oracle.com/iaas/Content/API/References/apierrors.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private final String code; + + /** + * A machine-usable code for the error that occurred. For a list of error codes, see [API + * Errors](https://docs.cloud.oracle.com/iaas/Content/API/References/apierrors.htm). + * + * @return the value + */ + public String getCode() { + return code; + } + + /** This is a human-readable error message. */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private final String message; + + /** + * This is a human-readable error message. + * + * @return the value + */ + public String getMessage() { + return message; + } + + /** + * This is the date and time the error occurred, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private final java.util.Date timestamp; + + /** + * This is the date and time the error occurred, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + * @return the value + */ + public java.util.Date getTimestamp() { + return timestamp; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestError("); + sb.append("super=").append(super.toString()); + sb.append("code=").append(String.valueOf(this.code)); + sb.append(", message=").append(String.valueOf(this.message)); + sb.append(", timestamp=").append(String.valueOf(this.timestamp)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestError)) { + return false; + } + + WorkRequestError other = (WorkRequestError) o; + return java.util.Objects.equals(this.code, other.code) + && java.util.Objects.equals(this.message, other.message) + && java.util.Objects.equals(this.timestamp, other.timestamp) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.code == null ? 43 : this.code.hashCode()); + result = (result * PRIME) + (this.message == null ? 43 : this.message.hashCode()); + result = (result * PRIME) + (this.timestamp == null ? 43 : this.timestamp.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/WorkRequestErrorCollection.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/WorkRequestErrorCollection.java new file mode 100644 index 00000000000..3d657e5392f --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/WorkRequestErrorCollection.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.resourcescheduler.model; + +/** + * This is a list of work request errors. Can contain both errors and other information, such as + * metadata.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestErrorCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestErrorCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public WorkRequestErrorCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** This is a list of work request errors. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * This is a list of work request errors. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestErrorCollection build() { + WorkRequestErrorCollection model = new WorkRequestErrorCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestErrorCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** This is a list of work request errors. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * This is a list of work request errors. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestErrorCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestErrorCollection)) { + return false; + } + + WorkRequestErrorCollection other = (WorkRequestErrorCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/WorkRequestLogEntry.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/WorkRequestLogEntry.java new file mode 100644 index 00000000000..f7b92acdf6a --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/WorkRequestLogEntry.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.resourcescheduler.model; + +/** + * This is a log message from performing an operation that is tracked by a work request.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestLogEntry.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestLogEntry + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"message", "timestamp"}) + public WorkRequestLogEntry(String message, java.util.Date timestamp) { + super(); + this.message = message; + this.timestamp = timestamp; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** This is a human-readable log message. */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + /** + * This is a human-readable log message. + * + * @param message the value to set + * @return this builder + */ + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + /** + * This is the date and time the log message was written, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private java.util.Date timestamp; + + /** + * This is the date and time the log message was written, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + * @param timestamp the value to set + * @return this builder + */ + public Builder timestamp(java.util.Date timestamp) { + this.timestamp = timestamp; + this.__explicitlySet__.add("timestamp"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestLogEntry build() { + WorkRequestLogEntry model = new WorkRequestLogEntry(this.message, this.timestamp); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestLogEntry model) { + if (model.wasPropertyExplicitlySet("message")) { + this.message(model.getMessage()); + } + if (model.wasPropertyExplicitlySet("timestamp")) { + this.timestamp(model.getTimestamp()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** This is a human-readable log message. */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private final String message; + + /** + * This is a human-readable log message. + * + * @return the value + */ + public String getMessage() { + return message; + } + + /** + * This is the date and time the log message was written, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private final java.util.Date timestamp; + + /** + * This is the date and time the log message was written, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + * @return the value + */ + public java.util.Date getTimestamp() { + return timestamp; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestLogEntry("); + sb.append("super=").append(super.toString()); + sb.append("message=").append(String.valueOf(this.message)); + sb.append(", timestamp=").append(String.valueOf(this.timestamp)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestLogEntry)) { + return false; + } + + WorkRequestLogEntry other = (WorkRequestLogEntry) o; + return java.util.Objects.equals(this.message, other.message) + && java.util.Objects.equals(this.timestamp, other.timestamp) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.message == null ? 43 : this.message.hashCode()); + result = (result * PRIME) + (this.timestamp == null ? 43 : this.timestamp.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/WorkRequestLogEntryCollection.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/WorkRequestLogEntryCollection.java new file mode 100644 index 00000000000..c5a882e3fa6 --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/WorkRequestLogEntryCollection.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.resourcescheduler.model; + +/** + * This is a list of work request logs. Can contain both logs and other information, such as + * metadata.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestLogEntryCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestLogEntryCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public WorkRequestLogEntryCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** This is a list of work request log entries. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * This is a list of work request log entries. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestLogEntryCollection build() { + WorkRequestLogEntryCollection model = new WorkRequestLogEntryCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestLogEntryCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** This is a list of work request log entries. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * This is a list of work request log entries. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestLogEntryCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestLogEntryCollection)) { + return false; + } + + WorkRequestLogEntryCollection other = (WorkRequestLogEntryCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/WorkRequestResource.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/WorkRequestResource.java new file mode 100644 index 00000000000..026d857f65d --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/WorkRequestResource.java @@ -0,0 +1,272 @@ +/** + * 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.resourcescheduler.model; + +/** + * This is a resource created or operated on by a work request.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestResource.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestResource + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"entityType", "actionType", "identifier", "entityUri"}) + public WorkRequestResource( + String entityType, ActionType actionType, String identifier, String entityUri) { + super(); + this.entityType = entityType; + this.actionType = actionType; + this.identifier = identifier; + this.entityUri = entityUri; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** This is the resource type that the work request affects. */ + @com.fasterxml.jackson.annotation.JsonProperty("entityType") + private String entityType; + + /** + * This is the resource type that the work request affects. + * + * @param entityType the value to set + * @return this builder + */ + public Builder entityType(String entityType) { + this.entityType = entityType; + this.__explicitlySet__.add("entityType"); + return this; + } + /** + * The way in which this resource is affected by the operation tracked in the work request. + * A resource being created, updated, or deleted remains in the IN_PROGRESS state until work + * is complete for that resource, at which point it transitions to CREATED, UPDATED, or + * DELETED, respectively. + */ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private ActionType actionType; + + /** + * The way in which this resource is affected by the operation tracked in the work request. + * A resource being created, updated, or deleted remains in the IN_PROGRESS state until work + * is complete for that resource, at which point it transitions to CREATED, UPDATED, or + * DELETED, respectively. + * + * @param actionType the value to set + * @return this builder + */ + public Builder actionType(ActionType actionType) { + this.actionType = actionType; + this.__explicitlySet__.add("actionType"); + return this; + } + /** + * This is an + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) or + * other unique identifier for the resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("identifier") + private String identifier; + + /** + * This is an + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) or + * other unique identifier for the resource. + * + * @param identifier the value to set + * @return this builder + */ + public Builder identifier(String identifier) { + this.identifier = identifier; + this.__explicitlySet__.add("identifier"); + return this; + } + /** + * This is the URI path that you can use for a GET request to access the resource metadata. + */ + @com.fasterxml.jackson.annotation.JsonProperty("entityUri") + private String entityUri; + + /** + * This is the URI path that you can use for a GET request to access the resource metadata. + * + * @param entityUri the value to set + * @return this builder + */ + public Builder entityUri(String entityUri) { + this.entityUri = entityUri; + this.__explicitlySet__.add("entityUri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestResource build() { + WorkRequestResource model = + new WorkRequestResource( + this.entityType, this.actionType, this.identifier, this.entityUri); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestResource model) { + if (model.wasPropertyExplicitlySet("entityType")) { + this.entityType(model.getEntityType()); + } + if (model.wasPropertyExplicitlySet("actionType")) { + this.actionType(model.getActionType()); + } + if (model.wasPropertyExplicitlySet("identifier")) { + this.identifier(model.getIdentifier()); + } + if (model.wasPropertyExplicitlySet("entityUri")) { + this.entityUri(model.getEntityUri()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** This is the resource type that the work request affects. */ + @com.fasterxml.jackson.annotation.JsonProperty("entityType") + private final String entityType; + + /** + * This is the resource type that the work request affects. + * + * @return the value + */ + public String getEntityType() { + return entityType; + } + + /** + * The way in which this resource is affected by the operation tracked in the work request. A + * resource being created, updated, or deleted remains in the IN_PROGRESS state until work is + * complete for that resource, at which point it transitions to CREATED, UPDATED, or DELETED, + * respectively. + */ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private final ActionType actionType; + + /** + * The way in which this resource is affected by the operation tracked in the work request. A + * resource being created, updated, or deleted remains in the IN_PROGRESS state until work is + * complete for that resource, at which point it transitions to CREATED, UPDATED, or DELETED, + * respectively. + * + * @return the value + */ + public ActionType getActionType() { + return actionType; + } + + /** + * This is an + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) or other + * unique identifier for the resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("identifier") + private final String identifier; + + /** + * This is an + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) or other + * unique identifier for the resource. + * + * @return the value + */ + public String getIdentifier() { + return identifier; + } + + /** This is the URI path that you can use for a GET request to access the resource metadata. */ + @com.fasterxml.jackson.annotation.JsonProperty("entityUri") + private final String entityUri; + + /** + * This is the URI path that you can use for a GET request to access the resource metadata. + * + * @return the value + */ + public String getEntityUri() { + return entityUri; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestResource("); + sb.append("super=").append(super.toString()); + sb.append("entityType=").append(String.valueOf(this.entityType)); + sb.append(", actionType=").append(String.valueOf(this.actionType)); + sb.append(", identifier=").append(String.valueOf(this.identifier)); + sb.append(", entityUri=").append(String.valueOf(this.entityUri)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestResource)) { + return false; + } + + WorkRequestResource other = (WorkRequestResource) o; + return java.util.Objects.equals(this.entityType, other.entityType) + && java.util.Objects.equals(this.actionType, other.actionType) + && java.util.Objects.equals(this.identifier, other.identifier) + && java.util.Objects.equals(this.entityUri, other.entityUri) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.entityType == null ? 43 : this.entityType.hashCode()); + result = (result * PRIME) + (this.actionType == null ? 43 : this.actionType.hashCode()); + result = (result * PRIME) + (this.identifier == null ? 43 : this.identifier.hashCode()); + result = (result * PRIME) + (this.entityUri == null ? 43 : this.entityUri.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/WorkRequestSummary.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/WorkRequestSummary.java new file mode 100644 index 00000000000..4fd2198ef46 --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/WorkRequestSummary.java @@ -0,0 +1,543 @@ +/** + * 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.resourcescheduler.model; + +/** + * This is the summary information about an asynchronous work request.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "operationType", + "status", + "id", + "compartmentId", + "resources", + "percentComplete", + "timeAccepted", + "timeStarted", + "timeFinished", + "timeUpdated" + }) + public WorkRequestSummary( + OperationType operationType, + OperationStatus status, + String id, + String compartmentId, + java.util.List resources, + Float percentComplete, + java.util.Date timeAccepted, + java.util.Date timeStarted, + java.util.Date timeFinished, + java.util.Date timeUpdated) { + super(); + this.operationType = operationType; + this.status = status; + this.id = id; + this.compartmentId = compartmentId; + this.resources = resources; + this.percentComplete = percentComplete; + this.timeAccepted = timeAccepted; + this.timeStarted = timeStarted; + this.timeFinished = timeFinished; + this.timeUpdated = timeUpdated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** This is the asynchronous operation tracked by this work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private OperationType operationType; + + /** + * This is the asynchronous operation tracked by this work request. + * + * @param operationType the value to set + * @return this builder + */ + public Builder operationType(OperationType operationType) { + this.operationType = operationType; + this.__explicitlySet__.add("operationType"); + return this; + } + /** This is the status of the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private OperationStatus status; + + /** + * This is the status of the work request. + * + * @param status the value to set + * @return this builder + */ + public Builder status(OperationStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the work request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the work request. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment that contains the work request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment that contains the work request. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The resources that are affected by this work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private java.util.List resources; + + /** + * The resources that are affected by this work request. + * + * @param resources the value to set + * @return this builder + */ + public Builder resources(java.util.List resources) { + this.resources = resources; + this.__explicitlySet__.add("resources"); + return this; + } + /** + * Shows the progress of the operation tracked by the work request, as a percentage of the + * total work that must be performed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private Float percentComplete; + + /** + * Shows the progress of the operation tracked by the work request, as a percentage of the + * total work that must be performed. + * + * @param percentComplete the value to set + * @return this builder + */ + public Builder percentComplete(Float percentComplete) { + this.percentComplete = percentComplete; + this.__explicitlySet__.add("percentComplete"); + return this; + } + /** + * This is the date and time the work request was created, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private java.util.Date timeAccepted; + + /** + * This is the date and time the work request was created, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + * @param timeAccepted the value to set + * @return this builder + */ + public Builder timeAccepted(java.util.Date timeAccepted) { + this.timeAccepted = timeAccepted; + this.__explicitlySet__.add("timeAccepted"); + return this; + } + /** + * This is the date and time the work request was started, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * This is the date and time the work request was started, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + * @param timeStarted the value to set + * @return this builder + */ + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + /** + * This is the date and time the work request was finished, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private java.util.Date timeFinished; + + /** + * This is the date and time the work request was finished, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @param timeFinished the value to set + * @return this builder + */ + public Builder timeFinished(java.util.Date timeFinished) { + this.timeFinished = timeFinished; + this.__explicitlySet__.add("timeFinished"); + return this; + } + /** + * This is the date and time the work request was updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * This is the date and time the work request was updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestSummary build() { + WorkRequestSummary model = + new WorkRequestSummary( + this.operationType, + this.status, + this.id, + this.compartmentId, + this.resources, + this.percentComplete, + this.timeAccepted, + this.timeStarted, + this.timeFinished, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestSummary model) { + if (model.wasPropertyExplicitlySet("operationType")) { + this.operationType(model.getOperationType()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("resources")) { + this.resources(model.getResources()); + } + if (model.wasPropertyExplicitlySet("percentComplete")) { + this.percentComplete(model.getPercentComplete()); + } + if (model.wasPropertyExplicitlySet("timeAccepted")) { + this.timeAccepted(model.getTimeAccepted()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeFinished")) { + this.timeFinished(model.getTimeFinished()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** This is the asynchronous operation tracked by this work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private final OperationType operationType; + + /** + * This is the asynchronous operation tracked by this work request. + * + * @return the value + */ + public OperationType getOperationType() { + return operationType; + } + + /** This is the status of the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final OperationStatus status; + + /** + * This is the status of the work request. + * + * @return the value + */ + public OperationStatus getStatus() { + return status; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the work request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the work request. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment that contains the work request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment that contains the work request. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The resources that are affected by this work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private final java.util.List resources; + + /** + * The resources that are affected by this work request. + * + * @return the value + */ + public java.util.List getResources() { + return resources; + } + + /** + * Shows the progress of the operation tracked by the work request, as a percentage of the total + * work that must be performed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private final Float percentComplete; + + /** + * Shows the progress of the operation tracked by the work request, as a percentage of the total + * work that must be performed. + * + * @return the value + */ + public Float getPercentComplete() { + return percentComplete; + } + + /** + * This is the date and time the work request was created, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private final java.util.Date timeAccepted; + + /** + * This is the date and time the work request was created, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeAccepted() { + return timeAccepted; + } + + /** + * This is the date and time the work request was started, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * This is the date and time the work request was started, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** + * This is the date and time the work request was finished, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private final java.util.Date timeFinished; + + /** + * This is the date and time the work request was finished, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeFinished() { + return timeFinished; + } + + /** + * This is the date and time the work request was updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * This is the date and time the work request was updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestSummary("); + sb.append("super=").append(super.toString()); + sb.append("operationType=").append(String.valueOf(this.operationType)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", resources=").append(String.valueOf(this.resources)); + sb.append(", percentComplete=").append(String.valueOf(this.percentComplete)); + sb.append(", timeAccepted=").append(String.valueOf(this.timeAccepted)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append(", timeFinished=").append(String.valueOf(this.timeFinished)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestSummary)) { + return false; + } + + WorkRequestSummary other = (WorkRequestSummary) o; + return java.util.Objects.equals(this.operationType, other.operationType) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.resources, other.resources) + && java.util.Objects.equals(this.percentComplete, other.percentComplete) + && java.util.Objects.equals(this.timeAccepted, other.timeAccepted) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeFinished, other.timeFinished) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.operationType == null ? 43 : this.operationType.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.resources == null ? 43 : this.resources.hashCode()); + result = + (result * PRIME) + + (this.percentComplete == null ? 43 : this.percentComplete.hashCode()); + result = (result * PRIME) + (this.timeAccepted == null ? 43 : this.timeAccepted.hashCode()); + result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); + result = (result * PRIME) + (this.timeFinished == null ? 43 : this.timeFinished.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/WorkRequestSummaryCollection.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/WorkRequestSummaryCollection.java new file mode 100644 index 00000000000..0c57794302d --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/model/WorkRequestSummaryCollection.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.resourcescheduler.model; + +/** + * This is a list of work requests. Can contain both work requests and other information, such as + * metadata.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestSummaryCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestSummaryCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public WorkRequestSummaryCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** This is a list of work requests. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * This is a list of work requests. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestSummaryCollection build() { + WorkRequestSummaryCollection model = new WorkRequestSummaryCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestSummaryCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** This is a list of work requests. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * This is a list of work requests. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestSummaryCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestSummaryCollection)) { + return false; + } + + WorkRequestSummaryCollection other = (WorkRequestSummaryCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/ActivateScheduleRequest.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/ActivateScheduleRequest.java new file mode 100644 index 00000000000..c9d26eaaff8 --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/ActivateScheduleRequest.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.resourcescheduler.requests; + +import com.oracle.bmc.resourcescheduler.model.*; +/** + * Example: Click here to see how to use ActivateScheduleRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class ActivateScheduleRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * schedule. + */ + private String scheduleId; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * schedule. + */ + public String getScheduleId() { + return scheduleId; + } + /** + * This is used 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; + + /** + * This is used 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; + } + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. The only valid characters for + * request IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. The only valid characters for + * request IDs are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * This is a token that uniquely identifies a request so it can be retried in case of a timeout + * or server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and removed from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * This is a token that uniquely identifies a request so it can be retried in case of a timeout + * or server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and removed from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ActivateScheduleRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the schedule. + */ + private String scheduleId = null; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the schedule. + * + * @param scheduleId the value to set + * @return this builder instance + */ + public Builder scheduleId(String scheduleId) { + this.scheduleId = scheduleId; + return this; + } + + /** + * This is used 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; + + /** + * This is used 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; + } + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. The only valid + * characters for request IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. The only valid + * characters for request IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * This is a token that uniquely identifies a request so it can be retried in case of a + * timeout or server error without risk of running that same action again. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. + * For example, if a resource has been deleted and removed from the system, then a retry of + * the original creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * This is a token that uniquely identifies a request so it can be retried in case of a + * timeout or server error without risk of running that same action again. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. + * For example, if a resource has been deleted and removed from the system, then a retry of + * the original creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ActivateScheduleRequest o) { + scheduleId(o.getScheduleId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ActivateScheduleRequest 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 ActivateScheduleRequest + */ + public ActivateScheduleRequest build() { + ActivateScheduleRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ActivateScheduleRequest 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 ActivateScheduleRequest + */ + public ActivateScheduleRequest buildWithoutInvocationCallback() { + ActivateScheduleRequest request = new ActivateScheduleRequest(); + request.scheduleId = scheduleId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new ActivateScheduleRequest(scheduleId, ifMatch, opcRequestId, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .scheduleId(scheduleId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",scheduleId=").append(String.valueOf(this.scheduleId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ActivateScheduleRequest)) { + return false; + } + + ActivateScheduleRequest other = (ActivateScheduleRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.scheduleId, other.scheduleId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.scheduleId == null ? 43 : this.scheduleId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/CancelWorkRequestRequest.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/CancelWorkRequestRequest.java new file mode 100644 index 00000000000..a11f5181591 --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/CancelWorkRequestRequest.java @@ -0,0 +1,267 @@ +/** + * 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.resourcescheduler.requests; + +import com.oracle.bmc.resourcescheduler.model.*; +/** + * Example: Click here to see how to use CancelWorkRequestRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class CancelWorkRequestRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + private String workRequestId; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + public String getWorkRequestId() { + return workRequestId; + } + /** + * This is used 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; + + /** + * This is used 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; + } + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. The only valid characters for + * request IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. The only valid characters for + * request IDs are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CancelWorkRequestRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the asynchronous work request. + */ + private String workRequestId = null; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the asynchronous work request. + * + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** + * This is used 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; + + /** + * This is used 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; + } + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. The only valid + * characters for request IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. The only valid + * characters for request IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(CancelWorkRequestRequest o) { + workRequestId(o.getWorkRequestId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CancelWorkRequestRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of CancelWorkRequestRequest + */ + public CancelWorkRequestRequest build() { + CancelWorkRequestRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of CancelWorkRequestRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of CancelWorkRequestRequest + */ + public CancelWorkRequestRequest buildWithoutInvocationCallback() { + CancelWorkRequestRequest request = new CancelWorkRequestRequest(); + request.workRequestId = workRequestId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new CancelWorkRequestRequest(workRequestId, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .workRequestId(workRequestId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CancelWorkRequestRequest)) { + return false; + } + + CancelWorkRequestRequest other = (CancelWorkRequestRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/CreateScheduleRequest.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/CreateScheduleRequest.java new file mode 100644 index 00000000000..5c22f242226 --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/CreateScheduleRequest.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.resourcescheduler.requests; + +import com.oracle.bmc.resourcescheduler.model.*; +/** + * Example: Click here to see how to use CreateScheduleRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class CreateScheduleRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.resourcescheduler.model.CreateScheduleDetails> { + + /** This API shows the details of the new schedule */ + private com.oracle.bmc.resourcescheduler.model.CreateScheduleDetails createScheduleDetails; + + /** This API shows the details of the new schedule */ + public com.oracle.bmc.resourcescheduler.model.CreateScheduleDetails getCreateScheduleDetails() { + return createScheduleDetails; + } + /** + * This is a token that uniquely identifies a request so it can be retried in case of a timeout + * or server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and removed from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * This is a token that uniquely identifies a request so it can be retried in case of a timeout + * or server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and removed from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. The only valid characters for + * request IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. The only valid characters for + * request IDs are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.resourcescheduler.model.CreateScheduleDetails getBody$() { + return createScheduleDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateScheduleRequest, + com.oracle.bmc.resourcescheduler.model.CreateScheduleDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** This API shows the details of the new schedule */ + private com.oracle.bmc.resourcescheduler.model.CreateScheduleDetails createScheduleDetails = + null; + + /** + * This API shows the details of the new schedule + * + * @param createScheduleDetails the value to set + * @return this builder instance + */ + public Builder createScheduleDetails( + com.oracle.bmc.resourcescheduler.model.CreateScheduleDetails + createScheduleDetails) { + this.createScheduleDetails = createScheduleDetails; + return this; + } + + /** + * This is a token that uniquely identifies a request so it can be retried in case of a + * timeout or server error without risk of running that same action again. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. + * For example, if a resource has been deleted and removed from the system, then a retry of + * the original creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * This is a token that uniquely identifies a request so it can be retried in case of a + * timeout or server error without risk of running that same action again. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. + * For example, if a resource has been deleted and removed from the system, then a retry of + * the original creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. The only valid + * characters for request IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. The only valid + * characters for request IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(CreateScheduleRequest o) { + createScheduleDetails(o.getCreateScheduleDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateScheduleRequest 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 CreateScheduleRequest + */ + public CreateScheduleRequest build() { + CreateScheduleRequest 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.resourcescheduler.model.CreateScheduleDetails body) { + createScheduleDetails(body); + return this; + } + + /** + * Build the instance of CreateScheduleRequest 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 CreateScheduleRequest + */ + public CreateScheduleRequest buildWithoutInvocationCallback() { + CreateScheduleRequest request = new CreateScheduleRequest(); + request.createScheduleDetails = createScheduleDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateScheduleRequest(createScheduleDetails, 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() + .createScheduleDetails(createScheduleDetails) + .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(",createScheduleDetails=").append(String.valueOf(this.createScheduleDetails)); + 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 CreateScheduleRequest)) { + return false; + } + + CreateScheduleRequest other = (CreateScheduleRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.createScheduleDetails, other.createScheduleDetails) + && 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.createScheduleDetails == null + ? 43 + : this.createScheduleDetails.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-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/DeactivateScheduleRequest.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/DeactivateScheduleRequest.java new file mode 100644 index 00000000000..e6faab6fa80 --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/DeactivateScheduleRequest.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.resourcescheduler.requests; + +import com.oracle.bmc.resourcescheduler.model.*; +/** + * Example: Click here to see how to use DeactivateScheduleRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class DeactivateScheduleRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * schedule. + */ + private String scheduleId; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * schedule. + */ + public String getScheduleId() { + return scheduleId; + } + /** + * This is used 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; + + /** + * This is used 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; + } + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. The only valid characters for + * request IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. The only valid characters for + * request IDs are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * This is a token that uniquely identifies a request so it can be retried in case of a timeout + * or server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and removed from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * This is a token that uniquely identifies a request so it can be retried in case of a timeout + * or server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and removed from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeactivateScheduleRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the schedule. + */ + private String scheduleId = null; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the schedule. + * + * @param scheduleId the value to set + * @return this builder instance + */ + public Builder scheduleId(String scheduleId) { + this.scheduleId = scheduleId; + return this; + } + + /** + * This is used 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; + + /** + * This is used 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; + } + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. The only valid + * characters for request IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. The only valid + * characters for request IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * This is a token that uniquely identifies a request so it can be retried in case of a + * timeout or server error without risk of running that same action again. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. + * For example, if a resource has been deleted and removed from the system, then a retry of + * the original creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * This is a token that uniquely identifies a request so it can be retried in case of a + * timeout or server error without risk of running that same action again. Retry tokens + * expire after 24 hours, but can be invalidated before then due to conflicting operations. + * For example, if a resource has been deleted and removed from the system, then a retry of + * the original creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DeactivateScheduleRequest o) { + scheduleId(o.getScheduleId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeactivateScheduleRequest 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 DeactivateScheduleRequest + */ + public DeactivateScheduleRequest build() { + DeactivateScheduleRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeactivateScheduleRequest 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 DeactivateScheduleRequest + */ + public DeactivateScheduleRequest buildWithoutInvocationCallback() { + DeactivateScheduleRequest request = new DeactivateScheduleRequest(); + request.scheduleId = scheduleId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new DeactivateScheduleRequest(scheduleId, ifMatch, opcRequestId, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .scheduleId(scheduleId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",scheduleId=").append(String.valueOf(this.scheduleId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeactivateScheduleRequest)) { + return false; + } + + DeactivateScheduleRequest other = (DeactivateScheduleRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.scheduleId, other.scheduleId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.scheduleId == null ? 43 : this.scheduleId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/DeleteScheduleRequest.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/DeleteScheduleRequest.java new file mode 100644 index 00000000000..3e75372afa6 --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/DeleteScheduleRequest.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.resourcescheduler.requests; + +import com.oracle.bmc.resourcescheduler.model.*; +/** + * Example: Click here to see how to use DeleteScheduleRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class DeleteScheduleRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * schedule. + */ + private String scheduleId; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * schedule. + */ + public String getScheduleId() { + return scheduleId; + } + /** + * This is used 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; + + /** + * This is used 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; + } + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. The only valid characters for + * request IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. The only valid characters for + * request IDs are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteScheduleRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the schedule. + */ + private String scheduleId = null; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the schedule. + * + * @param scheduleId the value to set + * @return this builder instance + */ + public Builder scheduleId(String scheduleId) { + this.scheduleId = scheduleId; + return this; + } + + /** + * This is used 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; + + /** + * This is used 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; + } + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. The only valid + * characters for request IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. The only valid + * characters for request IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DeleteScheduleRequest o) { + scheduleId(o.getScheduleId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteScheduleRequest 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 DeleteScheduleRequest + */ + public DeleteScheduleRequest build() { + DeleteScheduleRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteScheduleRequest 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 DeleteScheduleRequest + */ + public DeleteScheduleRequest buildWithoutInvocationCallback() { + DeleteScheduleRequest request = new DeleteScheduleRequest(); + request.scheduleId = scheduleId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteScheduleRequest(scheduleId, 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().scheduleId(scheduleId).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(",scheduleId=").append(String.valueOf(this.scheduleId)); + 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 DeleteScheduleRequest)) { + return false; + } + + DeleteScheduleRequest other = (DeleteScheduleRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.scheduleId, other.scheduleId) + && 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.scheduleId == null ? 43 : this.scheduleId.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-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/GetScheduleRequest.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/GetScheduleRequest.java new file mode 100644 index 00000000000..bdea6fd486d --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/GetScheduleRequest.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.resourcescheduler.requests; + +import com.oracle.bmc.resourcescheduler.model.*; +/** + * Example: Click here to see how to use GetScheduleRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class GetScheduleRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * schedule. + */ + private String scheduleId; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * schedule. + */ + public String getScheduleId() { + return scheduleId; + } + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. The only valid characters for + * request IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. The only valid characters for + * request IDs are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetScheduleRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the schedule. + */ + private String scheduleId = null; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the schedule. + * + * @param scheduleId the value to set + * @return this builder instance + */ + public Builder scheduleId(String scheduleId) { + this.scheduleId = scheduleId; + return this; + } + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. The only valid + * characters for request IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. The only valid + * characters for request IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetScheduleRequest o) { + scheduleId(o.getScheduleId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetScheduleRequest 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 GetScheduleRequest + */ + public GetScheduleRequest build() { + GetScheduleRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetScheduleRequest 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 GetScheduleRequest + */ + public GetScheduleRequest buildWithoutInvocationCallback() { + GetScheduleRequest request = new GetScheduleRequest(); + request.scheduleId = scheduleId; + request.opcRequestId = opcRequestId; + return request; + // new GetScheduleRequest(scheduleId, 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().scheduleId(scheduleId).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(",scheduleId=").append(String.valueOf(this.scheduleId)); + 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 GetScheduleRequest)) { + return false; + } + + GetScheduleRequest other = (GetScheduleRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.scheduleId, other.scheduleId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.scheduleId == null ? 43 : this.scheduleId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/GetWorkRequestRequest.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/GetWorkRequestRequest.java new file mode 100644 index 00000000000..02ae945f055 --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/GetWorkRequestRequest.java @@ -0,0 +1,220 @@ +/** + * 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.resourcescheduler.requests; + +import com.oracle.bmc.resourcescheduler.model.*; +/** + * Example: Click here to see how to use GetWorkRequestRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class GetWorkRequestRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + private String workRequestId; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + public String getWorkRequestId() { + return workRequestId; + } + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. The only valid characters for + * request IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. The only valid characters for + * request IDs are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetWorkRequestRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the asynchronous work request. + */ + private String workRequestId = null; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the asynchronous work request. + * + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. The only valid + * characters for request IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. The only valid + * characters for request IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetWorkRequestRequest o) { + workRequestId(o.getWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetWorkRequestRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of GetWorkRequestRequest + */ + public GetWorkRequestRequest build() { + GetWorkRequestRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetWorkRequestRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetWorkRequestRequest + */ + public GetWorkRequestRequest buildWithoutInvocationCallback() { + GetWorkRequestRequest request = new GetWorkRequestRequest(); + request.workRequestId = workRequestId; + request.opcRequestId = opcRequestId; + return request; + // new GetWorkRequestRequest(workRequestId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().workRequestId(workRequestId).opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetWorkRequestRequest)) { + return false; + } + + GetWorkRequestRequest other = (GetWorkRequestRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/ListResourceTypesRequest.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/ListResourceTypesRequest.java new file mode 100644 index 00000000000..63154880af8 --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/ListResourceTypesRequest.java @@ -0,0 +1,304 @@ +/** + * 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.resourcescheduler.requests; + +import com.oracle.bmc.resourcescheduler.model.*; +/** + * Example: Click here to see how to use ListResourceTypesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class ListResourceTypesRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment in which to list resources. + */ + private String compartmentId; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment in which to list resources. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public Integer getLimit() { + return limit; + } + /** + * This used for list pagination. The value of the opc-next-page response header from the + * previous "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page; + + /** + * This used for list pagination. The value of the opc-next-page response header from the + * previous "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public String getPage() { + return page; + } + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. The only valid characters for + * request IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. The only valid characters for + * request IDs are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListResourceTypesRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment in which to list resources. + */ + private String compartmentId = null; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment in which to list resources. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * This used for list pagination. The value of the opc-next-page response header from the + * previous "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page = null; + + /** + * This used for list pagination. The value of the opc-next-page response header from the + * previous "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. The only valid + * characters for request IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. The only valid + * characters for request IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListResourceTypesRequest o) { + compartmentId(o.getCompartmentId()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListResourceTypesRequest 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 ListResourceTypesRequest + */ + public ListResourceTypesRequest build() { + ListResourceTypesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListResourceTypesRequest 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 ListResourceTypesRequest + */ + public ListResourceTypesRequest buildWithoutInvocationCallback() { + ListResourceTypesRequest request = new ListResourceTypesRequest(); + request.compartmentId = compartmentId; + request.limit = limit; + request.page = page; + request.opcRequestId = opcRequestId; + return request; + // new ListResourceTypesRequest(compartmentId, limit, page, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .limit(limit) + .page(page) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListResourceTypesRequest)) { + return false; + } + + ListResourceTypesRequest other = (ListResourceTypesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/ListSchedulesRequest.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/ListSchedulesRequest.java new file mode 100644 index 00000000000..1fee8c32dfc --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/ListSchedulesRequest.java @@ -0,0 +1,527 @@ +/** + * 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.resourcescheduler.requests; + +import com.oracle.bmc.resourcescheduler.model.*; +/** + * Example: Click here to see how to use ListSchedulesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class ListSchedulesRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment in which to list resources. + */ + private String compartmentId; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment in which to list resources. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * This is a filter to return only resources that match the given lifecycle state. The state + * value is case-insensitive. + */ + private com.oracle.bmc.resourcescheduler.model.Schedule.LifecycleState lifecycleState; + + /** + * This is a filter to return only resources that match the given lifecycle state. The state + * value is case-insensitive. + */ + public com.oracle.bmc.resourcescheduler.model.Schedule.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** This is a filter to return only resources that match the given display name exactly. */ + private String displayName; + + /** This is a filter to return only resources that match the given display name exactly. */ + public String getDisplayName() { + return displayName; + } + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * schedule. + */ + private String scheduleId; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * schedule. + */ + public String getScheduleId() { + return scheduleId; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public Integer getLimit() { + return limit; + } + /** + * This used for list pagination. The value of the opc-next-page response header from the + * previous "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page; + + /** + * This used for list pagination. The value of the opc-next-page response header from the + * previous "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public String getPage() { + return page; + } + /** + * This is the field to sort by. You can provide only one sort order. The default order for + * {@code timeCreated} is descending. The default order for {@code displayName} is ascending. + */ + private SortBy sortBy; + + /** + * This is the field to sort by. You can provide only one sort order. The default order for + * {@code timeCreated} is descending. The default order for {@code displayName} is ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + DisplayName("displayName"), + LifecycleState("lifecycleState"), + State("state"), + ; + + 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); + } + }; + + /** + * This is the field to sort by. You can provide only one sort order. The default order for + * {@code timeCreated} is descending. The default order for {@code displayName} is ascending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * This is the sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + private com.oracle.bmc.resourcescheduler.model.SortOrder sortOrder; + + /** + * This is the sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + public com.oracle.bmc.resourcescheduler.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. The only valid characters for + * request IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. The only valid characters for + * request IDs are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListSchedulesRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment in which to list resources. + */ + private String compartmentId = null; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment in which to list resources. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * This is a filter to return only resources that match the given lifecycle state. The state + * value is case-insensitive. + */ + private com.oracle.bmc.resourcescheduler.model.Schedule.LifecycleState lifecycleState = + null; + + /** + * This is a filter to return only resources that match the given lifecycle state. The state + * value is case-insensitive. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.resourcescheduler.model.Schedule.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** This is a filter to return only resources that match the given display name exactly. */ + private String displayName = null; + + /** + * This is a filter to return only resources that match the given display name exactly. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the schedule. + */ + private String scheduleId = null; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the schedule. + * + * @param scheduleId the value to set + * @return this builder instance + */ + public Builder scheduleId(String scheduleId) { + this.scheduleId = scheduleId; + return this; + } + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * This used for list pagination. The value of the opc-next-page response header from the + * previous "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page = null; + + /** + * This used for list pagination. The value of the opc-next-page response header from the + * previous "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * This is the field to sort by. You can provide only one sort order. The default order for + * {@code timeCreated} is descending. The default order for {@code displayName} is + * ascending. + */ + private SortBy sortBy = null; + + /** + * This is the field to sort by. You can provide only one sort order. The default order for + * {@code timeCreated} is descending. The default order for {@code displayName} is + * ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * This is the sort order to use, either ascending ({@code ASC}) or descending ({@code + * DESC}). + */ + private com.oracle.bmc.resourcescheduler.model.SortOrder sortOrder = null; + + /** + * This is the sort order to use, either ascending ({@code ASC}) or descending ({@code + * DESC}). + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.resourcescheduler.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. The only valid + * characters for request IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. The only valid + * characters for request IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListSchedulesRequest o) { + compartmentId(o.getCompartmentId()); + lifecycleState(o.getLifecycleState()); + displayName(o.getDisplayName()); + scheduleId(o.getScheduleId()); + limit(o.getLimit()); + page(o.getPage()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListSchedulesRequest 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 ListSchedulesRequest + */ + public ListSchedulesRequest build() { + ListSchedulesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListSchedulesRequest 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 ListSchedulesRequest + */ + public ListSchedulesRequest buildWithoutInvocationCallback() { + ListSchedulesRequest request = new ListSchedulesRequest(); + request.compartmentId = compartmentId; + request.lifecycleState = lifecycleState; + request.displayName = displayName; + request.scheduleId = scheduleId; + request.limit = limit; + request.page = page; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.opcRequestId = opcRequestId; + return request; + // new ListSchedulesRequest(compartmentId, lifecycleState, displayName, scheduleId, + // limit, page, sortBy, sortOrder, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .lifecycleState(lifecycleState) + .displayName(displayName) + .scheduleId(scheduleId) + .limit(limit) + .page(page) + .sortBy(sortBy) + .sortOrder(sortOrder) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",scheduleId=").append(String.valueOf(this.scheduleId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",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 ListSchedulesRequest)) { + return false; + } + + ListSchedulesRequest other = (ListSchedulesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.scheduleId, other.scheduleId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.scheduleId == null ? 43 : this.scheduleId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/ListWorkRequestErrorsRequest.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/ListWorkRequestErrorsRequest.java new file mode 100644 index 00000000000..fb24f70df49 --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/ListWorkRequestErrorsRequest.java @@ -0,0 +1,415 @@ +/** + * 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.resourcescheduler.requests; + +import com.oracle.bmc.resourcescheduler.model.*; +/** + * Example: Click here to see how to use + * ListWorkRequestErrorsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class ListWorkRequestErrorsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + private String workRequestId; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + public String getWorkRequestId() { + return workRequestId; + } + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. The only valid characters for + * request IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. The only valid characters for + * request IDs are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * This used for list pagination. The value of the opc-next-page response header from the + * previous "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page; + + /** + * This used for list pagination. The value of the opc-next-page response header from the + * previous "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public String getPage() { + return page; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public Integer getLimit() { + return limit; + } + /** + * This is the field to sort by. Only one sort order may be provided. Default order for {@code + * timestamp} is descending. + */ + private SortBy sortBy; + + /** + * This is the field to sort by. Only one sort order may be provided. Default order for {@code + * timestamp} is descending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + Timestamp("timestamp"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * This is the field to sort by. Only one sort order may be provided. Default order for {@code + * timestamp} is descending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * This is the sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + private com.oracle.bmc.resourcescheduler.model.SortOrder sortOrder; + + /** + * This is the sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + public com.oracle.bmc.resourcescheduler.model.SortOrder getSortOrder() { + return sortOrder; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListWorkRequestErrorsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the asynchronous work request. + */ + private String workRequestId = null; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the asynchronous work request. + * + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. The only valid + * characters for request IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. The only valid + * characters for request IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * This used for list pagination. The value of the opc-next-page response header from the + * previous "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page = null; + + /** + * This used for list pagination. The value of the opc-next-page response header from the + * previous "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * This is the field to sort by. Only one sort order may be provided. Default order for + * {@code timestamp} is descending. + */ + private SortBy sortBy = null; + + /** + * This is the field to sort by. Only one sort order may be provided. Default order for + * {@code timestamp} is descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * This is the sort order to use, either ascending ({@code ASC}) or descending ({@code + * DESC}). + */ + private com.oracle.bmc.resourcescheduler.model.SortOrder sortOrder = null; + + /** + * This is the sort order to use, either ascending ({@code ASC}) or descending ({@code + * DESC}). + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.resourcescheduler.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListWorkRequestErrorsRequest o) { + workRequestId(o.getWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + page(o.getPage()); + limit(o.getLimit()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListWorkRequestErrorsRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of ListWorkRequestErrorsRequest + */ + public ListWorkRequestErrorsRequest build() { + ListWorkRequestErrorsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListWorkRequestErrorsRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListWorkRequestErrorsRequest + */ + public ListWorkRequestErrorsRequest buildWithoutInvocationCallback() { + ListWorkRequestErrorsRequest request = new ListWorkRequestErrorsRequest(); + request.workRequestId = workRequestId; + request.opcRequestId = opcRequestId; + request.page = page; + request.limit = limit; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + return request; + // new ListWorkRequestErrorsRequest(workRequestId, opcRequestId, page, limit, sortBy, + // sortOrder); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .workRequestId(workRequestId) + .opcRequestId(opcRequestId) + .page(page) + .limit(limit) + .sortBy(sortBy) + .sortOrder(sortOrder); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestErrorsRequest)) { + return false; + } + + ListWorkRequestErrorsRequest other = (ListWorkRequestErrorsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + return result; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/ListWorkRequestLogsRequest.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/ListWorkRequestLogsRequest.java new file mode 100644 index 00000000000..2dae480467a --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/ListWorkRequestLogsRequest.java @@ -0,0 +1,413 @@ +/** + * 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.resourcescheduler.requests; + +import com.oracle.bmc.resourcescheduler.model.*; +/** + * Example: Click here to see how to use ListWorkRequestLogsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class ListWorkRequestLogsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + private String workRequestId; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + public String getWorkRequestId() { + return workRequestId; + } + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. The only valid characters for + * request IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. The only valid characters for + * request IDs are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * This used for list pagination. The value of the opc-next-page response header from the + * previous "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page; + + /** + * This used for list pagination. The value of the opc-next-page response header from the + * previous "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public String getPage() { + return page; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public Integer getLimit() { + return limit; + } + /** + * This is the field to sort by. Only one sort order may be provided. Default order for {@code + * timestamp} is descending. + */ + private SortBy sortBy; + + /** + * This is the field to sort by. Only one sort order may be provided. Default order for {@code + * timestamp} is descending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + Timestamp("timestamp"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * This is the field to sort by. Only one sort order may be provided. Default order for {@code + * timestamp} is descending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * This is the sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + private com.oracle.bmc.resourcescheduler.model.SortOrder sortOrder; + + /** + * This is the sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + public com.oracle.bmc.resourcescheduler.model.SortOrder getSortOrder() { + return sortOrder; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListWorkRequestLogsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the asynchronous work request. + */ + private String workRequestId = null; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the asynchronous work request. + * + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. The only valid + * characters for request IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. The only valid + * characters for request IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * This used for list pagination. The value of the opc-next-page response header from the + * previous "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page = null; + + /** + * This used for list pagination. The value of the opc-next-page response header from the + * previous "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * This is the field to sort by. Only one sort order may be provided. Default order for + * {@code timestamp} is descending. + */ + private SortBy sortBy = null; + + /** + * This is the field to sort by. Only one sort order may be provided. Default order for + * {@code timestamp} is descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * This is the sort order to use, either ascending ({@code ASC}) or descending ({@code + * DESC}). + */ + private com.oracle.bmc.resourcescheduler.model.SortOrder sortOrder = null; + + /** + * This is the sort order to use, either ascending ({@code ASC}) or descending ({@code + * DESC}). + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.resourcescheduler.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListWorkRequestLogsRequest o) { + workRequestId(o.getWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + page(o.getPage()); + limit(o.getLimit()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListWorkRequestLogsRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of ListWorkRequestLogsRequest + */ + public ListWorkRequestLogsRequest build() { + ListWorkRequestLogsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListWorkRequestLogsRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListWorkRequestLogsRequest + */ + public ListWorkRequestLogsRequest buildWithoutInvocationCallback() { + ListWorkRequestLogsRequest request = new ListWorkRequestLogsRequest(); + request.workRequestId = workRequestId; + request.opcRequestId = opcRequestId; + request.page = page; + request.limit = limit; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + return request; + // new ListWorkRequestLogsRequest(workRequestId, opcRequestId, page, limit, sortBy, + // sortOrder); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .workRequestId(workRequestId) + .opcRequestId(opcRequestId) + .page(page) + .limit(limit) + .sortBy(sortBy) + .sortOrder(sortOrder); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestLogsRequest)) { + return false; + } + + ListWorkRequestLogsRequest other = (ListWorkRequestLogsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + return result; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/ListWorkRequestsRequest.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/ListWorkRequestsRequest.java new file mode 100644 index 00000000000..92e5f6ef3a2 --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/ListWorkRequestsRequest.java @@ -0,0 +1,565 @@ +/** + * 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.resourcescheduler.requests; + +import com.oracle.bmc.resourcescheduler.model.*; +/** + * Example: Click here to see how to use ListWorkRequestsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class ListWorkRequestsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment in which to list resources. + */ + private String compartmentId; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment in which to list resources. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + private String workRequestId; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + public String getWorkRequestId() { + return workRequestId; + } + /** This is a filter to return only the resources that match the given lifecycle state. */ + private com.oracle.bmc.resourcescheduler.model.OperationStatus status; + + /** This is a filter to return only the resources that match the given lifecycle state. */ + public com.oracle.bmc.resourcescheduler.model.OperationStatus getStatus() { + return status; + } + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * resource affected by the work request. + */ + private String resourceId; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * resource affected by the work request. + */ + public String getResourceId() { + return resourceId; + } + /** + * This used for list pagination. The value of the opc-next-page response header from the + * previous "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page; + + /** + * This used for list pagination. The value of the opc-next-page response header from the + * previous "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public String getPage() { + return page; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public Integer getLimit() { + return limit; + } + /** + * This is the sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + private com.oracle.bmc.resourcescheduler.model.SortOrder sortOrder; + + /** + * This is the sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + public com.oracle.bmc.resourcescheduler.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * This is the field to sort by. Only one sort order may be provided. Default order for {@code + * timeAccepted} is descending. + */ + private SortBy sortBy; + + /** + * This is the field to sort by. Only one sort order may be provided. Default order for {@code + * timeAccepted} is descending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeAccepted("timeAccepted"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * This is the field to sort by. Only one sort order may be provided. Default order for {@code + * timeAccepted} is descending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * schedule. + */ + private String scheduleId; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * schedule. + */ + public String getScheduleId() { + return scheduleId; + } + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. The only valid characters for + * request IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. The only valid characters for + * request IDs are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListWorkRequestsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment in which to list resources. + */ + private String compartmentId = null; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment in which to list resources. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the asynchronous work request. + */ + private String workRequestId = null; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the asynchronous work request. + * + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** This is a filter to return only the resources that match the given lifecycle state. */ + private com.oracle.bmc.resourcescheduler.model.OperationStatus status = null; + + /** + * This is a filter to return only the resources that match the given lifecycle state. + * + * @param status the value to set + * @return this builder instance + */ + public Builder status(com.oracle.bmc.resourcescheduler.model.OperationStatus status) { + this.status = status; + return this; + } + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the resource affected by the work request. + */ + private String resourceId = null; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the resource affected by the work request. + * + * @param resourceId the value to set + * @return this builder instance + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** + * This used for list pagination. The value of the opc-next-page response header from the + * previous "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page = null; + + /** + * This used for list pagination. The value of the opc-next-page response header from the + * previous "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * This is the sort order to use, either ascending ({@code ASC}) or descending ({@code + * DESC}). + */ + private com.oracle.bmc.resourcescheduler.model.SortOrder sortOrder = null; + + /** + * This is the sort order to use, either ascending ({@code ASC}) or descending ({@code + * DESC}). + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.resourcescheduler.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * This is the field to sort by. Only one sort order may be provided. Default order for + * {@code timeAccepted} is descending. + */ + private SortBy sortBy = null; + + /** + * This is the field to sort by. Only one sort order may be provided. Default order for + * {@code timeAccepted} is descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the schedule. + */ + private String scheduleId = null; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the schedule. + * + * @param scheduleId the value to set + * @return this builder instance + */ + public Builder scheduleId(String scheduleId) { + this.scheduleId = scheduleId; + return this; + } + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. The only valid + * characters for request IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. The only valid + * characters for request IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListWorkRequestsRequest o) { + compartmentId(o.getCompartmentId()); + workRequestId(o.getWorkRequestId()); + status(o.getStatus()); + resourceId(o.getResourceId()); + page(o.getPage()); + limit(o.getLimit()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + scheduleId(o.getScheduleId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListWorkRequestsRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of ListWorkRequestsRequest + */ + public ListWorkRequestsRequest build() { + ListWorkRequestsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListWorkRequestsRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListWorkRequestsRequest + */ + public ListWorkRequestsRequest buildWithoutInvocationCallback() { + ListWorkRequestsRequest request = new ListWorkRequestsRequest(); + request.compartmentId = compartmentId; + request.workRequestId = workRequestId; + request.status = status; + request.resourceId = resourceId; + request.page = page; + request.limit = limit; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.scheduleId = scheduleId; + request.opcRequestId = opcRequestId; + return request; + // new ListWorkRequestsRequest(compartmentId, workRequestId, status, resourceId, page, + // limit, sortOrder, sortBy, scheduleId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .workRequestId(workRequestId) + .status(status) + .resourceId(resourceId) + .page(page) + .limit(limit) + .sortOrder(sortOrder) + .sortBy(sortBy) + .scheduleId(scheduleId) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(",status=").append(String.valueOf(this.status)); + sb.append(",resourceId=").append(String.valueOf(this.resourceId)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",scheduleId=").append(String.valueOf(this.scheduleId)); + 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 ListWorkRequestsRequest)) { + return false; + } + + ListWorkRequestsRequest other = (ListWorkRequestsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.scheduleId, other.scheduleId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.scheduleId == null ? 43 : this.scheduleId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/UpdateScheduleRequest.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/UpdateScheduleRequest.java new file mode 100644 index 00000000000..95b29288c54 --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/requests/UpdateScheduleRequest.java @@ -0,0 +1,325 @@ +/** + * 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.resourcescheduler.requests; + +import com.oracle.bmc.resourcescheduler.model.*; +/** + * Example: Click here to see how to use UpdateScheduleRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class UpdateScheduleRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.resourcescheduler.model.UpdateScheduleDetails> { + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * schedule. + */ + private String scheduleId; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * schedule. + */ + public String getScheduleId() { + return scheduleId; + } + /** The information about a schedule that will be updated. */ + private com.oracle.bmc.resourcescheduler.model.UpdateScheduleDetails updateScheduleDetails; + + /** The information about a schedule that will be updated. */ + public com.oracle.bmc.resourcescheduler.model.UpdateScheduleDetails getUpdateScheduleDetails() { + return updateScheduleDetails; + } + /** + * This is used 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; + + /** + * This is used 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; + } + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. The only valid characters for + * request IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. The only valid characters for + * request IDs are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.resourcescheduler.model.UpdateScheduleDetails getBody$() { + return updateScheduleDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateScheduleRequest, + com.oracle.bmc.resourcescheduler.model.UpdateScheduleDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the schedule. + */ + private String scheduleId = null; + + /** + * This is the + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the schedule. + * + * @param scheduleId the value to set + * @return this builder instance + */ + public Builder scheduleId(String scheduleId) { + this.scheduleId = scheduleId; + return this; + } + + /** The information about a schedule that will be updated. */ + private com.oracle.bmc.resourcescheduler.model.UpdateScheduleDetails updateScheduleDetails = + null; + + /** + * The information about a schedule that will be updated. + * + * @param updateScheduleDetails the value to set + * @return this builder instance + */ + public Builder updateScheduleDetails( + com.oracle.bmc.resourcescheduler.model.UpdateScheduleDetails + updateScheduleDetails) { + this.updateScheduleDetails = updateScheduleDetails; + return this; + } + + /** + * This is used 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; + + /** + * This is used 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; + } + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. The only valid + * characters for request IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. The only valid + * characters for request IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(UpdateScheduleRequest o) { + scheduleId(o.getScheduleId()); + updateScheduleDetails(o.getUpdateScheduleDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateScheduleRequest 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 UpdateScheduleRequest + */ + public UpdateScheduleRequest build() { + UpdateScheduleRequest 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.resourcescheduler.model.UpdateScheduleDetails body) { + updateScheduleDetails(body); + return this; + } + + /** + * Build the instance of UpdateScheduleRequest 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 UpdateScheduleRequest + */ + public UpdateScheduleRequest buildWithoutInvocationCallback() { + UpdateScheduleRequest request = new UpdateScheduleRequest(); + request.scheduleId = scheduleId; + request.updateScheduleDetails = updateScheduleDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateScheduleRequest(scheduleId, updateScheduleDetails, 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() + .scheduleId(scheduleId) + .updateScheduleDetails(updateScheduleDetails) + .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(",scheduleId=").append(String.valueOf(this.scheduleId)); + sb.append(",updateScheduleDetails=").append(String.valueOf(this.updateScheduleDetails)); + 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 UpdateScheduleRequest)) { + return false; + } + + UpdateScheduleRequest other = (UpdateScheduleRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.scheduleId, other.scheduleId) + && java.util.Objects.equals(this.updateScheduleDetails, other.updateScheduleDetails) + && 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.scheduleId == null ? 43 : this.scheduleId.hashCode()); + result = + (result * PRIME) + + (this.updateScheduleDetails == null + ? 43 + : this.updateScheduleDetails.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-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/ActivateScheduleResponse.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/ActivateScheduleResponse.java new file mode 100644 index 00000000000..19a7ba96af0 --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/ActivateScheduleResponse.java @@ -0,0 +1,208 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.resourcescheduler.responses; + +import com.oracle.bmc.resourcescheduler.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class ActivateScheduleResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * This is a 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 Schedule} instance. */ + private com.oracle.bmc.resourcescheduler.model.Schedule schedule; + + /** + * The returned {@code Schedule} instance. + * + * @return the value + */ + public com.oracle.bmc.resourcescheduler.model.Schedule getSchedule() { + return schedule; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "schedule" + }) + private ActivateScheduleResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + com.oracle.bmc.resourcescheduler.model.Schedule schedule) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.schedule = schedule; + } + + 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; + } + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * This is a 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 Schedule} instance. */ + private com.oracle.bmc.resourcescheduler.model.Schedule schedule; + + /** + * The returned {@code Schedule} instance. + * + * @param schedule the value to set + * @return this builder + */ + public Builder schedule(com.oracle.bmc.resourcescheduler.model.Schedule schedule) { + this.schedule = schedule; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ActivateScheduleResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + schedule(o.getSchedule()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ActivateScheduleResponse build() { + return new ActivateScheduleResponse( + __httpStatusCode__, headers, opcRequestId, etag, schedule); + } + } + + /** + * 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(",schedule=").append(String.valueOf(schedule)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ActivateScheduleResponse)) { + return false; + } + + ActivateScheduleResponse other = (ActivateScheduleResponse) 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.schedule, other.schedule); + } + + @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.schedule == null ? 43 : this.schedule.hashCode()); + return result; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/CancelWorkRequestResponse.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/CancelWorkRequestResponse.java new file mode 100644 index 00000000000..48f687654b8 --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/CancelWorkRequestResponse.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.resourcescheduler.responses; + +import com.oracle.bmc.resourcescheduler.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class CancelWorkRequestResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private CancelWorkRequestResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CancelWorkRequestResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CancelWorkRequestResponse build() { + return new CancelWorkRequestResponse(__httpStatusCode__, headers, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CancelWorkRequestResponse)) { + return false; + } + + CancelWorkRequestResponse other = (CancelWorkRequestResponse) o; + return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/CreateScheduleResponse.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/CreateScheduleResponse.java new file mode 100644 index 00000000000..bde5d1f7547 --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/CreateScheduleResponse.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.resourcescheduler.responses; + +import com.oracle.bmc.resourcescheduler.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class CreateScheduleResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * This is the URL for the created schedule. The schedule OCID is generated after this request + * is sent. + */ + private String location; + + /** + * This is the URL for the created schedule. The schedule OCID is generated after this request + * is sent. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** This is the same as location */ + private String contentLocation; + + /** + * This is the same as location + * + * @return the value + */ + public String getContentLocation() { + return contentLocation; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * This is a 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 Schedule} instance. */ + private com.oracle.bmc.resourcescheduler.model.Schedule schedule; + + /** + * The returned {@code Schedule} instance. + * + * @return the value + */ + public com.oracle.bmc.resourcescheduler.model.Schedule getSchedule() { + return schedule; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "location", + "contentLocation", + "etag", + "opcWorkRequestId", + "opcRequestId", + "schedule" + }) + private CreateScheduleResponse( + int __httpStatusCode__, + java.util.Map> headers, + String location, + String contentLocation, + String etag, + String opcWorkRequestId, + String opcRequestId, + com.oracle.bmc.resourcescheduler.model.Schedule schedule) { + super(__httpStatusCode__, headers); + this.location = location; + this.contentLocation = contentLocation; + this.etag = etag; + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.schedule = schedule; + } + + 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; + } + + /** + * This is the URL for the created schedule. The schedule OCID is generated after this + * request is sent. + */ + private String location; + + /** + * This is the URL for the created schedule. The schedule OCID is generated after this + * request is sent. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** This is the same as location */ + private String contentLocation; + + /** + * This is the same as location + * + * @param contentLocation the value to set + * @return this builder + */ + public Builder contentLocation(String contentLocation) { + this.contentLocation = contentLocation; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the asynchronous work request. Use GetWorkRequest with this ID to track the status of + * the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the asynchronous work request. Use GetWorkRequest with this ID to track the status of + * the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * This is a 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 Schedule} instance. */ + private com.oracle.bmc.resourcescheduler.model.Schedule schedule; + + /** + * The returned {@code Schedule} instance. + * + * @param schedule the value to set + * @return this builder + */ + public Builder schedule(com.oracle.bmc.resourcescheduler.model.Schedule schedule) { + this.schedule = schedule; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateScheduleResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + location(o.getLocation()); + contentLocation(o.getContentLocation()); + etag(o.getEtag()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + schedule(o.getSchedule()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateScheduleResponse build() { + return new CreateScheduleResponse( + __httpStatusCode__, + headers, + location, + contentLocation, + etag, + opcWorkRequestId, + opcRequestId, + schedule); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",contentLocation=").append(String.valueOf(contentLocation)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",schedule=").append(String.valueOf(schedule)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateScheduleResponse)) { + return false; + } + + CreateScheduleResponse other = (CreateScheduleResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.contentLocation, other.contentLocation) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.schedule, other.schedule); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.contentLocation == null ? 43 : this.contentLocation.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.schedule == null ? 43 : this.schedule.hashCode()); + return result; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/DeactivateScheduleResponse.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/DeactivateScheduleResponse.java new file mode 100644 index 00000000000..bacc7d0c448 --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/DeactivateScheduleResponse.java @@ -0,0 +1,208 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.resourcescheduler.responses; + +import com.oracle.bmc.resourcescheduler.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class DeactivateScheduleResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * This is a 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 Schedule} instance. */ + private com.oracle.bmc.resourcescheduler.model.Schedule schedule; + + /** + * The returned {@code Schedule} instance. + * + * @return the value + */ + public com.oracle.bmc.resourcescheduler.model.Schedule getSchedule() { + return schedule; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "schedule" + }) + private DeactivateScheduleResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + com.oracle.bmc.resourcescheduler.model.Schedule schedule) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.schedule = schedule; + } + + 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; + } + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * This is a 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 Schedule} instance. */ + private com.oracle.bmc.resourcescheduler.model.Schedule schedule; + + /** + * The returned {@code Schedule} instance. + * + * @param schedule the value to set + * @return this builder + */ + public Builder schedule(com.oracle.bmc.resourcescheduler.model.Schedule schedule) { + this.schedule = schedule; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeactivateScheduleResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + schedule(o.getSchedule()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DeactivateScheduleResponse build() { + return new DeactivateScheduleResponse( + __httpStatusCode__, headers, opcRequestId, etag, schedule); + } + } + + /** + * 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(",schedule=").append(String.valueOf(schedule)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeactivateScheduleResponse)) { + return false; + } + + DeactivateScheduleResponse other = (DeactivateScheduleResponse) 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.schedule, other.schedule); + } + + @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.schedule == null ? 43 : this.schedule.hashCode()); + return result; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/DeleteScheduleResponse.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/DeleteScheduleResponse.java new file mode 100644 index 00000000000..27dad71ed07 --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/DeleteScheduleResponse.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.resourcescheduler.responses; + +import com.oracle.bmc.resourcescheduler.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class DeleteScheduleResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * This is a 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 DeleteScheduleResponse( + 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; + } + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * This is a 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(DeleteScheduleResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DeleteScheduleResponse build() { + return new DeleteScheduleResponse(__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 DeleteScheduleResponse)) { + return false; + } + + DeleteScheduleResponse other = (DeleteScheduleResponse) 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-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/GetScheduleResponse.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/GetScheduleResponse.java new file mode 100644 index 00000000000..bd2ad6dbf31 --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/GetScheduleResponse.java @@ -0,0 +1,208 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.resourcescheduler.responses; + +import com.oracle.bmc.resourcescheduler.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class GetScheduleResponse 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; + } + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * This is a 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 Schedule} instance. */ + private com.oracle.bmc.resourcescheduler.model.Schedule schedule; + + /** + * The returned {@code Schedule} instance. + * + * @return the value + */ + public com.oracle.bmc.resourcescheduler.model.Schedule getSchedule() { + return schedule; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "schedule" + }) + private GetScheduleResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.resourcescheduler.model.Schedule schedule) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.schedule = schedule; + } + + 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; + } + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * This is a 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 Schedule} instance. */ + private com.oracle.bmc.resourcescheduler.model.Schedule schedule; + + /** + * The returned {@code Schedule} instance. + * + * @param schedule the value to set + * @return this builder + */ + public Builder schedule(com.oracle.bmc.resourcescheduler.model.Schedule schedule) { + this.schedule = schedule; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetScheduleResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + schedule(o.getSchedule()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetScheduleResponse build() { + return new GetScheduleResponse( + __httpStatusCode__, headers, etag, opcRequestId, schedule); + } + } + + /** + * 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(",schedule=").append(String.valueOf(schedule)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetScheduleResponse)) { + return false; + } + + GetScheduleResponse other = (GetScheduleResponse) 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.schedule, other.schedule); + } + + @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.schedule == null ? 43 : this.schedule.hashCode()); + return result; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/GetWorkRequestResponse.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/GetWorkRequestResponse.java new file mode 100644 index 00000000000..906a9881a63 --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/GetWorkRequestResponse.java @@ -0,0 +1,249 @@ +/** + * 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.resourcescheduler.responses; + +import com.oracle.bmc.resourcescheduler.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class GetWorkRequestResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * This is a 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; + } + + /** + * This is a decimal number representing the number of seconds the client should wait before + * polling this endpoint again. + */ + private Integer retryAfter; + + /** + * This is a decimal number representing the number of seconds the client should wait before + * polling this endpoint again. + * + * @return the value + */ + public Integer getRetryAfter() { + return retryAfter; + } + + /** The returned {@code WorkRequest} instance. */ + private com.oracle.bmc.resourcescheduler.model.WorkRequest workRequest; + + /** + * The returned {@code WorkRequest} instance. + * + * @return the value + */ + public com.oracle.bmc.resourcescheduler.model.WorkRequest getWorkRequest() { + return workRequest; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "retryAfter", + "workRequest" + }) + private GetWorkRequestResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + Integer retryAfter, + com.oracle.bmc.resourcescheduler.model.WorkRequest workRequest) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.retryAfter = retryAfter; + this.workRequest = workRequest; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * This is a 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; + } + + /** + * This is a decimal number representing the number of seconds the client should wait before + * polling this endpoint again. + */ + private Integer retryAfter; + + /** + * This is a decimal number representing the number of seconds the client should wait before + * polling this endpoint again. + * + * @param retryAfter the value to set + * @return this builder + */ + public Builder retryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + + /** The returned {@code WorkRequest} instance. */ + private com.oracle.bmc.resourcescheduler.model.WorkRequest workRequest; + + /** + * The returned {@code WorkRequest} instance. + * + * @param workRequest the value to set + * @return this builder + */ + public Builder workRequest(com.oracle.bmc.resourcescheduler.model.WorkRequest workRequest) { + this.workRequest = workRequest; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetWorkRequestResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + retryAfter(o.getRetryAfter()); + workRequest(o.getWorkRequest()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetWorkRequestResponse build() { + return new GetWorkRequestResponse( + __httpStatusCode__, headers, etag, opcRequestId, retryAfter, workRequest); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",retryAfter=").append(String.valueOf(retryAfter)); + sb.append(",workRequest=").append(String.valueOf(workRequest)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetWorkRequestResponse)) { + return false; + } + + GetWorkRequestResponse other = (GetWorkRequestResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.retryAfter, other.retryAfter) + && java.util.Objects.equals(this.workRequest, other.workRequest); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.retryAfter == null ? 43 : this.retryAfter.hashCode()); + result = (result * PRIME) + (this.workRequest == null ? 43 : this.workRequest.hashCode()); + return result; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/ListResourceTypesResponse.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/ListResourceTypesResponse.java new file mode 100644 index 00000000000..a00274f7c37 --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/ListResourceTypesResponse.java @@ -0,0 +1,229 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.resourcescheduler.responses; + +import com.oracle.bmc.resourcescheduler.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class ListResourceTypesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * This is a 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; + } + + /** + * When this header appears in the list pagination response, there are additional results pages + * to view. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * When this header appears in the list pagination response, there are additional results pages + * to view. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code ResourceTypeCollection} instance. */ + private com.oracle.bmc.resourcescheduler.model.ResourceTypeCollection resourceTypeCollection; + + /** + * The returned {@code ResourceTypeCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.resourcescheduler.model.ResourceTypeCollection + getResourceTypeCollection() { + return resourceTypeCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "resourceTypeCollection" + }) + private ListResourceTypesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.resourcescheduler.model.ResourceTypeCollection resourceTypeCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.resourceTypeCollection = resourceTypeCollection; + } + + 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; + } + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * This is a 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; + } + + /** + * When this header appears in the list pagination response, there are additional results + * pages to view. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * When this header appears in the list pagination response, there are additional results + * pages to view. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code ResourceTypeCollection} instance. */ + private com.oracle.bmc.resourcescheduler.model.ResourceTypeCollection + resourceTypeCollection; + + /** + * The returned {@code ResourceTypeCollection} instance. + * + * @param resourceTypeCollection the value to set + * @return this builder + */ + public Builder resourceTypeCollection( + com.oracle.bmc.resourcescheduler.model.ResourceTypeCollection + resourceTypeCollection) { + this.resourceTypeCollection = resourceTypeCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListResourceTypesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + resourceTypeCollection(o.getResourceTypeCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListResourceTypesResponse build() { + return new ListResourceTypesResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, resourceTypeCollection); + } + } + + /** + * 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(",resourceTypeCollection=").append(String.valueOf(resourceTypeCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListResourceTypesResponse)) { + return false; + } + + ListResourceTypesResponse other = (ListResourceTypesResponse) 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.resourceTypeCollection, other.resourceTypeCollection); + } + + @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.resourceTypeCollection == null + ? 43 + : this.resourceTypeCollection.hashCode()); + return result; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/ListSchedulesResponse.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/ListSchedulesResponse.java new file mode 100644 index 00000000000..754e44dc897 --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/ListSchedulesResponse.java @@ -0,0 +1,225 @@ +/** + * 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.resourcescheduler.responses; + +import com.oracle.bmc.resourcescheduler.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class ListSchedulesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * This is a 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; + } + + /** + * When this header appears in the list pagination response, there are additional results pages + * to view. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * When this header appears in the list pagination response, there are additional results pages + * to view. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code ScheduleCollection} instance. */ + private com.oracle.bmc.resourcescheduler.model.ScheduleCollection scheduleCollection; + + /** + * The returned {@code ScheduleCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.resourcescheduler.model.ScheduleCollection getScheduleCollection() { + return scheduleCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "scheduleCollection" + }) + private ListSchedulesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.resourcescheduler.model.ScheduleCollection scheduleCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.scheduleCollection = scheduleCollection; + } + + 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; + } + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * This is a 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; + } + + /** + * When this header appears in the list pagination response, there are additional results + * pages to view. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * When this header appears in the list pagination response, there are additional results + * pages to view. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code ScheduleCollection} instance. */ + private com.oracle.bmc.resourcescheduler.model.ScheduleCollection scheduleCollection; + + /** + * The returned {@code ScheduleCollection} instance. + * + * @param scheduleCollection the value to set + * @return this builder + */ + public Builder scheduleCollection( + com.oracle.bmc.resourcescheduler.model.ScheduleCollection scheduleCollection) { + this.scheduleCollection = scheduleCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListSchedulesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + scheduleCollection(o.getScheduleCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListSchedulesResponse build() { + return new ListSchedulesResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, scheduleCollection); + } + } + + /** + * 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(",scheduleCollection=").append(String.valueOf(scheduleCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListSchedulesResponse)) { + return false; + } + + ListSchedulesResponse other = (ListSchedulesResponse) 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.scheduleCollection, other.scheduleCollection); + } + + @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.scheduleCollection == null + ? 43 + : this.scheduleCollection.hashCode()); + return result; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/ListWorkRequestErrorsResponse.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/ListWorkRequestErrorsResponse.java new file mode 100644 index 00000000000..738a03bbb82 --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/ListWorkRequestErrorsResponse.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.resourcescheduler.responses; + +import com.oracle.bmc.resourcescheduler.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class ListWorkRequestErrorsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * When this header appears in the list pagination response, there are additional results pages + * to view. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * When this header appears in the list pagination response, there are additional results pages + * to view. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code WorkRequestErrorCollection} instance. */ + private com.oracle.bmc.resourcescheduler.model.WorkRequestErrorCollection + workRequestErrorCollection; + + /** + * The returned {@code WorkRequestErrorCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.resourcescheduler.model.WorkRequestErrorCollection + getWorkRequestErrorCollection() { + return workRequestErrorCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcNextPage", + "opcRequestId", + "workRequestErrorCollection" + }) + private ListWorkRequestErrorsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcNextPage, + String opcRequestId, + com.oracle.bmc.resourcescheduler.model.WorkRequestErrorCollection + workRequestErrorCollection) { + super(__httpStatusCode__, headers); + this.opcNextPage = opcNextPage; + this.opcRequestId = opcRequestId; + this.workRequestErrorCollection = workRequestErrorCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * When this header appears in the list pagination response, there are additional results + * pages to view. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * When this header appears in the list pagination response, there are additional results + * pages to view. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code WorkRequestErrorCollection} instance. */ + private com.oracle.bmc.resourcescheduler.model.WorkRequestErrorCollection + workRequestErrorCollection; + + /** + * The returned {@code WorkRequestErrorCollection} instance. + * + * @param workRequestErrorCollection the value to set + * @return this builder + */ + public Builder workRequestErrorCollection( + com.oracle.bmc.resourcescheduler.model.WorkRequestErrorCollection + workRequestErrorCollection) { + this.workRequestErrorCollection = workRequestErrorCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListWorkRequestErrorsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcNextPage(o.getOpcNextPage()); + opcRequestId(o.getOpcRequestId()); + workRequestErrorCollection(o.getWorkRequestErrorCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListWorkRequestErrorsResponse build() { + return new ListWorkRequestErrorsResponse( + __httpStatusCode__, + headers, + opcNextPage, + opcRequestId, + workRequestErrorCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",workRequestErrorCollection=") + .append(String.valueOf(workRequestErrorCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestErrorsResponse)) { + return false; + } + + ListWorkRequestErrorsResponse other = (ListWorkRequestErrorsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.workRequestErrorCollection, other.workRequestErrorCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.workRequestErrorCollection == null + ? 43 + : this.workRequestErrorCollection.hashCode()); + return result; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/ListWorkRequestLogsResponse.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/ListWorkRequestLogsResponse.java new file mode 100644 index 00000000000..9eb37249b12 --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/ListWorkRequestLogsResponse.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.resourcescheduler.responses; + +import com.oracle.bmc.resourcescheduler.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class ListWorkRequestLogsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * When this header appears in the list pagination response, there are additional results pages + * to view. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * When this header appears in the list pagination response, there are additional results pages + * to view. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code WorkRequestLogEntryCollection} instance. */ + private com.oracle.bmc.resourcescheduler.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection; + + /** + * The returned {@code WorkRequestLogEntryCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.resourcescheduler.model.WorkRequestLogEntryCollection + getWorkRequestLogEntryCollection() { + return workRequestLogEntryCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcNextPage", + "opcRequestId", + "workRequestLogEntryCollection" + }) + private ListWorkRequestLogsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcNextPage, + String opcRequestId, + com.oracle.bmc.resourcescheduler.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection) { + super(__httpStatusCode__, headers); + this.opcNextPage = opcNextPage; + this.opcRequestId = opcRequestId; + this.workRequestLogEntryCollection = workRequestLogEntryCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * When this header appears in the list pagination response, there are additional results + * pages to view. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * When this header appears in the list pagination response, there are additional results + * pages to view. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code WorkRequestLogEntryCollection} instance. */ + private com.oracle.bmc.resourcescheduler.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection; + + /** + * The returned {@code WorkRequestLogEntryCollection} instance. + * + * @param workRequestLogEntryCollection the value to set + * @return this builder + */ + public Builder workRequestLogEntryCollection( + com.oracle.bmc.resourcescheduler.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection) { + this.workRequestLogEntryCollection = workRequestLogEntryCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListWorkRequestLogsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcNextPage(o.getOpcNextPage()); + opcRequestId(o.getOpcRequestId()); + workRequestLogEntryCollection(o.getWorkRequestLogEntryCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListWorkRequestLogsResponse build() { + return new ListWorkRequestLogsResponse( + __httpStatusCode__, + headers, + opcNextPage, + opcRequestId, + workRequestLogEntryCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",workRequestLogEntryCollection=") + .append(String.valueOf(workRequestLogEntryCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestLogsResponse)) { + return false; + } + + ListWorkRequestLogsResponse other = (ListWorkRequestLogsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.workRequestLogEntryCollection, other.workRequestLogEntryCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.workRequestLogEntryCollection == null + ? 43 + : this.workRequestLogEntryCollection.hashCode()); + return result; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/ListWorkRequestsResponse.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/ListWorkRequestsResponse.java new file mode 100644 index 00000000000..6367e6e950d --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/ListWorkRequestsResponse.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.resourcescheduler.responses; + +import com.oracle.bmc.resourcescheduler.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class ListWorkRequestsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * This is a 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; + } + + /** + * When this header appears in the list pagination response, there are additional results pages + * to view. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * When this header appears in the list pagination response, there are additional results pages + * to view. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code WorkRequestSummaryCollection} instance. */ + private com.oracle.bmc.resourcescheduler.model.WorkRequestSummaryCollection + workRequestSummaryCollection; + + /** + * The returned {@code WorkRequestSummaryCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.resourcescheduler.model.WorkRequestSummaryCollection + getWorkRequestSummaryCollection() { + return workRequestSummaryCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "workRequestSummaryCollection" + }) + private ListWorkRequestsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.resourcescheduler.model.WorkRequestSummaryCollection + workRequestSummaryCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.workRequestSummaryCollection = workRequestSummaryCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * This is a 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; + } + + /** + * When this header appears in the list pagination response, there are additional results + * pages to view. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * When this header appears in the list pagination response, there are additional results + * pages to view. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code WorkRequestSummaryCollection} instance. */ + private com.oracle.bmc.resourcescheduler.model.WorkRequestSummaryCollection + workRequestSummaryCollection; + + /** + * The returned {@code WorkRequestSummaryCollection} instance. + * + * @param workRequestSummaryCollection the value to set + * @return this builder + */ + public Builder workRequestSummaryCollection( + com.oracle.bmc.resourcescheduler.model.WorkRequestSummaryCollection + workRequestSummaryCollection) { + this.workRequestSummaryCollection = workRequestSummaryCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListWorkRequestsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + workRequestSummaryCollection(o.getWorkRequestSummaryCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListWorkRequestsResponse build() { + return new ListWorkRequestsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + workRequestSummaryCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",workRequestSummaryCollection=") + .append(String.valueOf(workRequestSummaryCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestsResponse)) { + return false; + } + + ListWorkRequestsResponse other = (ListWorkRequestsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.workRequestSummaryCollection, other.workRequestSummaryCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.workRequestSummaryCollection == null + ? 43 + : this.workRequestSummaryCollection.hashCode()); + return result; + } +} diff --git a/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/UpdateScheduleResponse.java b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/UpdateScheduleResponse.java new file mode 100644 index 00000000000..affdc73239f --- /dev/null +++ b/bmc-resourcescheduler/src/main/java/com/oracle/bmc/resourcescheduler/responses/UpdateScheduleResponse.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.resourcescheduler.responses; + +import com.oracle.bmc.resourcescheduler.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") +public class UpdateScheduleResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private UpdateScheduleResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the asynchronous work request. Use GetWorkRequest with this ID to track the status of + * the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the asynchronous work request. Use GetWorkRequest with this ID to track the status of + * the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * This is a unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * This is a 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(UpdateScheduleResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateScheduleResponse build() { + return new UpdateScheduleResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateScheduleResponse)) { + return false; + } + + UpdateScheduleResponse other = (UpdateScheduleResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-resourcescheduler/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-resourcescheduler/reflect-config.json b/bmc-resourcescheduler/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-resourcescheduler/reflect-config.json new file mode 100644 index 00000000000..1e23343ee16 --- /dev/null +++ b/bmc-resourcescheduler/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-resourcescheduler/reflect-config.json @@ -0,0 +1,407 @@ +[ + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.ActionType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.CompartmentIdResourceFilter", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.CompartmentIdResourceFilter$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.CreateScheduleDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.CreateScheduleDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.CreateScheduleDetails$Action", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.CreateScheduleDetails$RecurrenceType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.DefinedTagFilterValue", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.DefinedTagFilterValue$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.DefinedTagsResourceFilter", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.DefinedTagsResourceFilter$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.LifecycleStateResourceFilter", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.LifecycleStateResourceFilter$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.OperationStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.OperationType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.Resource", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.Resource$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.ResourceFilter", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.ResourceFilter$Attribute", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.ResourceType", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.ResourceType$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.ResourceTypeCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.ResourceTypeCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.ResourceTypeResourceFilter", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.ResourceTypeResourceFilter$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.Schedule", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.Schedule$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.Schedule$Action", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.Schedule$RecurrenceType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.Schedule$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.ScheduleCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.ScheduleCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.ScheduleSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.ScheduleSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.ScheduleSummary$Action", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.ScheduleSummary$RecurrenceType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.SortOrder", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.TimeCreatedResourceFilter", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.TimeCreatedResourceFilter$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.TimeCreatedResourceFilter$Condition", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.UpdateScheduleDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.UpdateScheduleDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.UpdateScheduleDetails$Action", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.UpdateScheduleDetails$RecurrenceType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.WorkRequest", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.WorkRequest$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.WorkRequestError", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.WorkRequestError$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.WorkRequestErrorCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.WorkRequestErrorCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.WorkRequestLogEntry", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.WorkRequestLogEntry$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.WorkRequestLogEntryCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.WorkRequestLogEntryCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.WorkRequestResource", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.WorkRequestResource$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.WorkRequestSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.WorkRequestSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.WorkRequestSummaryCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.resourcescheduler.model.WorkRequestSummaryCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + } +] \ No newline at end of file diff --git a/bmc-resourcescheduler/src/main/resources/com/oracle/bmc/resourcescheduler/client.properties b/bmc-resourcescheduler/src/main/resources/com/oracle/bmc/resourcescheduler/client.properties new file mode 100644 index 00000000000..6812b71b7e1 --- /dev/null +++ b/bmc-resourcescheduler/src/main/resources/com/oracle/bmc/resourcescheduler/client.properties @@ -0,0 +1,9 @@ +# +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +# + +java.client.codegen.version = 2.78 +java.minimum.client.codegen.version.from.client = 2.26 + +# @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") \ No newline at end of file diff --git a/bmc-resourcesearch/pom.xml b/bmc-resourcesearch/pom.xml index 2b4214034ff..1dd115f8f7e 100644 --- a/bmc-resourcesearch/pom.xml +++ b/bmc-resourcesearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-resourcesearch @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-rover/pom.xml b/bmc-rover/pom.xml index 48db5f5a0d1..088a539d456 100644 --- a/bmc-rover/pom.xml +++ b/bmc-rover/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-rover @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-sch/pom.xml b/bmc-sch/pom.xml index 28fcebdb2bf..61351730708 100644 --- a/bmc-sch/pom.xml +++ b/bmc-sch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-sch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-secrets/pom.xml b/bmc-secrets/pom.xml index a68aa2a0fa8..3fce713c52e 100644 --- a/bmc-secrets/pom.xml +++ b/bmc-secrets/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-secrets @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-servicecatalog/pom.xml b/bmc-servicecatalog/pom.xml index 704593e9fc0..d650fde1ff7 100644 --- a/bmc-servicecatalog/pom.xml +++ b/bmc-servicecatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-servicecatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-servicemanagerproxy/pom.xml b/bmc-servicemanagerproxy/pom.xml index a90f8490e15..082e5a4382a 100644 --- a/bmc-servicemanagerproxy/pom.xml +++ b/bmc-servicemanagerproxy/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-servicemanagerproxy @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-servicemesh/pom.xml b/bmc-servicemesh/pom.xml index 2c9e8a629d8..0f03ae005bf 100644 --- a/bmc-servicemesh/pom.xml +++ b/bmc-servicemesh/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-servicemesh @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ 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 1f30303e96b..bc321aa49a1 100644 --- a/bmc-shaded/bmc-shaded-full/pom.xml +++ b/bmc-shaded/bmc-shaded-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-shaded - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-shaded-full diff --git a/bmc-shaded/pom.xml b/bmc-shaded/pom.xml index d9f4bc9a73f..d1249c85611 100644 --- a/bmc-shaded/pom.xml +++ b/bmc-shaded/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml diff --git a/bmc-stackmonitoring/pom.xml b/bmc-stackmonitoring/pom.xml index 79d5ee2c432..91a6208ff25 100644 --- a/bmc-stackmonitoring/pom.xml +++ b/bmc-stackmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-stackmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-streaming/pom.xml b/bmc-streaming/pom.xml index e223e2ee349..8d403e81636 100644 --- a/bmc-streaming/pom.xml +++ b/bmc-streaming/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-streaming @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-tenantmanagercontrolplane/pom.xml b/bmc-tenantmanagercontrolplane/pom.xml index 8ede9a8bf1d..37d519c0bf9 100644 --- a/bmc-tenantmanagercontrolplane/pom.xml +++ b/bmc-tenantmanagercontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-tenantmanagercontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-threatintelligence/pom.xml b/bmc-threatintelligence/pom.xml index d02d2fae1a3..c0e7f647479 100644 --- a/bmc-threatintelligence/pom.xml +++ b/bmc-threatintelligence/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-threatintelligence @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-usage/pom.xml b/bmc-usage/pom.xml index 1f032faee43..2c0d6551a4a 100644 --- a/bmc-usage/pom.xml +++ b/bmc-usage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-usage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-usageapi/pom.xml b/bmc-usageapi/pom.xml index bd803cb5e09..fecf86c1bc2 100644 --- a/bmc-usageapi/pom.xml +++ b/bmc-usageapi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-usageapi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-vault/pom.xml b/bmc-vault/pom.xml index 7b7bd6f2d7a..a4a252a66ea 100644 --- a/bmc-vault/pom.xml +++ b/bmc-vault/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-vault @@ -15,12 +15,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.41.2 + 3.41.3 diff --git a/bmc-vbsinst/pom.xml b/bmc-vbsinst/pom.xml index be888059cd2..11fa4b4cd83 100644 --- a/bmc-vbsinst/pom.xml +++ b/bmc-vbsinst/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-vbsinst @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-visualbuilder/pom.xml b/bmc-visualbuilder/pom.xml index b262e5c0380..edb5f3c45ee 100644 --- a/bmc-visualbuilder/pom.xml +++ b/bmc-visualbuilder/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-visualbuilder @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-vnmonitoring/pom.xml b/bmc-vnmonitoring/pom.xml index 19c8f5613d1..8224ff35b41 100644 --- a/bmc-vnmonitoring/pom.xml +++ b/bmc-vnmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-vnmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-vulnerabilityscanning/pom.xml b/bmc-vulnerabilityscanning/pom.xml index 58995dd880f..dac5fc9ee35 100644 --- a/bmc-vulnerabilityscanning/pom.xml +++ b/bmc-vulnerabilityscanning/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-vulnerabilityscanning @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-waa/pom.xml b/bmc-waa/pom.xml index cced1d23f4e..b32935e537c 100644 --- a/bmc-waa/pom.xml +++ b/bmc-waa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-waa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-waas/pom.xml b/bmc-waas/pom.xml index 99d89be8b34..e16f0dead44 100644 --- a/bmc-waas/pom.xml +++ b/bmc-waas/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-waas @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/bmc-waf/pom.xml b/bmc-waf/pom.xml index ebfeaa4926e..fdcace684ad 100644 --- a/bmc-waf/pom.xml +++ b/bmc-waf/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-waf @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 \ No newline at end of file diff --git a/bmc-workrequests/pom.xml b/bmc-workrequests/pom.xml index 16b55df8b66..6d4b097aef2 100644 --- a/bmc-workrequests/pom.xml +++ b/bmc-workrequests/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 ../pom.xml oci-java-sdk-workrequests @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.2 + 3.41.3 diff --git a/pom.xml b/pom.xml index 07cfb60eb52..d674842c6e0 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk - 3.41.2 + 3.41.3 pom Oracle Cloud Infrastructure SDK This project contains the SDK used for Oracle Cloud Infrastructure @@ -772,5 +772,6 @@ bmc-emaildataplane bmc-clusterplacementgroups bmc-marketplaceprivateoffer + bmc-resourcescheduler \ No newline at end of file