From c7f6c72fa30ef35ff7543f59c0c44567d6f2cf35 Mon Sep 17 00:00:00 2001 From: OCI DEX Release Bot Automation Date: Tue, 27 Aug 2024 16:23:51 +0000 Subject: [PATCH] Releasing version 3.47.0 --- CHANGELOG.md | 25 + bmc-accessgovernancecp/pom.xml | 4 +- bmc-addons/bmc-aispeech-realtime/pom.xml | 77 + .../src/main/assembly/assembly.xml | 44 + .../realtimespeech/RealtimeSpeechClient.java | 471 + .../RealtimeSpeechClientListener.java | 56 + .../RealtimeSpeechConnectException.java | 15 + .../RealtimeSpeechClientTest.java | 217 + .../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 | 3 +- bmc-adm/pom.xml | 4 +- bmc-aianomalydetection/pom.xml | 4 +- bmc-aidocument/pom.xml | 4 +- .../bmc/aidocument/AIServiceDocument.java | 62 + .../aidocument/AIServiceDocumentAsync.java | 61 + .../AIServiceDocumentAsyncClient.java | 160 + .../aidocument/AIServiceDocumentClient.java | 149 + .../aidocument/model/AddModelLockDetails.java | 256 + .../model/AddProjectLockDetails.java | 256 + .../model/DetectedDocumentType.java | 49 +- .../model/DocumentClassificationFeature.java | 40 +- .../DocumentKeyValueExtractionFeature.java | 42 +- .../bmc/aidocument/model/DocumentType.java | 2 +- .../oracle/bmc/aidocument/model/Model.java | 44 +- .../bmc/aidocument/model/ModelSummary.java | 44 +- .../bmc/aidocument/model/OutputLocation.java | 2 +- .../oracle/bmc/aidocument/model/Project.java | 44 +- .../model/RemoveModelLockDetails.java | 166 + .../model/RemoveProjectLockDetails.java | 166 + .../bmc/aidocument/model/ResourceLock.java | 354 + .../requests/AddModelLockRequest.java | 375 + .../requests/AddProjectLockRequest.java | 375 + .../ChangeModelCompartmentRequest.java | 35 +- .../ChangeProjectCompartmentRequest.java | 35 +- .../requests/DeleteModelRequest.java | 38 +- .../requests/DeleteProjectRequest.java | 38 +- .../requests/RemoveModelLockRequest.java | 378 + .../requests/RemoveProjectLockRequest.java | 379 + .../requests/UpdateModelRequest.java | 36 +- .../requests/UpdateProjectRequest.java | 36 +- .../responses/AddModelLockResponse.java | 207 + .../responses/AddProjectLockResponse.java | 208 + .../responses/RemoveModelLockResponse.java | 208 + .../responses/RemoveProjectLockResponse.java | 208 + .../reflect-config.json | 100 + 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 +- .../announcementsservice/Announcement.java | 17 + .../AnnouncementAsync.java | 16 + .../AnnouncementAsyncClient.java | 35 + .../AnnouncementClient.java | 30 + .../bmc/announcementsservice/Service.java | 90 + .../announcementsservice/ServiceAsync.java | 76 + .../ServiceAsyncClient.java | 291 + .../announcementsservice/ServiceClient.java | 286 + .../ServicePaginators.java | 158 + .../model/AnnouncementCompartment.java | 136 + .../model/BaseAnnouncement.java | 1 + .../model/BaseService.java | 334 + .../model/CommsManagerName.java | 55 + .../model/NotificationsSummary.java | 265 + .../model/PlatformType.java | 54 + .../announcementsservice/model/Service.java | 264 + .../model/ServiceSummary.java | 264 + .../model/ServicesCollection.java | 133 + .../GetAnnouncementCompartmentRequest.java | 204 + .../requests/ListAnnouncementsRequest.java | 1 + .../requests/ListServicesRequest.java | 438 + .../GetAnnouncementCompartmentResponse.java | 220 + .../responses/ListServicesResponse.java | 225 + .../reflect-config.json | 95 + 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 +- bmc-blockchain/pom.xml | 4 +- bmc-bom/pom.xml | 327 +- bmc-budget/pom.xml | 4 +- bmc-capacitymanagement/pom.xml | 4 +- bmc-certificates/pom.xml | 4 +- bmc-certificatesmanagement/pom.xml | 4 +- bmc-cims/pom.xml | 4 +- bmc-circuitbreaker/pom.xml | 2 +- bmc-cloudbridge/pom.xml | 4 +- bmc-cloudguard/pom.xml | 4 +- bmc-cloudmigrations/pom.xml | 4 +- bmc-clusterplacementgroups/pom.xml | 4 +- .../bmc-common-httpclient-jersey/pom.xml | 6 +- .../bmc-common-httpclient-jersey3/pom.xml | 6 +- bmc-common-httpclient-choices/pom.xml | 2 +- bmc-common-httpclient/pom.xml | 2 +- bmc-common/pom.xml | 8 +- .../internal/ClientCompatibilityChecker.java | 21 +- .../ClientCompatibilityCheckerTest.java | 98 +- 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 +- .../com/oracle/bmc/database/Database.java | 615 ++ .../oracle/bmc/database/DatabaseAsync.java | 618 ++ .../bmc/database/DatabaseAsyncClient.java | 1537 ++- .../oracle/bmc/database/DatabaseClient.java | 1475 ++- .../bmc/database/DatabasePaginators.java | 967 ++ .../oracle/bmc/database/DatabaseWaiters.java | 9039 ++++++++++------- .../bmc/database/model/ActionMember.java | 207 + .../database/model/ActionOrderDetails.java | 180 + .../model/ActionParamValuesCollection.java | 133 + .../model/ActionParamValuesSummary.java | 345 + .../database/model/AutonomousDatabase.java | 98 +- .../AutonomousDatabaseStandbySummary.java | 56 +- .../model/AutonomousDatabaseSummary.java | 98 +- .../model/CancelExecutionWindowDetails.java | 250 + ...hangeSchedulingPlanCompartmentDetails.java | 145 + ...ngeSchedulingPolicyCompartmentDetails.java | 146 + .../model/CloudExadataInfrastructure.java | 50 +- .../CloudExadataInfrastructureSummary.java | 50 +- .../model/CreateAutonomousDatabaseBase.java | 26 +- ...uardAssociationWithNewDbSystemDetails.java | 49 + .../model/CreateExadbVmClusterDetails.java | 42 +- .../model/CreateExecutionActionDetails.java | 464 + .../model/CreateExecutionWindowDetails.java | 448 + ...ePluggableDatabaseCreationTypeDetails.java | 25 +- .../model/CreateScheduledActionDetails.java | 514 + .../model/CreateSchedulingPlanDetails.java | 473 + .../model/CreateSchedulingPolicyDetails.java | 410 + .../model/CreateSchedulingWindowDetails.java | 286 + .../database/model/ExadataInfrastructure.java | 50 +- .../model/ExadataInfrastructureSummary.java | 50 +- .../bmc/database/model/ExadbVmCluster.java | 42 +- .../database/model/ExadbVmClusterSummary.java | 42 +- .../bmc/database/model/ExecutionAction.java | 1042 ++ .../database/model/ExecutionActionMember.java | 319 + .../model/ExecutionActionSummary.java | 1043 ++ .../bmc/database/model/ExecutionWindow.java | 1134 +++ .../model/ExecutionWindowSummary.java | 1135 +++ .../GranularMaintenanceHistoryDetails.java | 164 + .../bmc/database/model/MaintenanceRun.java | 86 + .../database/model/MaintenanceRunHistory.java | 100 +- .../model/MaintenanceRunHistorySummary.java | 100 +- .../database/model/MaintenanceRunSummary.java | 86 + .../MoveExecutionActionMemberDetails.java | 356 + .../RecommendedScheduledActionSummary.java | 440 + ...RecommendedScheduledActionsCollection.java | 135 + .../model/ReorderExecutionActionDetails.java | 257 + .../model/ReorderScheduledActionsDetails.java | 199 + .../bmc/database/model/ScheduledAction.java | 918 ++ .../model/ScheduledActionCollection.java | 133 + .../model/ScheduledActionSummary.java | 919 ++ .../bmc/database/model/SchedulingPlan.java | 973 ++ .../model/SchedulingPlanCollection.java | 133 + .../database/model/SchedulingPlanSummary.java | 974 ++ .../bmc/database/model/SchedulingPolicy.java | 736 ++ .../model/SchedulingPolicySummary.java | 737 ++ .../bmc/database/model/SchedulingWindow.java | 691 ++ .../model/SchedulingWindowSummary.java | 692 ++ .../UpdateAutonomousDatabaseDetails.java | 56 +- .../model/UpdateExadbVmClusterDetails.java | 42 +- .../model/UpdateExecutionActionDetails.java | 344 + .../model/UpdateExecutionWindowDetails.java | 350 + .../model/UpdateScheduledActionDetails.java | 231 + .../model/UpdateSchedulingPolicyDetails.java | 362 + .../model/UpdateSchedulingWindowDetails.java | 232 + .../model/WindowPreferenceDetail.java | 381 + .../CancelExecutionWindowRequest.java | 365 + .../CascadingDeleteSchedulingPlanRequest.java | 304 + ...hangeSchedulingPlanCompartmentRequest.java | 371 + ...ngeSchedulingPolicyCompartmentRequest.java | 378 + .../CreateExecutionActionRequest.java | 281 + .../CreateExecutionWindowRequest.java | 281 + .../CreateScheduledActionRequest.java | 281 + .../requests/CreateSchedulingPlanRequest.java | 280 + .../CreateSchedulingPolicyRequest.java | 282 + .../CreateSchedulingWindowRequest.java | 323 + .../DeleteExecutionActionRequest.java | 251 + .../DeleteExecutionWindowRequest.java | 251 + .../DeleteScheduledActionRequest.java | 251 + .../requests/DeleteSchedulingPlanRequest.java | 250 + .../DeleteSchedulingPolicyRequest.java | 253 + .../DeleteSchedulingWindowRequest.java | 295 + .../requests/GetExecutionActionRequest.java | 202 + .../requests/GetExecutionWindowRequest.java | 202 + .../requests/GetScheduledActionRequest.java | 202 + .../requests/GetSchedulingPlanRequest.java | 202 + .../requests/GetSchedulingPolicyRequest.java | 204 + .../requests/GetSchedulingWindowRequest.java | 247 + .../requests/ListExecutionActionsRequest.java | 498 + .../requests/ListExecutionWindowsRequest.java | 500 + .../ListParamsForActionTypeRequest.java | 246 + ...istRecommendedScheduledActionsRequest.java | 374 + .../requests/ListScheduledActionsRequest.java | 547 + .../requests/ListSchedulingPlansRequest.java | 547 + .../ListSchedulingPoliciesRequest.java | 471 + .../ListSchedulingWindowsRequest.java | 512 + .../MoveExecutionActionMemberRequest.java | 375 + .../ReorderExecutionActionsRequest.java | 366 + .../ReorderScheduledActionsRequest.java | 366 + .../UpdateExecutionActionRequest.java | 314 + .../UpdateExecutionWindowRequest.java | 314 + .../UpdateScheduledActionRequest.java | 314 + .../UpdateSchedulingPolicyRequest.java | 317 + .../UpdateSchedulingWindowRequest.java | 358 + .../CancelExecutionWindowResponse.java | 267 + ...CascadingDeleteSchedulingPlanResponse.java | 194 + ...angeSchedulingPlanCompartmentResponse.java | 194 + ...geSchedulingPolicyCompartmentResponse.java | 196 + .../CreateExecutionActionResponse.java | 267 + .../CreateExecutionWindowResponse.java | 267 + .../CreateScheduledActionResponse.java | 267 + .../CreateSchedulingPlanResponse.java | 266 + .../CreateSchedulingPolicyResponse.java | 268 + .../CreateSchedulingWindowResponse.java | 268 + .../DeleteExecutionActionResponse.java | 193 + .../DeleteExecutionWindowResponse.java | 136 + .../DeleteScheduledActionResponse.java | 193 + .../DeleteSchedulingPlanResponse.java | 193 + .../DeleteSchedulingPolicyResponse.java | 137 + .../DeleteSchedulingWindowResponse.java | 137 + .../responses/GetExecutionActionResponse.java | 211 + .../responses/GetExecutionWindowResponse.java | 211 + .../responses/GetScheduledActionResponse.java | 211 + .../responses/GetSchedulingPlanResponse.java | 210 + .../GetSchedulingPolicyResponse.java | 211 + .../GetSchedulingWindowResponse.java | 211 + .../ListExecutionActionsResponse.java | 227 + .../ListExecutionWindowsResponse.java | 227 + .../ListParamsForActionTypeResponse.java | 241 + ...stRecommendedScheduledActionsResponse.java | 244 + .../ListScheduledActionsResponse.java | 236 + .../ListSchedulingPlansResponse.java | 236 + .../ListSchedulingPoliciesResponse.java | 228 + .../ListSchedulingWindowsResponse.java | 227 + .../MoveExecutionActionMemberResponse.java | 268 + .../ReorderExecutionActionsResponse.java | 268 + .../ReorderScheduledActionsResponse.java | 319 + .../UpdateExecutionActionResponse.java | 267 + .../UpdateExecutionWindowResponse.java | 267 + .../UpdateScheduledActionResponse.java | 267 + .../UpdateSchedulingPolicyResponse.java | 268 + .../UpdateSchedulingWindowResponse.java | 268 + .../oci-java-sdk-database/reflect-config.json | 882 +- bmc-databasemanagement/pom.xml | 4 +- .../bmc/databasemanagement/DbManagement.java | 51 + .../databasemanagement/DbManagementAsync.java | 54 + .../DbManagementAsyncClient.java | 128 + .../DbManagementClient.java | 119 + ...iagnosticsAndManagementFeatureDetails.java | 130 + .../AutonomousDatabaseFeatureDetails.java | 114 + ...onomousDatabaseSqlWatchFeatureDetails.java | 130 + .../model/ConnectorDetails.java | 6 + ...ateDbManagementPrivateEndpointDetails.java | 51 + .../model/DbManagementPrivateEndpoint.java | 51 + .../model/DirectConnectorDetails.java | 100 + ...omousDatabaseManagementFeatureDetails.java | 135 + ...omousDatabaseManagementFeatureDetails.java | 127 + ...omousDatabaseManagementFeatureDetails.java | 127 + ...ptimizerStatisticsCollectionOperation.java | 1 + ...rStatisticsCollectionOperationSummary.java | 1 + ...omousDatabaseManagementFeatureRequest.java | 391 + ...omousDatabaseManagementFeatureRequest.java | 389 + ...stDbManagementPrivateEndpointsRequest.java | 51 +- ...omousDatabaseManagementFeatureRequest.java | 389 + ...mousDatabaseManagementFeatureResponse.java | 188 + ...mousDatabaseManagementFeatureResponse.java | 188 + ...mousDatabaseManagementFeatureResponse.java | 188 + .../reflect-config.json | 91 + 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 +- bmc-delegateaccesscontrol/pom.xml | 21 + .../DelegateAccessControl.java | 536 + .../DelegateAccessControlAsync.java | 523 + .../DelegateAccessControlAsyncClient.java | 1236 +++ .../DelegateAccessControlClient.java | 1233 +++ .../DelegateAccessControlPaginators.java | 1088 ++ .../DelegateAccessControlWaiters.java | 621 ++ .../delegateaccesscontrol/WorkRequest.java | 152 + .../WorkRequestAsync.java | 131 + .../WorkRequestAsyncClient.java | 391 + .../WorkRequestClient.java | 463 + .../WorkRequestPaginators.java | 407 + .../WorkRequestWaiters.java | 83 + .../model/ActionType.java | 56 + ...DelegatedResourceAccessRequestDetails.java | 234 + .../model/AuditReportStatus.java | 55 + ...geDelegationControlCompartmentDetails.java | 138 + ...egationSubscriptionCompartmentDetails.java | 138 + .../model/CreateDelegationControlDetails.java | 844 ++ .../CreateDelegationSubscriptionDetails.java | 378 + .../model/DelegatedResourceAccessRequest.java | 1699 ++++ ...dResourceAccessRequestApprovalDetails.java | 446 + ...edResourceAccessRequestAuditLogReport.java | 268 + ...legatedResourceAccessRequestAuditType.java | 55 + ...esourceAccessRequestHistoryCollection.java | 136 + ...edResourceAccessRequestHistorySummary.java | 315 + ...elegatedResourceAccessRequestSeverity.java | 56 + .../DelegatedResourceAccessRequestStatus.java | 75 + ...DelegatedResourceAccessRequestSummary.java | 1189 +++ ...esourceAccessRequestSummaryCollection.java | 137 + .../DelegatedResourceAccessRequesterType.java | 55 + .../model/DelegationControl.java | 1257 +++ .../DelegationControlResourceCollection.java | 135 + .../DelegationControlResourceSummary.java | 225 + .../model/DelegationControlResourceType.java | 53 + .../model/DelegationControlSummary.java | 644 ++ .../DelegationControlSummaryCollection.java | 134 + .../model/DelegationSubscription.java | 732 ++ .../model/DelegationSubscriptionSummary.java | 644 ++ ...legationSubscriptionSummaryCollection.java | 135 + .../model/OperationStatus.java | 59 + .../model/OperationType.java | 63 + ...DelegatedResourceAccessRequestDetails.java | 138 + ...DelegatedResourceAccessRequestDetails.java | 138 + .../model/ServiceProvider.java | 825 ++ .../model/ServiceProviderAction.java | 523 + .../ServiceProviderActionProperties.java | 170 + .../model/ServiceProviderActionSummary.java | 437 + ...erviceProviderActionSummaryCollection.java | 135 + .../ServiceProviderInteractionCollection.java | 136 + ...viceProviderInteractionRequestDetails.java | 138 + .../ServiceProviderInteractionSummary.java | 405 + .../model/ServiceProviderServiceType.java | 53 + .../model/ServiceProviderSummary.java | 694 ++ .../ServiceProviderSummaryCollection.java | 134 + .../model/SortOrders.java | 40 + .../model/UpdateDelegationControlDetails.java | 648 ++ .../UpdateDelegationSubscriptionDetails.java | 250 + .../model/WorkRequest.java | 489 + .../model/WorkRequestError.java | 211 + .../model/WorkRequestErrorCollection.java | 134 + .../model/WorkRequestLogEntry.java | 169 + .../model/WorkRequestLogEntryCollection.java | 134 + .../model/WorkRequestResource.java | 307 + .../model/WorkRequestResourceMetadataKey.java | 55 + .../model/WorkRequestSummary.java | 491 + .../model/WorkRequestSummaryCollection.java | 134 + ...DelegatedResourceAccessRequestRequest.java | 388 + ...geDelegationControlCompartmentRequest.java | 372 + ...egationSubscriptionCompartmentRequest.java | 380 + .../CreateDelegationControlRequest.java | 283 + .../CreateDelegationSubscriptionRequest.java | 287 + .../DeleteDelegationControlRequest.java | 271 + .../DeleteDelegationSubscriptionRequest.java | 246 + ...rceAccessRequestAuditLogReportRequest.java | 239 + ...DelegatedResourceAccessRequestRequest.java | 206 + .../requests/GetDelegationControlRequest.java | 195 + .../GetDelegationSubscriptionRequest.java | 200 + .../GetServiceProviderActionRequest.java | 199 + .../requests/GetServiceProviderRequest.java | 192 + .../requests/GetWorkRequestRequest.java | 192 + ...ResourceAccessRequestHistoriesRequest.java | 372 + ...elegatedResourceAccessRequestsRequest.java | 620 ++ ...ListDelegationControlResourcesRequest.java | 264 + .../ListDelegationControlsRequest.java | 506 + .../ListDelegationSubscriptionsRequest.java | 450 + .../ListServiceProviderActionsRequest.java | 532 + ...istServiceProviderInteractionsRequest.java | 269 + .../requests/ListServiceProvidersRequest.java | 540 + .../ListWorkRequestErrorsRequest.java | 361 + .../requests/ListWorkRequestLogsRequest.java | 359 + .../requests/ListWorkRequestsRequest.java | 452 + ...DelegatedResourceAccessRequestRequest.java | 388 + ...DelegatedResourceAccessRequestRequest.java | 388 + ...viceProviderInteractionRequestRequest.java | 374 + .../UpdateDelegationControlRequest.java | 308 + .../UpdateDelegationSubscriptionRequest.java | 314 + ...elegatedResourceAccessRequestResponse.java | 192 + ...eDelegationControlCompartmentResponse.java | 192 + ...gationSubscriptionCompartmentResponse.java | 192 + .../CreateDelegationControlResponse.java | 334 + .../CreateDelegationSubscriptionResponse.java | 342 + .../DeleteDelegationControlResponse.java | 190 + .../DeleteDelegationSubscriptionResponse.java | 190 + ...ceAccessRequestAuditLogReportResponse.java | 199 + ...elegatedResourceAccessRequestResponse.java | 227 + .../GetDelegationControlResponse.java | 211 + .../GetDelegationSubscriptionResponse.java | 220 + .../GetServiceProviderActionResponse.java | 219 + .../responses/GetServiceProviderResponse.java | 211 + .../responses/GetWorkRequestResponse.java | 250 + ...esourceAccessRequestHistoriesResponse.java | 248 + ...legatedResourceAccessRequestsResponse.java | 248 + ...istDelegationControlResourcesResponse.java | 238 + .../ListDelegationControlsResponse.java | 238 + .../ListDelegationSubscriptionsResponse.java | 238 + .../ListServiceProviderActionsResponse.java | 238 + ...stServiceProviderInteractionsResponse.java | 238 + .../ListServiceProvidersResponse.java | 237 + .../ListWorkRequestErrorsResponse.java | 236 + .../ListWorkRequestLogsResponse.java | 236 + .../responses/ListWorkRequestsResponse.java | 236 + ...elegatedResourceAccessRequestResponse.java | 192 + ...elegatedResourceAccessRequestResponse.java | 192 + ...iceProviderInteractionRequestResponse.java | 140 + .../UpdateDelegationControlResponse.java | 300 + .../UpdateDelegationSubscriptionResponse.java | 308 + .../reflect-config.json | 728 ++ .../delegateaccesscontrol/client.properties | 9 + bmc-demandsignal/pom.xml | 4 +- 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 | 14 +- .../java/RealtimeSpeechExampleClient.java | 20 +- bmc-filestorage/pom.xml | 4 +- .../oracle/bmc/filestorage/FileStorage.java | 50 + .../bmc/filestorage/FileStorageAsync.java | 52 + .../filestorage/FileStorageAsyncClient.java | 118 + .../bmc/filestorage/FileStorageClient.java | 105 + .../model/CreateMountTargetDetails.java | 100 +- .../bmc/filestorage/model/MountTarget.java | 211 + .../filestorage/model/MountTargetSummary.java | 215 + ...eduleDowngradeShapeMountTargetDetails.java | 152 + .../model/UpgradeShapeMountTargetDetails.java | 151 + ...ancelDowngradeShapeMountTargetRequest.java | 264 + .../requests/ListExportSetsRequest.java | 8 +- .../requests/ListExportsRequest.java | 8 +- .../requests/ListFileSystemsRequest.java | 8 +- ...ListFilesystemSnapshotPoliciesRequest.java | 8 +- .../requests/ListMountTargetsRequest.java | 8 +- .../ListOutboundConnectorsRequest.java | 8 +- .../ListReplicationTargetsRequest.java | 8 +- .../requests/ListReplicationsRequest.java | 8 +- ...eduleDowngradeShapeMountTargetRequest.java | 334 + .../UpgradeShapeMountTargetRequest.java | 325 + ...ncelDowngradeShapeMountTargetResponse.java | 209 + ...duleDowngradeShapeMountTargetResponse.java | 211 + .../UpgradeShapeMountTargetResponse.java | 209 + .../reflect-config.json | 28 + bmc-fleetappsmanagement/pom.xml | 4 +- bmc-fleetsoftwareupdate/pom.xml | 4 +- bmc-full/pom.xml | 8 +- bmc-functions/pom.xml | 4 +- bmc-fusionapps/pom.xml | 4 +- .../model/FusionEnvironmentFamily.java | 50 +- 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 +- .../keymanagement/KmsHsmClusterWaiters.java | 4 +- .../model/AutoKeyRotationDetails.java | 76 +- .../ChangeHsmClusterCompartmentDetails.java | 10 +- .../model/CreateHsmClusterDetails.java | 26 +- .../bmc/keymanagement/model/HsmCluster.java | 26 +- .../model/HsmClusterCollection.java | 8 +- .../model/HsmClusterSummary.java | 12 +- .../bmc/keymanagement/model/HsmPartition.java | 58 +- .../model/HsmPartitionCollection.java | 3 +- .../model/HsmPartitionSummary.java | 50 +- .../keymanagement/model/PortInformation.java | 49 +- .../model/PreCoUserCredentials.java | 8 +- .../UploadPartitionCertificatesDetails.java | 34 +- .../oracle/bmc/keymanagement/model/Vault.java | 48 + .../CancelHsmClusterDeletionRequest.java | 8 +- .../ChangeHsmClusterCompartmentRequest.java | 8 +- ...nloadCertificateSigningRequestRequest.java | 8 +- .../requests/GetHsmClusterRequest.java | 8 +- .../requests/GetHsmPartitionRequest.java | 24 +- .../GetPreCoUserCredentialsRequest.java | 8 +- .../requests/ListHsmPartitionsRequest.java | 8 +- .../ScheduleHsmClusterDeletionRequest.java | 8 +- .../requests/UpdateHsmClusterRequest.java | 8 +- .../UploadPartitionCertificatesRequest.java | 8 +- bmc-licensemanager/pom.xml | 4 +- bmc-limits/pom.xml | 4 +- bmc-loadbalancer/pom.xml | 4 +- .../bmc/loadbalancer/model/Backend.java | 12 +- .../loadbalancer/model/BackendDetails.java | 12 +- .../bmc/loadbalancer/model/BackendSet.java | 16 +- .../loadbalancer/model/BackendSetDetails.java | 16 +- .../model/CreateBackendDetails.java | 12 +- .../model/CreateBackendSetDetails.java | 16 +- .../model/CreateLoadBalancerDetails.java | 198 + .../loadbalancer/model/IpMaxConnections.java | 24 +- .../bmc/loadbalancer/model/LoadBalancer.java | 166 + .../model/UpdateBackendDetails.java | 12 +- .../model/UpdateBackendSetDetails.java | 16 +- .../model/UpdateLoadBalancerDetails.java | 190 + 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 +- .../mysql/model/CreateDbSystemDetails.java | 66 +- .../bmc/mysql/model/CustomerContact.java | 133 + .../com/oracle/bmc/mysql/model/DbSystem.java | 66 +- .../mysql/model/UpdateDbSystemDetails.java | 66 +- .../oci-java-sdk-mysql/reflect-config.json | 14 + 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/ObjectStorage.java | 101 +- .../bmc/objectstorage/ObjectStorageAsync.java | 101 +- .../ObjectStorageAsyncClient.java | 228 + .../objectstorage/ObjectStorageClient.java | 216 + .../ObjectStoragePaginators.java | 120 + .../objectstorage/ObjectStorageWaiters.java | 109 + .../model/AccessTargetDetails.java | 239 + .../model/CreatePrivateEndpointDetails.java | 588 ++ .../oracle/bmc/objectstorage/model/Fqdns.java | 163 + .../bmc/objectstorage/model/PrefixFqdns.java | 220 + .../objectstorage/model/PrivateEndpoint.java | 974 ++ .../model/PrivateEndpointSummary.java | 524 + .../model/UpdatePrivateEndpointDetails.java | 334 + .../bmc/objectstorage/model/WorkRequest.java | 3 + .../model/WorkRequestResourceMetadataKey.java | 1 + .../model/WorkRequestSummary.java | 3 + .../CreatePrivateEndpointRequest.java | 264 + .../DeletePrivateEndpointRequest.java | 278 + .../requests/GetPrivateEndpointRequest.java | 322 + .../requests/ListObjectVersionsRequest.java | 28 +- .../requests/ListObjectsRequest.java | 28 +- .../requests/ListPrivateEndpointsRequest.java | 438 + .../requests/ListWorkRequestsRequest.java | 34 +- .../requests/PutObjectRequest.java | 24 +- .../requests/RestoreObjectsRequest.java | 8 +- .../UpdatePrivateEndpointRequest.java | 342 + .../requests/UploadPartRequest.java | 24 +- .../CommitMultipartUploadResponse.java | 24 +- .../CreatePrivateEndpointResponse.java | 234 + .../DeletePrivateEndpointResponse.java | 234 + .../responses/GetPrivateEndpointResponse.java | 307 + .../ListPrivateEndpointsResponse.java | 295 + .../responses/PutObjectResponse.java | 8 +- .../UpdatePrivateEndpointResponse.java | 234 + .../reflect-config.json | 104 + bmc-objectstorage/pom.xml | 2 +- bmc-oce/pom.xml | 4 +- bmc-ocicontrolcenter/pom.xml | 4 +- bmc-ocvp/pom.xml | 4 +- .../com/oracle/bmc/ocvp/SddcAsyncClient.java | 1 + .../java/com/oracle/bmc/ocvp/SddcClient.java | 1 + .../com/oracle/bmc/ocvp/model/Cluster.java | 52 +- .../oracle/bmc/ocvp/model/ClusterSummary.java | 52 +- .../bmc/ocvp/model/DatastoreClusterTypes.java | 40 + .../bmc/ocvp/model/DatastoreDetails.java | 2 +- .../com/oracle/bmc/ocvp/model/EsxiHost.java | 52 +- .../bmc/ocvp/model/EsxiHostSummary.java | 52 +- .../oracle/bmc/ocvp/model/OperationTypes.java | 13 + .../java/com/oracle/bmc/ocvp/model/Sddc.java | 52 +- .../oracle/bmc/ocvp/model/SddcSummary.java | 52 +- .../ocvp/requests/DeleteClusterRequest.java | 8 +- .../bmc/ocvp/requests/GetClusterRequest.java | 8 +- .../ocvp/requests/ListEsxiHostsRequest.java | 8 +- ...upportedVmwareSoftwareVersionsRequest.java | 45 +- .../ocvp/requests/UpdateClusterRequest.java | 8 +- .../oci-java-sdk-ocvp/reflect-config.json | 6 + 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 +- .../oracle/bmc/recovery/DatabaseRecovery.java | 18 + .../bmc/recovery/DatabaseRecoveryAsync.java | 19 + .../recovery/DatabaseRecoveryAsyncClient.java | 41 + .../bmc/recovery/DatabaseRecoveryClient.java | 37 + ...eProtectedDatabaseSubscriptionDetails.java | 183 + .../model/CreateProtectedDatabaseDetails.java | 52 + .../model/CreateProtectionPolicyDetails.java | 78 + .../bmc/recovery/model/ProtectedDatabase.java | 40 + .../model/ProtectedDatabaseSummary.java | 40 + .../bmc/recovery/model/ProtectionPolicy.java | 52 + .../model/ProtectionPolicySummary.java | 52 + ...eProtectedDatabaseSubscriptionRequest.java | 317 + ...ProtectedDatabaseSubscriptionResponse.java | 180 + .../oci-java-sdk-recovery/reflect-config.json | 14 + bmc-redis/pom.xml | 4 +- bmc-resourcemanager/pom.xml | 4 +- bmc-resourcescheduler/pom.xml | 4 +- bmc-resourcesearch/pom.xml | 4 +- bmc-rover/pom.xml | 4 +- bmc-sch/pom.xml | 4 +- bmc-secrets/pom.xml | 4 +- bmc-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 +- .../waf/model/DynamicHttpResponseBody.java | 147 + .../bmc/waf/model/HttpResponseBody.java | 4 + .../oci-java-sdk-waf/reflect-config.json | 14 + bmc-workrequests/pom.xml | 4 +- pom.xml | 3 +- 669 files changed, 120307 insertions(+), 5029 deletions(-) create mode 100644 bmc-addons/bmc-aispeech-realtime/pom.xml create mode 100644 bmc-addons/bmc-aispeech-realtime/src/main/assembly/assembly.xml create mode 100644 bmc-addons/bmc-aispeech-realtime/src/main/java/com/oracle/bmc/aispeech/realtimespeech/RealtimeSpeechClient.java create mode 100644 bmc-addons/bmc-aispeech-realtime/src/main/java/com/oracle/bmc/aispeech/realtimespeech/RealtimeSpeechClientListener.java create mode 100644 bmc-addons/bmc-aispeech-realtime/src/main/java/com/oracle/bmc/aispeech/realtimespeech/RealtimeSpeechConnectException.java create mode 100644 bmc-addons/bmc-aispeech-realtime/src/test/java/com/oracle/bmc/aispeech/realtimespeech/RealtimeSpeechClientTest.java create mode 100644 bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/AddModelLockDetails.java create mode 100644 bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/AddProjectLockDetails.java create mode 100644 bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/RemoveModelLockDetails.java create mode 100644 bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/RemoveProjectLockDetails.java create mode 100644 bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/ResourceLock.java create mode 100644 bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/AddModelLockRequest.java create mode 100644 bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/AddProjectLockRequest.java create mode 100644 bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/RemoveModelLockRequest.java create mode 100644 bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/RemoveProjectLockRequest.java create mode 100644 bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/responses/AddModelLockResponse.java create mode 100644 bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/responses/AddProjectLockResponse.java create mode 100644 bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/responses/RemoveModelLockResponse.java create mode 100644 bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/responses/RemoveProjectLockResponse.java create mode 100644 bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/Service.java create mode 100644 bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/ServiceAsync.java create mode 100644 bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/ServiceAsyncClient.java create mode 100644 bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/ServiceClient.java create mode 100644 bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/ServicePaginators.java create mode 100644 bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/model/AnnouncementCompartment.java create mode 100644 bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/model/BaseService.java create mode 100644 bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/model/CommsManagerName.java create mode 100644 bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/model/NotificationsSummary.java create mode 100644 bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/model/PlatformType.java create mode 100644 bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/model/Service.java create mode 100644 bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/model/ServiceSummary.java create mode 100644 bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/model/ServicesCollection.java create mode 100644 bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/requests/GetAnnouncementCompartmentRequest.java create mode 100644 bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/requests/ListServicesRequest.java create mode 100644 bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/responses/GetAnnouncementCompartmentResponse.java create mode 100644 bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/responses/ListServicesResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/ActionMember.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/ActionOrderDetails.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/ActionParamValuesCollection.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/ActionParamValuesSummary.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/CancelExecutionWindowDetails.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/ChangeSchedulingPlanCompartmentDetails.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/ChangeSchedulingPolicyCompartmentDetails.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExecutionActionDetails.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExecutionWindowDetails.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/CreateScheduledActionDetails.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/CreateSchedulingPlanDetails.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/CreateSchedulingPolicyDetails.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/CreateSchedulingWindowDetails.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/ExecutionAction.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/ExecutionActionMember.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/ExecutionActionSummary.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/ExecutionWindow.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/ExecutionWindowSummary.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/GranularMaintenanceHistoryDetails.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/MoveExecutionActionMemberDetails.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/RecommendedScheduledActionSummary.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/RecommendedScheduledActionsCollection.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/ReorderExecutionActionDetails.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/ReorderScheduledActionsDetails.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/ScheduledAction.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/ScheduledActionCollection.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/ScheduledActionSummary.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/SchedulingPlan.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/SchedulingPlanCollection.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/SchedulingPlanSummary.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/SchedulingPolicy.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/SchedulingPolicySummary.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/SchedulingWindow.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/SchedulingWindowSummary.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateExecutionActionDetails.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateExecutionWindowDetails.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateScheduledActionDetails.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateSchedulingPolicyDetails.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateSchedulingWindowDetails.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/WindowPreferenceDetail.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/CancelExecutionWindowRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/CascadingDeleteSchedulingPlanRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/ChangeSchedulingPlanCompartmentRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/ChangeSchedulingPolicyCompartmentRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateExecutionActionRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateExecutionWindowRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateScheduledActionRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateSchedulingPlanRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateSchedulingPolicyRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateSchedulingWindowRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteExecutionActionRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteExecutionWindowRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteScheduledActionRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteSchedulingPlanRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteSchedulingPolicyRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteSchedulingWindowRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/GetExecutionActionRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/GetExecutionWindowRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/GetScheduledActionRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/GetSchedulingPlanRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/GetSchedulingPolicyRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/GetSchedulingWindowRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/ListExecutionActionsRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/ListExecutionWindowsRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/ListParamsForActionTypeRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/ListRecommendedScheduledActionsRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/ListScheduledActionsRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/ListSchedulingPlansRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/ListSchedulingPoliciesRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/ListSchedulingWindowsRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/MoveExecutionActionMemberRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/ReorderExecutionActionsRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/ReorderScheduledActionsRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateExecutionActionRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateExecutionWindowRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateScheduledActionRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateSchedulingPolicyRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateSchedulingWindowRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/CancelExecutionWindowResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/CascadingDeleteSchedulingPlanResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/ChangeSchedulingPlanCompartmentResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/ChangeSchedulingPolicyCompartmentResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateExecutionActionResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateExecutionWindowResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateScheduledActionResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateSchedulingPlanResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateSchedulingPolicyResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateSchedulingWindowResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteExecutionActionResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteExecutionWindowResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteScheduledActionResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteSchedulingPlanResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteSchedulingPolicyResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteSchedulingWindowResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/GetExecutionActionResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/GetExecutionWindowResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/GetScheduledActionResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/GetSchedulingPlanResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/GetSchedulingPolicyResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/GetSchedulingWindowResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/ListExecutionActionsResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/ListExecutionWindowsResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/ListParamsForActionTypeResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/ListRecommendedScheduledActionsResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/ListScheduledActionsResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/ListSchedulingPlansResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/ListSchedulingPoliciesResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/ListSchedulingWindowsResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/MoveExecutionActionMemberResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/ReorderExecutionActionsResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/ReorderScheduledActionsResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateExecutionActionResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateExecutionWindowResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateScheduledActionResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateSchedulingPolicyResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateSchedulingWindowResponse.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/AutonomousDatabaseDiagnosticsAndManagementFeatureDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/AutonomousDatabaseFeatureDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/AutonomousDatabaseSqlWatchFeatureDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DirectConnectorDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableAutonomousDatabaseManagementFeatureDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableAutonomousDatabaseManagementFeatureDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ModifyAutonomousDatabaseManagementFeatureDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DisableAutonomousDatabaseManagementFeatureRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnableAutonomousDatabaseManagementFeatureRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ModifyAutonomousDatabaseManagementFeatureRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DisableAutonomousDatabaseManagementFeatureResponse.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/EnableAutonomousDatabaseManagementFeatureResponse.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/ModifyAutonomousDatabaseManagementFeatureResponse.java create mode 100644 bmc-delegateaccesscontrol/pom.xml create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/DelegateAccessControl.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/DelegateAccessControlAsync.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/DelegateAccessControlAsyncClient.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/DelegateAccessControlClient.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/DelegateAccessControlPaginators.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/DelegateAccessControlWaiters.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/WorkRequest.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/WorkRequestAsync.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/WorkRequestAsyncClient.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/WorkRequestClient.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/WorkRequestPaginators.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/WorkRequestWaiters.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ActionType.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ApproveDelegatedResourceAccessRequestDetails.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/AuditReportStatus.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ChangeDelegationControlCompartmentDetails.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ChangeDelegationSubscriptionCompartmentDetails.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/CreateDelegationControlDetails.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/CreateDelegationSubscriptionDetails.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequest.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestApprovalDetails.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestAuditLogReport.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestAuditType.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestHistoryCollection.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestHistorySummary.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestSeverity.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestStatus.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestSummary.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestSummaryCollection.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequesterType.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationControl.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationControlResourceCollection.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationControlResourceSummary.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationControlResourceType.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationControlSummary.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationControlSummaryCollection.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationSubscription.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationSubscriptionSummary.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationSubscriptionSummaryCollection.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/OperationStatus.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/OperationType.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/RejectDelegatedResourceAccessRequestDetails.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/RevokeDelegatedResourceAccessRequestDetails.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProvider.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderAction.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderActionProperties.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderActionSummary.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderActionSummaryCollection.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderInteractionCollection.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderInteractionRequestDetails.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderInteractionSummary.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderServiceType.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderSummary.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderSummaryCollection.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/SortOrders.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/UpdateDelegationControlDetails.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/UpdateDelegationSubscriptionDetails.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/WorkRequest.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/WorkRequestError.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/WorkRequestErrorCollection.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/WorkRequestLogEntry.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/WorkRequestLogEntryCollection.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/WorkRequestResource.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/WorkRequestResourceMetadataKey.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/WorkRequestSummary.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/WorkRequestSummaryCollection.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ApproveDelegatedResourceAccessRequestRequest.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ChangeDelegationControlCompartmentRequest.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ChangeDelegationSubscriptionCompartmentRequest.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/CreateDelegationControlRequest.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/CreateDelegationSubscriptionRequest.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/DeleteDelegationControlRequest.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/DeleteDelegationSubscriptionRequest.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/GetDelegatedResourceAccessRequestAuditLogReportRequest.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/GetDelegatedResourceAccessRequestRequest.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/GetDelegationControlRequest.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/GetDelegationSubscriptionRequest.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/GetServiceProviderActionRequest.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/GetServiceProviderRequest.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/GetWorkRequestRequest.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListDelegatedResourceAccessRequestHistoriesRequest.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListDelegatedResourceAccessRequestsRequest.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListDelegationControlResourcesRequest.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListDelegationControlsRequest.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListDelegationSubscriptionsRequest.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListServiceProviderActionsRequest.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListServiceProviderInteractionsRequest.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListServiceProvidersRequest.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListWorkRequestErrorsRequest.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListWorkRequestLogsRequest.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListWorkRequestsRequest.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/RejectDelegatedResourceAccessRequestRequest.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/RevokeDelegatedResourceAccessRequestRequest.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ServiceProviderInteractionRequestRequest.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/UpdateDelegationControlRequest.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/UpdateDelegationSubscriptionRequest.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ApproveDelegatedResourceAccessRequestResponse.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ChangeDelegationControlCompartmentResponse.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ChangeDelegationSubscriptionCompartmentResponse.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/CreateDelegationControlResponse.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/CreateDelegationSubscriptionResponse.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/DeleteDelegationControlResponse.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/DeleteDelegationSubscriptionResponse.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/GetDelegatedResourceAccessRequestAuditLogReportResponse.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/GetDelegatedResourceAccessRequestResponse.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/GetDelegationControlResponse.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/GetDelegationSubscriptionResponse.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/GetServiceProviderActionResponse.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/GetServiceProviderResponse.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/GetWorkRequestResponse.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListDelegatedResourceAccessRequestHistoriesResponse.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListDelegatedResourceAccessRequestsResponse.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListDelegationControlResourcesResponse.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListDelegationControlsResponse.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListDelegationSubscriptionsResponse.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListServiceProviderActionsResponse.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListServiceProviderInteractionsResponse.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListServiceProvidersResponse.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListWorkRequestErrorsResponse.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListWorkRequestLogsResponse.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListWorkRequestsResponse.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/RejectDelegatedResourceAccessRequestResponse.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/RevokeDelegatedResourceAccessRequestResponse.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ServiceProviderInteractionRequestResponse.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/UpdateDelegationControlResponse.java create mode 100644 bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/UpdateDelegationSubscriptionResponse.java create mode 100644 bmc-delegateaccesscontrol/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-delegateaccesscontrol/reflect-config.json create mode 100644 bmc-delegateaccesscontrol/src/main/resources/com/oracle/bmc/delegateaccesscontrol/client.properties create mode 100644 bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/ScheduleDowngradeShapeMountTargetDetails.java create mode 100644 bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/UpgradeShapeMountTargetDetails.java create mode 100644 bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/CancelDowngradeShapeMountTargetRequest.java create mode 100644 bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/ScheduleDowngradeShapeMountTargetRequest.java create mode 100644 bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/UpgradeShapeMountTargetRequest.java create mode 100644 bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/responses/CancelDowngradeShapeMountTargetResponse.java create mode 100644 bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/responses/ScheduleDowngradeShapeMountTargetResponse.java create mode 100644 bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/responses/UpgradeShapeMountTargetResponse.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CustomerContact.java create mode 100644 bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/AccessTargetDetails.java create mode 100644 bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreatePrivateEndpointDetails.java create mode 100644 bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/Fqdns.java create mode 100644 bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/PrefixFqdns.java create mode 100644 bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/PrivateEndpoint.java create mode 100644 bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/PrivateEndpointSummary.java create mode 100644 bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/UpdatePrivateEndpointDetails.java create mode 100644 bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/CreatePrivateEndpointRequest.java create mode 100644 bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/DeletePrivateEndpointRequest.java create mode 100644 bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/GetPrivateEndpointRequest.java create mode 100644 bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/ListPrivateEndpointsRequest.java create mode 100644 bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/UpdatePrivateEndpointRequest.java create mode 100644 bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/CreatePrivateEndpointResponse.java create mode 100644 bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/DeletePrivateEndpointResponse.java create mode 100644 bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/GetPrivateEndpointResponse.java create mode 100644 bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListPrivateEndpointsResponse.java create mode 100644 bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/UpdatePrivateEndpointResponse.java create mode 100644 bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/DatastoreClusterTypes.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ChangeProtectedDatabaseSubscriptionDetails.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ChangeProtectedDatabaseSubscriptionRequest.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/ChangeProtectedDatabaseSubscriptionResponse.java create mode 100644 bmc-waf/src/main/java/com/oracle/bmc/waf/model/DynamicHttpResponseBody.java diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ef69451869..6ba8289be1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,31 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/). +## 3.48.0 - 2024-08-27 +### Added +- Support for Delegate Access Control service +- Support for upgrade and downgrade of shapes of high performance mount targets in the File Storage service +- Support for private endpoints in the Object Storage service +- Support for create, update, list and delete operations on scheduling policies and scheduling windows in the Database service +- Support for specifying domains while creating data guard associations in the Database service +- Support for provision of developer autonomous databases in the Database service +- Support for upgrade of developer autonomous databases to paid autonomous databases in the Database service +- Support for scheduling plans, actions, execution windows and execution actions for maintenance scheduling in the Database service +- Support for cross-region replication of virtual vaults in the Key Management service +- Support for listing all active service summaries in the Announcements service +- Support for VMware major and minor version upgrades in VMware Solution service +- Support for updating protected database subscriptions in the Autonomous Recovery service +- Support for health insurance id as an allowed document type in the Document Understanding service +- Support for advanced database management features for autonomous databases in the Database Management service +- Support for propagating request ids to load balancer servers in the Load balancer service +- Support for automatic update orders in Fusion Application as a Service + +### Breaking Changes +- Method `public java.lang.String getDocumentId()` has been removed from the model `com.oracle.bmc.aidocument.model.DetectedDocumentType` in the Document Understanding service +- Method `public java.lang.String getTenancyId()` has been removed from the model `com.oracle.bmc.aidocument.model.DocumentClassificationFeature` in the Document Understanding service +- Method `public java.lang.String getTenancyId()` has been removed from the model `com.oracle.bmc.aidocument.model.DocumentKeyValueExtractionFeature` in the Document Understanding service +- Field `InsuranceClaim` has been removed from the model `com.oracle.bmc.aidocument.model.DocumentType` in the Document Understanding service + ## 3.47.0 - 2024-08-20 ### Added - Support for Fleet Application Management service diff --git a/bmc-accessgovernancecp/pom.xml b/bmc-accessgovernancecp/pom.xml index 076aa1d13fb..21b9fce6765 100644 --- a/bmc-accessgovernancecp/pom.xml +++ b/bmc-accessgovernancecp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-accessgovernancecp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-addons/bmc-aispeech-realtime/pom.xml b/bmc-addons/bmc-aispeech-realtime/pom.xml new file mode 100644 index 00000000000..67e14fed139 --- /dev/null +++ b/bmc-addons/bmc-aispeech-realtime/pom.xml @@ -0,0 +1,77 @@ + + + + com.oracle.oci.sdk + oci-java-sdk-addons + 3.48.0 + ../pom.xml + + 4.0.0 + + oci-java-sdk-addons-aispeech-realtime + Oracle Cloud Infrastructure SDK - AI Speech Realtime Client + This project adds a Java client to utilize the realtime speech service + + https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.19.1 + + + ${user.dir} + + + + + + + + + org.eclipse.jetty.websocket + websocket-server + 9.4.53.v20231009 + + + org.slf4j + slf4j-api + + + org.slf4j + slf4j-simple + + + com.fasterxml.jackson.core + jackson-databind + + + com.oracle.oci.sdk + oci-java-sdk-aispeech + 3.48.0 + + + com.oracle.oci.sdk + oci-java-sdk-common-httpclient-jersey + 3.48.0 + compile + + + junit + junit + test + + + org.mockito + mockito-core + test + + + + + \ No newline at end of file diff --git a/bmc-addons/bmc-aispeech-realtime/src/main/assembly/assembly.xml b/bmc-addons/bmc-aispeech-realtime/src/main/assembly/assembly.xml new file mode 100644 index 00000000000..a6640178d78 --- /dev/null +++ b/bmc-addons/bmc-aispeech-realtime/src/main/assembly/assembly.xml @@ -0,0 +1,44 @@ + + + + release + false + + zip + + + + + ${project.build.directory}/apidocs + apidocs + + + + ${project.build.directory} + + ${project.artifactId}-${project.version}-*.jar + + + ${project.artifactId}-${project.version}-signed.jar + + lib + + + + + + ${source.jar.for.zip} + lib + ${project.artifactId}-${project.version}.jar + + + \ No newline at end of file diff --git a/bmc-addons/bmc-aispeech-realtime/src/main/java/com/oracle/bmc/aispeech/realtimespeech/RealtimeSpeechClient.java b/bmc-addons/bmc-aispeech-realtime/src/main/java/com/oracle/bmc/aispeech/realtimespeech/RealtimeSpeechClient.java new file mode 100644 index 00000000000..5a536a3ec70 --- /dev/null +++ b/bmc-addons/bmc-aispeech-realtime/src/main/java/com/oracle/bmc/aispeech/realtimespeech/RealtimeSpeechClient.java @@ -0,0 +1,471 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.aispeech.realtimespeech; + +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.ser.FilterProvider; +import com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter; +import com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider; +import com.oracle.bmc.aispeech.model.RealtimeMessage; +import com.oracle.bmc.aispeech.model.RealtimeMessageAckAudio; +import com.oracle.bmc.aispeech.model.RealtimeMessageAuthenticationCredentials; +import com.oracle.bmc.aispeech.model.RealtimeMessageConnect; +import com.oracle.bmc.aispeech.model.RealtimeMessageError; +import com.oracle.bmc.aispeech.model.RealtimeMessageResult; +import com.oracle.bmc.aispeech.model.RealtimeMessageSendFinalResult; +import com.oracle.bmc.aispeech.model.RealtimeParameters; +import com.oracle.bmc.auth.BasicAuthenticationDetailsProvider; +import com.oracle.bmc.http.signing.DefaultRequestSigner; +import com.oracle.bmc.http.signing.RequestSigner; +import com.oracle.bmc.serialization.jackson.JacksonSerializer; +import com.oracle.bmc.util.VisibleForTesting; +import com.oracle.bmc.util.internal.StringUtils; +import org.eclipse.jetty.websocket.api.Session; +import org.eclipse.jetty.websocket.api.annotations.OnWebSocketClose; +import org.eclipse.jetty.websocket.api.annotations.OnWebSocketConnect; +import org.eclipse.jetty.websocket.api.annotations.OnWebSocketError; +import org.eclipse.jetty.websocket.api.annotations.OnWebSocketMessage; +import org.eclipse.jetty.websocket.api.annotations.WebSocket; +import org.eclipse.jetty.websocket.client.ClientUpgradeRequest; +import org.eclipse.jetty.websocket.client.WebSocketClient; + +import java.io.IOException; +import java.net.ConnectException; +import java.net.URI; +import java.net.URLEncoder; +import java.nio.ByteBuffer; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; + +/** + * This is the client to be used for connecting to the realtime speech service. Note that this + * contains an instance of the RealtimeSpeechClientListener class which will be called on the + * appropriate event (CONNECT, RESULT, etc). Make sure you use the right combination of the + * endpoint, compartmentId, and authenticationDetailsProvider to use this client. + */ +@WebSocket +@SuppressWarnings({"PMD.AvoidCatchingGenericException", "PMD.AvoidThrowingRawExceptionTypes"}) +public class RealtimeSpeechClient { + + private final String compartmentId; + private WebSocketClient webSocketClient; + private Session session; + private boolean isConnected; + private RealtimeSpeechClientListener listener; + private BasicAuthenticationDetailsProvider authenticationDetailsProvider; + private URI destUri; + private Boolean isClosureClientInitiated = false; + + private Status status; + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(RealtimeSpeechClient.class); + + private final FilterProvider filters = + new SimpleFilterProvider() + .setFailOnUnknownId(false) + .addFilter("explicitlySetFilter", SimpleBeanPropertyFilter.serializeAll()); + + private final ObjectMapper objectMapper = + JacksonSerializer.getDefaultObjectMapper().setFilterProvider(filters); + + /** + * Constructor. + * + * @param listener for the RealtimeSpeechClientListener + * @param authenticationDetailsProvider for the BasicAuthenticationDetailsProvider + * @param compartmentId for the compartmentId + * @param webSocketClient for the WebsocketClient + */ + public RealtimeSpeechClient( + RealtimeSpeechClientListener listener, + BasicAuthenticationDetailsProvider authenticationDetailsProvider, + String compartmentId, + WebSocketClient webSocketClient) { + + this.isConnected = false; + this.listener = listener; + this.authenticationDetailsProvider = authenticationDetailsProvider; + this.compartmentId = compartmentId; + this.webSocketClient = webSocketClient; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + RealtimeSpeechClientListener listener; + + public Builder listener(RealtimeSpeechClientListener listener) { + this.listener = listener; + return this; + } + + BasicAuthenticationDetailsProvider authenticationDetailsProvider; + + public Builder authenticationDetailsProvider( + BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this.authenticationDetailsProvider = authenticationDetailsProvider; + return this; + } + + WebSocketClient webSocketClient; + + public Builder webSocketClient(WebSocketClient webSocketClient) { + this.webSocketClient = webSocketClient; + return this; + } + + String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + public RealtimeSpeechClient build() { + if (StringUtils.isBlank(compartmentId)) { + throw new IllegalStateException("Please initialize with a non-null compartmentId"); + } + + if (listener == null) { + throw new IllegalStateException("Please initialize the listener parameter"); + } + + if (authenticationDetailsProvider == null) { + throw new IllegalStateException( + "Please initialize the authentication details provider"); + } + + if (webSocketClient == null) { + throw new IllegalStateException("Please initialize the websocket client"); + } + + return new RealtimeSpeechClient( + listener, authenticationDetailsProvider, compartmentId, webSocketClient); + } + } + + public static Builder builder() { + return new Builder(); + } + + /** + * the onClose event handler. + * + * @param statusCode the status code sent from remote + * @param reason the close reason sent from remote + */ + @OnWebSocketClose + public void onClose(int statusCode, String reason) { + LOG.info( + "Session closed by {} : reason = {}, status code = {}", + isClosureClientInitiated ? "client" : "server", + reason, + statusCode); + + isConnected = false; + status = Status.DISCONNECTED; + + // The listener can implement their own closing logic + this.listener.onClose(statusCode, reason); + + this.session = null; + this.webSocketClient = null; + this.listener = null; + } + + /** + * the openError event handler. + * + * @param error the error throwable sent from remote + */ + @OnWebSocketError + public void onError(Throwable error) { + LOG.info("Error: {}", error.getMessage()); + isConnected = false; + this.session = null; + + this.status = Status.ERROR; + + // Pass the exception down to the listener. + if (listener != null) { + listener.onError(error); + } + } + + /** + * the onConnect event handler. + * + * @param session the session that got connected + */ + @OnWebSocketConnect + public void onConnect(Session session) { + LOG.info("Connect: {}", session.getRemoteAddress().getAddress()); + synchronized (this) { + this.session = session; + } + + // We need to decide if we want to send tokens or credentials in the client + // initialization + sendCreds(compartmentId); + + status = Status.CONNECTED; + + isConnected = true; + if (listener != null) { + listener.onConnect(); + } + } + + /** + * The onMessage event handler. + * + * @param message the message sent from remote string of server + * @throws JsonProcessingException if errors happens on processing json response + */ + @OnWebSocketMessage + public void onMessage(String message) throws JsonProcessingException { + if (listener == null) { + return; + } + + try { + final RealtimeMessage realtimeMessage = + objectMapper.readValue(message, RealtimeMessage.class); + if (realtimeMessage instanceof RealtimeMessageAckAudio) { + listener.onAckMessage((RealtimeMessageAckAudio) realtimeMessage); + } else if (realtimeMessage instanceof RealtimeMessageConnect) { + listener.onConnectMessage((RealtimeMessageConnect) realtimeMessage); + } else if (realtimeMessage instanceof RealtimeMessageResult) { + listener.onResult((RealtimeMessageResult) realtimeMessage); + } else if (realtimeMessage instanceof RealtimeMessageError) { + final RealtimeMessageError errorMessage = (RealtimeMessageError) realtimeMessage; + LOG.error( + "Received RealtimeMessageError with message {}", errorMessage.getMessage()); + listener.onError(new ConnectException(errorMessage.getMessage())); + } + } catch (JsonProcessingException e) { + LOG.error("Text Message: JsonProcessingException {}", e); + } + } + + /** + * Opens a connection to the specified remote. + * + * @param realtimeSpeechEndpoint the URL string of server + * @param parameters other additional connection parameters + * @throws RealtimeSpeechConnectException If there are connection errors + */ + public void open(String realtimeSpeechEndpoint, RealtimeParameters parameters) + throws RealtimeSpeechConnectException { + try { + status = Status.CONNECTING; + + final String customizationsJson = + objectMapper.writeValueAsString(parameters.getCustomizations()); + String queryParameter = ""; + if (parameters.getIsAckEnabled() != null) { + queryParameter += + "isAckEnabled=" + (parameters.getIsAckEnabled() ? "true" : "false") + "&"; + } + if (parameters.getShouldIgnoreInvalidCustomizations() != null) { + queryParameter += + "shouldIgnoreInvalidCustomizations=" + + (parameters.getShouldIgnoreInvalidCustomizations() + ? "true" + : "false") + + "&"; + } + if (parameters.getPartialSilenceThresholdInMs() != null) { + queryParameter += + "partialSilenceThresholdInMs=" + + parameters.getPartialSilenceThresholdInMs() + + "&"; + } + if (parameters.getFinalSilenceThresholdInMs() != null) { + queryParameter += + "finalSilenceThresholdInMs=" + + parameters.getFinalSilenceThresholdInMs() + + "&"; + } + if (parameters.getStabilizePartialResults() != null) { + queryParameter += + "stabilizePartialResults=" + + parameters.getStabilizePartialResults().getValue() + + "&"; + } + if (parameters.getLanguageCode() != null) { + queryParameter += "languageCode=" + parameters.getLanguageCode() + "&"; + } + if (parameters.getModelDomain() != null) { + queryParameter += "modelDomain=" + parameters.getModelDomain().getValue() + "&"; + } + if (parameters.getCustomizations() != null + && !parameters.getCustomizations().isEmpty()) { + queryParameter += + "customizations=" + URLEncoder.encode(customizationsJson, "UTF-8"); + } + if (queryParameter.length() > 0 + && queryParameter.charAt(queryParameter.length() - 1) == '&') { + queryParameter = queryParameter.substring(0, queryParameter.length() - 1); + } + // The server should contain ws or wss + destUri = + new URI( + realtimeSpeechEndpoint + + "/ws/transcribe/stream?" + + queryParameter); // TODO + + LOG.info("Connecting to {} \n", destUri); + + final ClientUpgradeRequest request = new ClientUpgradeRequest(); + LOG.info("Content-Type: {}", parameters.getEncoding()); + request.setHeader("Content-Type", parameters.getEncoding()); + + if (!webSocketClient.isStarted()) { + LOG.info("Client not started, starting it now"); + webSocketClient.start(); + } + + this.session = + webSocketClient.connect(this, destUri, request).get(10, TimeUnit.SECONDS); + } catch (Exception e) { + status = Status.ERROR; + LOG.error("Open connection exception {}", e); + throw new RealtimeSpeechConnectException(e); + } + } + + /** + * Checks the connection status. + * + * @return true if connected + */ + public boolean isConnected() { + return isConnected; + } + + /** + * Sends the audio data of bytes to remote. + * + * @param audioBytes represeting the audio data + * @throws RealtimeSpeechConnectException If there are errors while sending audio data + */ + public void sendAudioData(byte[] audioBytes) throws RealtimeSpeechConnectException { + if (this.session == null || this.status.equals(Status.DISCONNECTED)) { + LOG.error("Session has been closed, cannot send audio anymore"); + throw new RealtimeSpeechConnectException( + "Session has been closed, cannot send audio anymore"); + } else { + try { + if (this.status.equals(Status.CONNECTED)) { + this.session.getRemote().sendBytes(ByteBuffer.wrap(audioBytes)); + + } else { + this.status = Status.ERROR; + throw new RealtimeSpeechConnectException( + "Could not send audio data to the realtime speech service"); + } + } catch (IOException e) { + this.status = Status.ERROR; + LOG.error("Send exception {}", e); + throw new RealtimeSpeechConnectException(e); + } + } + } + + /** Closes the connection. */ + public void close() { + isClosureClientInitiated = true; + LOG.info("Closing SDK connection"); + + try { + if (this.session != null) { + LOG.info( + "Here are the sessions shared by the client: {}", + webSocketClient.getOpenSessions().stream().count()); + this.session.close(1000, "Session Closed by Client"); + // this.session = null; + } + } catch (Exception e) { + LOG.warn("Encountered an issue while closing the session: {}", e.getMessage()); + } + + this.isConnected = false; + this.authenticationDetailsProvider = null; + } + + private void sendCreds(String compartmentId) { + + final RequestSigner requestSigner = + getRequestSignerFromAuthenticationDetailsProvider(authenticationDetailsProvider); + LOG.info("Sending credentials"); + final Map> headers = new HashMap<>(); + final Map newHeaders = + requestSigner.signRequest(destUri, "GET", headers, null); + newHeaders.put("uri", destUri.toString()); + + final RealtimeMessageAuthenticationCredentials authenticationMessage = + RealtimeMessageAuthenticationCredentials.builder() + .compartmentId(compartmentId) + .headers(newHeaders) + .build(); + + try { + sendMessage(objectMapper.writeValueAsString(authenticationMessage)); + } catch (JsonProcessingException e) { + LOG.info("Could not serialize authentication credentials: {}", e); + // TODO: Add better exceptions + this.status = Status.ERROR; + } + + LOG.info("Credentials sent"); + } + + public void sendMessage(String message) { + try { + session.getRemote().sendString(message); + } catch (IOException e) { + LOG.info("Could not send message to the remote server: {}", e); + // TODO: Add better exceptions + this.status = Status.ERROR; + } + } + /** + * Use this to request the final result without waiting for the timeout if you need to close the + * session immediately + */ + public void requestFinalResult() { + try { + String message = + objectMapper.writeValueAsString( + RealtimeMessageSendFinalResult.builder().build()); + LOG.info("Requesting final result: " + message); + sendMessage(message); + } catch (IOException e) { + LOG.info("Could not request final result from the remote server: {}", e); + this.status = Status.ERROR; + } + } + + @VisibleForTesting + protected RequestSigner getRequestSignerFromAuthenticationDetailsProvider( + BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + return DefaultRequestSigner.createRequestSigner(authenticationDetailsProvider); + } + + public Status getStatus() { + return status; + } + + public static enum Status { + CONNECTED, // When the connection is active + CONNECTING, // When the connection is being initiated + DISCONNECTED, // Connection closed by client/server + ERROR // Something went wrong while connecting + } +} diff --git a/bmc-addons/bmc-aispeech-realtime/src/main/java/com/oracle/bmc/aispeech/realtimespeech/RealtimeSpeechClientListener.java b/bmc-addons/bmc-aispeech-realtime/src/main/java/com/oracle/bmc/aispeech/realtimespeech/RealtimeSpeechClientListener.java new file mode 100644 index 00000000000..fc8358c4f7c --- /dev/null +++ b/bmc-addons/bmc-aispeech-realtime/src/main/java/com/oracle/bmc/aispeech/realtimespeech/RealtimeSpeechClientListener.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.aispeech.realtimespeech; + +import com.oracle.bmc.aispeech.model.RealtimeMessageConnect; +import com.oracle.bmc.aispeech.model.RealtimeMessageAckAudio; +import com.oracle.bmc.aispeech.model.RealtimeMessageResult; + +/** + * This is the RealtimeSpeechClientListner Interface. This is meant to be extended so that users can + * determine the behavior of the client. + */ +public interface RealtimeSpeechClientListener { + + /** + * Connection to the realtime speech service closed. You may use this to perform cleanups, free + * resources, etc. + * + * @param statusCode + * @param statusMessage + */ + void onClose(int statusCode, String statusMessage); + + /** + * An ack message was received + * + * @param ackMessage + */ + void onAckMessage(RealtimeMessageAckAudio ackMessage); + + /** + * A result was obtained + * + * @param result + */ + void onResult(RealtimeMessageResult result); + + /** + * An error occured in the realtime speech client. + * + * @param error + */ + void onError(Throwable error); + + /** A websocket connection was established with the realtime speech service. */ + void onConnect(); + + /** + * The service sent a connect message after establishing the websocket connection. + * + * @param connectMessage + */ + void onConnectMessage(RealtimeMessageConnect connectMessage); +} diff --git a/bmc-addons/bmc-aispeech-realtime/src/main/java/com/oracle/bmc/aispeech/realtimespeech/RealtimeSpeechConnectException.java b/bmc-addons/bmc-aispeech-realtime/src/main/java/com/oracle/bmc/aispeech/realtimespeech/RealtimeSpeechConnectException.java new file mode 100644 index 00000000000..a38046c7424 --- /dev/null +++ b/bmc-addons/bmc-aispeech-realtime/src/main/java/com/oracle/bmc/aispeech/realtimespeech/RealtimeSpeechConnectException.java @@ -0,0 +1,15 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.aispeech.realtimespeech; + +public class RealtimeSpeechConnectException extends Exception { + public RealtimeSpeechConnectException(String message) { + super(message); + } + + public RealtimeSpeechConnectException(Throwable e) { + super(e); + } +} diff --git a/bmc-addons/bmc-aispeech-realtime/src/test/java/com/oracle/bmc/aispeech/realtimespeech/RealtimeSpeechClientTest.java b/bmc-addons/bmc-aispeech-realtime/src/test/java/com/oracle/bmc/aispeech/realtimespeech/RealtimeSpeechClientTest.java new file mode 100644 index 00000000000..5945bf46322 --- /dev/null +++ b/bmc-addons/bmc-aispeech-realtime/src/test/java/com/oracle/bmc/aispeech/realtimespeech/RealtimeSpeechClientTest.java @@ -0,0 +1,217 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.aispeech.realtimespeech; + +import com.fasterxml.jackson.core.JsonProcessingException; +import com.oracle.bmc.aispeech.model.CustomizationInference; +import com.oracle.bmc.aispeech.model.RealtimeParameters; +import com.oracle.bmc.auth.BasicAuthenticationDetailsProvider; +import com.oracle.bmc.http.signing.RequestSigner; +import org.eclipse.jetty.websocket.api.Session; +import org.eclipse.jetty.websocket.client.ClientUpgradeRequest; +import org.eclipse.jetty.websocket.client.WebSocketClient; + +import org.junit.Assert; +import org.junit.Test; +import org.junit.Before; + +import org.mockito.ArgumentCaptor; +import org.mockito.Mock; +import org.mockito.Mockito; +import org.mockito.MockitoAnnotations; + +import java.io.IOException; +import java.net.ConnectException; +import java.net.InetSocketAddress; +import java.net.URI; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.Future; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; + +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.ArgumentMatchers.eq; +import static org.mockito.Mockito.doReturn; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.times; +import static org.mockito.Mockito.when; + +public class RealtimeSpeechClientTest { + + @Mock WebSocketClient mockWebsocketClient; + + @Mock RealtimeSpeechClientListener mockListener; + + @Mock BasicAuthenticationDetailsProvider authenticationDetailsProvider; + + RealtimeSpeechClient realtimeSpeechClient; + + final String compartmentId = "COMPARTMENT_ID"; + + @Mock Session mockSession; + + @Mock RequestSigner mockRequestSigner; + + @Before + public void setUp() { + MockitoAnnotations.initMocks(this); + + this.realtimeSpeechClient = + new RealtimeSpeechClient( + mockListener, + authenticationDetailsProvider, + compartmentId, + mockWebsocketClient); + } + + @Test + public void testOnClose() { + this.realtimeSpeechClient.onClose(1008, "Policy Violation"); + + Assert.assertEquals(false, realtimeSpeechClient.isConnected()); + Assert.assertEquals( + RealtimeSpeechClient.Status.DISCONNECTED, realtimeSpeechClient.getStatus()); + Mockito.verify(mockListener, Mockito.times(1)).onClose(eq(1008), eq("Policy Violation")); + } + + @Test + public void testOnError() { + Throwable throwable = new ConnectException("Test Error Message"); + this.realtimeSpeechClient.onError(throwable); + + Assert.assertEquals(false, realtimeSpeechClient.isConnected()); + Assert.assertEquals(RealtimeSpeechClient.Status.ERROR, realtimeSpeechClient.getStatus()); + Mockito.verify(mockListener, Mockito.times(1)).onError(eq(throwable)); + } + + @Test + public void testOnConnectAndClose() + throws RealtimeSpeechConnectException, ExecutionException, InterruptedException, + TimeoutException, IOException { + + RealtimeSpeechClient realtimeSpeechClientSpy = Mockito.spy(realtimeSpeechClient); + + Mockito.doReturn(true).when(mockWebsocketClient).isStarted(); + + Future futureMock = mock(Future.class); + when(mockWebsocketClient.connect(any(), any(), any())).thenReturn(futureMock); + // doReturn(mockSession).when(futureMock).get(any(), any()); + realtimeSpeechClientSpy.open( + "wss://test-endpoint.com", RealtimeParameters.builder().build()); + + when(mockSession.getRemoteAddress()).thenReturn(new InetSocketAddress(8000)); + Mockito.doReturn(mockRequestSigner) + .when(realtimeSpeechClientSpy) + .getRequestSignerFromAuthenticationDetailsProvider( + eq(authenticationDetailsProvider)); + + final Map newHeaders = new HashMap<>(); + newHeaders.put("testKey", "testValue"); + + ArgumentCaptor stringArgumentCaptor = ArgumentCaptor.forClass(String.class); + Mockito.doNothing() + .when(realtimeSpeechClientSpy) + .sendMessage(stringArgumentCaptor.capture()); + when(mockRequestSigner.signRequest(any(), eq("GET"), any(), any())).thenReturn(newHeaders); + + realtimeSpeechClientSpy.onConnect(mockSession); + + Mockito.verify(mockRequestSigner) + .signRequest( + eq(URI.create("wss://test-endpoint.com/ws/transcribe/stream?")), + eq("GET"), + any(), + eq(null)); + Assert.assertEquals( + RealtimeSpeechClient.Status.CONNECTED, realtimeSpeechClientSpy.getStatus()); + + Mockito.verify(mockListener, times(1)).onConnect(); + + String credentialString = + "{\"authenticationType\":\"CREDENTIALS\",\"compartmentId\":\"COMPARTMENT_ID\",\"headers\":{\"testKey\":\"testValue\",\"uri\":\"wss://test-endpoint.com/ws/transcribe/stream?\"}}"; + Assert.assertEquals(credentialString, stringArgumentCaptor.getValue()); + + // Test onClose along with this + realtimeSpeechClientSpy.close(); + Mockito.verify(mockSession, times(1)).close(eq(1000), eq("Session Closed by Client")); + } + + @Test + public void testOnMessage() throws JsonProcessingException { + String testMessageBoilerPlate = + "{\n" + " \"sessionId\": \"testSessionId\",\n" + " \"event\": \"%s\"\n" + "}"; + + final String resultMessage = String.format(testMessageBoilerPlate, "RESULT"); + realtimeSpeechClient.onMessage(resultMessage); + Mockito.verify(mockListener, times(1)).onResult(any()); + + final String ackAudioMessage = String.format(testMessageBoilerPlate, "ACKAUDIO"); + realtimeSpeechClient.onMessage(ackAudioMessage); + Mockito.verify(mockListener, times(1)).onAckMessage(any()); + + final String connectMessage = String.format(testMessageBoilerPlate, "CONNECT"); + realtimeSpeechClient.onMessage(connectMessage); + Mockito.verify(mockListener, times(1)).onConnectMessage(any()); + + final String errorMessage = String.format(testMessageBoilerPlate, "ERROR"); + realtimeSpeechClient.onMessage(errorMessage); + Mockito.verify(mockListener, times(1)).onError(any()); + } + + @Test + public void testOpen() + throws IOException, RealtimeSpeechConnectException, ExecutionException, + InterruptedException, TimeoutException { + RealtimeSpeechClient realtimeSpeechClientSpy = Mockito.spy(realtimeSpeechClient); + + Mockito.doReturn(true).when(mockWebsocketClient).isStarted(); + + Future futureMock = mock(Future.class); + when(mockWebsocketClient.connect(any(), any(), any())).thenReturn(futureMock); + doReturn(mockSession).when(futureMock).get(eq(10), eq(TimeUnit.SECONDS)); + + CustomizationInference cm1 = + CustomizationInference.builder() + .customizationId("testCustomizationId") + .compartmentId("testCompartmentId") + .build(); + + final RealtimeParameters realtimeParameters = + RealtimeParameters.builder() + .isAckEnabled(true) + .encoding("audio/raw;rate=16000") + .stabilizePartialResults(RealtimeParameters.StabilizePartialResults.None) + .shouldIgnoreInvalidCustomizations(false) + .shouldIgnoreInvalidCustomizations(false) + .partialSilenceThresholdInMs(501) + .finalSilenceThresholdInMs(2005) + .languageCode("en-US") + .modelDomain(RealtimeParameters.ModelDomain.Generic) + .customizations(Arrays.asList(cm1)) + .build(); + + realtimeSpeechClient.open("wss://test-endpoint.com", realtimeParameters); + + ArgumentCaptor uriArgumentCaptor = ArgumentCaptor.forClass(URI.class); + ArgumentCaptor upgradeRequestArgCaptor = + ArgumentCaptor.forClass(ClientUpgradeRequest.class); + Mockito.verify(mockWebsocketClient, times(1)) + .connect(any(), uriArgumentCaptor.capture(), upgradeRequestArgCaptor.capture()); + + final String expectedURIString = + "wss://test-endpoint.com/ws/transcribe/stream?isAckEnabled=true&shouldIgnoreInvalidCustomizations=false" + + "&partialSilenceThresholdInMs=501&finalSilenceThresholdInMs=2005&stabilizePartialResults=NONE&languageCode=en-US&modelDomain=GENERIC" + + "&customizations=%5B%7B%22customizationId%22%3A%22testCustomizationId%22%2C%22customizationAlias%22%3Anull%2C%22" + + "compartmentId%22%3A%22testCompartmentId%22%2C%22entities%22%3Anull%7D%5D"; + + Assert.assertEquals(expectedURIString, uriArgumentCaptor.getValue().toString()); + Assert.assertEquals( + "audio/raw;rate=16000", + upgradeRequestArgCaptor.getValue().getHeader("Content-Type")); + } +} diff --git a/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml b/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml index 85982627391..98d4cb3834e 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.47.0 + 3.48.0 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.47.0 + 3.48.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.47.0 + 3.48.0 pom import diff --git a/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml b/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml index 56773cf04f4..979c173906f 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.47.0 + 3.48.0 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.47.0 + 3.48.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.47.0 + 3.48.0 pom import diff --git a/bmc-addons/bmc-apache-connector-provider/pom.xml b/bmc-addons/bmc-apache-connector-provider/pom.xml index 590daa50457..a806171ff19 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.47.0 + 3.48.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-addons/bmc-oke-workload-identity/pom.xml b/bmc-addons/bmc-oke-workload-identity/pom.xml index 82f23de00f6..732351872fd 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.47.0 + 3.48.0 4.0.0 @@ -38,25 +38,25 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 compile com.oracle.oci.sdk oci-java-sdk-core - 3.47.0 + 3.48.0 test com.oracle.oci.sdk oci-java-sdk-identity - 3.47.0 + 3.48.0 test com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.47.0 + 3.48.0 test diff --git a/bmc-addons/bmc-resteasy-client-configurator/pom.xml b/bmc-addons/bmc-resteasy-client-configurator/pom.xml index 0dce814f6d6..c6a7ce2a939 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.47.0 + 3.48.0 ../pom.xml @@ -23,7 +23,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-addons/bmc-sasl-oke-workload-identity/pom.xml b/bmc-addons/bmc-sasl-oke-workload-identity/pom.xml index a3a8b746472..e790010892b 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.47.0 + 3.48.0 ../pom.xml 4.0.0 @@ -39,13 +39,13 @@ com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.47.0 + 3.48.0 compile com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.47.0 + 3.48.0 compile diff --git a/bmc-addons/bmc-sasl/pom.xml b/bmc-addons/bmc-sasl/pom.xml index f30da497edb..f2cbd5d1dd5 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.47.0 + 3.48.0 ../pom.xml @@ -60,7 +60,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-addons/bmc-sse-support-jersey3/pom.xml b/bmc-addons/bmc-sse-support-jersey3/pom.xml index 48f127ccbce..8ad3fbf32c0 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.47.0 + 3.48.0 ../pom.xml 4.0.0 @@ -150,12 +150,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.47.0 + 3.48.0 test @@ -164,7 +164,7 @@ but the code in it needs it. --> com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.47.0 + 3.48.0 diff --git a/bmc-addons/bmc-sse-support/pom.xml b/bmc-addons/bmc-sse-support/pom.xml index e143a8b4f5d..9236eb41b3c 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.47.0 + 3.48.0 ../pom.xml 4.0.0 @@ -150,12 +150,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.47.0 + 3.48.0 test @@ -164,7 +164,7 @@ but the code in it needs it. --> com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.47.0 + 3.48.0 diff --git a/bmc-addons/pom.xml b/bmc-addons/pom.xml index 1b949ecbbfb..08e590ba811 100644 --- a/bmc-addons/pom.xml +++ b/bmc-addons/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml @@ -25,6 +25,7 @@ bmc-sasl-oke-workload-identity bmc-sse-support bmc-sse-support-jersey3 + bmc-aispeech-realtime diff --git a/bmc-adm/pom.xml b/bmc-adm/pom.xml index 9706ad6e7f2..e6093c8543c 100644 --- a/bmc-adm/pom.xml +++ b/bmc-adm/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-adm @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-aianomalydetection/pom.xml b/bmc-aianomalydetection/pom.xml index 382ad4fef30..adfcefb737e 100644 --- a/bmc-aianomalydetection/pom.xml +++ b/bmc-aianomalydetection/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-aianomalydetection @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-aidocument/pom.xml b/bmc-aidocument/pom.xml index eca3e440e60..d25cdd29ac4 100644 --- a/bmc-aidocument/pom.xml +++ b/bmc-aidocument/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-aidocument @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/AIServiceDocument.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/AIServiceDocument.java index 18136dce7f3..a00ab32f35e 100644 --- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/AIServiceDocument.java +++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/AIServiceDocument.java @@ -64,6 +64,36 @@ public interface AIServiceDocument extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Adds a lock to a resource. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

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

Example: Click here to see how to use AddProjectLock API. + */ + AddProjectLockResponse addProjectLock(AddProjectLockRequest request); + /** * Perform different types of document analysis. * @@ -377,6 +407,38 @@ ChangeProjectCompartmentResponse changeProjectCompartment( */ PatchModelResponse patchModel(PatchModelRequest request); + /** + * Remove a lock from a resource. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

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

Example: Click here to see how to use RemoveProjectLock + * API. + */ + RemoveProjectLockResponse removeProjectLock(RemoveProjectLockRequest request); + /** * Updates the model metadata. * diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/AIServiceDocumentAsync.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/AIServiceDocumentAsync.java index 282f5c864f9..9d78faa42a2 100644 --- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/AIServiceDocumentAsync.java +++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/AIServiceDocumentAsync.java @@ -62,6 +62,36 @@ public interface AIServiceDocumentAsync extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Adds a lock to a resource. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future addModelLock( + AddModelLockRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Adds a lock to a resource. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future addProjectLock( + AddProjectLockRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Perform different types of document analysis. * @@ -365,6 +395,37 @@ java.util.concurrent.Future patchModel( PatchModelRequest request, com.oracle.bmc.responses.AsyncHandler handler); + /** + * Remove a lock from a resource. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future removeModelLock( + RemoveModelLockRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Remove a lock from a resource. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future removeProjectLock( + RemoveProjectLockRequest request, + com.oracle.bmc.responses.AsyncHandler< + RemoveProjectLockRequest, RemoveProjectLockResponse> + handler); + /** * Updates the model metadata. * diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/AIServiceDocumentAsyncClient.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/AIServiceDocumentAsyncClient.java index d6c8b7eb885..2a4ab53571a 100644 --- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/AIServiceDocumentAsyncClient.java +++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/AIServiceDocumentAsyncClient.java @@ -96,6 +96,82 @@ public void setRegion(String regionId) { super.setRegion(regionId); } + @Override + public java.util.concurrent.Future addModelLock( + AddModelLockRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getModelId(), "modelId must not be blank"); + Objects.requireNonNull(request.getAddModelLockDetails(), "addModelLockDetails is required"); + + return clientCall(request, AddModelLockResponse::builder) + .logger(LOG, "addModelLock") + .serviceDetails( + "AIServiceDocument", + "AddModelLock", + "https://docs.oracle.com/iaas/api/#/en/document-understanding/20221109/Model/AddModelLock") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(AddModelLockRequest::builder) + .basePath("/20221109") + .appendPathParam("models") + .appendPathParam(request.getModelId()) + .appendPathParam("actions") + .appendPathParam("addLock") + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleBody( + com.oracle.bmc.aidocument.model.Model.class, + AddModelLockResponse.Builder::model) + .handleResponseHeaderString("etag", AddModelLockResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", AddModelLockResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future addProjectLock( + AddProjectLockRequest request, + final com.oracle.bmc.responses.AsyncHandler< + AddProjectLockRequest, AddProjectLockResponse> + handler) { + + Validate.notBlank(request.getProjectId(), "projectId must not be blank"); + Objects.requireNonNull( + request.getAddProjectLockDetails(), "addProjectLockDetails is required"); + + return clientCall(request, AddProjectLockResponse::builder) + .logger(LOG, "addProjectLock") + .serviceDetails( + "AIServiceDocument", + "AddProjectLock", + "https://docs.oracle.com/iaas/api/#/en/document-understanding/20221109/Project/AddProjectLock") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(AddProjectLockRequest::builder) + .basePath("/20221109") + .appendPathParam("projects") + .appendPathParam(request.getProjectId()) + .appendPathParam("actions") + .appendPathParam("addLock") + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleBody( + com.oracle.bmc.aidocument.model.Project.class, + AddProjectLockResponse.Builder::project) + .handleResponseHeaderString("etag", AddProjectLockResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", AddProjectLockResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future analyzeDocument( AnalyzeDocumentRequest request, @@ -215,6 +291,7 @@ public java.util.concurrent.Future changeModelCo .appendPathParam(request.getModelId()) .appendPathParam("actions") .appendPathParam("changeCompartment") + .appendQueryParam("isLockOverride", request.getIsLockOverride()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) @@ -249,6 +326,7 @@ public java.util.concurrent.Future changeProje .appendPathParam(request.getProjectId()) .appendPathParam("actions") .appendPathParam("changeCompartment") + .appendQueryParam("isLockOverride", request.getIsLockOverride()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) @@ -374,6 +452,7 @@ public java.util.concurrent.Future deleteModel( .basePath("/20221109") .appendPathParam("models") .appendPathParam(request.getModelId()) + .appendQueryParam("isLockOverride", request.getIsLockOverride()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) @@ -403,6 +482,7 @@ public java.util.concurrent.Future deleteProject( .basePath("/20221109") .appendPathParam("projects") .appendPathParam(request.getProjectId()) + .appendQueryParam("isLockOverride", request.getIsLockOverride()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) @@ -756,6 +836,84 @@ public java.util.concurrent.Future patchModel( .callAsync(handler); } + @Override + public java.util.concurrent.Future removeModelLock( + RemoveModelLockRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RemoveModelLockRequest, RemoveModelLockResponse> + handler) { + + Validate.notBlank(request.getModelId(), "modelId must not be blank"); + Objects.requireNonNull( + request.getRemoveModelLockDetails(), "removeModelLockDetails is required"); + + return clientCall(request, RemoveModelLockResponse::builder) + .logger(LOG, "removeModelLock") + .serviceDetails( + "AIServiceDocument", + "RemoveModelLock", + "https://docs.oracle.com/iaas/api/#/en/document-understanding/20221109/Model/RemoveModelLock") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RemoveModelLockRequest::builder) + .basePath("/20221109") + .appendPathParam("models") + .appendPathParam(request.getModelId()) + .appendPathParam("actions") + .appendPathParam("removeLock") + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleBody( + com.oracle.bmc.aidocument.model.Model.class, + RemoveModelLockResponse.Builder::model) + .handleResponseHeaderString("etag", RemoveModelLockResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", RemoveModelLockResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future removeProjectLock( + RemoveProjectLockRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RemoveProjectLockRequest, RemoveProjectLockResponse> + handler) { + + Validate.notBlank(request.getProjectId(), "projectId must not be blank"); + Objects.requireNonNull( + request.getRemoveProjectLockDetails(), "removeProjectLockDetails is required"); + + return clientCall(request, RemoveProjectLockResponse::builder) + .logger(LOG, "removeProjectLock") + .serviceDetails( + "AIServiceDocument", + "RemoveProjectLock", + "https://docs.oracle.com/iaas/api/#/en/document-understanding/20221109/Project/RemoveProjectLock") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RemoveProjectLockRequest::builder) + .basePath("/20221109") + .appendPathParam("projects") + .appendPathParam(request.getProjectId()) + .appendPathParam("actions") + .appendPathParam("removeLock") + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleBody( + com.oracle.bmc.aidocument.model.Project.class, + RemoveProjectLockResponse.Builder::project) + .handleResponseHeaderString("etag", RemoveProjectLockResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", RemoveProjectLockResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future updateModel( UpdateModelRequest request, @@ -776,6 +934,7 @@ public java.util.concurrent.Future updateModel( .basePath("/20221109") .appendPathParam("models") .appendPathParam(request.getModelId()) + .appendQueryParam("isLockOverride", request.getIsLockOverride()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) @@ -808,6 +967,7 @@ public java.util.concurrent.Future updateProject( .basePath("/20221109") .appendPathParam("projects") .appendPathParam(request.getProjectId()) + .appendQueryParam("isLockOverride", request.getIsLockOverride()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/AIServiceDocumentClient.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/AIServiceDocumentClient.java index f17087b7ee8..850cbdb02aa 100644 --- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/AIServiceDocumentClient.java +++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/AIServiceDocumentClient.java @@ -124,6 +124,77 @@ public void setRegion(String regionId) { super.setRegion(regionId); } + @Override + public AddModelLockResponse addModelLock(AddModelLockRequest request) { + + Validate.notBlank(request.getModelId(), "modelId must not be blank"); + Objects.requireNonNull(request.getAddModelLockDetails(), "addModelLockDetails is required"); + + return clientCall(request, AddModelLockResponse::builder) + .logger(LOG, "addModelLock") + .serviceDetails( + "AIServiceDocument", + "AddModelLock", + "https://docs.oracle.com/iaas/api/#/en/document-understanding/20221109/Model/AddModelLock") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(AddModelLockRequest::builder) + .basePath("/20221109") + .appendPathParam("models") + .appendPathParam(request.getModelId()) + .appendPathParam("actions") + .appendPathParam("addLock") + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.aidocument.model.Model.class, + AddModelLockResponse.Builder::model) + .handleResponseHeaderString("etag", AddModelLockResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", AddModelLockResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public AddProjectLockResponse addProjectLock(AddProjectLockRequest request) { + + Validate.notBlank(request.getProjectId(), "projectId must not be blank"); + Objects.requireNonNull( + request.getAddProjectLockDetails(), "addProjectLockDetails is required"); + + return clientCall(request, AddProjectLockResponse::builder) + .logger(LOG, "addProjectLock") + .serviceDetails( + "AIServiceDocument", + "AddProjectLock", + "https://docs.oracle.com/iaas/api/#/en/document-understanding/20221109/Project/AddProjectLock") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(AddProjectLockRequest::builder) + .basePath("/20221109") + .appendPathParam("projects") + .appendPathParam(request.getProjectId()) + .appendPathParam("actions") + .appendPathParam("addLock") + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.aidocument.model.Project.class, + AddProjectLockResponse.Builder::project) + .handleResponseHeaderString("etag", AddProjectLockResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", AddProjectLockResponse.Builder::opcRequestId) + .callSync(); + } + @Override public AnalyzeDocumentResponse analyzeDocument(AnalyzeDocumentRequest request) { Objects.requireNonNull( @@ -229,6 +300,7 @@ public ChangeModelCompartmentResponse changeModelCompartment( .appendPathParam(request.getModelId()) .appendPathParam("actions") .appendPathParam("changeCompartment") + .appendQueryParam("isLockOverride", request.getIsLockOverride()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) @@ -260,6 +332,7 @@ public ChangeProjectCompartmentResponse changeProjectCompartment( .appendPathParam(request.getProjectId()) .appendPathParam("actions") .appendPathParam("changeCompartment") + .appendQueryParam("isLockOverride", request.getIsLockOverride()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) @@ -375,6 +448,7 @@ public DeleteModelResponse deleteModel(DeleteModelRequest request) { .basePath("/20221109") .appendPathParam("models") .appendPathParam(request.getModelId()) + .appendQueryParam("isLockOverride", request.getIsLockOverride()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) @@ -401,6 +475,7 @@ public DeleteProjectResponse deleteProject(DeleteProjectRequest request) { .basePath("/20221109") .appendPathParam("projects") .appendPathParam(request.getProjectId()) + .appendQueryParam("isLockOverride", request.getIsLockOverride()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) @@ -729,6 +804,78 @@ public PatchModelResponse patchModel(PatchModelRequest request) { .callSync(); } + @Override + public RemoveModelLockResponse removeModelLock(RemoveModelLockRequest request) { + + Validate.notBlank(request.getModelId(), "modelId must not be blank"); + Objects.requireNonNull( + request.getRemoveModelLockDetails(), "removeModelLockDetails is required"); + + return clientCall(request, RemoveModelLockResponse::builder) + .logger(LOG, "removeModelLock") + .serviceDetails( + "AIServiceDocument", + "RemoveModelLock", + "https://docs.oracle.com/iaas/api/#/en/document-understanding/20221109/Model/RemoveModelLock") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RemoveModelLockRequest::builder) + .basePath("/20221109") + .appendPathParam("models") + .appendPathParam(request.getModelId()) + .appendPathParam("actions") + .appendPathParam("removeLock") + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.aidocument.model.Model.class, + RemoveModelLockResponse.Builder::model) + .handleResponseHeaderString("etag", RemoveModelLockResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", RemoveModelLockResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public RemoveProjectLockResponse removeProjectLock(RemoveProjectLockRequest request) { + + Validate.notBlank(request.getProjectId(), "projectId must not be blank"); + Objects.requireNonNull( + request.getRemoveProjectLockDetails(), "removeProjectLockDetails is required"); + + return clientCall(request, RemoveProjectLockResponse::builder) + .logger(LOG, "removeProjectLock") + .serviceDetails( + "AIServiceDocument", + "RemoveProjectLock", + "https://docs.oracle.com/iaas/api/#/en/document-understanding/20221109/Project/RemoveProjectLock") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RemoveProjectLockRequest::builder) + .basePath("/20221109") + .appendPathParam("projects") + .appendPathParam(request.getProjectId()) + .appendPathParam("actions") + .appendPathParam("removeLock") + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.aidocument.model.Project.class, + RemoveProjectLockResponse.Builder::project) + .handleResponseHeaderString("etag", RemoveProjectLockResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", RemoveProjectLockResponse.Builder::opcRequestId) + .callSync(); + } + @Override public UpdateModelResponse updateModel(UpdateModelRequest request) { @@ -746,6 +893,7 @@ public UpdateModelResponse updateModel(UpdateModelRequest request) { .basePath("/20221109") .appendPathParam("models") .appendPathParam(request.getModelId()) + .appendQueryParam("isLockOverride", request.getIsLockOverride()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) @@ -775,6 +923,7 @@ public UpdateProjectResponse updateProject(UpdateProjectRequest request) { .basePath("/20221109") .appendPathParam("projects") .appendPathParam(request.getProjectId()) + .appendQueryParam("isLockOverride", request.getIsLockOverride()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/AddModelLockDetails.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/AddModelLockDetails.java new file mode 100644 index 00000000000..fbc5c92e37e --- /dev/null +++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/AddModelLockDetails.java @@ -0,0 +1,256 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.aidocument.model; + +/** + * Request payload to add lock to the resource.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221109") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AddModelLockDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AddModelLockDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"type", "relatedResourceId", "message"}) + public AddModelLockDetails(Type type, String relatedResourceId, String message) { + super(); + this.type = type; + this.relatedResourceId = relatedResourceId; + this.message = message; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Type of the lock. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private Type type; + + /** + * Type of the lock. + * + * @param type the value to set + * @return this builder + */ + public Builder type(Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** + * The ID of the resource that is locking this resource. Indicates that deleting this + * resource will remove the lock. + */ + @com.fasterxml.jackson.annotation.JsonProperty("relatedResourceId") + private String relatedResourceId; + + /** + * The ID of the resource that is locking this resource. Indicates that deleting this + * resource will remove the lock. + * + * @param relatedResourceId the value to set + * @return this builder + */ + public Builder relatedResourceId(String relatedResourceId) { + this.relatedResourceId = relatedResourceId; + this.__explicitlySet__.add("relatedResourceId"); + return this; + } + /** + * A message added by the creator of the lock. This is typically used to give an indication + * of why the resource is locked. + */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + /** + * A message added by the creator of the lock. This is typically used to give an indication + * of why the resource is locked. + * + * @param message the value to set + * @return this builder + */ + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AddModelLockDetails build() { + AddModelLockDetails model = + new AddModelLockDetails(this.type, this.relatedResourceId, this.message); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AddModelLockDetails model) { + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("relatedResourceId")) { + this.relatedResourceId(model.getRelatedResourceId()); + } + if (model.wasPropertyExplicitlySet("message")) { + this.message(model.getMessage()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Type of the lock. */ + public enum Type implements com.oracle.bmc.http.internal.BmcEnum { + Full("FULL"), + Delete("DELETE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Type v : Type.values()) { + map.put(v.getValue(), v); + } + } + + Type(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Type create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Type: " + key); + } + }; + /** Type of the lock. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final Type type; + + /** + * Type of the lock. + * + * @return the value + */ + public Type getType() { + return type; + } + + /** + * The ID of the resource that is locking this resource. Indicates that deleting this resource + * will remove the lock. + */ + @com.fasterxml.jackson.annotation.JsonProperty("relatedResourceId") + private final String relatedResourceId; + + /** + * The ID of the resource that is locking this resource. Indicates that deleting this resource + * will remove the lock. + * + * @return the value + */ + public String getRelatedResourceId() { + return relatedResourceId; + } + + /** + * A message added by the creator of the lock. This is typically used to give an indication of + * why the resource is locked. + */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private final String message; + + /** + * A message added by the creator of the lock. This is typically used to give an indication of + * why the resource is locked. + * + * @return the value + */ + public String getMessage() { + return message; + } + + @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("AddModelLockDetails("); + sb.append("super=").append(super.toString()); + sb.append("type=").append(String.valueOf(this.type)); + sb.append(", relatedResourceId=").append(String.valueOf(this.relatedResourceId)); + sb.append(", message=").append(String.valueOf(this.message)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AddModelLockDetails)) { + return false; + } + + AddModelLockDetails other = (AddModelLockDetails) o; + return java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.relatedResourceId, other.relatedResourceId) + && java.util.Objects.equals(this.message, other.message) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = + (result * PRIME) + + (this.relatedResourceId == null ? 43 : this.relatedResourceId.hashCode()); + result = (result * PRIME) + (this.message == null ? 43 : this.message.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/AddProjectLockDetails.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/AddProjectLockDetails.java new file mode 100644 index 00000000000..c1eb1b43b63 --- /dev/null +++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/AddProjectLockDetails.java @@ -0,0 +1,256 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.aidocument.model; + +/** + * Request payload to add lock to the resource.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221109") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AddProjectLockDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AddProjectLockDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"type", "relatedResourceId", "message"}) + public AddProjectLockDetails(Type type, String relatedResourceId, String message) { + super(); + this.type = type; + this.relatedResourceId = relatedResourceId; + this.message = message; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Type of the lock. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private Type type; + + /** + * Type of the lock. + * + * @param type the value to set + * @return this builder + */ + public Builder type(Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** + * The ID of the resource that is locking this resource. Indicates that deleting this + * resource will remove the lock. + */ + @com.fasterxml.jackson.annotation.JsonProperty("relatedResourceId") + private String relatedResourceId; + + /** + * The ID of the resource that is locking this resource. Indicates that deleting this + * resource will remove the lock. + * + * @param relatedResourceId the value to set + * @return this builder + */ + public Builder relatedResourceId(String relatedResourceId) { + this.relatedResourceId = relatedResourceId; + this.__explicitlySet__.add("relatedResourceId"); + return this; + } + /** + * A message added by the creator of the lock. This is typically used to give an indication + * of why the resource is locked. + */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + /** + * A message added by the creator of the lock. This is typically used to give an indication + * of why the resource is locked. + * + * @param message the value to set + * @return this builder + */ + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AddProjectLockDetails build() { + AddProjectLockDetails model = + new AddProjectLockDetails(this.type, this.relatedResourceId, this.message); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AddProjectLockDetails model) { + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("relatedResourceId")) { + this.relatedResourceId(model.getRelatedResourceId()); + } + if (model.wasPropertyExplicitlySet("message")) { + this.message(model.getMessage()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Type of the lock. */ + public enum Type implements com.oracle.bmc.http.internal.BmcEnum { + Full("FULL"), + Delete("DELETE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Type v : Type.values()) { + map.put(v.getValue(), v); + } + } + + Type(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Type create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Type: " + key); + } + }; + /** Type of the lock. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final Type type; + + /** + * Type of the lock. + * + * @return the value + */ + public Type getType() { + return type; + } + + /** + * The ID of the resource that is locking this resource. Indicates that deleting this resource + * will remove the lock. + */ + @com.fasterxml.jackson.annotation.JsonProperty("relatedResourceId") + private final String relatedResourceId; + + /** + * The ID of the resource that is locking this resource. Indicates that deleting this resource + * will remove the lock. + * + * @return the value + */ + public String getRelatedResourceId() { + return relatedResourceId; + } + + /** + * A message added by the creator of the lock. This is typically used to give an indication of + * why the resource is locked. + */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private final String message; + + /** + * A message added by the creator of the lock. This is typically used to give an indication of + * why the resource is locked. + * + * @return the value + */ + public String getMessage() { + return message; + } + + @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("AddProjectLockDetails("); + sb.append("super=").append(super.toString()); + sb.append("type=").append(String.valueOf(this.type)); + sb.append(", relatedResourceId=").append(String.valueOf(this.relatedResourceId)); + sb.append(", message=").append(String.valueOf(this.message)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AddProjectLockDetails)) { + return false; + } + + AddProjectLockDetails other = (AddProjectLockDetails) o; + return java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.relatedResourceId, other.relatedResourceId) + && java.util.Objects.equals(this.message, other.message) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = + (result * PRIME) + + (this.relatedResourceId == null ? 43 : this.relatedResourceId.hashCode()); + result = (result * PRIME) + (this.message == null ? 43 : this.message.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/DetectedDocumentType.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/DetectedDocumentType.java index cd897ddb797..a01de833546 100644 --- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/DetectedDocumentType.java +++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/DetectedDocumentType.java @@ -23,11 +23,10 @@ public final class DetectedDocumentType extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"documentType", "documentId", "confidence"}) - public DetectedDocumentType(String documentType, String documentId, Float confidence) { + @java.beans.ConstructorProperties({"documentType", "confidence"}) + public DetectedDocumentType(String documentType, Float confidence) { super(); this.documentType = documentType; - this.documentId = documentId; this.confidence = confidence; } @@ -48,25 +47,6 @@ public Builder documentType(String documentType) { this.__explicitlySet__.add("documentType"); return this; } - /** - * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * of the Key-Value Extraction model that was used to extract the key-value pairs. - */ - @com.fasterxml.jackson.annotation.JsonProperty("documentId") - private String documentId; - - /** - * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * of the Key-Value Extraction model that was used to extract the key-value pairs. - * - * @param documentId the value to set - * @return this builder - */ - public Builder documentId(String documentId) { - this.documentId = documentId; - this.__explicitlySet__.add("documentId"); - return this; - } /** The confidence score between 0 and 1. */ @com.fasterxml.jackson.annotation.JsonProperty("confidence") private Float confidence; @@ -88,7 +68,7 @@ public Builder confidence(Float confidence) { public DetectedDocumentType build() { DetectedDocumentType model = - new DetectedDocumentType(this.documentType, this.documentId, this.confidence); + new DetectedDocumentType(this.documentType, this.confidence); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -100,9 +80,6 @@ public Builder copy(DetectedDocumentType model) { if (model.wasPropertyExplicitlySet("documentType")) { this.documentType(model.getDocumentType()); } - if (model.wasPropertyExplicitlySet("documentId")) { - this.documentId(model.getDocumentId()); - } if (model.wasPropertyExplicitlySet("confidence")) { this.confidence(model.getConfidence()); } @@ -132,23 +109,6 @@ public String getDocumentType() { return documentType; } - /** - * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the Key-Value Extraction model that was used to extract the key-value pairs. - */ - @com.fasterxml.jackson.annotation.JsonProperty("documentId") - private final String documentId; - - /** - * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the Key-Value Extraction model that was used to extract the key-value pairs. - * - * @return the value - */ - public String getDocumentId() { - return documentId; - } - /** The confidence score between 0 and 1. */ @com.fasterxml.jackson.annotation.JsonProperty("confidence") private final Float confidence; @@ -178,7 +138,6 @@ public String toString(boolean includeByteArrayContents) { sb.append("DetectedDocumentType("); sb.append("super=").append(super.toString()); sb.append("documentType=").append(String.valueOf(this.documentType)); - sb.append(", documentId=").append(String.valueOf(this.documentId)); sb.append(", confidence=").append(String.valueOf(this.confidence)); sb.append(")"); return sb.toString(); @@ -195,7 +154,6 @@ public boolean equals(Object o) { DetectedDocumentType other = (DetectedDocumentType) o; return java.util.Objects.equals(this.documentType, other.documentType) - && java.util.Objects.equals(this.documentId, other.documentId) && java.util.Objects.equals(this.confidence, other.confidence) && super.equals(other); } @@ -205,7 +163,6 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.documentType == null ? 43 : this.documentType.hashCode()); - result = (result * PRIME) + (this.documentId == null ? 43 : this.documentId.hashCode()); result = (result * PRIME) + (this.confidence == null ? 43 : this.confidence.hashCode()); result = (result * PRIME) + super.hashCode(); return result; diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/DocumentClassificationFeature.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/DocumentClassificationFeature.java index 93b1563fe0b..edecdd9cf38 100644 --- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/DocumentClassificationFeature.java +++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/DocumentClassificationFeature.java @@ -57,29 +57,13 @@ public Builder modelId(String modelId) { this.__explicitlySet__.add("modelId"); return this; } - /** The custom model tenancy ID when modelId represents aliasName. */ - @com.fasterxml.jackson.annotation.JsonProperty("tenancyId") - private String tenancyId; - - /** - * The custom model tenancy ID when modelId represents aliasName. - * - * @param tenancyId the value to set - * @return this builder - */ - public Builder tenancyId(String tenancyId) { - this.tenancyId = tenancyId; - this.__explicitlySet__.add("tenancyId"); - return this; - } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public DocumentClassificationFeature build() { DocumentClassificationFeature model = - new DocumentClassificationFeature( - this.maxResults, this.modelId, this.tenancyId); + new DocumentClassificationFeature(this.maxResults, this.modelId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -94,9 +78,6 @@ public Builder copy(DocumentClassificationFeature model) { if (model.wasPropertyExplicitlySet("modelId")) { this.modelId(model.getModelId()); } - if (model.wasPropertyExplicitlySet("tenancyId")) { - this.tenancyId(model.getTenancyId()); - } return this; } } @@ -111,11 +92,10 @@ public Builder toBuilder() { } @Deprecated - public DocumentClassificationFeature(Integer maxResults, String modelId, String tenancyId) { + public DocumentClassificationFeature(Integer maxResults, String modelId) { super(); this.maxResults = maxResults; this.modelId = modelId; - this.tenancyId = tenancyId; } /** The maximum number of results to return. */ @@ -144,19 +124,6 @@ public String getModelId() { return modelId; } - /** The custom model tenancy ID when modelId represents aliasName. */ - @com.fasterxml.jackson.annotation.JsonProperty("tenancyId") - private final String tenancyId; - - /** - * The custom model tenancy ID when modelId represents aliasName. - * - * @return the value - */ - public String getTenancyId() { - return tenancyId; - } - @Override public String toString() { return this.toString(true); @@ -174,7 +141,6 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", maxResults=").append(String.valueOf(this.maxResults)); sb.append(", modelId=").append(String.valueOf(this.modelId)); - sb.append(", tenancyId=").append(String.valueOf(this.tenancyId)); sb.append(")"); return sb.toString(); } @@ -191,7 +157,6 @@ public boolean equals(Object o) { DocumentClassificationFeature other = (DocumentClassificationFeature) o; return java.util.Objects.equals(this.maxResults, other.maxResults) && java.util.Objects.equals(this.modelId, other.modelId) - && java.util.Objects.equals(this.tenancyId, other.tenancyId) && super.equals(other); } @@ -201,7 +166,6 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) + (this.maxResults == null ? 43 : this.maxResults.hashCode()); result = (result * PRIME) + (this.modelId == null ? 43 : this.modelId.hashCode()); - result = (result * PRIME) + (this.tenancyId == null ? 43 : this.tenancyId.hashCode()); return result; } } diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/DocumentKeyValueExtractionFeature.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/DocumentKeyValueExtractionFeature.java index 05d0b01c773..087288b4904 100644 --- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/DocumentKeyValueExtractionFeature.java +++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/DocumentKeyValueExtractionFeature.java @@ -42,28 +42,13 @@ public Builder modelId(String modelId) { this.__explicitlySet__.add("modelId"); return this; } - /** The custom model tenancy ID when modelId represents aliasName. */ - @com.fasterxml.jackson.annotation.JsonProperty("tenancyId") - private String tenancyId; - - /** - * The custom model tenancy ID when modelId represents aliasName. - * - * @param tenancyId the value to set - * @return this builder - */ - public Builder tenancyId(String tenancyId) { - this.tenancyId = tenancyId; - this.__explicitlySet__.add("tenancyId"); - return this; - } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public DocumentKeyValueExtractionFeature build() { DocumentKeyValueExtractionFeature model = - new DocumentKeyValueExtractionFeature(this.modelId, this.tenancyId); + new DocumentKeyValueExtractionFeature(this.modelId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -75,9 +60,6 @@ public Builder copy(DocumentKeyValueExtractionFeature model) { if (model.wasPropertyExplicitlySet("modelId")) { this.modelId(model.getModelId()); } - if (model.wasPropertyExplicitlySet("tenancyId")) { - this.tenancyId(model.getTenancyId()); - } return this; } } @@ -92,10 +74,9 @@ public Builder toBuilder() { } @Deprecated - public DocumentKeyValueExtractionFeature(String modelId, String tenancyId) { + public DocumentKeyValueExtractionFeature(String modelId) { super(); this.modelId = modelId; - this.tenancyId = tenancyId; } /** The custom model ID. */ @@ -111,19 +92,6 @@ public String getModelId() { return modelId; } - /** The custom model tenancy ID when modelId represents aliasName. */ - @com.fasterxml.jackson.annotation.JsonProperty("tenancyId") - private final String tenancyId; - - /** - * The custom model tenancy ID when modelId represents aliasName. - * - * @return the value - */ - public String getTenancyId() { - return tenancyId; - } - @Override public String toString() { return this.toString(true); @@ -140,7 +108,6 @@ public String toString(boolean includeByteArrayContents) { sb.append("DocumentKeyValueExtractionFeature("); sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", modelId=").append(String.valueOf(this.modelId)); - sb.append(", tenancyId=").append(String.valueOf(this.tenancyId)); sb.append(")"); return sb.toString(); } @@ -155,9 +122,7 @@ public boolean equals(Object o) { } DocumentKeyValueExtractionFeature other = (DocumentKeyValueExtractionFeature) o; - return java.util.Objects.equals(this.modelId, other.modelId) - && java.util.Objects.equals(this.tenancyId, other.tenancyId) - && super.equals(other); + return java.util.Objects.equals(this.modelId, other.modelId) && super.equals(other); } @Override @@ -165,7 +130,6 @@ public int hashCode() { final int PRIME = 59; int result = super.hashCode(); result = (result * PRIME) + (this.modelId == null ? 43 : this.modelId.hashCode()); - result = (result * PRIME) + (this.tenancyId == null ? 43 : this.tenancyId.hashCode()); return result; } } diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/DocumentType.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/DocumentType.java index 0581d5fdab9..d010a9668bc 100644 --- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/DocumentType.java +++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/DocumentType.java @@ -17,7 +17,7 @@ public enum DocumentType implements com.oracle.bmc.http.internal.BmcEnum { Check("CHECK"), Payslip("PAYSLIP"), Others("OTHERS"), - InsuranceClaim("INSURANCE_CLAIM"), + HealthInsuranceId("HEALTH_INSURANCE_ID"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/Model.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/Model.java index f3729b02194..e518281ac90 100644 --- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/Model.java +++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/Model.java @@ -47,7 +47,8 @@ public final class Model extends com.oracle.bmc.http.client.internal.ExplicitlyS "metrics", "freeformTags", "definedTags", - "systemTags" + "systemTags", + "locks" }) public Model( String id, @@ -75,7 +76,8 @@ public Model( ModelMetrics metrics, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.Map> systemTags) { + java.util.Map> systemTags, + java.util.List locks) { super(); this.id = id; this.displayName = displayName; @@ -103,6 +105,7 @@ public Model( this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; + this.locks = locks; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -502,6 +505,21 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + /** Locks associated with this resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + /** + * Locks associated with this resource. + * + * @param locks the value to set + * @return this builder + */ + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -534,7 +552,8 @@ public Model build() { this.metrics, this.freeformTags, this.definedTags, - this.systemTags); + this.systemTags, + this.locks); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -621,6 +640,9 @@ public Builder copy(Model model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } return this; } } @@ -1072,6 +1094,19 @@ public java.util.Map> getSystemTags() { return systemTags; } + /** Locks associated with this resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private final java.util.List locks; + + /** + * Locks associated with this resource. + * + * @return the value + */ + public java.util.List getLocks() { + return locks; + } + @Override public String toString() { return this.toString(true); @@ -1113,6 +1148,7 @@ public String toString(boolean includeByteArrayContents) { 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(", locks=").append(String.valueOf(this.locks)); sb.append(")"); return sb.toString(); } @@ -1154,6 +1190,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.locks, other.locks) && super.equals(other); } @@ -1211,6 +1248,7 @@ public int hashCode() { result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + (this.locks == null ? 43 : this.locks.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/ModelSummary.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/ModelSummary.java index be7f104d47a..4eec71cd443 100644 --- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/ModelSummary.java +++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/ModelSummary.java @@ -43,7 +43,8 @@ public final class ModelSummary extends com.oracle.bmc.http.client.internal.Expl "isComposedModel", "freeformTags", "definedTags", - "systemTags" + "systemTags", + "locks" }) public ModelSummary( String id, @@ -67,7 +68,8 @@ public ModelSummary( Boolean isComposedModel, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.Map> systemTags) { + java.util.Map> systemTags, + java.util.List locks) { super(); this.id = id; this.displayName = displayName; @@ -91,6 +93,7 @@ public ModelSummary( this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; + this.locks = locks; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -432,6 +435,21 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + /** Locks associated with this resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + /** + * Locks associated with this resource. + * + * @param locks the value to set + * @return this builder + */ + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -460,7 +478,8 @@ public ModelSummary build() { this.isComposedModel, this.freeformTags, this.definedTags, - this.systemTags); + this.systemTags, + this.locks); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -535,6 +554,9 @@ public Builder copy(ModelSummary model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } return this; } } @@ -840,6 +862,19 @@ public java.util.Map> getSystemTags() { return systemTags; } + /** Locks associated with this resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private final java.util.List locks; + + /** + * Locks associated with this resource. + * + * @return the value + */ + public java.util.List getLocks() { + return locks; + } + @Override public String toString() { return this.toString(true); @@ -877,6 +912,7 @@ public String toString(boolean includeByteArrayContents) { 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(", locks=").append(String.valueOf(this.locks)); sb.append(")"); return sb.toString(); } @@ -913,6 +949,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.locks, other.locks) && super.equals(other); } @@ -958,6 +995,7 @@ public int hashCode() { result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + (this.locks == null ? 43 : this.locks.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/OutputLocation.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/OutputLocation.java index 93e75dfc864..bfc7dbf9f13 100644 --- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/OutputLocation.java +++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/OutputLocation.java @@ -5,7 +5,7 @@ package com.oracle.bmc.aidocument.model; /** - * The object storage location where to store analysis results.
+ * The Object Storage Location.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/Project.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/Project.java index e63657920a3..1e8def48212 100644 --- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/Project.java +++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/Project.java @@ -32,7 +32,8 @@ public final class Project extends com.oracle.bmc.http.client.internal.Explicitl "lifecycleDetails", "freeformTags", "definedTags", - "systemTags" + "systemTags", + "locks" }) public Project( String id, @@ -45,7 +46,8 @@ public Project( String lifecycleDetails, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.Map> systemTags) { + java.util.Map> systemTags, + java.util.List locks) { super(); this.id = id; this.displayName = displayName; @@ -58,6 +60,7 @@ public Project( this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; + this.locks = locks; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -244,6 +247,21 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + /** Locks associated with this resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + /** + * Locks associated with this resource. + * + * @param locks the value to set + * @return this builder + */ + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -261,7 +279,8 @@ public Project build() { this.lifecycleDetails, this.freeformTags, this.definedTags, - this.systemTags); + this.systemTags, + this.locks); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -303,6 +322,9 @@ public Builder copy(Project model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } return this; } } @@ -525,6 +547,19 @@ public java.util.Map> getSystemTags() { return systemTags; } + /** Locks associated with this resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private final java.util.List locks; + + /** + * Locks associated with this resource. + * + * @return the value + */ + public java.util.List getLocks() { + return locks; + } + @Override public String toString() { return this.toString(true); @@ -551,6 +586,7 @@ public String toString(boolean includeByteArrayContents) { 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(", locks=").append(String.valueOf(this.locks)); sb.append(")"); return sb.toString(); } @@ -576,6 +612,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.locks, other.locks) && super.equals(other); } @@ -600,6 +637,7 @@ public int hashCode() { result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + (this.locks == null ? 43 : this.locks.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/RemoveModelLockDetails.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/RemoveModelLockDetails.java new file mode 100644 index 00000000000..03825d69efb --- /dev/null +++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/RemoveModelLockDetails.java @@ -0,0 +1,166 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.aidocument.model; + +/** + * Request payload to remove lock to the resource.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221109") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RemoveModelLockDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RemoveModelLockDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"type"}) + public RemoveModelLockDetails(Type type) { + super(); + this.type = type; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Type of the lock. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private Type type; + + /** + * Type of the lock. + * + * @param type the value to set + * @return this builder + */ + public Builder type(Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RemoveModelLockDetails build() { + RemoveModelLockDetails model = new RemoveModelLockDetails(this.type); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RemoveModelLockDetails model) { + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Type of the lock. */ + public enum Type implements com.oracle.bmc.http.internal.BmcEnum { + Full("FULL"), + Delete("DELETE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Type v : Type.values()) { + map.put(v.getValue(), v); + } + } + + Type(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Type create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Type: " + key); + } + }; + /** Type of the lock. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final Type type; + + /** + * Type of the lock. + * + * @return the value + */ + public Type getType() { + return type; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("RemoveModelLockDetails("); + sb.append("super=").append(super.toString()); + sb.append("type=").append(String.valueOf(this.type)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RemoveModelLockDetails)) { + return false; + } + + RemoveModelLockDetails other = (RemoveModelLockDetails) o; + return java.util.Objects.equals(this.type, other.type) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/RemoveProjectLockDetails.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/RemoveProjectLockDetails.java new file mode 100644 index 00000000000..6473f5f1c0c --- /dev/null +++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/RemoveProjectLockDetails.java @@ -0,0 +1,166 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.aidocument.model; + +/** + * Request payload to remove lock to the resource.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221109") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RemoveProjectLockDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RemoveProjectLockDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"type"}) + public RemoveProjectLockDetails(Type type) { + super(); + this.type = type; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Type of the lock. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private Type type; + + /** + * Type of the lock. + * + * @param type the value to set + * @return this builder + */ + public Builder type(Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RemoveProjectLockDetails build() { + RemoveProjectLockDetails model = new RemoveProjectLockDetails(this.type); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RemoveProjectLockDetails model) { + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Type of the lock. */ + public enum Type implements com.oracle.bmc.http.internal.BmcEnum { + Full("FULL"), + Delete("DELETE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Type v : Type.values()) { + map.put(v.getValue(), v); + } + } + + Type(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Type create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Type: " + key); + } + }; + /** Type of the lock. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final Type type; + + /** + * Type of the lock. + * + * @return the value + */ + public Type getType() { + return type; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("RemoveProjectLockDetails("); + sb.append("super=").append(super.toString()); + sb.append("type=").append(String.valueOf(this.type)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RemoveProjectLockDetails)) { + return false; + } + + RemoveProjectLockDetails other = (RemoveProjectLockDetails) o; + return java.util.Objects.equals(this.type, other.type) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/ResourceLock.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/ResourceLock.java new file mode 100644 index 00000000000..8e32174c0c7 --- /dev/null +++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/model/ResourceLock.java @@ -0,0 +1,354 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.aidocument.model; + +/** + * Resource locks prevent certain APIs from being called for the resource. A full lock prevents both + * updating and deleting the resource. A lock delete prevents deleting the resource.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221109") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ResourceLock.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ResourceLock extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "type", + "compartmentId", + "relatedResourceId", + "message", + "timeCreated" + }) + public ResourceLock( + Type type, + String compartmentId, + String relatedResourceId, + String message, + java.util.Date timeCreated) { + super(); + this.type = type; + this.compartmentId = compartmentId; + this.relatedResourceId = relatedResourceId; + this.message = message; + this.timeCreated = timeCreated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Lock type. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private Type type; + + /** + * Lock type. + * + * @param type the value to set + * @return this builder + */ + public Builder type(Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** The lock compartment ID. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The lock compartment ID. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The resource ID that is locking this resource. Indicates that deleting this resource + * removes the lock. + */ + @com.fasterxml.jackson.annotation.JsonProperty("relatedResourceId") + private String relatedResourceId; + + /** + * The resource ID that is locking this resource. Indicates that deleting this resource + * removes the lock. + * + * @param relatedResourceId the value to set + * @return this builder + */ + public Builder relatedResourceId(String relatedResourceId) { + this.relatedResourceId = relatedResourceId; + this.__explicitlySet__.add("relatedResourceId"); + return this; + } + /** + * A message added by the lock creator. The message typically gives an indication of why the + * resource is locked. + */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + /** + * A message added by the lock creator. The message typically gives an indication of why the + * resource is locked. + * + * @param message the value to set + * @return this builder + */ + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + /** Indicates when the lock was created, in the format defined by RFC 3339. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * Indicates when the lock was created, in the format defined by RFC 3339. + * + * @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 ResourceLock build() { + ResourceLock model = + new ResourceLock( + this.type, + this.compartmentId, + this.relatedResourceId, + this.message, + this.timeCreated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ResourceLock model) { + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("relatedResourceId")) { + this.relatedResourceId(model.getRelatedResourceId()); + } + if (model.wasPropertyExplicitlySet("message")) { + this.message(model.getMessage()); + } + 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); + } + + /** Lock type. */ + public enum Type implements com.oracle.bmc.http.internal.BmcEnum { + Full("FULL"), + Delete("DELETE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Type.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Type v : Type.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Type(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Type create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Type', returning UnknownEnumValue", key); + return UnknownEnumValue; + } + }; + /** Lock type. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final Type type; + + /** + * Lock type. + * + * @return the value + */ + public Type getType() { + return type; + } + + /** The lock compartment ID. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The lock compartment ID. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The resource ID that is locking this resource. Indicates that deleting this resource removes + * the lock. + */ + @com.fasterxml.jackson.annotation.JsonProperty("relatedResourceId") + private final String relatedResourceId; + + /** + * The resource ID that is locking this resource. Indicates that deleting this resource removes + * the lock. + * + * @return the value + */ + public String getRelatedResourceId() { + return relatedResourceId; + } + + /** + * A message added by the lock creator. The message typically gives an indication of why the + * resource is locked. + */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private final String message; + + /** + * A message added by the lock creator. The message typically gives an indication of why the + * resource is locked. + * + * @return the value + */ + public String getMessage() { + return message; + } + + /** Indicates when the lock was created, in the format defined by RFC 3339. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * Indicates when the lock was created, in the format defined by RFC 3339. + * + * @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("ResourceLock("); + sb.append("super=").append(super.toString()); + sb.append("type=").append(String.valueOf(this.type)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", relatedResourceId=").append(String.valueOf(this.relatedResourceId)); + sb.append(", message=").append(String.valueOf(this.message)); + 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 ResourceLock)) { + return false; + } + + ResourceLock other = (ResourceLock) o; + return java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.relatedResourceId, other.relatedResourceId) + && java.util.Objects.equals(this.message, other.message) + && 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.type == null ? 43 : this.type.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.relatedResourceId == null ? 43 : this.relatedResourceId.hashCode()); + result = (result * PRIME) + (this.message == null ? 43 : this.message.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/AddModelLockRequest.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/AddModelLockRequest.java new file mode 100644 index 00000000000..ee0aa165fd0 --- /dev/null +++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/AddModelLockRequest.java @@ -0,0 +1,375 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.aidocument.requests; + +import com.oracle.bmc.aidocument.model.*; +/** + * Example: Click here to see how to use AddModelLockRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221109") +public class AddModelLockRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.aidocument.model.AddModelLockDetails> { + + /** A unique model identifier. */ + private String modelId; + + /** A unique model identifier. */ + public String getModelId() { + return modelId; + } + /** Request payload to add lock to the resource. */ + private com.oracle.bmc.aidocument.model.AddModelLockDetails addModelLockDetails; + + /** Request payload to add lock to the resource. */ + public com.oracle.bmc.aidocument.model.AddModelLockDetails getAddModelLockDetails() { + return addModelLockDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without the 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 the risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * 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; + } + /** Whether to override locks (if any exist). */ + private Boolean isLockOverride; + + /** Whether to override locks (if any exist). */ + public Boolean getIsLockOverride() { + return isLockOverride; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.aidocument.model.AddModelLockDetails getBody$() { + return addModelLockDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + AddModelLockRequest, com.oracle.bmc.aidocument.model.AddModelLockDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** A unique model identifier. */ + private String modelId = null; + + /** + * A unique model identifier. + * + * @param modelId the value to set + * @return this builder instance + */ + public Builder modelId(String modelId) { + this.modelId = modelId; + return this; + } + + /** Request payload to add lock to the resource. */ + private com.oracle.bmc.aidocument.model.AddModelLockDetails addModelLockDetails = null; + + /** + * Request payload to add lock to the resource. + * + * @param addModelLockDetails the value to set + * @return this builder instance + */ + public Builder addModelLockDetails( + com.oracle.bmc.aidocument.model.AddModelLockDetails addModelLockDetails) { + this.addModelLockDetails = addModelLockDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without the 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 the risk of executing that same action again. Retry tokens expire + * after 24 hours, but can be invalidated before then due to conflicting operations. For + * example, if a resource has been deleted and purged from the system, then a retry of the + * original creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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; + } + + /** Whether to override locks (if any exist). */ + private Boolean isLockOverride = null; + + /** + * Whether to override locks (if any exist). + * + * @param isLockOverride the value to set + * @return this builder instance + */ + public Builder isLockOverride(Boolean isLockOverride) { + this.isLockOverride = isLockOverride; + 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(AddModelLockRequest o) { + modelId(o.getModelId()); + addModelLockDetails(o.getAddModelLockDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + isLockOverride(o.getIsLockOverride()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of AddModelLockRequest 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 AddModelLockRequest + */ + public AddModelLockRequest build() { + AddModelLockRequest 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.aidocument.model.AddModelLockDetails body) { + addModelLockDetails(body); + return this; + } + + /** + * Build the instance of AddModelLockRequest 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 AddModelLockRequest + */ + public AddModelLockRequest buildWithoutInvocationCallback() { + AddModelLockRequest request = new AddModelLockRequest(); + request.modelId = modelId; + request.addModelLockDetails = addModelLockDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.isLockOverride = isLockOverride; + return request; + // new AddModelLockRequest(modelId, addModelLockDetails, opcRetryToken, opcRequestId, + // ifMatch, isLockOverride); + } + } + + /** + * 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() + .modelId(modelId) + .addModelLockDetails(addModelLockDetails) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .isLockOverride(isLockOverride); + } + + /** + * 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(",modelId=").append(String.valueOf(this.modelId)); + sb.append(",addModelLockDetails=").append(String.valueOf(this.addModelLockDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",isLockOverride=").append(String.valueOf(this.isLockOverride)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AddModelLockRequest)) { + return false; + } + + AddModelLockRequest other = (AddModelLockRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.modelId, other.modelId) + && java.util.Objects.equals(this.addModelLockDetails, other.addModelLockDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.modelId == null ? 43 : this.modelId.hashCode()); + result = + (result * PRIME) + + (this.addModelLockDetails == null + ? 43 + : this.addModelLockDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.isLockOverride == null ? 43 : this.isLockOverride.hashCode()); + return result; + } +} diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/AddProjectLockRequest.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/AddProjectLockRequest.java new file mode 100644 index 00000000000..a03bc167ce0 --- /dev/null +++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/AddProjectLockRequest.java @@ -0,0 +1,375 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.aidocument.requests; + +import com.oracle.bmc.aidocument.model.*; +/** + * Example: Click here to see how to use AddProjectLockRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221109") +public class AddProjectLockRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.aidocument.model.AddProjectLockDetails> { + + /** A unique project identifier. */ + private String projectId; + + /** A unique project identifier. */ + public String getProjectId() { + return projectId; + } + /** Request payload to add lock to the resource. */ + private com.oracle.bmc.aidocument.model.AddProjectLockDetails addProjectLockDetails; + + /** Request payload to add lock to the resource. */ + public com.oracle.bmc.aidocument.model.AddProjectLockDetails getAddProjectLockDetails() { + return addProjectLockDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without the 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 the risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * 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; + } + /** Whether to override locks (if any exist). */ + private Boolean isLockOverride; + + /** Whether to override locks (if any exist). */ + public Boolean getIsLockOverride() { + return isLockOverride; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.aidocument.model.AddProjectLockDetails getBody$() { + return addProjectLockDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + AddProjectLockRequest, com.oracle.bmc.aidocument.model.AddProjectLockDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** A unique project identifier. */ + private String projectId = null; + + /** + * A unique project identifier. + * + * @param projectId the value to set + * @return this builder instance + */ + public Builder projectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** Request payload to add lock to the resource. */ + private com.oracle.bmc.aidocument.model.AddProjectLockDetails addProjectLockDetails = null; + + /** + * Request payload to add lock to the resource. + * + * @param addProjectLockDetails the value to set + * @return this builder instance + */ + public Builder addProjectLockDetails( + com.oracle.bmc.aidocument.model.AddProjectLockDetails addProjectLockDetails) { + this.addProjectLockDetails = addProjectLockDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without the 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 the risk of executing that same action again. Retry tokens expire + * after 24 hours, but can be invalidated before then due to conflicting operations. For + * example, if a resource has been deleted and purged from the system, then a retry of the + * original creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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; + } + + /** Whether to override locks (if any exist). */ + private Boolean isLockOverride = null; + + /** + * Whether to override locks (if any exist). + * + * @param isLockOverride the value to set + * @return this builder instance + */ + public Builder isLockOverride(Boolean isLockOverride) { + this.isLockOverride = isLockOverride; + 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(AddProjectLockRequest o) { + projectId(o.getProjectId()); + addProjectLockDetails(o.getAddProjectLockDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + isLockOverride(o.getIsLockOverride()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of AddProjectLockRequest 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 AddProjectLockRequest + */ + public AddProjectLockRequest build() { + AddProjectLockRequest 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.aidocument.model.AddProjectLockDetails body) { + addProjectLockDetails(body); + return this; + } + + /** + * Build the instance of AddProjectLockRequest 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 AddProjectLockRequest + */ + public AddProjectLockRequest buildWithoutInvocationCallback() { + AddProjectLockRequest request = new AddProjectLockRequest(); + request.projectId = projectId; + request.addProjectLockDetails = addProjectLockDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.isLockOverride = isLockOverride; + return request; + // new AddProjectLockRequest(projectId, addProjectLockDetails, opcRetryToken, + // opcRequestId, ifMatch, isLockOverride); + } + } + + /** + * 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() + .projectId(projectId) + .addProjectLockDetails(addProjectLockDetails) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .isLockOverride(isLockOverride); + } + + /** + * 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(",projectId=").append(String.valueOf(this.projectId)); + sb.append(",addProjectLockDetails=").append(String.valueOf(this.addProjectLockDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",isLockOverride=").append(String.valueOf(this.isLockOverride)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AddProjectLockRequest)) { + return false; + } + + AddProjectLockRequest other = (AddProjectLockRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.projectId, other.projectId) + && java.util.Objects.equals(this.addProjectLockDetails, other.addProjectLockDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.projectId == null ? 43 : this.projectId.hashCode()); + result = + (result * PRIME) + + (this.addProjectLockDetails == null + ? 43 + : this.addProjectLockDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.isLockOverride == null ? 43 : this.isLockOverride.hashCode()); + return result; + } +} diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/ChangeModelCompartmentRequest.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/ChangeModelCompartmentRequest.java index 0e943098508..76eeb8c3c85 100644 --- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/ChangeModelCompartmentRequest.java +++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/ChangeModelCompartmentRequest.java @@ -56,6 +56,13 @@ public String getIfMatch() { public String getOpcRequestId() { return opcRequestId; } + /** Whether to override locks (if any exist). */ + private Boolean isLockOverride; + + /** Whether to override locks (if any exist). */ + public Boolean getIsLockOverride() { + return isLockOverride; + } /** * Alternative accessor for the body parameter. @@ -142,6 +149,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** Whether to override locks (if any exist). */ + private Boolean isLockOverride = null; + + /** + * Whether to override locks (if any exist). + * + * @param isLockOverride the value to set + * @return this builder instance + */ + public Builder isLockOverride(Boolean isLockOverride) { + this.isLockOverride = isLockOverride; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -176,6 +197,7 @@ public Builder copy(ChangeModelCompartmentRequest o) { changeModelCompartmentDetails(o.getChangeModelCompartmentDetails()); ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); + isLockOverride(o.getIsLockOverride()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -226,9 +248,10 @@ public ChangeModelCompartmentRequest buildWithoutInvocationCallback() { request.changeModelCompartmentDetails = changeModelCompartmentDetails; request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; + request.isLockOverride = isLockOverride; return request; // new ChangeModelCompartmentRequest(modelId, changeModelCompartmentDetails, ifMatch, - // opcRequestId); + // opcRequestId, isLockOverride); } } @@ -242,7 +265,8 @@ public Builder toBuilder() { .modelId(modelId) .changeModelCompartmentDetails(changeModelCompartmentDetails) .ifMatch(ifMatch) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .isLockOverride(isLockOverride); } /** @@ -264,6 +288,7 @@ public String toString() { .append(String.valueOf(this.changeModelCompartmentDetails)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",isLockOverride=").append(String.valueOf(this.isLockOverride)); sb.append(")"); return sb.toString(); } @@ -283,7 +308,8 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.changeModelCompartmentDetails, other.changeModelCompartmentDetails) && java.util.Objects.equals(this.ifMatch, other.ifMatch) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); } @Override @@ -298,6 +324,9 @@ public int hashCode() { : this.changeModelCompartmentDetails.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.isLockOverride == null ? 43 : this.isLockOverride.hashCode()); return result; } } diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/ChangeProjectCompartmentRequest.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/ChangeProjectCompartmentRequest.java index 77b0f61c72d..726a4235d0c 100644 --- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/ChangeProjectCompartmentRequest.java +++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/ChangeProjectCompartmentRequest.java @@ -56,6 +56,13 @@ public String getIfMatch() { public String getOpcRequestId() { return opcRequestId; } + /** Whether to override locks (if any exist). */ + private Boolean isLockOverride; + + /** Whether to override locks (if any exist). */ + public Boolean getIsLockOverride() { + return isLockOverride; + } /** * Alternative accessor for the body parameter. @@ -142,6 +149,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** Whether to override locks (if any exist). */ + private Boolean isLockOverride = null; + + /** + * Whether to override locks (if any exist). + * + * @param isLockOverride the value to set + * @return this builder instance + */ + public Builder isLockOverride(Boolean isLockOverride) { + this.isLockOverride = isLockOverride; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -176,6 +197,7 @@ public Builder copy(ChangeProjectCompartmentRequest o) { changeProjectCompartmentDetails(o.getChangeProjectCompartmentDetails()); ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); + isLockOverride(o.getIsLockOverride()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -226,9 +248,10 @@ public ChangeProjectCompartmentRequest buildWithoutInvocationCallback() { request.changeProjectCompartmentDetails = changeProjectCompartmentDetails; request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; + request.isLockOverride = isLockOverride; return request; // new ChangeProjectCompartmentRequest(projectId, changeProjectCompartmentDetails, - // ifMatch, opcRequestId); + // ifMatch, opcRequestId, isLockOverride); } } @@ -242,7 +265,8 @@ public Builder toBuilder() { .projectId(projectId) .changeProjectCompartmentDetails(changeProjectCompartmentDetails) .ifMatch(ifMatch) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .isLockOverride(isLockOverride); } /** @@ -264,6 +288,7 @@ public String toString() { .append(String.valueOf(this.changeProjectCompartmentDetails)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",isLockOverride=").append(String.valueOf(this.isLockOverride)); sb.append(")"); return sb.toString(); } @@ -283,7 +308,8 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.changeProjectCompartmentDetails, other.changeProjectCompartmentDetails) && java.util.Objects.equals(this.ifMatch, other.ifMatch) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); } @Override @@ -298,6 +324,9 @@ public int hashCode() { : this.changeProjectCompartmentDetails.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.isLockOverride == null ? 43 : this.isLockOverride.hashCode()); return result; } } diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/DeleteModelRequest.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/DeleteModelRequest.java index 6f8ba1babc7..0498bdb1c14 100644 --- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/DeleteModelRequest.java +++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/DeleteModelRequest.java @@ -44,6 +44,13 @@ public String getIfMatch() { public String getOpcRequestId() { return opcRequestId; } + /** Whether to override locks (if any exist). */ + private Boolean isLockOverride; + + /** Whether to override locks (if any exist). */ + public Boolean getIsLockOverride() { + return isLockOverride; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -101,6 +108,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** Whether to override locks (if any exist). */ + private Boolean isLockOverride = null; + + /** + * Whether to override locks (if any exist). + * + * @param isLockOverride the value to set + * @return this builder instance + */ + public Builder isLockOverride(Boolean isLockOverride) { + this.isLockOverride = isLockOverride; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -134,6 +155,7 @@ public Builder copy(DeleteModelRequest o) { modelId(o.getModelId()); ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); + isLockOverride(o.getIsLockOverride()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -171,8 +193,9 @@ public DeleteModelRequest buildWithoutInvocationCallback() { request.modelId = modelId; request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; + request.isLockOverride = isLockOverride; return request; - // new DeleteModelRequest(modelId, ifMatch, opcRequestId); + // new DeleteModelRequest(modelId, ifMatch, opcRequestId, isLockOverride); } } @@ -182,7 +205,11 @@ public DeleteModelRequest buildWithoutInvocationCallback() { * @return instance of {@link Builder} that allows you to modify request properties. */ public Builder toBuilder() { - return new Builder().modelId(modelId).ifMatch(ifMatch).opcRequestId(opcRequestId); + return new Builder() + .modelId(modelId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .isLockOverride(isLockOverride); } /** @@ -202,6 +229,7 @@ public String toString() { sb.append(",modelId=").append(String.valueOf(this.modelId)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",isLockOverride=").append(String.valueOf(this.isLockOverride)); sb.append(")"); return sb.toString(); } @@ -219,7 +247,8 @@ public boolean equals(Object o) { return super.equals(o) && java.util.Objects.equals(this.modelId, other.modelId) && java.util.Objects.equals(this.ifMatch, other.ifMatch) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); } @Override @@ -229,6 +258,9 @@ public int hashCode() { result = (result * PRIME) + (this.modelId == null ? 43 : this.modelId.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.isLockOverride == null ? 43 : this.isLockOverride.hashCode()); return result; } } diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/DeleteProjectRequest.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/DeleteProjectRequest.java index d874d42166a..a5fab1df542 100644 --- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/DeleteProjectRequest.java +++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/DeleteProjectRequest.java @@ -44,6 +44,13 @@ public String getIfMatch() { public String getOpcRequestId() { return opcRequestId; } + /** Whether to override locks (if any exist). */ + private Boolean isLockOverride; + + /** Whether to override locks (if any exist). */ + public Boolean getIsLockOverride() { + return isLockOverride; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -101,6 +108,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** Whether to override locks (if any exist). */ + private Boolean isLockOverride = null; + + /** + * Whether to override locks (if any exist). + * + * @param isLockOverride the value to set + * @return this builder instance + */ + public Builder isLockOverride(Boolean isLockOverride) { + this.isLockOverride = isLockOverride; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -134,6 +155,7 @@ public Builder copy(DeleteProjectRequest o) { projectId(o.getProjectId()); ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); + isLockOverride(o.getIsLockOverride()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -171,8 +193,9 @@ public DeleteProjectRequest buildWithoutInvocationCallback() { request.projectId = projectId; request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; + request.isLockOverride = isLockOverride; return request; - // new DeleteProjectRequest(projectId, ifMatch, opcRequestId); + // new DeleteProjectRequest(projectId, ifMatch, opcRequestId, isLockOverride); } } @@ -182,7 +205,11 @@ public DeleteProjectRequest buildWithoutInvocationCallback() { * @return instance of {@link Builder} that allows you to modify request properties. */ public Builder toBuilder() { - return new Builder().projectId(projectId).ifMatch(ifMatch).opcRequestId(opcRequestId); + return new Builder() + .projectId(projectId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .isLockOverride(isLockOverride); } /** @@ -202,6 +229,7 @@ public String toString() { sb.append(",projectId=").append(String.valueOf(this.projectId)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",isLockOverride=").append(String.valueOf(this.isLockOverride)); sb.append(")"); return sb.toString(); } @@ -219,7 +247,8 @@ public boolean equals(Object o) { return super.equals(o) && java.util.Objects.equals(this.projectId, other.projectId) && java.util.Objects.equals(this.ifMatch, other.ifMatch) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); } @Override @@ -229,6 +258,9 @@ public int hashCode() { result = (result * PRIME) + (this.projectId == null ? 43 : this.projectId.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.isLockOverride == null ? 43 : this.isLockOverride.hashCode()); return result; } } diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/RemoveModelLockRequest.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/RemoveModelLockRequest.java new file mode 100644 index 00000000000..3249665f927 --- /dev/null +++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/RemoveModelLockRequest.java @@ -0,0 +1,378 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.aidocument.requests; + +import com.oracle.bmc.aidocument.model.*; +/** + * Example: Click here to see how to use RemoveModelLockRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221109") +public class RemoveModelLockRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.aidocument.model.RemoveModelLockDetails> { + + /** A unique model identifier. */ + private String modelId; + + /** A unique model identifier. */ + public String getModelId() { + return modelId; + } + /** Request payload to remove lock to the resource. */ + private com.oracle.bmc.aidocument.model.RemoveModelLockDetails removeModelLockDetails; + + /** Request payload to remove lock to the resource. */ + public com.oracle.bmc.aidocument.model.RemoveModelLockDetails getRemoveModelLockDetails() { + return removeModelLockDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without the 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 the risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * 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; + } + /** Whether to override locks (if any exist). */ + private Boolean isLockOverride; + + /** Whether to override locks (if any exist). */ + public Boolean getIsLockOverride() { + return isLockOverride; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.aidocument.model.RemoveModelLockDetails getBody$() { + return removeModelLockDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RemoveModelLockRequest, + com.oracle.bmc.aidocument.model.RemoveModelLockDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** A unique model identifier. */ + private String modelId = null; + + /** + * A unique model identifier. + * + * @param modelId the value to set + * @return this builder instance + */ + public Builder modelId(String modelId) { + this.modelId = modelId; + return this; + } + + /** Request payload to remove lock to the resource. */ + private com.oracle.bmc.aidocument.model.RemoveModelLockDetails removeModelLockDetails = + null; + + /** + * Request payload to remove lock to the resource. + * + * @param removeModelLockDetails the value to set + * @return this builder instance + */ + public Builder removeModelLockDetails( + com.oracle.bmc.aidocument.model.RemoveModelLockDetails removeModelLockDetails) { + this.removeModelLockDetails = removeModelLockDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without the 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 the risk of executing that same action again. Retry tokens expire + * after 24 hours, but can be invalidated before then due to conflicting operations. For + * example, if a resource has been deleted and purged from the system, then a retry of the + * original creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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; + } + + /** Whether to override locks (if any exist). */ + private Boolean isLockOverride = null; + + /** + * Whether to override locks (if any exist). + * + * @param isLockOverride the value to set + * @return this builder instance + */ + public Builder isLockOverride(Boolean isLockOverride) { + this.isLockOverride = isLockOverride; + 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(RemoveModelLockRequest o) { + modelId(o.getModelId()); + removeModelLockDetails(o.getRemoveModelLockDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + isLockOverride(o.getIsLockOverride()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RemoveModelLockRequest 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 RemoveModelLockRequest + */ + public RemoveModelLockRequest build() { + RemoveModelLockRequest 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.aidocument.model.RemoveModelLockDetails body) { + removeModelLockDetails(body); + return this; + } + + /** + * Build the instance of RemoveModelLockRequest 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 RemoveModelLockRequest + */ + public RemoveModelLockRequest buildWithoutInvocationCallback() { + RemoveModelLockRequest request = new RemoveModelLockRequest(); + request.modelId = modelId; + request.removeModelLockDetails = removeModelLockDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.isLockOverride = isLockOverride; + return request; + // new RemoveModelLockRequest(modelId, removeModelLockDetails, opcRetryToken, + // opcRequestId, ifMatch, isLockOverride); + } + } + + /** + * 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() + .modelId(modelId) + .removeModelLockDetails(removeModelLockDetails) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .isLockOverride(isLockOverride); + } + + /** + * 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(",modelId=").append(String.valueOf(this.modelId)); + sb.append(",removeModelLockDetails=").append(String.valueOf(this.removeModelLockDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",isLockOverride=").append(String.valueOf(this.isLockOverride)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RemoveModelLockRequest)) { + return false; + } + + RemoveModelLockRequest other = (RemoveModelLockRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.modelId, other.modelId) + && java.util.Objects.equals( + this.removeModelLockDetails, other.removeModelLockDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.modelId == null ? 43 : this.modelId.hashCode()); + result = + (result * PRIME) + + (this.removeModelLockDetails == null + ? 43 + : this.removeModelLockDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.isLockOverride == null ? 43 : this.isLockOverride.hashCode()); + return result; + } +} diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/RemoveProjectLockRequest.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/RemoveProjectLockRequest.java new file mode 100644 index 00000000000..cdfeb10835c --- /dev/null +++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/RemoveProjectLockRequest.java @@ -0,0 +1,379 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.aidocument.requests; + +import com.oracle.bmc.aidocument.model.*; +/** + * Example: Click here to see how to use RemoveProjectLockRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221109") +public class RemoveProjectLockRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.aidocument.model.RemoveProjectLockDetails> { + + /** A unique project identifier. */ + private String projectId; + + /** A unique project identifier. */ + public String getProjectId() { + return projectId; + } + /** Request payload to remove lock to the resource. */ + private com.oracle.bmc.aidocument.model.RemoveProjectLockDetails removeProjectLockDetails; + + /** Request payload to remove lock to the resource. */ + public com.oracle.bmc.aidocument.model.RemoveProjectLockDetails getRemoveProjectLockDetails() { + return removeProjectLockDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without the 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 the risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * 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; + } + /** Whether to override locks (if any exist). */ + private Boolean isLockOverride; + + /** Whether to override locks (if any exist). */ + public Boolean getIsLockOverride() { + return isLockOverride; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.aidocument.model.RemoveProjectLockDetails getBody$() { + return removeProjectLockDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RemoveProjectLockRequest, + com.oracle.bmc.aidocument.model.RemoveProjectLockDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** A unique project identifier. */ + private String projectId = null; + + /** + * A unique project identifier. + * + * @param projectId the value to set + * @return this builder instance + */ + public Builder projectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** Request payload to remove lock to the resource. */ + private com.oracle.bmc.aidocument.model.RemoveProjectLockDetails removeProjectLockDetails = + null; + + /** + * Request payload to remove lock to the resource. + * + * @param removeProjectLockDetails the value to set + * @return this builder instance + */ + public Builder removeProjectLockDetails( + com.oracle.bmc.aidocument.model.RemoveProjectLockDetails removeProjectLockDetails) { + this.removeProjectLockDetails = removeProjectLockDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without the 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 the risk of executing that same action again. Retry tokens expire + * after 24 hours, but can be invalidated before then due to conflicting operations. For + * example, if a resource has been deleted and purged from the system, then a retry of the + * original creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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; + } + + /** Whether to override locks (if any exist). */ + private Boolean isLockOverride = null; + + /** + * Whether to override locks (if any exist). + * + * @param isLockOverride the value to set + * @return this builder instance + */ + public Builder isLockOverride(Boolean isLockOverride) { + this.isLockOverride = isLockOverride; + 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(RemoveProjectLockRequest o) { + projectId(o.getProjectId()); + removeProjectLockDetails(o.getRemoveProjectLockDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + isLockOverride(o.getIsLockOverride()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RemoveProjectLockRequest 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 RemoveProjectLockRequest + */ + public RemoveProjectLockRequest build() { + RemoveProjectLockRequest 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.aidocument.model.RemoveProjectLockDetails body) { + removeProjectLockDetails(body); + return this; + } + + /** + * Build the instance of RemoveProjectLockRequest 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 RemoveProjectLockRequest + */ + public RemoveProjectLockRequest buildWithoutInvocationCallback() { + RemoveProjectLockRequest request = new RemoveProjectLockRequest(); + request.projectId = projectId; + request.removeProjectLockDetails = removeProjectLockDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.isLockOverride = isLockOverride; + return request; + // new RemoveProjectLockRequest(projectId, removeProjectLockDetails, opcRetryToken, + // opcRequestId, ifMatch, isLockOverride); + } + } + + /** + * 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() + .projectId(projectId) + .removeProjectLockDetails(removeProjectLockDetails) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .isLockOverride(isLockOverride); + } + + /** + * 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(",projectId=").append(String.valueOf(this.projectId)); + sb.append(",removeProjectLockDetails=") + .append(String.valueOf(this.removeProjectLockDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",isLockOverride=").append(String.valueOf(this.isLockOverride)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RemoveProjectLockRequest)) { + return false; + } + + RemoveProjectLockRequest other = (RemoveProjectLockRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.projectId, other.projectId) + && java.util.Objects.equals( + this.removeProjectLockDetails, other.removeProjectLockDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.projectId == null ? 43 : this.projectId.hashCode()); + result = + (result * PRIME) + + (this.removeProjectLockDetails == null + ? 43 + : this.removeProjectLockDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.isLockOverride == null ? 43 : this.isLockOverride.hashCode()); + return result; + } +} diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/UpdateModelRequest.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/UpdateModelRequest.java index 39bb84bbe40..9ca4e2c74c0 100644 --- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/UpdateModelRequest.java +++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/UpdateModelRequest.java @@ -53,6 +53,13 @@ public String getIfMatch() { public String getOpcRequestId() { return opcRequestId; } + /** Whether to override locks (if any exist). */ + private Boolean isLockOverride; + + /** Whether to override locks (if any exist). */ + public Boolean getIsLockOverride() { + return isLockOverride; + } /** * Alternative accessor for the body parameter. @@ -136,6 +143,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** Whether to override locks (if any exist). */ + private Boolean isLockOverride = null; + + /** + * Whether to override locks (if any exist). + * + * @param isLockOverride the value to set + * @return this builder instance + */ + public Builder isLockOverride(Boolean isLockOverride) { + this.isLockOverride = isLockOverride; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -170,6 +191,7 @@ public Builder copy(UpdateModelRequest o) { updateModelDetails(o.getUpdateModelDetails()); ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); + isLockOverride(o.getIsLockOverride()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -220,8 +242,10 @@ public UpdateModelRequest buildWithoutInvocationCallback() { request.updateModelDetails = updateModelDetails; request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; + request.isLockOverride = isLockOverride; return request; - // new UpdateModelRequest(modelId, updateModelDetails, ifMatch, opcRequestId); + // new UpdateModelRequest(modelId, updateModelDetails, ifMatch, opcRequestId, + // isLockOverride); } } @@ -235,7 +259,8 @@ public Builder toBuilder() { .modelId(modelId) .updateModelDetails(updateModelDetails) .ifMatch(ifMatch) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .isLockOverride(isLockOverride); } /** @@ -256,6 +281,7 @@ public String toString() { sb.append(",updateModelDetails=").append(String.valueOf(this.updateModelDetails)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",isLockOverride=").append(String.valueOf(this.isLockOverride)); sb.append(")"); return sb.toString(); } @@ -274,7 +300,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.modelId, other.modelId) && java.util.Objects.equals(this.updateModelDetails, other.updateModelDetails) && java.util.Objects.equals(this.ifMatch, other.ifMatch) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); } @Override @@ -289,6 +316,9 @@ public int hashCode() { : this.updateModelDetails.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.isLockOverride == null ? 43 : this.isLockOverride.hashCode()); return result; } } diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/UpdateProjectRequest.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/UpdateProjectRequest.java index 95958af8d6b..92d4a69ae78 100644 --- a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/UpdateProjectRequest.java +++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/requests/UpdateProjectRequest.java @@ -53,6 +53,13 @@ public String getIfMatch() { public String getOpcRequestId() { return opcRequestId; } + /** Whether to override locks (if any exist). */ + private Boolean isLockOverride; + + /** Whether to override locks (if any exist). */ + public Boolean getIsLockOverride() { + return isLockOverride; + } /** * Alternative accessor for the body parameter. @@ -136,6 +143,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** Whether to override locks (if any exist). */ + private Boolean isLockOverride = null; + + /** + * Whether to override locks (if any exist). + * + * @param isLockOverride the value to set + * @return this builder instance + */ + public Builder isLockOverride(Boolean isLockOverride) { + this.isLockOverride = isLockOverride; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -170,6 +191,7 @@ public Builder copy(UpdateProjectRequest o) { updateProjectDetails(o.getUpdateProjectDetails()); ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); + isLockOverride(o.getIsLockOverride()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -220,8 +242,10 @@ public UpdateProjectRequest buildWithoutInvocationCallback() { request.updateProjectDetails = updateProjectDetails; request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; + request.isLockOverride = isLockOverride; return request; - // new UpdateProjectRequest(projectId, updateProjectDetails, ifMatch, opcRequestId); + // new UpdateProjectRequest(projectId, updateProjectDetails, ifMatch, opcRequestId, + // isLockOverride); } } @@ -235,7 +259,8 @@ public Builder toBuilder() { .projectId(projectId) .updateProjectDetails(updateProjectDetails) .ifMatch(ifMatch) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .isLockOverride(isLockOverride); } /** @@ -256,6 +281,7 @@ public String toString() { sb.append(",updateProjectDetails=").append(String.valueOf(this.updateProjectDetails)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",isLockOverride=").append(String.valueOf(this.isLockOverride)); sb.append(")"); return sb.toString(); } @@ -274,7 +300,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.projectId, other.projectId) && java.util.Objects.equals(this.updateProjectDetails, other.updateProjectDetails) && java.util.Objects.equals(this.ifMatch, other.ifMatch) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); } @Override @@ -289,6 +316,9 @@ public int hashCode() { : this.updateProjectDetails.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.isLockOverride == null ? 43 : this.isLockOverride.hashCode()); return result; } } diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/responses/AddModelLockResponse.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/responses/AddModelLockResponse.java new file mode 100644 index 00000000000..381bdf65a2e --- /dev/null +++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/responses/AddModelLockResponse.java @@ -0,0 +1,207 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.aidocument.responses; + +import com.oracle.bmc.aidocument.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221109") +public class AddModelLockResponse 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; + } + + /** + * 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; + + /** + * 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 Model} instance. */ + private com.oracle.bmc.aidocument.model.Model model; + + /** + * The returned {@code Model} instance. + * + * @return the value + */ + public com.oracle.bmc.aidocument.model.Model getModel() { + return model; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "model" + }) + private AddModelLockResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.aidocument.model.Model model) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.model = model; + } + + 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; + } + + /** + * 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; + + /** + * 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 Model} instance. */ + private com.oracle.bmc.aidocument.model.Model model; + + /** + * The returned {@code Model} instance. + * + * @param model the value to set + * @return this builder + */ + public Builder model(com.oracle.bmc.aidocument.model.Model model) { + this.model = model; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(AddModelLockResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + model(o.getModel()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public AddModelLockResponse build() { + return new AddModelLockResponse(__httpStatusCode__, headers, etag, opcRequestId, model); + } + } + + /** + * 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(",model=").append(String.valueOf(model)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AddModelLockResponse)) { + return false; + } + + AddModelLockResponse other = (AddModelLockResponse) 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.model, other.model); + } + + @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.model == null ? 43 : this.model.hashCode()); + return result; + } +} diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/responses/AddProjectLockResponse.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/responses/AddProjectLockResponse.java new file mode 100644 index 00000000000..66b6963a5e7 --- /dev/null +++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/responses/AddProjectLockResponse.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.aidocument.responses; + +import com.oracle.bmc.aidocument.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221109") +public class AddProjectLockResponse 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; + } + + /** + * 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; + + /** + * 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 Project} instance. */ + private com.oracle.bmc.aidocument.model.Project project; + + /** + * The returned {@code Project} instance. + * + * @return the value + */ + public com.oracle.bmc.aidocument.model.Project getProject() { + return project; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "project" + }) + private AddProjectLockResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.aidocument.model.Project project) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.project = project; + } + + 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; + } + + /** + * 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; + + /** + * 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 Project} instance. */ + private com.oracle.bmc.aidocument.model.Project project; + + /** + * The returned {@code Project} instance. + * + * @param project the value to set + * @return this builder + */ + public Builder project(com.oracle.bmc.aidocument.model.Project project) { + this.project = project; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(AddProjectLockResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + project(o.getProject()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public AddProjectLockResponse build() { + return new AddProjectLockResponse( + __httpStatusCode__, headers, etag, opcRequestId, project); + } + } + + /** + * 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(",project=").append(String.valueOf(project)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AddProjectLockResponse)) { + return false; + } + + AddProjectLockResponse other = (AddProjectLockResponse) 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.project, other.project); + } + + @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.project == null ? 43 : this.project.hashCode()); + return result; + } +} diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/responses/RemoveModelLockResponse.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/responses/RemoveModelLockResponse.java new file mode 100644 index 00000000000..48a700476d8 --- /dev/null +++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/responses/RemoveModelLockResponse.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.aidocument.responses; + +import com.oracle.bmc.aidocument.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221109") +public class RemoveModelLockResponse 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; + } + + /** + * 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; + + /** + * 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 Model} instance. */ + private com.oracle.bmc.aidocument.model.Model model; + + /** + * The returned {@code Model} instance. + * + * @return the value + */ + public com.oracle.bmc.aidocument.model.Model getModel() { + return model; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "model" + }) + private RemoveModelLockResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.aidocument.model.Model model) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.model = model; + } + + 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; + } + + /** + * 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; + + /** + * 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 Model} instance. */ + private com.oracle.bmc.aidocument.model.Model model; + + /** + * The returned {@code Model} instance. + * + * @param model the value to set + * @return this builder + */ + public Builder model(com.oracle.bmc.aidocument.model.Model model) { + this.model = model; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(RemoveModelLockResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + model(o.getModel()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public RemoveModelLockResponse build() { + return new RemoveModelLockResponse( + __httpStatusCode__, headers, etag, opcRequestId, model); + } + } + + /** + * 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(",model=").append(String.valueOf(model)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RemoveModelLockResponse)) { + return false; + } + + RemoveModelLockResponse other = (RemoveModelLockResponse) 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.model, other.model); + } + + @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.model == null ? 43 : this.model.hashCode()); + return result; + } +} diff --git a/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/responses/RemoveProjectLockResponse.java b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/responses/RemoveProjectLockResponse.java new file mode 100644 index 00000000000..5a8e52cd813 --- /dev/null +++ b/bmc-aidocument/src/main/java/com/oracle/bmc/aidocument/responses/RemoveProjectLockResponse.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.aidocument.responses; + +import com.oracle.bmc.aidocument.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221109") +public class RemoveProjectLockResponse 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; + } + + /** + * 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; + + /** + * 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 Project} instance. */ + private com.oracle.bmc.aidocument.model.Project project; + + /** + * The returned {@code Project} instance. + * + * @return the value + */ + public com.oracle.bmc.aidocument.model.Project getProject() { + return project; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "project" + }) + private RemoveProjectLockResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.aidocument.model.Project project) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.project = project; + } + + 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; + } + + /** + * 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; + + /** + * 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 Project} instance. */ + private com.oracle.bmc.aidocument.model.Project project; + + /** + * The returned {@code Project} instance. + * + * @param project the value to set + * @return this builder + */ + public Builder project(com.oracle.bmc.aidocument.model.Project project) { + this.project = project; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(RemoveProjectLockResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + project(o.getProject()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public RemoveProjectLockResponse build() { + return new RemoveProjectLockResponse( + __httpStatusCode__, headers, etag, opcRequestId, project); + } + } + + /** + * 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(",project=").append(String.valueOf(project)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RemoveProjectLockResponse)) { + return false; + } + + RemoveProjectLockResponse other = (RemoveProjectLockResponse) 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.project, other.project); + } + + @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.project == null ? 43 : this.project.hashCode()); + return result; + } +} diff --git a/bmc-aidocument/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-aidocument/reflect-config.json b/bmc-aidocument/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-aidocument/reflect-config.json index 474238844c0..79933f4617c 100644 --- a/bmc-aidocument/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-aidocument/reflect-config.json +++ b/bmc-aidocument/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-aidocument/reflect-config.json @@ -5,6 +5,46 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aidocument.model.AddModelLockDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aidocument.model.AddModelLockDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aidocument.model.AddModelLockDetails$Type", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aidocument.model.AddProjectLockDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aidocument.model.AddProjectLockDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aidocument.model.AddProjectLockDetails$Type", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.aidocument.model.AnalyzeDocumentDetails", @@ -918,6 +958,66 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aidocument.model.RemoveModelLockDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aidocument.model.RemoveModelLockDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aidocument.model.RemoveModelLockDetails$Type", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aidocument.model.RemoveProjectLockDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aidocument.model.RemoveProjectLockDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aidocument.model.RemoveProjectLockDetails$Type", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aidocument.model.ResourceLock", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aidocument.model.ResourceLock$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aidocument.model.ResourceLock$Type", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.aidocument.model.SortOrder", diff --git a/bmc-ailanguage/pom.xml b/bmc-ailanguage/pom.xml index fdb110a0dd5..7969692f2d5 100644 --- a/bmc-ailanguage/pom.xml +++ b/bmc-ailanguage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-ailanguage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-aispeech/pom.xml b/bmc-aispeech/pom.xml index d3ecb4bf14e..21b558ac886 100644 --- a/bmc-aispeech/pom.xml +++ b/bmc-aispeech/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-aispeech @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-aivision/pom.xml b/bmc-aivision/pom.xml index 3aac80f5f8c..eef99d49ca1 100644 --- a/bmc-aivision/pom.xml +++ b/bmc-aivision/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-aivision @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-analytics/pom.xml b/bmc-analytics/pom.xml index a53d5790be3..5ae578c224a 100644 --- a/bmc-analytics/pom.xml +++ b/bmc-analytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-analytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-announcementsservice/pom.xml b/bmc-announcementsservice/pom.xml index 46f4d5443ea..47e2f58f4c5 100644 --- a/bmc-announcementsservice/pom.xml +++ b/bmc-announcementsservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-announcementsservice @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/Announcement.java b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/Announcement.java index f2867b7e85f..18cde9ccb7c 100644 --- a/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/Announcement.java +++ b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/Announcement.java @@ -86,6 +86,23 @@ public interface Announcement extends AutoCloseable { */ GetAnnouncementResponse getAnnouncement(GetAnnouncementRequest request); + /** + * Gets the compartment details of an announcement. + * + * @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 + * GetAnnouncementCompartment API. + */ + GetAnnouncementCompartmentResponse getAnnouncementCompartment( + GetAnnouncementCompartmentRequest request); + /** * Gets information about whether a specific announcement was acknowledged by a user. * diff --git a/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/AnnouncementAsync.java b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/AnnouncementAsync.java index a07e49975a3..e61d6ffb3e1 100644 --- a/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/AnnouncementAsync.java +++ b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/AnnouncementAsync.java @@ -81,6 +81,22 @@ java.util.concurrent.Future getAnnouncement( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Gets the compartment details of an announcement. + * + * @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 getAnnouncementCompartment( + GetAnnouncementCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetAnnouncementCompartmentRequest, GetAnnouncementCompartmentResponse> + handler); + /** * Gets information about whether a specific announcement was acknowledged by a user. * diff --git a/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/AnnouncementAsyncClient.java b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/AnnouncementAsyncClient.java index b9b6af24422..89fcb4b66f2 100644 --- a/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/AnnouncementAsyncClient.java +++ b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/AnnouncementAsyncClient.java @@ -125,6 +125,41 @@ public java.util.concurrent.Future getAnnouncement( .callAsync(handler); } + @Override + public java.util.concurrent.Future + getAnnouncementCompartment( + GetAnnouncementCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetAnnouncementCompartmentRequest, + GetAnnouncementCompartmentResponse> + handler) { + + Validate.notBlank(request.getAnnouncementId(), "announcementId must not be blank"); + + return clientCall(request, GetAnnouncementCompartmentResponse::builder) + .logger(LOG, "getAnnouncementCompartment") + .serviceDetails( + "Announcement", + "GetAnnouncementCompartment", + "https://docs.oracle.com/iaas/api/#/en/announcements/0.0.1/AnnouncementCompartment/GetAnnouncementCompartment") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetAnnouncementCompartmentRequest::builder) + .basePath("/20180904") + .appendPathParam("announcements") + .appendPathParam(request.getAnnouncementId()) + .appendPathParam("compartment") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.announcementsservice.model.AnnouncementCompartment.class, + GetAnnouncementCompartmentResponse.Builder::announcementCompartment) + .handleResponseHeaderString( + "opc-request-id", GetAnnouncementCompartmentResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", GetAnnouncementCompartmentResponse.Builder::etag) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getAnnouncementUserStatus( GetAnnouncementUserStatusRequest request, diff --git a/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/AnnouncementClient.java b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/AnnouncementClient.java index 0c81ae5f6df..18ec02e8da5 100644 --- a/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/AnnouncementClient.java +++ b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/AnnouncementClient.java @@ -115,6 +115,36 @@ public GetAnnouncementResponse getAnnouncement(GetAnnouncementRequest request) { .callSync(); } + @Override + public GetAnnouncementCompartmentResponse getAnnouncementCompartment( + GetAnnouncementCompartmentRequest request) { + + Validate.notBlank(request.getAnnouncementId(), "announcementId must not be blank"); + + return clientCall(request, GetAnnouncementCompartmentResponse::builder) + .logger(LOG, "getAnnouncementCompartment") + .serviceDetails( + "Announcement", + "GetAnnouncementCompartment", + "https://docs.oracle.com/iaas/api/#/en/announcements/0.0.1/AnnouncementCompartment/GetAnnouncementCompartment") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetAnnouncementCompartmentRequest::builder) + .basePath("/20180904") + .appendPathParam("announcements") + .appendPathParam(request.getAnnouncementId()) + .appendPathParam("compartment") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.announcementsservice.model.AnnouncementCompartment.class, + GetAnnouncementCompartmentResponse.Builder::announcementCompartment) + .handleResponseHeaderString( + "opc-request-id", GetAnnouncementCompartmentResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", GetAnnouncementCompartmentResponse.Builder::etag) + .callSync(); + } + @Override public GetAnnouncementUserStatusResponse getAnnouncementUserStatus( GetAnnouncementUserStatusRequest request) { diff --git a/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/Service.java b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/Service.java new file mode 100644 index 00000000000..95f529994f0 --- /dev/null +++ b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/Service.java @@ -0,0 +1,90 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.announcementsservice; + +import com.oracle.bmc.announcementsservice.requests.*; +import com.oracle.bmc.announcementsservice.responses.*; + +/** + * Manage Oracle Cloud Infrastructure console announcements. 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: 0.0.1") +public interface Service 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); + + /** + * List all active services + * + * @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 ListServices API. + */ + ListServicesResponse listServices(ListServicesRequest request); + + /** + * Gets the pre-configured paginators available for list operations in this service which may + * return multiple pages of data. These paginators provide an {@link java.lang.Iterable} + * 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. + */ + ServicePaginators getPaginators(); +} diff --git a/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/ServiceAsync.java b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/ServiceAsync.java new file mode 100644 index 00000000000..3cf347936dc --- /dev/null +++ b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/ServiceAsync.java @@ -0,0 +1,76 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.announcementsservice; + +import com.oracle.bmc.announcementsservice.requests.*; +import com.oracle.bmc.announcementsservice.responses.*; + +/** Manage Oracle Cloud Infrastructure console announcements. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 0.0.1") +public interface ServiceAsync 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); + + /** + * List all active services + * + * @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 listServices( + ListServicesRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); +} diff --git a/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/ServiceAsyncClient.java b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/ServiceAsyncClient.java new file mode 100644 index 00000000000..ef5efea8941 --- /dev/null +++ b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/ServiceAsyncClient.java @@ -0,0 +1,291 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.announcementsservice; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.announcementsservice.requests.*; +import com.oracle.bmc.announcementsservice.responses.*; + +import java.util.Objects; + +/** + * Async client implementation for Service 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: 0.0.1") +public class ServiceAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient + implements ServiceAsync { + /** Service instance for Service. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName("SERVICE") + .serviceEndpointPrefix("announcements") + .serviceEndpointTemplate("https://announcements.{region}.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ServiceAsyncClient.class); + + ServiceAsyncClient( + 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 = "announcementsservice"; + 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 ServiceAsyncClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new ServiceAsyncClient(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 listServices( + ListServicesRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListServicesResponse::builder) + .logger(LOG, "listServices") + .serviceDetails( + "Service", + "ListServices", + "https://docs.oracle.com/iaas/api/#/en/announcements/0.0.1/Service/ListServices") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListServicesRequest::builder) + .basePath("/20180904") + .appendPathParam("services") + .appendEnumQueryParam("platformType", request.getPlatformType()) + .appendEnumQueryParam("commsManagerName", request.getCommsManagerName()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.announcementsservice.model.ServicesCollection.class, + ListServicesResponse.Builder::servicesCollection) + .handleResponseHeaderString( + "opc-next-page", ListServicesResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListServicesResponse.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 ServiceAsyncClient( + 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 ServiceAsyncClient( + 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 ServiceAsyncClient( + 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 ServiceAsyncClient( + 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 ServiceAsyncClient( + 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 ServiceAsyncClient( + 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 ServiceAsyncClient( + 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-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/ServiceClient.java b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/ServiceClient.java new file mode 100644 index 00000000000..08e7cb6de84 --- /dev/null +++ b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/ServiceClient.java @@ -0,0 +1,286 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.announcementsservice; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.announcementsservice.requests.*; +import com.oracle.bmc.announcementsservice.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: 0.0.1") +public class ServiceClient extends com.oracle.bmc.http.internal.BaseSyncClient implements Service { + /** Service instance for Service. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName("SERVICE") + .serviceEndpointPrefix("announcements") + .serviceEndpointTemplate("https://announcements.{region}.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ServiceClient.class); + + private final ServicePaginators paginators; + + ServiceClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + super( + builder, + authenticationDetailsProvider, + CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION); + + this.paginators = new ServicePaginators(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 Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "announcementsservice"; + 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 ServiceClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new ServiceClient(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 ListServicesResponse listServices(ListServicesRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListServicesResponse::builder) + .logger(LOG, "listServices") + .serviceDetails( + "Service", + "ListServices", + "https://docs.oracle.com/iaas/api/#/en/announcements/0.0.1/Service/ListServices") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListServicesRequest::builder) + .basePath("/20180904") + .appendPathParam("services") + .appendEnumQueryParam("platformType", request.getPlatformType()) + .appendEnumQueryParam("commsManagerName", request.getCommsManagerName()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.announcementsservice.model.ServicesCollection.class, + ListServicesResponse.Builder::servicesCollection) + .handleResponseHeaderString( + "opc-next-page", ListServicesResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListServicesResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ServicePaginators 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 ServiceClient( + 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 ServiceClient( + 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 ServiceClient( + 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 ServiceClient( + 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 ServiceClient( + 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 ServiceClient( + 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 ServiceClient( + 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-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/ServicePaginators.java b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/ServicePaginators.java new file mode 100644 index 00000000000..27003af1b71 --- /dev/null +++ b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/ServicePaginators.java @@ -0,0 +1,158 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.announcementsservice; + +import com.oracle.bmc.announcementsservice.requests.*; +import com.oracle.bmc.announcementsservice.responses.*; + +/** + * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface + * to any list operations of Service where multiple pages of data may be fetched. Two styles of + * iteration are supported: + * + *

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

As an example, if we were using the ListUsers operation in IdentityService, then the {@link + * java.lang.Iterable} returned by calling a ResponseIterator method would iterate over the + * ListUsersResponse objects returned by each ListUsers call, whereas the {@link java.lang.Iterable} + * returned by calling a RecordIterator method would iterate over the User records and we don't have + * to deal with ListUsersResponse objects at all. In either case, pagination will be automatically + * handled so we can iterate until there are no more responses or no more resources/records + * available. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 0.0.1") +public class ServicePaginators { + private final Service client; + + public ServicePaginators(Service client) { + this.client = client; + } + + /** + * Creates a new iterable which will iterate over the responses received from the listServices + * 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 listServicesResponseIterator( + final ListServicesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListServicesRequest.Builder, ListServicesRequest, ListServicesResponse>( + new java.util.function.Supplier() { + @Override + public ListServicesRequest.Builder get() { + return ListServicesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListServicesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListServicesRequest.Builder>, + ListServicesRequest>() { + @Override + public ListServicesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListServicesRequest.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 ListServicesResponse apply(ListServicesRequest request) { + return client.listServices(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.announcementsservice.model.ServiceSummary} objects contained in responses from + * the listServices 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.announcementsservice.model.ServiceSummary} objects contained in responses + * received from the service. + */ + public Iterable + listServicesRecordIterator(final ListServicesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListServicesRequest.Builder, + ListServicesRequest, + ListServicesResponse, + com.oracle.bmc.announcementsservice.model.ServiceSummary>( + new java.util.function.Supplier() { + @Override + public ListServicesRequest.Builder get() { + return ListServicesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListServicesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListServicesRequest.Builder>, + ListServicesRequest>() { + @Override + public ListServicesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListServicesRequest.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 ListServicesResponse apply(ListServicesRequest request) { + return client.listServices(request); + } + }, + new java.util.function.Function< + ListServicesResponse, + java.util.List< + com.oracle.bmc.announcementsservice.model.ServiceSummary>>() { + @Override + public java.util.List + apply(ListServicesResponse response) { + return response.getServicesCollection().getItems(); + } + }); + } +} diff --git a/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/model/AnnouncementCompartment.java b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/model/AnnouncementCompartment.java new file mode 100644 index 00000000000..66888f4fab4 --- /dev/null +++ b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/model/AnnouncementCompartment.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.announcementsservice.model; + +/** + * Compartment details of an announcement.
+ * 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: 0.0.1") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AnnouncementCompartment.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AnnouncementCompartment + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId"}) + public AnnouncementCompartment(String compartmentId) { + super(); + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the compartment to which the announcement belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment to which the announcement belongs to. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AnnouncementCompartment build() { + AnnouncementCompartment model = new AnnouncementCompartment(this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AnnouncementCompartment model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the compartment to which the announcement belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment to which the announcement belongs to. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AnnouncementCompartment("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AnnouncementCompartment)) { + return false; + } + + AnnouncementCompartment other = (AnnouncementCompartment) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/model/BaseAnnouncement.java b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/model/BaseAnnouncement.java index 933ab1bab56..878ddddcef5 100644 --- a/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/model/BaseAnnouncement.java +++ b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/model/BaseAnnouncement.java @@ -519,6 +519,7 @@ public String getEnvironmentName() { public enum PlatformType implements com.oracle.bmc.http.internal.BmcEnum { Iaas("IAAS"), Saas("SAAS"), + Paas("PAAS"), ; private final String value; diff --git a/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/model/BaseService.java b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/model/BaseService.java new file mode 100644 index 00000000000..b9c6cc84975 --- /dev/null +++ b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/model/BaseService.java @@ -0,0 +1,334 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.announcementsservice.model; + +/** + * Object representing a single 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: 0.0.1") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = BaseService.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = Service.class, name = "Service"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ServiceSummary.class, + name = "ServiceSummary"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = NotificationsSummary.class, + name = "NotificationsSummary") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class BaseService extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "serviceName", + "shortName", + "teamName", + "platformType", + "commsManagerName", + "excludedRealms", + "previousServiceNames", + "timeCreated", + "timeUpdated", + "lifecycleState" + }) + protected BaseService( + String id, + String serviceName, + String shortName, + String teamName, + PlatformType platformType, + CommsManagerName commsManagerName, + java.util.List excludedRealms, + java.util.List previousServiceNames, + java.util.Date timeCreated, + java.util.Date timeUpdated, + LifecycleState lifecycleState) { + super(); + this.id = id; + this.serviceName = serviceName; + this.shortName = shortName; + this.teamName = teamName; + this.platformType = platformType; + this.commsManagerName = commsManagerName; + this.excludedRealms = excludedRealms; + this.previousServiceNames = previousServiceNames; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleState = lifecycleState; + } + + /** ID of the service object. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * ID of the service object. + * + * @return the value + */ + public String getId() { + return id; + } + + /** Name of the service represented by this object. */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceName") + private final String serviceName; + + /** + * Name of the service represented by this object. + * + * @return the value + */ + public String getServiceName() { + return serviceName; + } + + /** Short name of the team to whom this service object is related. */ + @com.fasterxml.jackson.annotation.JsonProperty("shortName") + private final String shortName; + + /** + * Short name of the team to whom this service object is related. + * + * @return the value + */ + public String getShortName() { + return shortName; + } + + /** Team name to which this service object is related. */ + @com.fasterxml.jackson.annotation.JsonProperty("teamName") + private final String teamName; + + /** + * Team name to which this service object is related. + * + * @return the value + */ + public String getTeamName() { + return teamName; + } + + /** The platform type this service object is related to. */ + @com.fasterxml.jackson.annotation.JsonProperty("platformType") + private final PlatformType platformType; + + /** + * The platform type this service object is related to. + * + * @return the value + */ + public PlatformType getPlatformType() { + return platformType; + } + + /** Name of the comms manager team that manages Notifications to this service. */ + @com.fasterxml.jackson.annotation.JsonProperty("commsManagerName") + private final CommsManagerName commsManagerName; + + /** + * Name of the comms manager team that manages Notifications to this service. + * + * @return the value + */ + public CommsManagerName getCommsManagerName() { + return commsManagerName; + } + + /** The list of realms where this service is not available to be used. */ + @com.fasterxml.jackson.annotation.JsonProperty("excludedRealms") + private final java.util.List excludedRealms; + + /** + * The list of realms where this service is not available to be used. + * + * @return the value + */ + public java.util.List getExcludedRealms() { + return excludedRealms; + } + + /** The list of previously used names for this service object. */ + @com.fasterxml.jackson.annotation.JsonProperty("previousServiceNames") + private final java.util.List previousServiceNames; + + /** + * The list of previously used names for this service object. + * + * @return the value + */ + public java.util.List getPreviousServiceNames() { + return previousServiceNames; + } + + /** The date and time when the service object was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time when the service object was created. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The date and time when the service object was updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time when the service object was updated. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** Current state of the service object. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Active("ACTIVE"), + Deleted("DELETED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + 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); + } + throw new IllegalArgumentException("Invalid LifecycleState: " + key); + } + }; + /** Current state of the service object. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * Current state of the service object. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("BaseService("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", serviceName=").append(String.valueOf(this.serviceName)); + sb.append(", shortName=").append(String.valueOf(this.shortName)); + sb.append(", teamName=").append(String.valueOf(this.teamName)); + sb.append(", platformType=").append(String.valueOf(this.platformType)); + sb.append(", commsManagerName=").append(String.valueOf(this.commsManagerName)); + sb.append(", excludedRealms=").append(String.valueOf(this.excludedRealms)); + sb.append(", previousServiceNames=").append(String.valueOf(this.previousServiceNames)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof BaseService)) { + return false; + } + + BaseService other = (BaseService) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.serviceName, other.serviceName) + && java.util.Objects.equals(this.shortName, other.shortName) + && java.util.Objects.equals(this.teamName, other.teamName) + && java.util.Objects.equals(this.platformType, other.platformType) + && java.util.Objects.equals(this.commsManagerName, other.commsManagerName) + && java.util.Objects.equals(this.excludedRealms, other.excludedRealms) + && java.util.Objects.equals(this.previousServiceNames, other.previousServiceNames) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.serviceName == null ? 43 : this.serviceName.hashCode()); + result = (result * PRIME) + (this.shortName == null ? 43 : this.shortName.hashCode()); + result = (result * PRIME) + (this.teamName == null ? 43 : this.teamName.hashCode()); + result = (result * PRIME) + (this.platformType == null ? 43 : this.platformType.hashCode()); + result = + (result * PRIME) + + (this.commsManagerName == null ? 43 : this.commsManagerName.hashCode()); + result = + (result * PRIME) + + (this.excludedRealms == null ? 43 : this.excludedRealms.hashCode()); + result = + (result * PRIME) + + (this.previousServiceNames == null + ? 43 + : this.previousServiceNames.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/model/CommsManagerName.java b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/model/CommsManagerName.java new file mode 100644 index 00000000000..1de64a10846 --- /dev/null +++ b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/model/CommsManagerName.java @@ -0,0 +1,55 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.announcementsservice.model; + +/** Name of the comms manager team that manages Notifications to this service. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 0.0.1") +public enum CommsManagerName implements com.oracle.bmc.http.internal.BmcEnum { + Cn("CN"), + Fusion("FUSION"), + As("AS"), + Erf("ERF"), + + /** + * 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(CommsManagerName.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CommsManagerName v : CommsManagerName.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + CommsManagerName(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CommsManagerName create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'CommsManagerName', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/model/NotificationsSummary.java b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/model/NotificationsSummary.java new file mode 100644 index 00000000000..89bc22f193a --- /dev/null +++ b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/model/NotificationsSummary.java @@ -0,0 +1,265 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.announcementsservice.model; + +/** + * Summary of notification object, return by List API
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 0.0.1") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = NotificationsSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class NotificationsSummary extends BaseService { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("serviceName") + private String serviceName; + + public Builder serviceName(String serviceName) { + this.serviceName = serviceName; + this.__explicitlySet__.add("serviceName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("shortName") + private String shortName; + + public Builder shortName(String shortName) { + this.shortName = shortName; + this.__explicitlySet__.add("shortName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("teamName") + private String teamName; + + public Builder teamName(String teamName) { + this.teamName = teamName; + this.__explicitlySet__.add("teamName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("platformType") + private PlatformType platformType; + + public Builder platformType(PlatformType platformType) { + this.platformType = platformType; + this.__explicitlySet__.add("platformType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("commsManagerName") + private CommsManagerName commsManagerName; + + public Builder commsManagerName(CommsManagerName commsManagerName) { + this.commsManagerName = commsManagerName; + this.__explicitlySet__.add("commsManagerName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("excludedRealms") + private java.util.List excludedRealms; + + public Builder excludedRealms(java.util.List excludedRealms) { + this.excludedRealms = excludedRealms; + this.__explicitlySet__.add("excludedRealms"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("previousServiceNames") + private java.util.List previousServiceNames; + + public Builder previousServiceNames(java.util.List previousServiceNames) { + this.previousServiceNames = previousServiceNames; + this.__explicitlySet__.add("previousServiceNames"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + 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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public NotificationsSummary build() { + NotificationsSummary model = + new NotificationsSummary( + this.id, + this.serviceName, + this.shortName, + this.teamName, + this.platformType, + this.commsManagerName, + this.excludedRealms, + this.previousServiceNames, + this.timeCreated, + this.timeUpdated, + this.lifecycleState); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(NotificationsSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("serviceName")) { + this.serviceName(model.getServiceName()); + } + if (model.wasPropertyExplicitlySet("shortName")) { + this.shortName(model.getShortName()); + } + if (model.wasPropertyExplicitlySet("teamName")) { + this.teamName(model.getTeamName()); + } + if (model.wasPropertyExplicitlySet("platformType")) { + this.platformType(model.getPlatformType()); + } + if (model.wasPropertyExplicitlySet("commsManagerName")) { + this.commsManagerName(model.getCommsManagerName()); + } + if (model.wasPropertyExplicitlySet("excludedRealms")) { + this.excludedRealms(model.getExcludedRealms()); + } + if (model.wasPropertyExplicitlySet("previousServiceNames")) { + this.previousServiceNames(model.getPreviousServiceNames()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public NotificationsSummary( + String id, + String serviceName, + String shortName, + String teamName, + PlatformType platformType, + CommsManagerName commsManagerName, + java.util.List excludedRealms, + java.util.List previousServiceNames, + java.util.Date timeCreated, + java.util.Date timeUpdated, + LifecycleState lifecycleState) { + super( + id, + serviceName, + shortName, + teamName, + platformType, + commsManagerName, + excludedRealms, + previousServiceNames, + timeCreated, + timeUpdated, + lifecycleState); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("NotificationsSummary("); + 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 NotificationsSummary)) { + return false; + } + + NotificationsSummary other = (NotificationsSummary) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/model/PlatformType.java b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/model/PlatformType.java new file mode 100644 index 00000000000..f60f3462bbc --- /dev/null +++ b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/model/PlatformType.java @@ -0,0 +1,54 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.announcementsservice.model; + +/** Platform type this announcement is related to */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 0.0.1") +public enum PlatformType implements com.oracle.bmc.http.internal.BmcEnum { + Iaas("IAAS"), + Saas("SAAS"), + Paas("PAAS"), + + /** + * 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(PlatformType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PlatformType v : PlatformType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + PlatformType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PlatformType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'PlatformType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/model/Service.java b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/model/Service.java new file mode 100644 index 00000000000..cef3a20cca3 --- /dev/null +++ b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/model/Service.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.announcementsservice.model; + +/** + * Summary of the service object.
+ * 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: 0.0.1") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Service.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class Service extends BaseService { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("serviceName") + private String serviceName; + + public Builder serviceName(String serviceName) { + this.serviceName = serviceName; + this.__explicitlySet__.add("serviceName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("shortName") + private String shortName; + + public Builder shortName(String shortName) { + this.shortName = shortName; + this.__explicitlySet__.add("shortName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("teamName") + private String teamName; + + public Builder teamName(String teamName) { + this.teamName = teamName; + this.__explicitlySet__.add("teamName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("platformType") + private PlatformType platformType; + + public Builder platformType(PlatformType platformType) { + this.platformType = platformType; + this.__explicitlySet__.add("platformType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("commsManagerName") + private CommsManagerName commsManagerName; + + public Builder commsManagerName(CommsManagerName commsManagerName) { + this.commsManagerName = commsManagerName; + this.__explicitlySet__.add("commsManagerName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("excludedRealms") + private java.util.List excludedRealms; + + public Builder excludedRealms(java.util.List excludedRealms) { + this.excludedRealms = excludedRealms; + this.__explicitlySet__.add("excludedRealms"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("previousServiceNames") + private java.util.List previousServiceNames; + + public Builder previousServiceNames(java.util.List previousServiceNames) { + this.previousServiceNames = previousServiceNames; + this.__explicitlySet__.add("previousServiceNames"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + 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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Service build() { + Service model = + new Service( + this.id, + this.serviceName, + this.shortName, + this.teamName, + this.platformType, + this.commsManagerName, + this.excludedRealms, + this.previousServiceNames, + this.timeCreated, + this.timeUpdated, + this.lifecycleState); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Service model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("serviceName")) { + this.serviceName(model.getServiceName()); + } + if (model.wasPropertyExplicitlySet("shortName")) { + this.shortName(model.getShortName()); + } + if (model.wasPropertyExplicitlySet("teamName")) { + this.teamName(model.getTeamName()); + } + if (model.wasPropertyExplicitlySet("platformType")) { + this.platformType(model.getPlatformType()); + } + if (model.wasPropertyExplicitlySet("commsManagerName")) { + this.commsManagerName(model.getCommsManagerName()); + } + if (model.wasPropertyExplicitlySet("excludedRealms")) { + this.excludedRealms(model.getExcludedRealms()); + } + if (model.wasPropertyExplicitlySet("previousServiceNames")) { + this.previousServiceNames(model.getPreviousServiceNames()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public Service( + String id, + String serviceName, + String shortName, + String teamName, + PlatformType platformType, + CommsManagerName commsManagerName, + java.util.List excludedRealms, + java.util.List previousServiceNames, + java.util.Date timeCreated, + java.util.Date timeUpdated, + LifecycleState lifecycleState) { + super( + id, + serviceName, + shortName, + teamName, + platformType, + commsManagerName, + excludedRealms, + previousServiceNames, + timeCreated, + timeUpdated, + lifecycleState); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Service("); + 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 Service)) { + return false; + } + + Service other = (Service) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/model/ServiceSummary.java b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/model/ServiceSummary.java new file mode 100644 index 00000000000..d9a77a02e55 --- /dev/null +++ b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/model/ServiceSummary.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.announcementsservice.model; + +/** + * Summary of the service object.
+ * 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: 0.0.1") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ServiceSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ServiceSummary extends BaseService { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("serviceName") + private String serviceName; + + public Builder serviceName(String serviceName) { + this.serviceName = serviceName; + this.__explicitlySet__.add("serviceName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("shortName") + private String shortName; + + public Builder shortName(String shortName) { + this.shortName = shortName; + this.__explicitlySet__.add("shortName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("teamName") + private String teamName; + + public Builder teamName(String teamName) { + this.teamName = teamName; + this.__explicitlySet__.add("teamName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("platformType") + private PlatformType platformType; + + public Builder platformType(PlatformType platformType) { + this.platformType = platformType; + this.__explicitlySet__.add("platformType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("commsManagerName") + private CommsManagerName commsManagerName; + + public Builder commsManagerName(CommsManagerName commsManagerName) { + this.commsManagerName = commsManagerName; + this.__explicitlySet__.add("commsManagerName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("excludedRealms") + private java.util.List excludedRealms; + + public Builder excludedRealms(java.util.List excludedRealms) { + this.excludedRealms = excludedRealms; + this.__explicitlySet__.add("excludedRealms"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("previousServiceNames") + private java.util.List previousServiceNames; + + public Builder previousServiceNames(java.util.List previousServiceNames) { + this.previousServiceNames = previousServiceNames; + this.__explicitlySet__.add("previousServiceNames"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + 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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ServiceSummary build() { + ServiceSummary model = + new ServiceSummary( + this.id, + this.serviceName, + this.shortName, + this.teamName, + this.platformType, + this.commsManagerName, + this.excludedRealms, + this.previousServiceNames, + this.timeCreated, + this.timeUpdated, + this.lifecycleState); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ServiceSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("serviceName")) { + this.serviceName(model.getServiceName()); + } + if (model.wasPropertyExplicitlySet("shortName")) { + this.shortName(model.getShortName()); + } + if (model.wasPropertyExplicitlySet("teamName")) { + this.teamName(model.getTeamName()); + } + if (model.wasPropertyExplicitlySet("platformType")) { + this.platformType(model.getPlatformType()); + } + if (model.wasPropertyExplicitlySet("commsManagerName")) { + this.commsManagerName(model.getCommsManagerName()); + } + if (model.wasPropertyExplicitlySet("excludedRealms")) { + this.excludedRealms(model.getExcludedRealms()); + } + if (model.wasPropertyExplicitlySet("previousServiceNames")) { + this.previousServiceNames(model.getPreviousServiceNames()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ServiceSummary( + String id, + String serviceName, + String shortName, + String teamName, + PlatformType platformType, + CommsManagerName commsManagerName, + java.util.List excludedRealms, + java.util.List previousServiceNames, + java.util.Date timeCreated, + java.util.Date timeUpdated, + LifecycleState lifecycleState) { + super( + id, + serviceName, + shortName, + teamName, + platformType, + commsManagerName, + excludedRealms, + previousServiceNames, + timeCreated, + timeUpdated, + lifecycleState); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ServiceSummary("); + 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 ServiceSummary)) { + return false; + } + + ServiceSummary other = (ServiceSummary) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/model/ServicesCollection.java b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/model/ServicesCollection.java new file mode 100644 index 00000000000..74f8a5e236e --- /dev/null +++ b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/model/ServicesCollection.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.announcementsservice.model; + +/** + * Collection of all services.
+ * 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: 0.0.1") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ServicesCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ServicesCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public ServicesCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of all services. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of all services. + * + * @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 ServicesCollection build() { + ServicesCollection model = new ServicesCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ServicesCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of all services. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of all services. + * + * @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("ServicesCollection("); + 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 ServicesCollection)) { + return false; + } + + ServicesCollection other = (ServicesCollection) 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-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/requests/GetAnnouncementCompartmentRequest.java b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/requests/GetAnnouncementCompartmentRequest.java new file mode 100644 index 00000000000..fa04b69a034 --- /dev/null +++ b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/requests/GetAnnouncementCompartmentRequest.java @@ -0,0 +1,204 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.announcementsservice.requests; + +import com.oracle.bmc.announcementsservice.model.*; +/** + * Example: Click here to see how to use + * GetAnnouncementCompartmentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 0.0.1") +public class GetAnnouncementCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the announcement. */ + private String announcementId; + + /** The OCID of the announcement. */ + public String getAnnouncementId() { + return announcementId; + } + /** + * The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the complete request ID. + */ + private String opcRequestId; + + /** + * The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the complete request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetAnnouncementCompartmentRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the announcement. */ + private String announcementId = null; + + /** + * The OCID of the announcement. + * + * @param announcementId the value to set + * @return this builder instance + */ + public Builder announcementId(String announcementId) { + this.announcementId = announcementId; + return this; + } + + /** + * The unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the complete request ID. + */ + private String opcRequestId = null; + + /** + * The unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the complete request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetAnnouncementCompartmentRequest o) { + announcementId(o.getAnnouncementId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetAnnouncementCompartmentRequest 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 GetAnnouncementCompartmentRequest + */ + public GetAnnouncementCompartmentRequest build() { + GetAnnouncementCompartmentRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetAnnouncementCompartmentRequest 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 GetAnnouncementCompartmentRequest + */ + public GetAnnouncementCompartmentRequest buildWithoutInvocationCallback() { + GetAnnouncementCompartmentRequest request = new GetAnnouncementCompartmentRequest(); + request.announcementId = announcementId; + request.opcRequestId = opcRequestId; + return request; + // new GetAnnouncementCompartmentRequest(announcementId, 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().announcementId(announcementId).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(",announcementId=").append(String.valueOf(this.announcementId)); + 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 GetAnnouncementCompartmentRequest)) { + return false; + } + + GetAnnouncementCompartmentRequest other = (GetAnnouncementCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.announcementId, other.announcementId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.announcementId == null ? 43 : this.announcementId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/requests/ListAnnouncementsRequest.java b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/requests/ListAnnouncementsRequest.java index 36c5aa96816..8ecd781c0c0 100644 --- a/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/requests/ListAnnouncementsRequest.java +++ b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/requests/ListAnnouncementsRequest.java @@ -229,6 +229,7 @@ public String getService() { public enum PlatformType implements com.oracle.bmc.http.internal.BmcEnum { Iaas("IAAS"), Saas("SAAS"), + Paas("PAAS"), ; private final String value; diff --git a/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/requests/ListServicesRequest.java b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/requests/ListServicesRequest.java new file mode 100644 index 00000000000..f6b8bc6c267 --- /dev/null +++ b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/requests/ListServicesRequest.java @@ -0,0 +1,438 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.announcementsservice.requests; + +import com.oracle.bmc.announcementsservice.model.*; +/** + * Example: Click here to see how to use ListServicesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 0.0.1") +public class ListServicesRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the compartment. */ + private String compartmentId; + + /** The OCID of the compartment. */ + public String getCompartmentId() { + return compartmentId; + } + /** A filter to return only announcements affecting a specific platform. */ + private PlatformType platformType; + + /** A filter to return only announcements affecting a specific platform. */ + public enum PlatformType implements com.oracle.bmc.http.internal.BmcEnum { + Iaas("IAAS"), + Saas("SAAS"), + Paas("PAAS"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PlatformType v : PlatformType.values()) { + map.put(v.getValue(), v); + } + } + + PlatformType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PlatformType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid PlatformType: " + key); + } + }; + + /** A filter to return only announcements affecting a specific platform. */ + public PlatformType getPlatformType() { + return platformType; + } + /** Filter by comms manager name */ + private com.oracle.bmc.announcementsservice.model.CommsManagerName commsManagerName; + + /** Filter by comms manager name */ + public com.oracle.bmc.announcementsservice.model.CommsManagerName getCommsManagerName() { + return commsManagerName; + } + /** The maximum number of items to return in a paginated "List" call. */ + private Integer limit; + + /** The maximum number of items to return in a paginated "List" call. */ + public Integer getLimit() { + return limit; + } + /** The value of the {@code opc-next-page} response header from the previous "List" call. */ + private String page; + + /** The value of the {@code opc-next-page} response header from the previous "List" call. */ + public String getPage() { + return page; + } + /** Sort by service name parameter */ + private SortBy sortBy; + + /** Sort by service name parameter */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + ServiceName("serviceName"), + ; + + 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); + } + }; + + /** Sort by service name parameter */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, whether ascending ('ASC') or descending ('DESC'). */ + private com.oracle.bmc.announcementsservice.model.SortOrder sortOrder; + + /** The sort order to use, whether ascending ('ASC') or descending ('DESC'). */ + public com.oracle.bmc.announcementsservice.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the complete request ID. + */ + private String opcRequestId; + + /** + * The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the complete request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListServicesRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the compartment. */ + private String compartmentId = null; + + /** + * The OCID of the compartment. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** A filter to return only announcements affecting a specific platform. */ + private PlatformType platformType = null; + + /** + * A filter to return only announcements affecting a specific platform. + * + * @param platformType the value to set + * @return this builder instance + */ + public Builder platformType(PlatformType platformType) { + this.platformType = platformType; + return this; + } + + /** Filter by comms manager name */ + private com.oracle.bmc.announcementsservice.model.CommsManagerName commsManagerName = null; + + /** + * Filter by comms manager name + * + * @param commsManagerName the value to set + * @return this builder instance + */ + public Builder commsManagerName( + com.oracle.bmc.announcementsservice.model.CommsManagerName commsManagerName) { + this.commsManagerName = commsManagerName; + return this; + } + + /** The maximum number of items to return in a paginated "List" call. */ + private Integer limit = null; + + /** + * The maximum number of items to return in a paginated "List" call. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** The value of the {@code opc-next-page} response header from the previous "List" call. */ + private String page = null; + + /** + * The value of the {@code opc-next-page} response header from the previous "List" call. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** Sort by service name parameter */ + private SortBy sortBy = null; + + /** + * Sort by service name parameter + * + * @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, whether ascending ('ASC') or descending ('DESC'). */ + private com.oracle.bmc.announcementsservice.model.SortOrder sortOrder = null; + + /** + * The sort order to use, whether ascending ('ASC') or descending ('DESC'). + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.announcementsservice.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the complete request ID. + */ + private String opcRequestId = null; + + /** + * The unique Oracle-assigned identifier for the request. If you need to contact Oracle + * about a particular request, please provide the complete request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListServicesRequest o) { + compartmentId(o.getCompartmentId()); + platformType(o.getPlatformType()); + commsManagerName(o.getCommsManagerName()); + 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 ListServicesRequest 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 ListServicesRequest + */ + public ListServicesRequest build() { + ListServicesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListServicesRequest 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 ListServicesRequest + */ + public ListServicesRequest buildWithoutInvocationCallback() { + ListServicesRequest request = new ListServicesRequest(); + request.compartmentId = compartmentId; + request.platformType = platformType; + request.commsManagerName = commsManagerName; + request.limit = limit; + request.page = page; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.opcRequestId = opcRequestId; + return request; + // new ListServicesRequest(compartmentId, platformType, commsManagerName, 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) + .platformType(platformType) + .commsManagerName(commsManagerName) + .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(",platformType=").append(String.valueOf(this.platformType)); + sb.append(",commsManagerName=").append(String.valueOf(this.commsManagerName)); + 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 ListServicesRequest)) { + return false; + } + + ListServicesRequest other = (ListServicesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.platformType, other.platformType) + && java.util.Objects.equals(this.commsManagerName, other.commsManagerName) + && 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.platformType == null ? 43 : this.platformType.hashCode()); + result = + (result * PRIME) + + (this.commsManagerName == null ? 43 : this.commsManagerName.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-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/responses/GetAnnouncementCompartmentResponse.java b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/responses/GetAnnouncementCompartmentResponse.java new file mode 100644 index 00000000000..7d0626f93d4 --- /dev/null +++ b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/responses/GetAnnouncementCompartmentResponse.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.announcementsservice.responses; + +import com.oracle.bmc.announcementsservice.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 0.0.1") +public class GetAnnouncementCompartmentResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** The returned {@code AnnouncementCompartment} instance. */ + private com.oracle.bmc.announcementsservice.model.AnnouncementCompartment + announcementCompartment; + + /** + * The returned {@code AnnouncementCompartment} instance. + * + * @return the value + */ + public com.oracle.bmc.announcementsservice.model.AnnouncementCompartment + getAnnouncementCompartment() { + return announcementCompartment; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "announcementCompartment" + }) + private GetAnnouncementCompartmentResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + com.oracle.bmc.announcementsservice.model.AnnouncementCompartment + announcementCompartment) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.announcementCompartment = announcementCompartment; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetAnnouncementCompartmentResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** The returned {@code AnnouncementCompartment} instance. */ + private com.oracle.bmc.announcementsservice.model.AnnouncementCompartment + announcementCompartment; + + /** + * The returned {@code AnnouncementCompartment} instance. + * + * @param announcementCompartment the value to set + * @return this builder + */ + public Builder announcementCompartment( + com.oracle.bmc.announcementsservice.model.AnnouncementCompartment + announcementCompartment) { + this.announcementCompartment = announcementCompartment; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetAnnouncementCompartmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + announcementCompartment(o.getAnnouncementCompartment()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetAnnouncementCompartmentResponse build() { + return new GetAnnouncementCompartmentResponse( + __httpStatusCode__, headers, opcRequestId, etag, announcementCompartment); + } + } + + /** + * 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(",announcementCompartment=").append(String.valueOf(announcementCompartment)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetAnnouncementCompartmentResponse)) { + return false; + } + + GetAnnouncementCompartmentResponse other = (GetAnnouncementCompartmentResponse) 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.announcementCompartment, other.announcementCompartment); + } + + @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.announcementCompartment == null + ? 43 + : this.announcementCompartment.hashCode()); + return result; + } +} diff --git a/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/responses/ListServicesResponse.java b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/responses/ListServicesResponse.java new file mode 100644 index 00000000000..2919f096e6d --- /dev/null +++ b/bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/responses/ListServicesResponse.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.announcementsservice.responses; + +import com.oracle.bmc.announcementsservice.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 0.0.1") +public class ListServicesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code ServicesCollection} instance. */ + private com.oracle.bmc.announcementsservice.model.ServicesCollection servicesCollection; + + /** + * The returned {@code ServicesCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.announcementsservice.model.ServicesCollection getServicesCollection() { + return servicesCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcNextPage", + "opcRequestId", + "servicesCollection" + }) + private ListServicesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcNextPage, + String opcRequestId, + com.oracle.bmc.announcementsservice.model.ServicesCollection servicesCollection) { + super(__httpStatusCode__, headers); + this.opcNextPage = opcNextPage; + this.opcRequestId = opcRequestId; + this.servicesCollection = servicesCollection; + } + + 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 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code ServicesCollection} instance. */ + private com.oracle.bmc.announcementsservice.model.ServicesCollection servicesCollection; + + /** + * The returned {@code ServicesCollection} instance. + * + * @param servicesCollection the value to set + * @return this builder + */ + public Builder servicesCollection( + com.oracle.bmc.announcementsservice.model.ServicesCollection servicesCollection) { + this.servicesCollection = servicesCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListServicesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcNextPage(o.getOpcNextPage()); + opcRequestId(o.getOpcRequestId()); + servicesCollection(o.getServicesCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListServicesResponse build() { + return new ListServicesResponse( + __httpStatusCode__, headers, opcNextPage, opcRequestId, servicesCollection); + } + } + + /** + * 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(",servicesCollection=").append(String.valueOf(servicesCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListServicesResponse)) { + return false; + } + + ListServicesResponse other = (ListServicesResponse) 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.servicesCollection, other.servicesCollection); + } + + @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.servicesCollection == null + ? 43 + : this.servicesCollection.hashCode()); + return result; + } +} diff --git a/bmc-announcementsservice/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-announcementsservice/reflect-config.json b/bmc-announcementsservice/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-announcementsservice/reflect-config.json index ed843cd945b..aaa34e0f2e8 100644 --- a/bmc-announcementsservice/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-announcementsservice/reflect-config.json +++ b/bmc-announcementsservice/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-announcementsservice/reflect-config.json @@ -27,6 +27,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.announcementsservice.model.AnnouncementCompartment", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.announcementsservice.model.AnnouncementCompartment$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.announcementsservice.model.AnnouncementSubscription", @@ -202,6 +216,19 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.announcementsservice.model.BaseService", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.announcementsservice.model.BaseService$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.announcementsservice.model.ChangeAnnouncementSubscriptionCompartmentDetails", @@ -216,6 +243,12 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.announcementsservice.model.CommsManagerName", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.announcementsservice.model.CreateAnnouncementSubscriptionDetails", @@ -306,6 +339,26 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.announcementsservice.model.NotificationsSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.announcementsservice.model.NotificationsSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.announcementsservice.model.PlatformType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.announcementsservice.model.Property", @@ -320,6 +373,48 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.announcementsservice.model.Service", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.announcementsservice.model.Service$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.announcementsservice.model.ServiceSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.announcementsservice.model.ServiceSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.announcementsservice.model.ServicesCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.announcementsservice.model.ServicesCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.announcementsservice.model.SortOrder", diff --git a/bmc-apigateway/pom.xml b/bmc-apigateway/pom.xml index 055c0875587..49404845512 100644 --- a/bmc-apigateway/pom.xml +++ b/bmc-apigateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-apigateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-apmconfig/pom.xml b/bmc-apmconfig/pom.xml index 056b9da5efc..5fa6c9bd6f6 100644 --- a/bmc-apmconfig/pom.xml +++ b/bmc-apmconfig/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-apmconfig @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-apmcontrolplane/pom.xml b/bmc-apmcontrolplane/pom.xml index f337a829d7b..0e34b4d3dbf 100644 --- a/bmc-apmcontrolplane/pom.xml +++ b/bmc-apmcontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-apmcontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-apmsynthetics/pom.xml b/bmc-apmsynthetics/pom.xml index b24de930fc0..5597fc8d920 100644 --- a/bmc-apmsynthetics/pom.xml +++ b/bmc-apmsynthetics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-apmsynthetics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-apmtraces/pom.xml b/bmc-apmtraces/pom.xml index 0927edc2263..fed952be611 100644 --- a/bmc-apmtraces/pom.xml +++ b/bmc-apmtraces/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-apmtraces @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-appmgmtcontrol/pom.xml b/bmc-appmgmtcontrol/pom.xml index 00d55b92a85..9ba75daa874 100644 --- a/bmc-appmgmtcontrol/pom.xml +++ b/bmc-appmgmtcontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-appmgmtcontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-artifacts/pom.xml b/bmc-artifacts/pom.xml index 1708f9387c1..927d10ce626 100644 --- a/bmc-artifacts/pom.xml +++ b/bmc-artifacts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-artifacts @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-audit/pom.xml b/bmc-audit/pom.xml index 1c073cf79ae..dd9baf8a1d4 100644 --- a/bmc-audit/pom.xml +++ b/bmc-audit/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-autoscaling/pom.xml b/bmc-autoscaling/pom.xml index 5435d860ad6..bba7c537454 100644 --- a/bmc-autoscaling/pom.xml +++ b/bmc-autoscaling/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-autoscaling @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-bastion/pom.xml b/bmc-bastion/pom.xml index 90a362fe747..540f11a1a1c 100644 --- a/bmc-bastion/pom.xml +++ b/bmc-bastion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-bastion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-bds/pom.xml b/bmc-bds/pom.xml index d35bf5a4c23..c9941d3582f 100644 --- a/bmc-bds/pom.xml +++ b/bmc-bds/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-bds @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-blockchain/pom.xml b/bmc-blockchain/pom.xml index 42df2d54aaa..42635512250 100644 --- a/bmc-blockchain/pom.xml +++ b/bmc-blockchain/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-blockchain @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-bom/pom.xml b/bmc-bom/pom.xml index 3f5ebb2ba3e..5bdafec28a8 100644 --- a/bmc-bom/pom.xml +++ b/bmc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk - 3.47.0 + 3.48.0 oci-java-sdk-bom pom Oracle Cloud Infrastructure SDK - BOM @@ -38,939 +38,950 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-shaded-full - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-audit - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-containerengine - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-core - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-database - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-dns - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-email - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-filestorage - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-identity - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-loadbalancer - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-objectstorage - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.47.0 + 3.48.0 com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.47.0 + 3.48.0 com.oracle.oci.sdk oci-java-sdk-addons-resteasy-client-configurator - 3.47.0 + 3.48.0 com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.47.0 + 3.48.0 com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.47.0 + 3.48.0 com.oracle.oci.sdk oci-java-sdk-addons-sasl-oke-workload-identity - 3.47.0 + 3.48.0 + + + com.oracle.oci.sdk + oci-java-sdk-addons-aispeech-realtime + 3.48.0 com.oracle.oci.sdk oci-java-sdk-resourcesearch - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-addons-apache - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-announcementsservice - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-healthchecks - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-waas - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-streaming - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-resourcemanager - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-monitoring - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-ons - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-autoscaling - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-budget - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-workrequests - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-limits - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-functions - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-events - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-dts - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-oce - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-oda - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-analytics - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-integration - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-osmanagement - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-marketplace - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-apigateway - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-datacatalog - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-dataflow - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-datascience - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-nosql - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-secrets - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-vault - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-bds - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-encryption - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-cims - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-datasafe - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-mysql - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-dataintegration - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-ocvp - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-usageapi - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-blockchain - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-loggingingestion - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-logging - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-loganalytics - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-managementdashboard - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-sch - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-loggingsearch - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-managementagent - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-cloudguard - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-opsi - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-computeinstanceagent - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-optimizer - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-tenantmanagercontrolplane - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-rover - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-databasemanagement - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-artifacts - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-apmsynthetics - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-goldengate - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-apmcontrolplane - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-apmtraces - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-networkloadbalancer - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-vulnerabilityscanning - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-databasemigration - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-servicecatalog - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-ailanguage - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-operatoraccesscontrol - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-bastion - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-genericartifactscontent - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-jms - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-devops - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-aianomalydetection - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-datalabelingservice - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-datalabelingservicedataplane - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-apmconfig - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-waf - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-certificates - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-certificatesmanagement - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-usage - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-databasetools - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-servicemanagerproxy - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-appmgmtcontrol - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-ospgateway - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-identitydataplane - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-visualbuilder - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-osubusage - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-osubsubscription - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-osuborganizationsubscription - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-osubbillingschedule - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-dashboardservice - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-threatintelligence - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-aivision - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-aispeech - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-stackmonitoring - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-servicemesh - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-adm - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-licensemanager - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-onesubscription - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-governancerulescontrolplane - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-waa - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-networkfirewall - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-vnmonitoring - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-emwarehouse - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-lockbox - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-fusionapps - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-mediaservices - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-opa - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-opensearch - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-cloudmigrations - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-cloudbridge - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-disasterrecovery - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-containerinstances - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-aidocument - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-queue - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-recovery - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-vbsinst - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-identitydomains - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-accessgovernancecp - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-ocicontrolcenter - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-osmanagementhub - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-fleetsoftwareupdate - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-computecloudatcustomer - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-marketplacepublisher - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-redis - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-jmsjavadownloads - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-psql - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-generativeai - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-capacitymanagement - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-globallydistributeddatabase - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-desktops - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-emaildataplane - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-clusterplacementgroups - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-marketplaceprivateoffer - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-resourcescheduler - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-demandsignal - 3.47.0 + 3.48.0 false com.oracle.oci.sdk oci-java-sdk-fleetappsmanagement - 3.47.0 + 3.48.0 + false + + + com.oracle.oci.sdk + oci-java-sdk-delegateaccesscontrol + 3.48.0 false diff --git a/bmc-budget/pom.xml b/bmc-budget/pom.xml index 9dadbd39299..2874d01baf5 100644 --- a/bmc-budget/pom.xml +++ b/bmc-budget/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-budget @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-capacitymanagement/pom.xml b/bmc-capacitymanagement/pom.xml index 84f443a57df..52dbef35495 100644 --- a/bmc-capacitymanagement/pom.xml +++ b/bmc-capacitymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-capacitymanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-certificates/pom.xml b/bmc-certificates/pom.xml index ec4107a1801..a7eb7e1df53 100644 --- a/bmc-certificates/pom.xml +++ b/bmc-certificates/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-certificates @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-certificatesmanagement/pom.xml b/bmc-certificatesmanagement/pom.xml index a9b42a3da46..23e8fd7ca2d 100644 --- a/bmc-certificatesmanagement/pom.xml +++ b/bmc-certificatesmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-certificatesmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-cims/pom.xml b/bmc-cims/pom.xml index 87f4c31a216..d6c03d82d57 100644 --- a/bmc-cims/pom.xml +++ b/bmc-cims/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-cims @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-circuitbreaker/pom.xml b/bmc-circuitbreaker/pom.xml index ef420abc85d..db4174b3d29 100644 --- a/bmc-circuitbreaker/pom.xml +++ b/bmc-circuitbreaker/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-circuitbreaker diff --git a/bmc-cloudbridge/pom.xml b/bmc-cloudbridge/pom.xml index 486036576c3..406fd2170fe 100644 --- a/bmc-cloudbridge/pom.xml +++ b/bmc-cloudbridge/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-cloudbridge @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-cloudguard/pom.xml b/bmc-cloudguard/pom.xml index e92fa642fa1..fb88ad8ff3a 100644 --- a/bmc-cloudguard/pom.xml +++ b/bmc-cloudguard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-cloudguard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-cloudmigrations/pom.xml b/bmc-cloudmigrations/pom.xml index b6a66432801..f4183ce7a69 100644 --- a/bmc-cloudmigrations/pom.xml +++ b/bmc-cloudmigrations/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-cloudmigrations @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-clusterplacementgroups/pom.xml b/bmc-clusterplacementgroups/pom.xml index 196fe7a60b9..019cc992b3d 100644 --- a/bmc-clusterplacementgroups/pom.xml +++ b/bmc-clusterplacementgroups/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-clusterplacementgroups @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml index a65e156fbea..f0ca6dae4b1 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.47.0 + 3.48.0 ../pom.xml @@ -68,7 +68,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.47.0 + 3.48.0 @@ -77,7 +77,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.47.0 + 3.48.0 org.glassfish.jersey.core diff --git a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml index f521469d30a..1c52de4b6b0 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.47.0 + 3.48.0 ../pom.xml @@ -70,7 +70,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.47.0 + 3.48.0 @@ -79,7 +79,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.47.0 + 3.48.0 jakarta.ws.rs diff --git a/bmc-common-httpclient-choices/pom.xml b/bmc-common-httpclient-choices/pom.xml index fe53f45aa47..2f8629e4800 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.47.0 + 3.48.0 ../pom.xml diff --git a/bmc-common-httpclient/pom.xml b/bmc-common-httpclient/pom.xml index 10971414eac..5ea9a7e4ec9 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.47.0 + 3.48.0 ../pom.xml diff --git a/bmc-common/pom.xml b/bmc-common/pom.xml index 3ddae3619d0..edf89d70236 100644 --- a/bmc-common/pom.xml +++ b/bmc-common/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml @@ -67,18 +67,18 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.47.0 + 3.48.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.47.0 + 3.48.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.47.0 + 3.48.0 test diff --git a/bmc-common/src/main/java/com/oracle/bmc/util/internal/ClientCompatibilityChecker.java b/bmc-common/src/main/java/com/oracle/bmc/util/internal/ClientCompatibilityChecker.java index 9242144be7f..5e7fc3e6321 100644 --- a/bmc-common/src/main/java/com/oracle/bmc/util/internal/ClientCompatibilityChecker.java +++ b/bmc-common/src/main/java/com/oracle/bmc/util/internal/ClientCompatibilityChecker.java @@ -145,12 +145,13 @@ public boolean isClientCodegenVersionCompatible( ComparableVersion.buildComparableVersion(minimumClientCodegenVersion); if (!maybeMinimumVerObj.isPresent()) { // Not returning here, waiting for the check on clientCodegenVersion below to run as - // well - // We can thus be giving out all the errors in a single run + // well. We can thus be giving out all the errors in a single run minVersionHasError = true; } + Optional maybeClientVerObj = - ComparableVersion.buildComparableVersion(clientCodegenVersion); + ComparableVersion.buildComparableVersion( + getCodegenVersionWithoutSdkVersion(clientCodegenVersion)); if (!maybeClientVerObj.isPresent()) { clientVersionHasError = true; } @@ -174,8 +175,7 @@ public boolean isClientCodegenVersionCompatible( return versionCompatibilityCheckMode.setPreviousResult(clientClassName, true); } // or if a minimum from the client is provided, if the common library's version is - // between the - // minimum from the client and the client version, that's compatible too + // between the minimum from the client and the client version, that's compatible too if (javaMinimumClientCodegenVersionFromClient.isPresent()) { ComparableVersion minimumVerFromClientObj = new ComparableVersion(javaMinimumClientCodegenVersionFromClient.get()); @@ -323,6 +323,17 @@ public boolean isClientCodegenVersionCompatible( return versionCompatibilityCheckMode.setPreviousResult(clientClassName, true); } + static String getCodegenVersionWithoutSdkVersion(String clientCodegenVersion) { + if (clientCodegenVersion == null) { + return null; + } + int pos = clientCodegenVersion.indexOf('-'); + if (pos >= 0) { + clientCodegenVersion = clientCodegenVersion.substring(0, pos); + } + return clientCodegenVersion; + } + interface VersionCompatibilityCheckModeImpl { void logInitialMessage(); diff --git a/bmc-common/src/test/java/com/oracle/bmc/util/internal/ClientCompatibilityCheckerTest.java b/bmc-common/src/test/java/com/oracle/bmc/util/internal/ClientCompatibilityCheckerTest.java index e76952d188c..6cdcc2d3ffd 100644 --- a/bmc-common/src/test/java/com/oracle/bmc/util/internal/ClientCompatibilityCheckerTest.java +++ b/bmc-common/src/test/java/com/oracle/bmc/util/internal/ClientCompatibilityCheckerTest.java @@ -17,6 +17,7 @@ import static com.oracle.bmc.util.internal.ClientCompatibilityChecker.JAVA_CLIENT_CODEGEN_VERSION_PROPERTY_NAME; import static com.oracle.bmc.util.internal.ClientCompatibilityChecker.JAVA_MAXIMUM_CLIENT_CODEGEN_VERSION_PROPERTY_NAME; import static com.oracle.bmc.util.internal.ClientCompatibilityChecker.JAVA_MINIMUM_CLIENT_CODEGEN_VERSION_PROPERTY_NAME; +import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static org.mockito.Mockito.mock; @@ -371,7 +372,7 @@ public void testClientMaximumVersionNotSet_ButClientExactSameAsMinimum_NoMinFrom } @Test - public void testclientCodegenVersionNotSet() { + public void testClientCodegenVersionNotSet() { final String min = "2.5.0"; final String clientCodegenVer = null; final String minFromClient = "3.7.0"; @@ -455,4 +456,99 @@ public void testClientTooOld() { + min + "'")); } + + @Test + public void testClientCompatible_withExtendedCodegenVersion() { + final String min = "2.100"; + final String max = "2.100"; + final String minFromClient = "2.26"; + final String clientCodegenVer = "2.100-3.46.1"; + final Optional javaMinFromClient = Optional.of(minFromClient); + ClientCompatibilityChecker checker = getChecker(min, max); + + assertTrue( + checker.isClientCodegenVersionCompatible( + CLIENT_CLASS_NAME, clientCodegenVer, javaMinFromClient, log)); + + ArgumentCaptor captor = ArgumentCaptor.forClass(String.class); + verify(log).info(captor.capture()); + + String message = captor.getValue(); + assertTrue( + "Message didn't match: " + message, + message.contains( + "The client is compatible with the oci-java-sdk-common version '" + + SDK_VERSION + + "'")); + assertTrue( + "Message didn't match: " + message, + message.contains( + "since the client was generated using codegen version '" + + clientCodegenVer + + "'")); + assertTrue( + "Message didn't match: " + message, + message.contains( + "which is in the compatible codegen version range '" + + min + + "' to '" + + max + + "'")); + } + + @Test + public void testClientTooNew_withExtendedCodegenVersion() { + final String min = "2.100"; + final String max = "2.100"; + final String minFromClient = "2.26"; + final String clientCodegenVer = "2.101-3.46.1"; + final Optional javaMinFromClient = Optional.of(minFromClient); + ClientCompatibilityChecker checker = getChecker(min, max); + assertFalse( + checker.isClientCodegenVersionCompatible( + CLIENT_CLASS_NAME, clientCodegenVer, javaMinFromClient, log)); + + ArgumentCaptor messageCaptor = ArgumentCaptor.forClass(String.class); + verify(log).warn(messageCaptor.capture()); + + String message = messageCaptor.getValue(); + assertTrue( + "Message didn't match: " + message, + message.contains( + "The client is too new for the oci-java-sdk-common version '" + + SDK_VERSION + + "'")); + assertTrue( + "Message didn't match: " + message, + message.contains( + "The client was generated using codegen version '" + + clientCodegenVer + + "'")); + assertTrue( + "Message didn't match: " + message, + message.contains( + "which is backward-compatible down to codegen version '" + + minFromClient + + "'")); + assertTrue( + "Message didn't match: " + message, + message.contains( + "but this version of oci-java-sdk-common requires codegen version '" + + max + + "' or older")); + } + + @Test + public void testGetCodegenVersionWithoutSdkVersion() { + assertEquals( + "2.100", ClientCompatibilityChecker.getCodegenVersionWithoutSdkVersion("2.100")); + assertEquals( + "2.100", + ClientCompatibilityChecker.getCodegenVersionWithoutSdkVersion("2.100-3.46.1")); + assertEquals( + "1.196", + ClientCompatibilityChecker.getCodegenVersionWithoutSdkVersion( + "1.196-2.41.0-fixed")); + assertEquals(null, ClientCompatibilityChecker.getCodegenVersionWithoutSdkVersion(null)); + } } diff --git a/bmc-computecloudatcustomer/pom.xml b/bmc-computecloudatcustomer/pom.xml index a84e9d2b037..6165d7c807f 100644 --- a/bmc-computecloudatcustomer/pom.xml +++ b/bmc-computecloudatcustomer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-computecloudatcustomer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-computeinstanceagent/pom.xml b/bmc-computeinstanceagent/pom.xml index 745b530dc3a..190ba25ab7a 100644 --- a/bmc-computeinstanceagent/pom.xml +++ b/bmc-computeinstanceagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-computeinstanceagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-containerengine/pom.xml b/bmc-containerengine/pom.xml index 609090d35eb..3e7cfb46307 100644 --- a/bmc-containerengine/pom.xml +++ b/bmc-containerengine/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-containerinstances/pom.xml b/bmc-containerinstances/pom.xml index 7cadff4b6e9..60a6478aa7e 100644 --- a/bmc-containerinstances/pom.xml +++ b/bmc-containerinstances/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-containerinstances @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-core/pom.xml b/bmc-core/pom.xml index 9e2eab7b11f..4983f15012f 100644 --- a/bmc-core/pom.xml +++ b/bmc-core/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.47.0 + 3.48.0 diff --git a/bmc-dashboardservice/pom.xml b/bmc-dashboardservice/pom.xml index bf421714390..ad2f3514e51 100644 --- a/bmc-dashboardservice/pom.xml +++ b/bmc-dashboardservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-dashboardservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-database/pom.xml b/bmc-database/pom.xml index 52d24e21d43..197c70767e2 100644 --- a/bmc-database/pom.xml +++ b/bmc-database/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.47.0 + 3.48.0 diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/Database.java b/bmc-database/src/main/java/com/oracle/bmc/database/Database.java index 398c75318c4..acfe23a0760 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/Database.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/Database.java @@ -190,6 +190,40 @@ AutonomousDatabaseManualRefreshResponse autonomousDatabaseManualRefresh( */ CancelBackupResponse cancelBackup(CancelBackupRequest request); + /** + * Cancels the in progress maintenance activity under this execution window. + * + * @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 + * CancelExecutionWindow API. + */ + CancelExecutionWindowResponse cancelExecutionWindow(CancelExecutionWindowRequest request); + + /** + * Delete the scheduling plan resource along with all the scheduled actions associated with this + * resource. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * CascadingDeleteSchedulingPlan API. + */ + CascadingDeleteSchedulingPlanResponse cascadingDeleteSchedulingPlan( + CascadingDeleteSchedulingPlanRequest request); + /** * Move the Autonomous Container Database and its dependent resources to the specified * compartment. For more information about moving Autonomous Container Databases, see [Moving @@ -678,6 +712,40 @@ ChangeKeyStoreCompartmentResponse changeKeyStoreCompartment( ChangeOneoffPatchCompartmentResponse changeOneoffPatchCompartment( ChangeOneoffPatchCompartmentRequest request); + /** + * Moves an scheduling plan resource to another compartment. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation will not retry by default, users + * can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to + * enable retries for it. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * ChangeSchedulingPlanCompartment API. + */ + ChangeSchedulingPlanCompartmentResponse changeSchedulingPlanCompartment( + ChangeSchedulingPlanCompartmentRequest request); + + /** + * Moves an scheduling policy resource to another compartment. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation will not retry by default, users + * can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to + * enable retries for it. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * ChangeSchedulingPolicyCompartment API. + */ + ChangeSchedulingPolicyCompartmentResponse changeSchedulingPolicyCompartment( + ChangeSchedulingPolicyCompartmentRequest request); + /** * Moves a VM cluster and its dependent resources to another compartment. Applies to Exadata * Cloud@Customer instances only. To move a cloud VM cluster in an Exadata Cloud Service @@ -1219,6 +1287,38 @@ CreateExadataInfrastructureResponse createExadataInfrastructure( CreateExascaleDbStorageVaultResponse createExascaleDbStorageVault( CreateExascaleDbStorageVaultRequest request); + /** + * Creates an execution action resource. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * CreateExecutionAction API. + */ + CreateExecutionActionResponse createExecutionAction(CreateExecutionActionRequest request); + + /** + * Creates an execution window resource. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * CreateExecutionWindow API. + */ + CreateExecutionWindowResponse createExecutionWindow(CreateExecutionWindowRequest request); + /** * Creates a new backup resource and returns the information the caller needs to back up an * on-premises Oracle Database to Oracle Cloud Infrastructure. @@ -1383,6 +1483,70 @@ CreateExternalPluggableDatabaseResponse createExternalPluggableDatabase( */ CreatePluggableDatabaseResponse createPluggableDatabase(CreatePluggableDatabaseRequest request); + /** + * Creates a Scheduled Action resource. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * CreateScheduledAction API. + */ + CreateScheduledActionResponse createScheduledAction(CreateScheduledActionRequest request); + + /** + * Creates a Scheduling Plan resource. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * CreateSchedulingPlan API. + */ + CreateSchedulingPlanResponse createSchedulingPlan(CreateSchedulingPlanRequest request); + + /** + * Creates a Scheduling Policy resource. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * CreateSchedulingPolicy API. + */ + CreateSchedulingPolicyResponse createSchedulingPolicy(CreateSchedulingPolicyRequest request); + + /** + * Creates a Scheduling Window resource. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * CreateSchedulingWindow API. + */ + CreateSchedulingWindowResponse createSchedulingWindow(CreateSchedulingWindowRequest request); + /** * Creates an Exadata Cloud@Customer VM cluster. * @@ -1755,6 +1919,38 @@ DeleteExadataInfrastructureResponse deleteExadataInfrastructure( DeleteExascaleDbStorageVaultResponse deleteExascaleDbStorageVault( DeleteExascaleDbStorageVaultRequest request); + /** + * Deletes the execution action. + * + * @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 + * DeleteExecutionAction API. + */ + DeleteExecutionActionResponse deleteExecutionAction(DeleteExecutionActionRequest request); + + /** + * Deletes the execution window. + * + * @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 + * DeleteExecutionWindow API. + */ + DeleteExecutionWindowResponse deleteExecutionWindow(DeleteExecutionWindowRequest request); + /** * Deletes the {@link * #createExternalContainerDatabaseDetails(CreateExternalContainerDatabaseDetailsRequest) @@ -1878,6 +2074,70 @@ DeleteExternalPluggableDatabaseResponse deleteExternalPluggableDatabase( */ DeletePluggableDatabaseResponse deletePluggableDatabase(DeletePluggableDatabaseRequest request); + /** + * Deletes the scheduled action. + * + * @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 + * DeleteScheduledAction API. + */ + DeleteScheduledActionResponse deleteScheduledAction(DeleteScheduledActionRequest request); + + /** + * Deletes the scheduling plan. + * + * @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 + * DeleteSchedulingPlan API. + */ + DeleteSchedulingPlanResponse deleteSchedulingPlan(DeleteSchedulingPlanRequest request); + + /** + * Deletes the scheduling policy. + * + * @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 + * DeleteSchedulingPolicy API. + */ + DeleteSchedulingPolicyResponse deleteSchedulingPolicy(DeleteSchedulingPolicyRequest request); + + /** + * Deletes the scheduling window. + * + * @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 + * DeleteSchedulingWindow API. + */ + DeleteSchedulingWindowResponse deleteSchedulingWindow(DeleteSchedulingWindowRequest request); + /** * Deletes the specified VM cluster. Applies to Exadata Cloud@Customer instances only. * @@ -3396,6 +3656,38 @@ GetExadbVmClusterUpdateHistoryEntryResponse getExadbVmClusterUpdateHistoryEntry( GetExascaleDbStorageVaultResponse getExascaleDbStorageVault( GetExascaleDbStorageVaultRequest request); + /** + * Gets information about the specified execution action. + * + * @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 GetExecutionAction + * API. + */ + GetExecutionActionResponse getExecutionAction(GetExecutionActionRequest request); + + /** + * Gets information about the specified execution window. + * + * @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 GetExecutionWindow + * API. + */ + GetExecutionWindowResponse getExecutionWindow(GetExecutionWindowRequest request); + /** * Gets information about the specified external backup job. * @@ -3605,6 +3897,70 @@ GetPdbConversionHistoryEntryResponse getPdbConversionHistoryEntry( */ GetPluggableDatabaseResponse getPluggableDatabase(GetPluggableDatabaseRequest request); + /** + * Gets information about the specified Scheduled Action. + * + * @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 GetScheduledAction + * API. + */ + GetScheduledActionResponse getScheduledAction(GetScheduledActionRequest request); + + /** + * Gets information about the specified Scheduling Plan. + * + * @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 GetSchedulingPlan + * API. + */ + GetSchedulingPlanResponse getSchedulingPlan(GetSchedulingPlanRequest request); + + /** + * Gets information about the specified Scheduling Policy. + * + * @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 GetSchedulingPolicy + * API. + */ + GetSchedulingPolicyResponse getSchedulingPolicy(GetSchedulingPolicyRequest request); + + /** + * Gets information about the specified Scheduling Window. + * + * @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 GetSchedulingWindow + * API. + */ + GetSchedulingWindowResponse getSchedulingWindow(GetSchedulingWindowRequest request); + /** * Gets information about the VM cluster. Applies to Exadata Cloud@Customer instances only. * @@ -4675,6 +5031,38 @@ ListExadbVmClusterUpdatesResponse listExadbVmClusterUpdates( ListExascaleDbStorageVaultsResponse listExascaleDbStorageVaults( ListExascaleDbStorageVaultsRequest request); + /** + * Lists the execution action resources in the specified compartment. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * ListExecutionActions API. + */ + ListExecutionActionsResponse listExecutionActions(ListExecutionActionsRequest request); + + /** + * Lists the execution window resources in the specified compartment. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * ListExecutionWindows API. + */ + ListExecutionWindowsResponse listExecutionWindows(ListExecutionWindowsRequest request); + /** * Gets a list of the external container databases in the specified compartment. * @@ -4860,6 +5248,22 @@ ListMaintenanceRunHistoryResponse listMaintenanceRunHistory( */ ListOneoffPatchesResponse listOneoffPatches(ListOneoffPatchesRequest request); + /** + * List all the action params and their possible values for a given action type + * + * @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 + * ListParamsForActionType API. + */ + ListParamsForActionTypeResponse listParamsForActionType(ListParamsForActionTypeRequest request); + /** * Gets the pluggable database conversion history for a specified database in a bare metal or * virtual machine DB system. @@ -4895,6 +5299,88 @@ ListPdbConversionHistoryEntriesResponse listPdbConversionHistoryEntries( */ ListPluggableDatabasesResponse listPluggableDatabases(ListPluggableDatabasesRequest request); + /** + * Returns a recommended Scheduled Actions configuration for a given resource, plan intent and + * scheduling policy. + * + * @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 + * ListRecommendedScheduledActions API. + */ + ListRecommendedScheduledActionsResponse listRecommendedScheduledActions( + ListRecommendedScheduledActionsRequest request); + + /** + * Lists the Scheduled Action resources in the specified compartment. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * ListScheduledActions API. + */ + ListScheduledActionsResponse listScheduledActions(ListScheduledActionsRequest request); + + /** + * Lists the Scheduling Plan resources in the specified compartment. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 ListSchedulingPlans + * API. + */ + ListSchedulingPlansResponse listSchedulingPlans(ListSchedulingPlansRequest request); + + /** + * Lists the Scheduling Policy resources in the specified compartment. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * ListSchedulingPolicies API. + */ + ListSchedulingPoliciesResponse listSchedulingPolicies(ListSchedulingPoliciesRequest request); + + /** + * Lists the Scheduling Window resources in the specified compartment. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * ListSchedulingWindows API. + */ + ListSchedulingWindowsResponse listSchedulingWindows(ListSchedulingWindowsRequest request); + /** * Gets a list of supported Exadata system versions for a given shape and GI version. * @@ -5105,6 +5591,23 @@ ModifyDatabaseManagementResponse modifyDatabaseManagement( ModifyPluggableDatabaseManagementResponse modifyPluggableDatabaseManagement( ModifyPluggableDatabaseManagementRequest request); + /** + * Moves an execution action member to this execution action resource from another. + * + * @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 + * MoveExecutionActionMember API. + */ + MoveExecutionActionMemberResponse moveExecutionActionMember( + MoveExecutionActionMemberRequest request); + /** * Refreshes a pluggable database (PDB) Refreshable clone. * @@ -5252,6 +5755,38 @@ RemoveVirtualMachineFromExadbVmClusterResponse removeVirtualMachineFromExadbVmCl RemoveVirtualMachineFromVmClusterResponse removeVirtualMachineFromVmCluster( RemoveVirtualMachineFromVmClusterRequest request); + /** + * Reorders the execution actions under this execution window resource. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * ReorderExecutionActions API. + */ + ReorderExecutionActionsResponse reorderExecutionActions(ReorderExecutionActionsRequest request); + + /** + * Re-order the scheduled actions under this scheduling plan resource. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * ReorderScheduledActions API. + */ + ReorderScheduledActionsResponse reorderScheduledActions(ReorderScheduledActionsRequest request); + /** * Adds or removes Db server network nodes to extend or shrink the existing VM cluster network. * Applies to Exadata Cloud@Customer instances only. @@ -6262,6 +6797,38 @@ UpdateExadataInfrastructureResponse updateExadataInfrastructure( UpdateExascaleDbStorageVaultResponse updateExascaleDbStorageVault( UpdateExascaleDbStorageVaultRequest request); + /** + * Updates the execution action resource. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * UpdateExecutionAction API. + */ + UpdateExecutionActionResponse updateExecutionAction(UpdateExecutionActionRequest request); + + /** + * Updates the execution window resource. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * UpdateExecutionWindow API. + */ + UpdateExecutionWindowResponse updateExecutionWindow(UpdateExecutionWindowRequest request); + /** * Updates the properties of an {@link * #createExternalContainerDatabaseDetails(CreateExternalContainerDatabaseDetailsRequest) @@ -6397,6 +6964,54 @@ UpdateExternalPluggableDatabaseResponse updateExternalPluggableDatabase( */ UpdatePluggableDatabaseResponse updatePluggableDatabase(UpdatePluggableDatabaseRequest request); + /** + * Updates the Scheduled Action resource. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * UpdateScheduledAction API. + */ + UpdateScheduledActionResponse updateScheduledAction(UpdateScheduledActionRequest request); + + /** + * Updates the Scheduling Policy resource. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * UpdateSchedulingPolicy API. + */ + UpdateSchedulingPolicyResponse updateSchedulingPolicy(UpdateSchedulingPolicyRequest request); + + /** + * Updates the Scheduling Window resource. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * UpdateSchedulingWindow API. + */ + UpdateSchedulingWindowResponse updateSchedulingWindow(UpdateSchedulingWindowRequest request); + /** * Updates the specified VM cluster. Applies to Exadata Cloud@Customer instances only. * diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsync.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsync.java index 9ed36578879..03581118d61 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsync.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsync.java @@ -191,6 +191,41 @@ java.util.concurrent.Future cancelBackup( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Cancels the in progress maintenance activity under this execution window. + * + * @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 cancelExecutionWindow( + CancelExecutionWindowRequest request, + com.oracle.bmc.responses.AsyncHandler< + CancelExecutionWindowRequest, CancelExecutionWindowResponse> + handler); + + /** + * Delete the scheduling plan resource along with all the scheduled actions associated with this + * resource. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + cascadingDeleteSchedulingPlan( + CascadingDeleteSchedulingPlanRequest request, + com.oracle.bmc.responses.AsyncHandler< + CascadingDeleteSchedulingPlanRequest, + CascadingDeleteSchedulingPlanResponse> + handler); + /** * Move the Autonomous Container Database and its dependent resources to the specified * compartment. For more information about moving Autonomous Container Databases, see [Moving @@ -692,6 +727,42 @@ java.util.concurrent.Future changeOneoffPa ChangeOneoffPatchCompartmentResponse> handler); + /** + * Moves an scheduling plan resource to another 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 + changeSchedulingPlanCompartment( + ChangeSchedulingPlanCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeSchedulingPlanCompartmentRequest, + ChangeSchedulingPlanCompartmentResponse> + handler); + + /** + * Moves an scheduling policy resource to another 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 + changeSchedulingPolicyCompartment( + ChangeSchedulingPolicyCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeSchedulingPolicyCompartmentRequest, + ChangeSchedulingPolicyCompartmentResponse> + handler); + /** * Moves a VM cluster and its dependent resources to another compartment. Applies to Exadata * Cloud@Customer instances only. To move a cloud VM cluster in an Exadata Cloud Service @@ -1234,6 +1305,38 @@ java.util.concurrent.Future createExascale CreateExascaleDbStorageVaultResponse> handler); + /** + * Creates an execution action resource. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future createExecutionAction( + CreateExecutionActionRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateExecutionActionRequest, CreateExecutionActionResponse> + handler); + + /** + * Creates an execution window resource. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future createExecutionWindow( + CreateExecutionWindowRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateExecutionWindowRequest, CreateExecutionWindowResponse> + handler); + /** * Creates a new backup resource and returns the information the caller needs to back up an * on-premises Oracle Database to Oracle Cloud Infrastructure. @@ -1403,6 +1506,70 @@ java.util.concurrent.Future createPluggableData CreatePluggableDatabaseRequest, CreatePluggableDatabaseResponse> handler); + /** + * Creates a Scheduled Action resource. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future createScheduledAction( + CreateScheduledActionRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateScheduledActionRequest, CreateScheduledActionResponse> + handler); + + /** + * Creates a Scheduling Plan resource. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future createSchedulingPlan( + CreateSchedulingPlanRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateSchedulingPlanRequest, CreateSchedulingPlanResponse> + handler); + + /** + * Creates a Scheduling Policy resource. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future createSchedulingPolicy( + CreateSchedulingPolicyRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateSchedulingPolicyRequest, CreateSchedulingPolicyResponse> + handler); + + /** + * Creates a Scheduling Window resource. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future createSchedulingWindow( + CreateSchedulingWindowRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateSchedulingWindowRequest, CreateSchedulingWindowResponse> + handler); + /** * Creates an Exadata Cloud@Customer VM cluster. * @@ -1777,6 +1944,38 @@ java.util.concurrent.Future deleteExascale DeleteExascaleDbStorageVaultResponse> handler); + /** + * Deletes the execution action. + * + * @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 deleteExecutionAction( + DeleteExecutionActionRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteExecutionActionRequest, DeleteExecutionActionResponse> + handler); + + /** + * Deletes the execution window. + * + * @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 deleteExecutionWindow( + DeleteExecutionWindowRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteExecutionWindowRequest, DeleteExecutionWindowResponse> + handler); + /** * Deletes the {@link * #createExternalContainerDatabaseDetails(CreateExternalContainerDatabaseDetailsRequest, @@ -1904,6 +2103,70 @@ java.util.concurrent.Future deletePluggableData DeletePluggableDatabaseRequest, DeletePluggableDatabaseResponse> handler); + /** + * Deletes the scheduled action. + * + * @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 deleteScheduledAction( + DeleteScheduledActionRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteScheduledActionRequest, DeleteScheduledActionResponse> + handler); + + /** + * Deletes the scheduling plan. + * + * @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 deleteSchedulingPlan( + DeleteSchedulingPlanRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteSchedulingPlanRequest, DeleteSchedulingPlanResponse> + handler); + + /** + * Deletes the scheduling policy. + * + * @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 deleteSchedulingPolicy( + DeleteSchedulingPolicyRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteSchedulingPolicyRequest, DeleteSchedulingPolicyResponse> + handler); + + /** + * Deletes the scheduling window. + * + * @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 deleteSchedulingWindow( + DeleteSchedulingWindowRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteSchedulingWindowRequest, DeleteSchedulingWindowResponse> + handler); + /** * Deletes the specified VM cluster. Applies to Exadata Cloud@Customer instances only. * @@ -3428,6 +3691,38 @@ java.util.concurrent.Future getExascaleDbStor GetExascaleDbStorageVaultRequest, GetExascaleDbStorageVaultResponse> handler); + /** + * Gets information about the specified execution action. + * + * @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 getExecutionAction( + GetExecutionActionRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetExecutionActionRequest, GetExecutionActionResponse> + handler); + + /** + * Gets information about the specified execution window. + * + * @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 getExecutionWindow( + GetExecutionWindowRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetExecutionWindowRequest, GetExecutionWindowResponse> + handler); + /** * Gets information about the specified external backup job. * @@ -3637,6 +3932,70 @@ java.util.concurrent.Future getPluggableDatabase( GetPluggableDatabaseRequest, GetPluggableDatabaseResponse> handler); + /** + * Gets information about the specified Scheduled Action. + * + * @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 getScheduledAction( + GetScheduledActionRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetScheduledActionRequest, GetScheduledActionResponse> + handler); + + /** + * Gets information about the specified Scheduling Plan. + * + * @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 getSchedulingPlan( + GetSchedulingPlanRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetSchedulingPlanRequest, GetSchedulingPlanResponse> + handler); + + /** + * Gets information about the specified Scheduling Policy. + * + * @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 getSchedulingPolicy( + GetSchedulingPolicyRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetSchedulingPolicyRequest, GetSchedulingPolicyResponse> + handler); + + /** + * Gets information about the specified Scheduling Window. + * + * @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 getSchedulingWindow( + GetSchedulingWindowRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetSchedulingWindowRequest, GetSchedulingWindowResponse> + handler); + /** * Gets information about the VM cluster. Applies to Exadata Cloud@Customer instances only. * @@ -4721,6 +5080,38 @@ java.util.concurrent.Future listExascaleDbS ListExascaleDbStorageVaultsRequest, ListExascaleDbStorageVaultsResponse> handler); + /** + * Lists the execution action resources in the specified compartment. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listExecutionActions( + ListExecutionActionsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListExecutionActionsRequest, ListExecutionActionsResponse> + handler); + + /** + * Lists the execution window resources in the specified compartment. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listExecutionWindows( + ListExecutionWindowsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListExecutionWindowsRequest, ListExecutionWindowsResponse> + handler); + /** * Gets a list of the external container databases in the specified compartment. * @@ -4909,6 +5300,22 @@ java.util.concurrent.Future listOneoffPatches( ListOneoffPatchesRequest, ListOneoffPatchesResponse> handler); + /** + * List all the action params and their possible values for a given action type + * + * @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 listParamsForActionType( + ListParamsForActionTypeRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListParamsForActionTypeRequest, ListParamsForActionTypeResponse> + handler); + /** * Gets the pluggable database conversion history for a specified database in a bare metal or * virtual machine DB system. @@ -4945,6 +5352,89 @@ java.util.concurrent.Future listPluggableDatabas ListPluggableDatabasesRequest, ListPluggableDatabasesResponse> handler); + /** + * Returns a recommended Scheduled Actions configuration for a given resource, plan intent and + * scheduling policy. + * + * @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 + listRecommendedScheduledActions( + ListRecommendedScheduledActionsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListRecommendedScheduledActionsRequest, + ListRecommendedScheduledActionsResponse> + handler); + + /** + * Lists the Scheduled Action resources in the specified compartment. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listScheduledActions( + ListScheduledActionsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListScheduledActionsRequest, ListScheduledActionsResponse> + handler); + + /** + * Lists the Scheduling Plan resources in the specified compartment. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listSchedulingPlans( + ListSchedulingPlansRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListSchedulingPlansRequest, ListSchedulingPlansResponse> + handler); + + /** + * Lists the Scheduling Policy resources in the specified compartment. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listSchedulingPolicies( + ListSchedulingPoliciesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListSchedulingPoliciesRequest, ListSchedulingPoliciesResponse> + handler); + + /** + * Lists the Scheduling Window resources in the specified compartment. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listSchedulingWindows( + ListSchedulingWindowsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListSchedulingWindowsRequest, ListSchedulingWindowsResponse> + handler); + /** * Gets a list of supported Exadata system versions for a given shape and GI version. * @@ -5157,6 +5647,22 @@ java.util.concurrent.Future modifyDatabaseMana ModifyPluggableDatabaseManagementResponse> handler); + /** + * Moves an execution action member to this execution action resource from another. + * + * @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 moveExecutionActionMember( + MoveExecutionActionMemberRequest request, + com.oracle.bmc.responses.AsyncHandler< + MoveExecutionActionMemberRequest, MoveExecutionActionMemberResponse> + handler); + /** * Refreshes a pluggable database (PDB) Refreshable clone. * @@ -5308,6 +5814,38 @@ java.util.concurrent.Future remoteClonePlu RemoveVirtualMachineFromVmClusterResponse> handler); + /** + * Reorders the execution actions under this execution window resource. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future reorderExecutionActions( + ReorderExecutionActionsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ReorderExecutionActionsRequest, ReorderExecutionActionsResponse> + handler); + + /** + * Re-order the scheduled actions under this scheduling plan resource. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future reorderScheduledActions( + ReorderScheduledActionsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ReorderScheduledActionsRequest, ReorderScheduledActionsResponse> + handler); + /** * Adds or removes Db server network nodes to extend or shrink the existing VM cluster network. * Applies to Exadata Cloud@Customer instances only. @@ -6330,6 +6868,38 @@ java.util.concurrent.Future updateExascale UpdateExascaleDbStorageVaultResponse> handler); + /** + * Updates the execution action resource. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future updateExecutionAction( + UpdateExecutionActionRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateExecutionActionRequest, UpdateExecutionActionResponse> + handler); + + /** + * Updates the execution window resource. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future updateExecutionWindow( + UpdateExecutionWindowRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateExecutionWindowRequest, UpdateExecutionWindowResponse> + handler); + /** * Updates the properties of an {@link * #createExternalContainerDatabaseDetails(CreateExternalContainerDatabaseDetailsRequest, @@ -6471,6 +7041,54 @@ java.util.concurrent.Future updatePluggableData UpdatePluggableDatabaseRequest, UpdatePluggableDatabaseResponse> handler); + /** + * Updates the Scheduled Action resource. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future updateScheduledAction( + UpdateScheduledActionRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateScheduledActionRequest, UpdateScheduledActionResponse> + handler); + + /** + * Updates the Scheduling Policy resource. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future updateSchedulingPolicy( + UpdateSchedulingPolicyRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateSchedulingPolicyRequest, UpdateSchedulingPolicyResponse> + handler); + + /** + * Updates the Scheduling Window resource. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future updateSchedulingWindow( + UpdateSchedulingWindowRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateSchedulingWindowRequest, UpdateSchedulingWindowResponse> + handler); + /** * Updates the specified VM cluster. Applies to Exadata Cloud@Customer instances only. * diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsyncClient.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsyncClient.java index 5147300b670..366fdf932a3 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsyncClient.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsyncClient.java @@ -429,6 +429,85 @@ public java.util.concurrent.Future cancelBackup( .callAsync(handler); } + @Override + public java.util.concurrent.Future cancelExecutionWindow( + CancelExecutionWindowRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CancelExecutionWindowRequest, CancelExecutionWindowResponse> + handler) { + + Validate.notBlank(request.getExecutionWindowId(), "executionWindowId must not be blank"); + Objects.requireNonNull( + request.getCancelExecutionWindowDetails(), + "cancelExecutionWindowDetails is required"); + + return clientCall(request, CancelExecutionWindowResponse::builder) + .logger(LOG, "cancelExecutionWindow") + .serviceDetails( + "Database", + "CancelExecutionWindow", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExecutionWindow/CancelExecutionWindow") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CancelExecutionWindowRequest::builder) + .basePath("/20160918") + .appendPathParam("executionWindows") + .appendPathParam(request.getExecutionWindowId()) + .appendPathParam("actions") + .appendPathParam("cancel") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleBody( + com.oracle.bmc.database.model.ExecutionWindow.class, + CancelExecutionWindowResponse.Builder::executionWindow) + .handleResponseHeaderString( + "opc-work-request-id", + CancelExecutionWindowResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString("etag", CancelExecutionWindowResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CancelExecutionWindowResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + cascadingDeleteSchedulingPlan( + CascadingDeleteSchedulingPlanRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CascadingDeleteSchedulingPlanRequest, + CascadingDeleteSchedulingPlanResponse> + handler) { + + Validate.notBlank(request.getSchedulingPlanId(), "schedulingPlanId must not be blank"); + + return clientCall(request, CascadingDeleteSchedulingPlanResponse::builder) + .logger(LOG, "cascadingDeleteSchedulingPlan") + .serviceDetails( + "Database", + "CascadingDeleteSchedulingPlan", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingPlan/CascadingDeleteSchedulingPlan") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CascadingDeleteSchedulingPlanRequest::builder) + .basePath("/20160918") + .appendPathParam("schedulingPlans") + .appendPathParam(request.getSchedulingPlanId()) + .appendPathParam("actions") + .appendPathParam("cascadingDeleteSchedulingPlan") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + CascadingDeleteSchedulingPlanResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + CascadingDeleteSchedulingPlanResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future changeAutonomousContainerDatabaseCompartment( @@ -1499,6 +1578,88 @@ public java.util.concurrent.Future changeKeyStoreTyp .callAsync(handler); } + @Override + public java.util.concurrent.Future + changeSchedulingPlanCompartment( + ChangeSchedulingPlanCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeSchedulingPlanCompartmentRequest, + ChangeSchedulingPlanCompartmentResponse> + handler) { + Objects.requireNonNull( + request.getChangeSchedulingPlanCompartmentDetails(), + "changeSchedulingPlanCompartmentDetails is required"); + + Validate.notBlank(request.getSchedulingPlanId(), "schedulingPlanId must not be blank"); + + return clientCall(request, ChangeSchedulingPlanCompartmentResponse::builder) + .logger(LOG, "changeSchedulingPlanCompartment") + .serviceDetails( + "Database", + "ChangeSchedulingPlanCompartment", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingPlan/ChangeSchedulingPlanCompartment") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeSchedulingPlanCompartmentRequest::builder) + .basePath("/20160918") + .appendPathParam("schedulingPlans") + .appendPathParam(request.getSchedulingPlanId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ChangeSchedulingPlanCompartmentResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ChangeSchedulingPlanCompartmentResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + changeSchedulingPolicyCompartment( + ChangeSchedulingPolicyCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeSchedulingPolicyCompartmentRequest, + ChangeSchedulingPolicyCompartmentResponse> + handler) { + Objects.requireNonNull( + request.getChangeSchedulingPolicyCompartmentDetails(), + "changeSchedulingPolicyCompartmentDetails is required"); + + Validate.notBlank(request.getSchedulingPolicyId(), "schedulingPolicyId must not be blank"); + + return clientCall(request, ChangeSchedulingPolicyCompartmentResponse::builder) + .logger(LOG, "changeSchedulingPolicyCompartment") + .serviceDetails( + "Database", + "ChangeSchedulingPolicyCompartment", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingPolicy/ChangeSchedulingPolicyCompartment") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeSchedulingPolicyCompartmentRequest::builder) + .basePath("/20160918") + .appendPathParam("schedulingPolicies") + .appendPathParam(request.getSchedulingPolicyId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ChangeSchedulingPolicyCompartmentResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ChangeSchedulingPolicyCompartmentResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future changeVmClusterCompartment( @@ -2634,6 +2795,78 @@ public java.util.concurrent.Future createExadbVmCl .callAsync(handler); } + @Override + public java.util.concurrent.Future createExecutionAction( + CreateExecutionActionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateExecutionActionRequest, CreateExecutionActionResponse> + handler) { + Objects.requireNonNull( + request.getCreateExecutionActionDetails(), + "createExecutionActionDetails is required"); + + return clientCall(request, CreateExecutionActionResponse::builder) + .logger(LOG, "createExecutionAction") + .serviceDetails( + "Database", + "CreateExecutionAction", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExecutionAction/CreateExecutionAction") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateExecutionActionRequest::builder) + .basePath("/20160918") + .appendPathParam("executionActions") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.database.model.ExecutionAction.class, + CreateExecutionActionResponse.Builder::executionAction) + .handleResponseHeaderString( + "opc-work-request-id", + CreateExecutionActionResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString("etag", CreateExecutionActionResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreateExecutionActionResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future createExecutionWindow( + CreateExecutionWindowRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateExecutionWindowRequest, CreateExecutionWindowResponse> + handler) { + Objects.requireNonNull( + request.getCreateExecutionWindowDetails(), + "createExecutionWindowDetails is required"); + + return clientCall(request, CreateExecutionWindowResponse::builder) + .logger(LOG, "createExecutionWindow") + .serviceDetails( + "Database", + "CreateExecutionWindow", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExecutionWindow/CreateExecutionWindow") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateExecutionWindowRequest::builder) + .basePath("/20160918") + .appendPathParam("executionWindows") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.database.model.ExecutionWindow.class, + CreateExecutionWindowResponse.Builder::executionWindow) + .handleResponseHeaderString( + "opc-work-request-id", + CreateExecutionWindowResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString("etag", CreateExecutionWindowResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreateExecutionWindowResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future createExternalBackupJob( CreateExternalBackupJobRequest request, @@ -2965,6 +3198,148 @@ public java.util.concurrent.Future createPlugga .callAsync(handler); } + @Override + public java.util.concurrent.Future createScheduledAction( + CreateScheduledActionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateScheduledActionRequest, CreateScheduledActionResponse> + handler) { + Objects.requireNonNull( + request.getCreateScheduledActionDetails(), + "createScheduledActionDetails is required"); + + return clientCall(request, CreateScheduledActionResponse::builder) + .logger(LOG, "createScheduledAction") + .serviceDetails("Database", "CreateScheduledAction", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateScheduledActionRequest::builder) + .basePath("/20160918") + .appendPathParam("scheduledActions") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.database.model.ScheduledAction.class, + CreateScheduledActionResponse.Builder::scheduledAction) + .handleResponseHeaderString( + "opc-work-request-id", + CreateScheduledActionResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString("etag", CreateScheduledActionResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreateScheduledActionResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future createSchedulingPlan( + CreateSchedulingPlanRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateSchedulingPlanRequest, CreateSchedulingPlanResponse> + handler) { + Objects.requireNonNull( + request.getCreateSchedulingPlanDetails(), + "createSchedulingPlanDetails is required"); + + return clientCall(request, CreateSchedulingPlanResponse::builder) + .logger(LOG, "createSchedulingPlan") + .serviceDetails("Database", "CreateSchedulingPlan", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateSchedulingPlanRequest::builder) + .basePath("/20160918") + .appendPathParam("schedulingPlans") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.database.model.SchedulingPlan.class, + CreateSchedulingPlanResponse.Builder::schedulingPlan) + .handleResponseHeaderString( + "opc-work-request-id", + CreateSchedulingPlanResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString("etag", CreateSchedulingPlanResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreateSchedulingPlanResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future createSchedulingPolicy( + CreateSchedulingPolicyRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateSchedulingPolicyRequest, CreateSchedulingPolicyResponse> + handler) { + Objects.requireNonNull( + request.getCreateSchedulingPolicyDetails(), + "createSchedulingPolicyDetails is required"); + + return clientCall(request, CreateSchedulingPolicyResponse::builder) + .logger(LOG, "createSchedulingPolicy") + .serviceDetails( + "Database", + "CreateSchedulingPolicy", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingPolicy/CreateSchedulingPolicy") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateSchedulingPolicyRequest::builder) + .basePath("/20160918") + .appendPathParam("schedulingPolicies") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.database.model.SchedulingPolicy.class, + CreateSchedulingPolicyResponse.Builder::schedulingPolicy) + .handleResponseHeaderString( + "opc-work-request-id", + CreateSchedulingPolicyResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString("etag", CreateSchedulingPolicyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreateSchedulingPolicyResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future createSchedulingWindow( + CreateSchedulingWindowRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateSchedulingWindowRequest, CreateSchedulingWindowResponse> + handler) { + + Validate.notBlank(request.getSchedulingPolicyId(), "schedulingPolicyId must not be blank"); + Objects.requireNonNull( + request.getCreateSchedulingWindowDetails(), + "createSchedulingWindowDetails is required"); + + return clientCall(request, CreateSchedulingWindowResponse::builder) + .logger(LOG, "createSchedulingWindow") + .serviceDetails( + "Database", + "CreateSchedulingWindow", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingWindow/CreateSchedulingWindow") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateSchedulingWindowRequest::builder) + .basePath("/20160918") + .appendPathParam("schedulingPolicies") + .appendPathParam(request.getSchedulingPolicyId()) + .appendPathParam("schedulingWindows") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.database.model.SchedulingWindow.class, + CreateSchedulingWindowResponse.Builder::schedulingWindow) + .handleResponseHeaderString( + "opc-work-request-id", + CreateSchedulingWindowResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString("etag", CreateSchedulingWindowResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreateSchedulingWindowResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future createVmCluster( CreateVmClusterRequest request, @@ -3666,6 +4041,65 @@ public java.util.concurrent.Future deleteExadbVmCl .callAsync(handler); } + @Override + public java.util.concurrent.Future deleteExecutionAction( + DeleteExecutionActionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteExecutionActionRequest, DeleteExecutionActionResponse> + handler) { + + Validate.notBlank(request.getExecutionActionId(), "executionActionId must not be blank"); + + return clientCall(request, DeleteExecutionActionResponse::builder) + .logger(LOG, "deleteExecutionAction") + .serviceDetails( + "Database", + "DeleteExecutionAction", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExecutionAction/DeleteExecutionAction") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteExecutionActionRequest::builder) + .basePath("/20160918") + .appendPathParam("executionActions") + .appendPathParam(request.getExecutionActionId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteExecutionActionResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteExecutionActionResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future deleteExecutionWindow( + DeleteExecutionWindowRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteExecutionWindowRequest, DeleteExecutionWindowResponse> + handler) { + + Validate.notBlank(request.getExecutionWindowId(), "executionWindowId must not be blank"); + + return clientCall(request, DeleteExecutionWindowResponse::builder) + .logger(LOG, "deleteExecutionWindow") + .serviceDetails( + "Database", + "DeleteExecutionWindow", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExecutionWindow/DeleteExecutionWindow") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteExecutionWindowRequest::builder) + .basePath("/20160918") + .appendPathParam("executionWindows") + .appendPathParam(request.getExecutionWindowId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", DeleteExecutionWindowResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future deleteExternalContainerDatabase( @@ -3901,30 +4335,152 @@ public java.util.concurrent.Future deletePlugga } @Override - public java.util.concurrent.Future deleteVmCluster( - DeleteVmClusterRequest request, + public java.util.concurrent.Future deleteScheduledAction( + DeleteScheduledActionRequest request, final com.oracle.bmc.responses.AsyncHandler< - DeleteVmClusterRequest, DeleteVmClusterResponse> + DeleteScheduledActionRequest, DeleteScheduledActionResponse> handler) { - Validate.notBlank(request.getVmClusterId(), "vmClusterId must not be blank"); + Validate.notBlank(request.getScheduledActionId(), "scheduledActionId must not be blank"); - return clientCall(request, DeleteVmClusterResponse::builder) - .logger(LOG, "deleteVmCluster") + return clientCall(request, DeleteScheduledActionResponse::builder) + .logger(LOG, "deleteScheduledAction") .serviceDetails( "Database", - "DeleteVmCluster", - "https://docs.oracle.com/iaas/api/#/en/database/20160918/VmCluster/DeleteVmCluster") + "DeleteScheduledAction", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/ScheduledAction/DeleteScheduledAction") .method(com.oracle.bmc.http.client.Method.DELETE) - .requestBuilder(DeleteVmClusterRequest::builder) + .requestBuilder(DeleteScheduledActionRequest::builder) .basePath("/20160918") - .appendPathParam("vmClusters") - .appendPathParam(request.getVmClusterId()) + .appendPathParam("scheduledActions") + .appendPathParam(request.getScheduledActionId()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) .handleResponseHeaderString( - "opc-work-request-id", DeleteVmClusterResponse.Builder::opcWorkRequestId) + "opc-work-request-id", + DeleteScheduledActionResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteScheduledActionResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future deleteSchedulingPlan( + DeleteSchedulingPlanRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteSchedulingPlanRequest, DeleteSchedulingPlanResponse> + handler) { + + Validate.notBlank(request.getSchedulingPlanId(), "schedulingPlanId must not be blank"); + + return clientCall(request, DeleteSchedulingPlanResponse::builder) + .logger(LOG, "deleteSchedulingPlan") + .serviceDetails( + "Database", + "DeleteSchedulingPlan", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingPlan/DeleteSchedulingPlan") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteSchedulingPlanRequest::builder) + .basePath("/20160918") + .appendPathParam("schedulingPlans") + .appendPathParam(request.getSchedulingPlanId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteSchedulingPlanResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteSchedulingPlanResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future deleteSchedulingPolicy( + DeleteSchedulingPolicyRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteSchedulingPolicyRequest, DeleteSchedulingPolicyResponse> + handler) { + + Validate.notBlank(request.getSchedulingPolicyId(), "schedulingPolicyId must not be blank"); + + return clientCall(request, DeleteSchedulingPolicyResponse::builder) + .logger(LOG, "deleteSchedulingPolicy") + .serviceDetails( + "Database", + "DeleteSchedulingPolicy", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingPolicy/DeleteSchedulingPolicy") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteSchedulingPolicyRequest::builder) + .basePath("/20160918") + .appendPathParam("schedulingPolicies") + .appendPathParam(request.getSchedulingPolicyId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", DeleteSchedulingPolicyResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future deleteSchedulingWindow( + DeleteSchedulingWindowRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteSchedulingWindowRequest, DeleteSchedulingWindowResponse> + handler) { + + Validate.notBlank(request.getSchedulingPolicyId(), "schedulingPolicyId must not be blank"); + + Validate.notBlank(request.getSchedulingWindowId(), "schedulingWindowId must not be blank"); + + return clientCall(request, DeleteSchedulingWindowResponse::builder) + .logger(LOG, "deleteSchedulingWindow") + .serviceDetails( + "Database", + "DeleteSchedulingWindow", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingWindow/DeleteSchedulingWindow") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteSchedulingWindowRequest::builder) + .basePath("/20160918") + .appendPathParam("schedulingPolicies") + .appendPathParam(request.getSchedulingPolicyId()) + .appendPathParam("schedulingWindows") + .appendPathParam(request.getSchedulingWindowId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", DeleteSchedulingWindowResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future deleteVmCluster( + DeleteVmClusterRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteVmClusterRequest, DeleteVmClusterResponse> + handler) { + + Validate.notBlank(request.getVmClusterId(), "vmClusterId must not be blank"); + + return clientCall(request, DeleteVmClusterResponse::builder) + .logger(LOG, "deleteVmCluster") + .serviceDetails( + "Database", + "DeleteVmCluster", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/VmCluster/DeleteVmCluster") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteVmClusterRequest::builder) + .basePath("/20160918") + .appendPathParam("vmClusters") + .appendPathParam(request.getVmClusterId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", DeleteVmClusterResponse.Builder::opcWorkRequestId) .handleResponseHeaderString( "opc-request-id", DeleteVmClusterResponse.Builder::opcRequestId) .callAsync(handler); @@ -7207,6 +7763,68 @@ public java.util.concurrent.Future getExascal .callAsync(handler); } + @Override + public java.util.concurrent.Future getExecutionAction( + GetExecutionActionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetExecutionActionRequest, GetExecutionActionResponse> + handler) { + + Validate.notBlank(request.getExecutionActionId(), "executionActionId must not be blank"); + + return clientCall(request, GetExecutionActionResponse::builder) + .logger(LOG, "getExecutionAction") + .serviceDetails( + "Database", + "GetExecutionAction", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExecutionAction/GetExecutionAction") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetExecutionActionRequest::builder) + .basePath("/20160918") + .appendPathParam("executionActions") + .appendPathParam(request.getExecutionActionId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.database.model.ExecutionAction.class, + GetExecutionActionResponse.Builder::executionAction) + .handleResponseHeaderString("etag", GetExecutionActionResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetExecutionActionResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getExecutionWindow( + GetExecutionWindowRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetExecutionWindowRequest, GetExecutionWindowResponse> + handler) { + + Validate.notBlank(request.getExecutionWindowId(), "executionWindowId must not be blank"); + + return clientCall(request, GetExecutionWindowResponse::builder) + .logger(LOG, "getExecutionWindow") + .serviceDetails( + "Database", + "GetExecutionWindow", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExecutionWindow/GetExecutionWindow") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetExecutionWindowRequest::builder) + .basePath("/20160918") + .appendPathParam("executionWindows") + .appendPathParam(request.getExecutionWindowId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.database.model.ExecutionWindow.class, + GetExecutionWindowResponse.Builder::executionWindow) + .handleResponseHeaderString("etag", GetExecutionWindowResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetExecutionWindowResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getExternalBackupJob( GetExternalBackupJobRequest request, @@ -7616,6 +8234,134 @@ public java.util.concurrent.Future getPluggableDat .callAsync(handler); } + @Override + public java.util.concurrent.Future getScheduledAction( + GetScheduledActionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetScheduledActionRequest, GetScheduledActionResponse> + handler) { + + Validate.notBlank(request.getScheduledActionId(), "scheduledActionId must not be blank"); + + return clientCall(request, GetScheduledActionResponse::builder) + .logger(LOG, "getScheduledAction") + .serviceDetails( + "Database", + "GetScheduledAction", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/ScheduledAction/GetScheduledAction") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetScheduledActionRequest::builder) + .basePath("/20160918") + .appendPathParam("scheduledActions") + .appendPathParam(request.getScheduledActionId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.database.model.ScheduledAction.class, + GetScheduledActionResponse.Builder::scheduledAction) + .handleResponseHeaderString("etag", GetScheduledActionResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetScheduledActionResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getSchedulingPlan( + GetSchedulingPlanRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetSchedulingPlanRequest, GetSchedulingPlanResponse> + handler) { + + Validate.notBlank(request.getSchedulingPlanId(), "schedulingPlanId must not be blank"); + + return clientCall(request, GetSchedulingPlanResponse::builder) + .logger(LOG, "getSchedulingPlan") + .serviceDetails( + "Database", + "GetSchedulingPlan", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingPlan/GetSchedulingPlan") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetSchedulingPlanRequest::builder) + .basePath("/20160918") + .appendPathParam("schedulingPlans") + .appendPathParam(request.getSchedulingPlanId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.database.model.SchedulingPlan.class, + GetSchedulingPlanResponse.Builder::schedulingPlan) + .handleResponseHeaderString("etag", GetSchedulingPlanResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetSchedulingPlanResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getSchedulingPolicy( + GetSchedulingPolicyRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetSchedulingPolicyRequest, GetSchedulingPolicyResponse> + handler) { + + Validate.notBlank(request.getSchedulingPolicyId(), "schedulingPolicyId must not be blank"); + + return clientCall(request, GetSchedulingPolicyResponse::builder) + .logger(LOG, "getSchedulingPolicy") + .serviceDetails( + "Database", + "GetSchedulingPolicy", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingPolicy/GetSchedulingPolicy") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetSchedulingPolicyRequest::builder) + .basePath("/20160918") + .appendPathParam("schedulingPolicies") + .appendPathParam(request.getSchedulingPolicyId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.database.model.SchedulingPolicy.class, + GetSchedulingPolicyResponse.Builder::schedulingPolicy) + .handleResponseHeaderString("etag", GetSchedulingPolicyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetSchedulingPolicyResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getSchedulingWindow( + GetSchedulingWindowRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetSchedulingWindowRequest, GetSchedulingWindowResponse> + handler) { + + Validate.notBlank(request.getSchedulingPolicyId(), "schedulingPolicyId must not be blank"); + + Validate.notBlank(request.getSchedulingWindowId(), "schedulingWindowId must not be blank"); + + return clientCall(request, GetSchedulingWindowResponse::builder) + .logger(LOG, "getSchedulingWindow") + .serviceDetails( + "Database", + "GetSchedulingWindow", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingWindow/GetSchedulingWindow") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetSchedulingWindowRequest::builder) + .basePath("/20160918") + .appendPathParam("schedulingPolicies") + .appendPathParam(request.getSchedulingPolicyId()) + .appendPathParam("schedulingWindows") + .appendPathParam(request.getSchedulingWindowId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.database.model.SchedulingWindow.class, + GetSchedulingWindowResponse.Builder::schedulingWindow) + .handleResponseHeaderString("etag", GetSchedulingWindowResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetSchedulingWindowResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getVmCluster( GetVmClusterRequest request, @@ -9948,6 +10694,82 @@ public java.util.concurrent.Future listExadbVmClust .callAsync(handler); } + @Override + public java.util.concurrent.Future listExecutionActions( + ListExecutionActionsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListExecutionActionsRequest, ListExecutionActionsResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListExecutionActionsResponse::builder) + .logger(LOG, "listExecutionActions") + .serviceDetails( + "Database", + "ListExecutionActions", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExecutionAction/ListExecutionActions") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListExecutionActionsRequest::builder) + .basePath("/20160918") + .appendPathParam("executionActions") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("executionWindowId", request.getExecutionWindowId()) + .appendQueryParam("displayName", request.getDisplayName()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBodyList( + com.oracle.bmc.database.model.ExecutionActionSummary.class, + ListExecutionActionsResponse.Builder::items) + .handleResponseHeaderString( + "opc-request-id", ListExecutionActionsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListExecutionActionsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listExecutionWindows( + ListExecutionWindowsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListExecutionWindowsRequest, ListExecutionWindowsResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListExecutionWindowsResponse::builder) + .logger(LOG, "listExecutionWindows") + .serviceDetails( + "Database", + "ListExecutionWindows", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExecutionWindow/ListExecutionWindows") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListExecutionWindowsRequest::builder) + .basePath("/20160918") + .appendPathParam("executionWindows") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("executionResourceId", request.getExecutionResourceId()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBodyList( + com.oracle.bmc.database.model.ExecutionWindowSummary.class, + ListExecutionWindowsResponse.Builder::items) + .handleResponseHeaderString( + "opc-request-id", ListExecutionWindowsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListExecutionWindowsResponse.Builder::opcNextPage) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listExternalContainerDatabases( @@ -10329,135 +11151,374 @@ public java.util.concurrent.Future listMaintenanceR .appendEnumQueryParam("maintenanceType", request.getMaintenanceType()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) - .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("availabilityDomain", request.getAvailabilityDomain()) + .appendEnumQueryParam("maintenanceSubtype", request.getMaintenanceSubtype()) + .accept("application/json") + .handleBodyList( + com.oracle.bmc.database.model.MaintenanceRunSummary.class, + ListMaintenanceRunsResponse.Builder::items) + .handleResponseHeaderString( + "opc-request-id", ListMaintenanceRunsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListMaintenanceRunsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listOneoffPatches( + ListOneoffPatchesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListOneoffPatchesRequest, ListOneoffPatchesResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListOneoffPatchesResponse::builder) + .logger(LOG, "listOneoffPatches") + .serviceDetails( + "Database", + "ListOneoffPatches", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/OneoffPatch/ListOneoffPatches") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListOneoffPatchesRequest::builder) + .basePath("/20160918") + .appendPathParam("oneoffPatches") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBodyList( + com.oracle.bmc.database.model.OneoffPatchSummary.class, + ListOneoffPatchesResponse.Builder::items) + .handleResponseHeaderString( + "opc-request-id", ListOneoffPatchesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListOneoffPatchesResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listParamsForActionType( + ListParamsForActionTypeRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListParamsForActionTypeRequest, ListParamsForActionTypeResponse> + handler) { + Objects.requireNonNull(request.getType(), "type is required"); + + return clientCall(request, ListParamsForActionTypeResponse::builder) + .logger(LOG, "listParamsForActionType") + .serviceDetails( + "Database", + "ListParamsForActionType", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/ActionParamValuesSummary/ListParamsForActionType") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListParamsForActionTypeRequest::builder) + .basePath("/20160918") + .appendPathParam("scheduledActionParams") + .appendEnumQueryParam("type", request.getType()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.database.model.ActionParamValuesCollection.class, + ListParamsForActionTypeResponse.Builder::actionParamValuesCollection) + .handleResponseHeaderString( + "opc-request-id", ListParamsForActionTypeResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListParamsForActionTypeResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listPdbConversionHistoryEntries( + ListPdbConversionHistoryEntriesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListPdbConversionHistoryEntriesRequest, + ListPdbConversionHistoryEntriesResponse> + handler) { + + Validate.notBlank(request.getDatabaseId(), "databaseId must not be blank"); + + return clientCall(request, ListPdbConversionHistoryEntriesResponse::builder) + .logger(LOG, "listPdbConversionHistoryEntries") + .serviceDetails( + "Database", + "ListPdbConversionHistoryEntries", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/Database/ListPdbConversionHistoryEntries") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListPdbConversionHistoryEntriesRequest::builder) + .basePath("/20160918") + .appendPathParam("databases") + .appendPathParam(request.getDatabaseId()) + .appendPathParam("pdbConversionHistoryEntries") + .appendEnumQueryParam("pdbConversionAction", request.getPdbConversionAction()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBodyList( + com.oracle.bmc.database.model.PdbConversionHistoryEntrySummary.class, + ListPdbConversionHistoryEntriesResponse.Builder::items) + .handleResponseHeaderString( + "opc-request-id", + ListPdbConversionHistoryEntriesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListPdbConversionHistoryEntriesResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listPluggableDatabases( + ListPluggableDatabasesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListPluggableDatabasesRequest, ListPluggableDatabasesResponse> + handler) { + + return clientCall(request, ListPluggableDatabasesResponse::builder) + .logger(LOG, "listPluggableDatabases") + .serviceDetails( + "Database", + "ListPluggableDatabases", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/PluggableDatabase/ListPluggableDatabases") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListPluggableDatabasesRequest::builder) + .basePath("/20160918") + .appendPathParam("pluggableDatabases") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("databaseId", request.getDatabaseId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("pdbName", request.getPdbName()) + .accept("application/json") + .handleBodyList( + com.oracle.bmc.database.model.PluggableDatabaseSummary.class, + ListPluggableDatabasesResponse.Builder::items) + .handleResponseHeaderString( + "opc-request-id", ListPluggableDatabasesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListPluggableDatabasesResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listRecommendedScheduledActions( + ListRecommendedScheduledActionsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListRecommendedScheduledActionsRequest, + ListRecommendedScheduledActionsResponse> + handler) { + + Validate.notBlank(request.getSchedulingPolicyId(), "schedulingPolicyId must not be blank"); + Objects.requireNonNull( + request.getSchedulingPolicyTargetResourceId(), + "schedulingPolicyTargetResourceId is required"); + + Objects.requireNonNull(request.getPlanIntent(), "planIntent is required"); + + return clientCall(request, ListRecommendedScheduledActionsResponse::builder) + .logger(LOG, "listRecommendedScheduledActions") + .serviceDetails( + "Database", + "ListRecommendedScheduledActions", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/RecommendedScheduledActionSummary/ListRecommendedScheduledActions") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListRecommendedScheduledActionsRequest::builder) + .basePath("/20160918") + .appendPathParam("schedulingPolicies") + .appendPathParam(request.getSchedulingPolicyId()) + .appendPathParam("recommendedScheduledActions") + .appendQueryParam( + "schedulingPolicyTargetResourceId", + request.getSchedulingPolicyTargetResourceId()) + .appendEnumQueryParam("planIntent", request.getPlanIntent()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.database.model.RecommendedScheduledActionsCollection.class, + ListRecommendedScheduledActionsResponse.Builder + ::recommendedScheduledActionsCollection) + .handleResponseHeaderString( + "opc-request-id", + ListRecommendedScheduledActionsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListRecommendedScheduledActionsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listScheduledActions( + ListScheduledActionsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListScheduledActionsRequest, ListScheduledActionsResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListScheduledActionsResponse::builder) + .logger(LOG, "listScheduledActions") + .serviceDetails( + "Database", + "ListScheduledActions", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/ScheduledAction/ListScheduledActions") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListScheduledActionsRequest::builder) + .basePath("/20160918") + .appendPathParam("scheduledActions") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("page", request.getPage()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("serviceType", request.getServiceType()) + .appendQueryParam("schedulingPlanId", request.getSchedulingPlanId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("id", request.getId()) .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) - .appendQueryParam("availabilityDomain", request.getAvailabilityDomain()) - .appendEnumQueryParam("maintenanceSubtype", request.getMaintenanceSubtype()) .accept("application/json") - .handleBodyList( - com.oracle.bmc.database.model.MaintenanceRunSummary.class, - ListMaintenanceRunsResponse.Builder::items) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.database.model.ScheduledActionCollection.class, + ListScheduledActionsResponse.Builder::scheduledActionCollection) .handleResponseHeaderString( - "opc-request-id", ListMaintenanceRunsResponse.Builder::opcRequestId) + "opc-request-id", ListScheduledActionsResponse.Builder::opcRequestId) .handleResponseHeaderString( - "opc-next-page", ListMaintenanceRunsResponse.Builder::opcNextPage) + "opc-next-page", ListScheduledActionsResponse.Builder::opcNextPage) .callAsync(handler); } @Override - public java.util.concurrent.Future listOneoffPatches( - ListOneoffPatchesRequest request, + public java.util.concurrent.Future listSchedulingPlans( + ListSchedulingPlansRequest request, final com.oracle.bmc.responses.AsyncHandler< - ListOneoffPatchesRequest, ListOneoffPatchesResponse> + ListSchedulingPlansRequest, ListSchedulingPlansResponse> handler) { Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); - return clientCall(request, ListOneoffPatchesResponse::builder) - .logger(LOG, "listOneoffPatches") + return clientCall(request, ListSchedulingPlansResponse::builder) + .logger(LOG, "listSchedulingPlans") .serviceDetails( "Database", - "ListOneoffPatches", - "https://docs.oracle.com/iaas/api/#/en/database/20160918/OneoffPatch/ListOneoffPatches") + "ListSchedulingPlans", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingPlan/ListSchedulingPlans") .method(com.oracle.bmc.http.client.Method.GET) - .requestBuilder(ListOneoffPatchesRequest::builder) + .requestBuilder(ListSchedulingPlansRequest::builder) .basePath("/20160918") - .appendPathParam("oneoffPatches") + .appendPathParam("schedulingPlans") .appendQueryParam("compartmentId", request.getCompartmentId()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) .appendEnumQueryParam("sortBy", request.getSortBy()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("schedulingPolicyId", request.getSchedulingPolicyId()) .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("resourceId", request.getResourceId()) + .appendQueryParam("id", request.getId()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) - .handleBodyList( - com.oracle.bmc.database.model.OneoffPatchSummary.class, - ListOneoffPatchesResponse.Builder::items) + .handleBody( + com.oracle.bmc.database.model.SchedulingPlanCollection.class, + ListSchedulingPlansResponse.Builder::schedulingPlanCollection) .handleResponseHeaderString( - "opc-request-id", ListOneoffPatchesResponse.Builder::opcRequestId) + "opc-request-id", ListSchedulingPlansResponse.Builder::opcRequestId) .handleResponseHeaderString( - "opc-next-page", ListOneoffPatchesResponse.Builder::opcNextPage) + "opc-next-page", ListSchedulingPlansResponse.Builder::opcNextPage) .callAsync(handler); } @Override - public java.util.concurrent.Future - listPdbConversionHistoryEntries( - ListPdbConversionHistoryEntriesRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ListPdbConversionHistoryEntriesRequest, - ListPdbConversionHistoryEntriesResponse> - handler) { - - Validate.notBlank(request.getDatabaseId(), "databaseId must not be blank"); + public java.util.concurrent.Future listSchedulingPolicies( + ListSchedulingPoliciesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListSchedulingPoliciesRequest, ListSchedulingPoliciesResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); - return clientCall(request, ListPdbConversionHistoryEntriesResponse::builder) - .logger(LOG, "listPdbConversionHistoryEntries") + return clientCall(request, ListSchedulingPoliciesResponse::builder) + .logger(LOG, "listSchedulingPolicies") .serviceDetails( "Database", - "ListPdbConversionHistoryEntries", - "https://docs.oracle.com/iaas/api/#/en/database/20160918/Database/ListPdbConversionHistoryEntries") + "ListSchedulingPolicies", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingPolicy/ListSchedulingPolicies") .method(com.oracle.bmc.http.client.Method.GET) - .requestBuilder(ListPdbConversionHistoryEntriesRequest::builder) + .requestBuilder(ListSchedulingPoliciesRequest::builder) .basePath("/20160918") - .appendPathParam("databases") - .appendPathParam(request.getDatabaseId()) - .appendPathParam("pdbConversionHistoryEntries") - .appendEnumQueryParam("pdbConversionAction", request.getPdbConversionAction()) - .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) - .appendEnumQueryParam("sortBy", request.getSortBy()) - .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendPathParam("schedulingPolicies") + .appendQueryParam("compartmentId", request.getCompartmentId()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBodyList( - com.oracle.bmc.database.model.PdbConversionHistoryEntrySummary.class, - ListPdbConversionHistoryEntriesResponse.Builder::items) + com.oracle.bmc.database.model.SchedulingPolicySummary.class, + ListSchedulingPoliciesResponse.Builder::items) .handleResponseHeaderString( - "opc-request-id", - ListPdbConversionHistoryEntriesResponse.Builder::opcRequestId) + "opc-request-id", ListSchedulingPoliciesResponse.Builder::opcRequestId) .handleResponseHeaderString( - "opc-next-page", - ListPdbConversionHistoryEntriesResponse.Builder::opcNextPage) + "opc-next-page", ListSchedulingPoliciesResponse.Builder::opcNextPage) .callAsync(handler); } @Override - public java.util.concurrent.Future listPluggableDatabases( - ListPluggableDatabasesRequest request, + public java.util.concurrent.Future listSchedulingWindows( + ListSchedulingWindowsRequest request, final com.oracle.bmc.responses.AsyncHandler< - ListPluggableDatabasesRequest, ListPluggableDatabasesResponse> + ListSchedulingWindowsRequest, ListSchedulingWindowsResponse> handler) { - return clientCall(request, ListPluggableDatabasesResponse::builder) - .logger(LOG, "listPluggableDatabases") + Validate.notBlank(request.getSchedulingPolicyId(), "schedulingPolicyId must not be blank"); + + return clientCall(request, ListSchedulingWindowsResponse::builder) + .logger(LOG, "listSchedulingWindows") .serviceDetails( "Database", - "ListPluggableDatabases", - "https://docs.oracle.com/iaas/api/#/en/database/20160918/PluggableDatabase/ListPluggableDatabases") + "ListSchedulingWindows", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingWindow/ListSchedulingWindows") .method(com.oracle.bmc.http.client.Method.GET) - .requestBuilder(ListPluggableDatabasesRequest::builder) + .requestBuilder(ListSchedulingWindowsRequest::builder) .basePath("/20160918") - .appendPathParam("pluggableDatabases") + .appendPathParam("schedulingPolicies") + .appendPathParam(request.getSchedulingPolicyId()) + .appendPathParam("schedulingWindows") .appendQueryParam("compartmentId", request.getCompartmentId()) - .appendQueryParam("databaseId", request.getDatabaseId()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) .appendEnumQueryParam("sortBy", request.getSortBy()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) - .appendQueryParam("pdbName", request.getPdbName()) + .appendQueryParam("displayName", request.getDisplayName()) .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBodyList( - com.oracle.bmc.database.model.PluggableDatabaseSummary.class, - ListPluggableDatabasesResponse.Builder::items) + com.oracle.bmc.database.model.SchedulingWindowSummary.class, + ListSchedulingWindowsResponse.Builder::items) .handleResponseHeaderString( - "opc-request-id", ListPluggableDatabasesResponse.Builder::opcRequestId) + "opc-request-id", ListSchedulingWindowsResponse.Builder::opcRequestId) .handleResponseHeaderString( - "opc-next-page", ListPluggableDatabasesResponse.Builder::opcNextPage) + "opc-next-page", ListSchedulingWindowsResponse.Builder::opcNextPage) .callAsync(handler); } @@ -10949,6 +12010,48 @@ public java.util.concurrent.Future modifyDatab .callAsync(handler); } + @Override + public java.util.concurrent.Future moveExecutionActionMember( + MoveExecutionActionMemberRequest request, + final com.oracle.bmc.responses.AsyncHandler< + MoveExecutionActionMemberRequest, MoveExecutionActionMemberResponse> + handler) { + + Validate.notBlank(request.getExecutionActionId(), "executionActionId must not be blank"); + Objects.requireNonNull( + request.getMoveExecutionActionMemberDetails(), + "moveExecutionActionMemberDetails is required"); + + return clientCall(request, MoveExecutionActionMemberResponse::builder) + .logger(LOG, "moveExecutionActionMember") + .serviceDetails( + "Database", + "MoveExecutionActionMember", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExecutionAction/MoveExecutionActionMember") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(MoveExecutionActionMemberRequest::builder) + .basePath("/20160918") + .appendPathParam("executionActions") + .appendPathParam(request.getExecutionActionId()) + .appendPathParam("actions") + .appendPathParam("moveActionMember") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleBody( + com.oracle.bmc.database.model.ExecutionAction.class, + MoveExecutionActionMemberResponse.Builder::executionAction) + .handleResponseHeaderString( + "opc-work-request-id", + MoveExecutionActionMemberResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString("etag", MoveExecutionActionMemberResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", MoveExecutionActionMemberResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future refreshPluggableDatabase( RefreshPluggableDatabaseRequest request, @@ -11317,6 +12420,92 @@ public java.util.concurrent.Future refreshPlug .callAsync(handler); } + @Override + public java.util.concurrent.Future reorderExecutionActions( + ReorderExecutionActionsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ReorderExecutionActionsRequest, ReorderExecutionActionsResponse> + handler) { + + Validate.notBlank(request.getExecutionWindowId(), "executionWindowId must not be blank"); + Objects.requireNonNull( + request.getReorderExecutionActionDetails(), + "reorderExecutionActionDetails is required"); + + return clientCall(request, ReorderExecutionActionsResponse::builder) + .logger(LOG, "reorderExecutionActions") + .serviceDetails( + "Database", + "ReorderExecutionActions", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExecutionWindow/ReorderExecutionActions") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ReorderExecutionActionsRequest::builder) + .basePath("/20160918") + .appendPathParam("executionWindows") + .appendPathParam(request.getExecutionWindowId()) + .appendPathParam("actions") + .appendPathParam("reorder") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleBody( + com.oracle.bmc.database.model.ExecutionWindow.class, + ReorderExecutionActionsResponse.Builder::executionWindow) + .handleResponseHeaderString( + "opc-work-request-id", + ReorderExecutionActionsResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString("etag", ReorderExecutionActionsResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", ReorderExecutionActionsResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future reorderScheduledActions( + ReorderScheduledActionsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ReorderScheduledActionsRequest, ReorderScheduledActionsResponse> + handler) { + Objects.requireNonNull( + request.getReorderScheduledActionsDetails(), + "reorderScheduledActionsDetails is required"); + + Validate.notBlank(request.getSchedulingPlanId(), "schedulingPlanId must not be blank"); + + return clientCall(request, ReorderScheduledActionsResponse::builder) + .logger(LOG, "reorderScheduledActions") + .serviceDetails( + "Database", + "ReorderScheduledActions", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingPlan/ReorderScheduledActions") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ReorderScheduledActionsRequest::builder) + .basePath("/20160918") + .appendPathParam("schedulingPlans") + .appendPathParam(request.getSchedulingPlanId()) + .appendPathParam("actions") + .appendPathParam("reorder") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleBody( + com.oracle.bmc.database.model.SchedulingPlan.class, + ReorderScheduledActionsResponse.Builder::schedulingPlan) + .handleResponseHeaderString("etag", ReorderScheduledActionsResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", ReorderScheduledActionsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ReorderScheduledActionsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-work-request-id", + ReorderScheduledActionsResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future resizeVmClusterNetwork( ResizeVmClusterNetworkRequest request, @@ -13563,6 +14752,84 @@ public java.util.concurrent.Future updateExadbVmCl .callAsync(handler); } + @Override + public java.util.concurrent.Future updateExecutionAction( + UpdateExecutionActionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateExecutionActionRequest, UpdateExecutionActionResponse> + handler) { + + Validate.notBlank(request.getExecutionActionId(), "executionActionId must not be blank"); + Objects.requireNonNull( + request.getUpdateExecutionActionDetails(), + "updateExecutionActionDetails is required"); + + return clientCall(request, UpdateExecutionActionResponse::builder) + .logger(LOG, "updateExecutionAction") + .serviceDetails( + "Database", + "UpdateExecutionAction", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExecutionAction/UpdateExecutionAction") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateExecutionActionRequest::builder) + .basePath("/20160918") + .appendPathParam("executionActions") + .appendPathParam(request.getExecutionActionId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.database.model.ExecutionAction.class, + UpdateExecutionActionResponse.Builder::executionAction) + .handleResponseHeaderString( + "opc-work-request-id", + UpdateExecutionActionResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString("etag", UpdateExecutionActionResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", UpdateExecutionActionResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future updateExecutionWindow( + UpdateExecutionWindowRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateExecutionWindowRequest, UpdateExecutionWindowResponse> + handler) { + + Validate.notBlank(request.getExecutionWindowId(), "executionWindowId must not be blank"); + Objects.requireNonNull( + request.getUpdateExecutionWindowDetails(), + "updateExecutionWindowDetails is required"); + + return clientCall(request, UpdateExecutionWindowResponse::builder) + .logger(LOG, "updateExecutionWindow") + .serviceDetails( + "Database", + "UpdateExecutionWindow", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExecutionWindow/UpdateExecutionWindow") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateExecutionWindowRequest::builder) + .basePath("/20160918") + .appendPathParam("executionWindows") + .appendPathParam(request.getExecutionWindowId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.database.model.ExecutionWindow.class, + UpdateExecutionWindowResponse.Builder::executionWindow) + .handleResponseHeaderString( + "opc-work-request-id", + UpdateExecutionWindowResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString("etag", UpdateExecutionWindowResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", UpdateExecutionWindowResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future updateExternalContainerDatabase( @@ -13888,6 +15155,124 @@ public java.util.concurrent.Future updatePlugga .callAsync(handler); } + @Override + public java.util.concurrent.Future updateScheduledAction( + UpdateScheduledActionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateScheduledActionRequest, UpdateScheduledActionResponse> + handler) { + + Validate.notBlank(request.getScheduledActionId(), "scheduledActionId must not be blank"); + Objects.requireNonNull( + request.getUpdateScheduledActionDetails(), + "updateScheduledActionDetails is required"); + + return clientCall(request, UpdateScheduledActionResponse::builder) + .logger(LOG, "updateScheduledAction") + .serviceDetails("Database", "UpdateScheduledAction", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateScheduledActionRequest::builder) + .basePath("/20160918") + .appendPathParam("scheduledActions") + .appendPathParam(request.getScheduledActionId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.database.model.ScheduledAction.class, + UpdateScheduledActionResponse.Builder::scheduledAction) + .handleResponseHeaderString( + "opc-work-request-id", + UpdateScheduledActionResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString("etag", UpdateScheduledActionResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", UpdateScheduledActionResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future updateSchedulingPolicy( + UpdateSchedulingPolicyRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateSchedulingPolicyRequest, UpdateSchedulingPolicyResponse> + handler) { + + Validate.notBlank(request.getSchedulingPolicyId(), "schedulingPolicyId must not be blank"); + Objects.requireNonNull( + request.getUpdateSchedulingPolicyDetails(), + "updateSchedulingPolicyDetails is required"); + + return clientCall(request, UpdateSchedulingPolicyResponse::builder) + .logger(LOG, "updateSchedulingPolicy") + .serviceDetails( + "Database", + "UpdateSchedulingPolicy", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingPolicy/UpdateSchedulingPolicy") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateSchedulingPolicyRequest::builder) + .basePath("/20160918") + .appendPathParam("schedulingPolicies") + .appendPathParam(request.getSchedulingPolicyId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.database.model.SchedulingPolicy.class, + UpdateSchedulingPolicyResponse.Builder::schedulingPolicy) + .handleResponseHeaderString( + "opc-work-request-id", + UpdateSchedulingPolicyResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString("etag", UpdateSchedulingPolicyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", UpdateSchedulingPolicyResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future updateSchedulingWindow( + UpdateSchedulingWindowRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateSchedulingWindowRequest, UpdateSchedulingWindowResponse> + handler) { + + Validate.notBlank(request.getSchedulingPolicyId(), "schedulingPolicyId must not be blank"); + + Validate.notBlank(request.getSchedulingWindowId(), "schedulingWindowId must not be blank"); + Objects.requireNonNull( + request.getUpdateSchedulingWindowDetails(), + "updateSchedulingWindowDetails is required"); + + return clientCall(request, UpdateSchedulingWindowResponse::builder) + .logger(LOG, "updateSchedulingWindow") + .serviceDetails( + "Database", + "UpdateSchedulingWindow", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingWindow/UpdateSchedulingWindow") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateSchedulingWindowRequest::builder) + .basePath("/20160918") + .appendPathParam("schedulingPolicies") + .appendPathParam(request.getSchedulingPolicyId()) + .appendPathParam("schedulingWindows") + .appendPathParam(request.getSchedulingWindowId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.database.model.SchedulingWindow.class, + UpdateSchedulingWindowResponse.Builder::schedulingWindow) + .handleResponseHeaderString( + "opc-work-request-id", + UpdateSchedulingWindowResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString("etag", UpdateSchedulingWindowResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", UpdateSchedulingWindowResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future updateVmCluster( UpdateVmClusterRequest request, diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseClient.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseClient.java index d769a065ecd..d293dd8d85d 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseClient.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseClient.java @@ -426,6 +426,77 @@ public CancelBackupResponse cancelBackup(CancelBackupRequest request) { .callSync(); } + @Override + public CancelExecutionWindowResponse cancelExecutionWindow( + CancelExecutionWindowRequest request) { + + Validate.notBlank(request.getExecutionWindowId(), "executionWindowId must not be blank"); + Objects.requireNonNull( + request.getCancelExecutionWindowDetails(), + "cancelExecutionWindowDetails is required"); + + return clientCall(request, CancelExecutionWindowResponse::builder) + .logger(LOG, "cancelExecutionWindow") + .serviceDetails( + "Database", + "CancelExecutionWindow", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExecutionWindow/CancelExecutionWindow") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CancelExecutionWindowRequest::builder) + .basePath("/20160918") + .appendPathParam("executionWindows") + .appendPathParam(request.getExecutionWindowId()) + .appendPathParam("actions") + .appendPathParam("cancel") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleBody( + com.oracle.bmc.database.model.ExecutionWindow.class, + CancelExecutionWindowResponse.Builder::executionWindow) + .handleResponseHeaderString( + "opc-work-request-id", + CancelExecutionWindowResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString("etag", CancelExecutionWindowResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CancelExecutionWindowResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public CascadingDeleteSchedulingPlanResponse cascadingDeleteSchedulingPlan( + CascadingDeleteSchedulingPlanRequest request) { + + Validate.notBlank(request.getSchedulingPlanId(), "schedulingPlanId must not be blank"); + + return clientCall(request, CascadingDeleteSchedulingPlanResponse::builder) + .logger(LOG, "cascadingDeleteSchedulingPlan") + .serviceDetails( + "Database", + "CascadingDeleteSchedulingPlan", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingPlan/CascadingDeleteSchedulingPlan") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CascadingDeleteSchedulingPlanRequest::builder) + .basePath("/20160918") + .appendPathParam("schedulingPlans") + .appendPathParam(request.getSchedulingPlanId()) + .appendPathParam("actions") + .appendPathParam("cascadingDeleteSchedulingPlan") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + CascadingDeleteSchedulingPlanResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + CascadingDeleteSchedulingPlanResponse.Builder::opcRequestId) + .callSync(); + } + @Override public ChangeAutonomousContainerDatabaseCompartmentResponse changeAutonomousContainerDatabaseCompartment( @@ -1386,6 +1457,78 @@ public ChangeOneoffPatchCompartmentResponse changeOneoffPatchCompartment( .callSync(); } + @Override + public ChangeSchedulingPlanCompartmentResponse changeSchedulingPlanCompartment( + ChangeSchedulingPlanCompartmentRequest request) { + Objects.requireNonNull( + request.getChangeSchedulingPlanCompartmentDetails(), + "changeSchedulingPlanCompartmentDetails is required"); + + Validate.notBlank(request.getSchedulingPlanId(), "schedulingPlanId must not be blank"); + + return clientCall(request, ChangeSchedulingPlanCompartmentResponse::builder) + .logger(LOG, "changeSchedulingPlanCompartment") + .serviceDetails( + "Database", + "ChangeSchedulingPlanCompartment", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingPlan/ChangeSchedulingPlanCompartment") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeSchedulingPlanCompartmentRequest::builder) + .basePath("/20160918") + .appendPathParam("schedulingPlans") + .appendPathParam(request.getSchedulingPlanId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ChangeSchedulingPlanCompartmentResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ChangeSchedulingPlanCompartmentResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ChangeSchedulingPolicyCompartmentResponse changeSchedulingPolicyCompartment( + ChangeSchedulingPolicyCompartmentRequest request) { + Objects.requireNonNull( + request.getChangeSchedulingPolicyCompartmentDetails(), + "changeSchedulingPolicyCompartmentDetails is required"); + + Validate.notBlank(request.getSchedulingPolicyId(), "schedulingPolicyId must not be blank"); + + return clientCall(request, ChangeSchedulingPolicyCompartmentResponse::builder) + .logger(LOG, "changeSchedulingPolicyCompartment") + .serviceDetails( + "Database", + "ChangeSchedulingPolicyCompartment", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingPolicy/ChangeSchedulingPolicyCompartment") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeSchedulingPolicyCompartmentRequest::builder) + .basePath("/20160918") + .appendPathParam("schedulingPolicies") + .appendPathParam(request.getSchedulingPolicyId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ChangeSchedulingPolicyCompartmentResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ChangeSchedulingPolicyCompartmentResponse.Builder::opcRequestId) + .callSync(); + } + @Override public ChangeVmClusterCompartmentResponse changeVmClusterCompartment( ChangeVmClusterCompartmentRequest request) { @@ -2400,6 +2543,72 @@ public CreateExascaleDbStorageVaultResponse createExascaleDbStorageVault( .callSync(); } + @Override + public CreateExecutionActionResponse createExecutionAction( + CreateExecutionActionRequest request) { + Objects.requireNonNull( + request.getCreateExecutionActionDetails(), + "createExecutionActionDetails is required"); + + return clientCall(request, CreateExecutionActionResponse::builder) + .logger(LOG, "createExecutionAction") + .serviceDetails( + "Database", + "CreateExecutionAction", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExecutionAction/CreateExecutionAction") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateExecutionActionRequest::builder) + .basePath("/20160918") + .appendPathParam("executionActions") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.database.model.ExecutionAction.class, + CreateExecutionActionResponse.Builder::executionAction) + .handleResponseHeaderString( + "opc-work-request-id", + CreateExecutionActionResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString("etag", CreateExecutionActionResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreateExecutionActionResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public CreateExecutionWindowResponse createExecutionWindow( + CreateExecutionWindowRequest request) { + Objects.requireNonNull( + request.getCreateExecutionWindowDetails(), + "createExecutionWindowDetails is required"); + + return clientCall(request, CreateExecutionWindowResponse::builder) + .logger(LOG, "createExecutionWindow") + .serviceDetails( + "Database", + "CreateExecutionWindow", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExecutionWindow/CreateExecutionWindow") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateExecutionWindowRequest::builder) + .basePath("/20160918") + .appendPathParam("executionWindows") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.database.model.ExecutionWindow.class, + CreateExecutionWindowResponse.Builder::executionWindow) + .handleResponseHeaderString( + "opc-work-request-id", + CreateExecutionWindowResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString("etag", CreateExecutionWindowResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreateExecutionWindowResponse.Builder::opcRequestId) + .callSync(); + } + @Override public CreateExternalBackupJobResponse createExternalBackupJob( CreateExternalBackupJobRequest request) { @@ -2693,6 +2902,135 @@ public CreatePluggableDatabaseResponse createPluggableDatabase( .callSync(); } + @Override + public CreateScheduledActionResponse createScheduledAction( + CreateScheduledActionRequest request) { + Objects.requireNonNull( + request.getCreateScheduledActionDetails(), + "createScheduledActionDetails is required"); + + return clientCall(request, CreateScheduledActionResponse::builder) + .logger(LOG, "createScheduledAction") + .serviceDetails("Database", "CreateScheduledAction", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateScheduledActionRequest::builder) + .basePath("/20160918") + .appendPathParam("scheduledActions") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.database.model.ScheduledAction.class, + CreateScheduledActionResponse.Builder::scheduledAction) + .handleResponseHeaderString( + "opc-work-request-id", + CreateScheduledActionResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString("etag", CreateScheduledActionResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreateScheduledActionResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public CreateSchedulingPlanResponse createSchedulingPlan(CreateSchedulingPlanRequest request) { + Objects.requireNonNull( + request.getCreateSchedulingPlanDetails(), + "createSchedulingPlanDetails is required"); + + return clientCall(request, CreateSchedulingPlanResponse::builder) + .logger(LOG, "createSchedulingPlan") + .serviceDetails("Database", "CreateSchedulingPlan", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateSchedulingPlanRequest::builder) + .basePath("/20160918") + .appendPathParam("schedulingPlans") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.database.model.SchedulingPlan.class, + CreateSchedulingPlanResponse.Builder::schedulingPlan) + .handleResponseHeaderString( + "opc-work-request-id", + CreateSchedulingPlanResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString("etag", CreateSchedulingPlanResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreateSchedulingPlanResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public CreateSchedulingPolicyResponse createSchedulingPolicy( + CreateSchedulingPolicyRequest request) { + Objects.requireNonNull( + request.getCreateSchedulingPolicyDetails(), + "createSchedulingPolicyDetails is required"); + + return clientCall(request, CreateSchedulingPolicyResponse::builder) + .logger(LOG, "createSchedulingPolicy") + .serviceDetails( + "Database", + "CreateSchedulingPolicy", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingPolicy/CreateSchedulingPolicy") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateSchedulingPolicyRequest::builder) + .basePath("/20160918") + .appendPathParam("schedulingPolicies") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.database.model.SchedulingPolicy.class, + CreateSchedulingPolicyResponse.Builder::schedulingPolicy) + .handleResponseHeaderString( + "opc-work-request-id", + CreateSchedulingPolicyResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString("etag", CreateSchedulingPolicyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreateSchedulingPolicyResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public CreateSchedulingWindowResponse createSchedulingWindow( + CreateSchedulingWindowRequest request) { + + Validate.notBlank(request.getSchedulingPolicyId(), "schedulingPolicyId must not be blank"); + Objects.requireNonNull( + request.getCreateSchedulingWindowDetails(), + "createSchedulingWindowDetails is required"); + + return clientCall(request, CreateSchedulingWindowResponse::builder) + .logger(LOG, "createSchedulingWindow") + .serviceDetails( + "Database", + "CreateSchedulingWindow", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingWindow/CreateSchedulingWindow") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateSchedulingWindowRequest::builder) + .basePath("/20160918") + .appendPathParam("schedulingPolicies") + .appendPathParam(request.getSchedulingPolicyId()) + .appendPathParam("schedulingWindows") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.database.model.SchedulingWindow.class, + CreateSchedulingWindowResponse.Builder::schedulingWindow) + .handleResponseHeaderString( + "opc-work-request-id", + CreateSchedulingWindowResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString("etag", CreateSchedulingWindowResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreateSchedulingWindowResponse.Builder::opcRequestId) + .callSync(); + } + @Override public CreateVmClusterResponse createVmCluster(CreateVmClusterRequest request) { Objects.requireNonNull( @@ -3311,6 +3649,59 @@ public DeleteExascaleDbStorageVaultResponse deleteExascaleDbStorageVault( .callSync(); } + @Override + public DeleteExecutionActionResponse deleteExecutionAction( + DeleteExecutionActionRequest request) { + + Validate.notBlank(request.getExecutionActionId(), "executionActionId must not be blank"); + + return clientCall(request, DeleteExecutionActionResponse::builder) + .logger(LOG, "deleteExecutionAction") + .serviceDetails( + "Database", + "DeleteExecutionAction", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExecutionAction/DeleteExecutionAction") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteExecutionActionRequest::builder) + .basePath("/20160918") + .appendPathParam("executionActions") + .appendPathParam(request.getExecutionActionId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteExecutionActionResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteExecutionActionResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public DeleteExecutionWindowResponse deleteExecutionWindow( + DeleteExecutionWindowRequest request) { + + Validate.notBlank(request.getExecutionWindowId(), "executionWindowId must not be blank"); + + return clientCall(request, DeleteExecutionWindowResponse::builder) + .logger(LOG, "deleteExecutionWindow") + .serviceDetails( + "Database", + "DeleteExecutionWindow", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExecutionWindow/DeleteExecutionWindow") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteExecutionWindowRequest::builder) + .basePath("/20160918") + .appendPathParam("executionWindows") + .appendPathParam(request.getExecutionWindowId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", DeleteExecutionWindowResponse.Builder::opcRequestId) + .callSync(); + } + @Override public DeleteExternalContainerDatabaseResponse deleteExternalContainerDatabase( DeleteExternalContainerDatabaseRequest request) { @@ -3515,76 +3906,185 @@ public DeletePluggableDatabaseResponse deletePluggableDatabase( } @Override - public DeleteVmClusterResponse deleteVmCluster(DeleteVmClusterRequest request) { + public DeleteScheduledActionResponse deleteScheduledAction( + DeleteScheduledActionRequest request) { - Validate.notBlank(request.getVmClusterId(), "vmClusterId must not be blank"); + Validate.notBlank(request.getScheduledActionId(), "scheduledActionId must not be blank"); - return clientCall(request, DeleteVmClusterResponse::builder) - .logger(LOG, "deleteVmCluster") + return clientCall(request, DeleteScheduledActionResponse::builder) + .logger(LOG, "deleteScheduledAction") .serviceDetails( "Database", - "DeleteVmCluster", - "https://docs.oracle.com/iaas/api/#/en/database/20160918/VmCluster/DeleteVmCluster") + "DeleteScheduledAction", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/ScheduledAction/DeleteScheduledAction") .method(com.oracle.bmc.http.client.Method.DELETE) - .requestBuilder(DeleteVmClusterRequest::builder) + .requestBuilder(DeleteScheduledActionRequest::builder) .basePath("/20160918") - .appendPathParam("vmClusters") - .appendPathParam(request.getVmClusterId()) + .appendPathParam("scheduledActions") + .appendPathParam(request.getScheduledActionId()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) .handleResponseHeaderString( - "opc-work-request-id", DeleteVmClusterResponse.Builder::opcWorkRequestId) + "opc-work-request-id", + DeleteScheduledActionResponse.Builder::opcWorkRequestId) .handleResponseHeaderString( - "opc-request-id", DeleteVmClusterResponse.Builder::opcRequestId) + "opc-request-id", DeleteScheduledActionResponse.Builder::opcRequestId) .callSync(); } @Override - public DeleteVmClusterNetworkResponse deleteVmClusterNetwork( - DeleteVmClusterNetworkRequest request) { - - Validate.notBlank( - request.getExadataInfrastructureId(), "exadataInfrastructureId must not be blank"); + public DeleteSchedulingPlanResponse deleteSchedulingPlan(DeleteSchedulingPlanRequest request) { - Validate.notBlank(request.getVmClusterNetworkId(), "vmClusterNetworkId must not be blank"); + Validate.notBlank(request.getSchedulingPlanId(), "schedulingPlanId must not be blank"); - return clientCall(request, DeleteVmClusterNetworkResponse::builder) - .logger(LOG, "deleteVmClusterNetwork") + return clientCall(request, DeleteSchedulingPlanResponse::builder) + .logger(LOG, "deleteSchedulingPlan") .serviceDetails( "Database", - "DeleteVmClusterNetwork", - "https://docs.oracle.com/iaas/api/#/en/database/20160918/VmClusterNetwork/DeleteVmClusterNetwork") + "DeleteSchedulingPlan", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingPlan/DeleteSchedulingPlan") .method(com.oracle.bmc.http.client.Method.DELETE) - .requestBuilder(DeleteVmClusterNetworkRequest::builder) + .requestBuilder(DeleteSchedulingPlanRequest::builder) .basePath("/20160918") - .appendPathParam("exadataInfrastructures") - .appendPathParam(request.getExadataInfrastructureId()) - .appendPathParam("vmClusterNetworks") - .appendPathParam(request.getVmClusterNetworkId()) + .appendPathParam("schedulingPlans") + .appendPathParam(request.getSchedulingPlanId()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) .handleResponseHeaderString( "opc-work-request-id", - DeleteVmClusterNetworkResponse.Builder::opcWorkRequestId) + DeleteSchedulingPlanResponse.Builder::opcWorkRequestId) .handleResponseHeaderString( - "opc-request-id", DeleteVmClusterNetworkResponse.Builder::opcRequestId) + "opc-request-id", DeleteSchedulingPlanResponse.Builder::opcRequestId) .callSync(); } @Override - public DeregisterAutonomousDatabaseDataSafeResponse deregisterAutonomousDatabaseDataSafe( - DeregisterAutonomousDatabaseDataSafeRequest request) { + public DeleteSchedulingPolicyResponse deleteSchedulingPolicy( + DeleteSchedulingPolicyRequest request) { - Validate.notBlank( - request.getAutonomousDatabaseId(), "autonomousDatabaseId must not be blank"); + Validate.notBlank(request.getSchedulingPolicyId(), "schedulingPolicyId must not be blank"); - return clientCall(request, DeregisterAutonomousDatabaseDataSafeResponse::builder) - .logger(LOG, "deregisterAutonomousDatabaseDataSafe") + return clientCall(request, DeleteSchedulingPolicyResponse::builder) + .logger(LOG, "deleteSchedulingPolicy") .serviceDetails( "Database", - "DeregisterAutonomousDatabaseDataSafe", + "DeleteSchedulingPolicy", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingPolicy/DeleteSchedulingPolicy") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteSchedulingPolicyRequest::builder) + .basePath("/20160918") + .appendPathParam("schedulingPolicies") + .appendPathParam(request.getSchedulingPolicyId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", DeleteSchedulingPolicyResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public DeleteSchedulingWindowResponse deleteSchedulingWindow( + DeleteSchedulingWindowRequest request) { + + Validate.notBlank(request.getSchedulingPolicyId(), "schedulingPolicyId must not be blank"); + + Validate.notBlank(request.getSchedulingWindowId(), "schedulingWindowId must not be blank"); + + return clientCall(request, DeleteSchedulingWindowResponse::builder) + .logger(LOG, "deleteSchedulingWindow") + .serviceDetails( + "Database", + "DeleteSchedulingWindow", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingWindow/DeleteSchedulingWindow") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteSchedulingWindowRequest::builder) + .basePath("/20160918") + .appendPathParam("schedulingPolicies") + .appendPathParam(request.getSchedulingPolicyId()) + .appendPathParam("schedulingWindows") + .appendPathParam(request.getSchedulingWindowId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", DeleteSchedulingWindowResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public DeleteVmClusterResponse deleteVmCluster(DeleteVmClusterRequest request) { + + Validate.notBlank(request.getVmClusterId(), "vmClusterId must not be blank"); + + return clientCall(request, DeleteVmClusterResponse::builder) + .logger(LOG, "deleteVmCluster") + .serviceDetails( + "Database", + "DeleteVmCluster", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/VmCluster/DeleteVmCluster") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteVmClusterRequest::builder) + .basePath("/20160918") + .appendPathParam("vmClusters") + .appendPathParam(request.getVmClusterId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", DeleteVmClusterResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteVmClusterResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public DeleteVmClusterNetworkResponse deleteVmClusterNetwork( + DeleteVmClusterNetworkRequest request) { + + Validate.notBlank( + request.getExadataInfrastructureId(), "exadataInfrastructureId must not be blank"); + + Validate.notBlank(request.getVmClusterNetworkId(), "vmClusterNetworkId must not be blank"); + + return clientCall(request, DeleteVmClusterNetworkResponse::builder) + .logger(LOG, "deleteVmClusterNetwork") + .serviceDetails( + "Database", + "DeleteVmClusterNetwork", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/VmClusterNetwork/DeleteVmClusterNetwork") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteVmClusterNetworkRequest::builder) + .basePath("/20160918") + .appendPathParam("exadataInfrastructures") + .appendPathParam(request.getExadataInfrastructureId()) + .appendPathParam("vmClusterNetworks") + .appendPathParam(request.getVmClusterNetworkId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteVmClusterNetworkResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteVmClusterNetworkResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public DeregisterAutonomousDatabaseDataSafeResponse deregisterAutonomousDatabaseDataSafe( + DeregisterAutonomousDatabaseDataSafeRequest request) { + + Validate.notBlank( + request.getAutonomousDatabaseId(), "autonomousDatabaseId must not be blank"); + + return clientCall(request, DeregisterAutonomousDatabaseDataSafeResponse::builder) + .logger(LOG, "deregisterAutonomousDatabaseDataSafe") + .serviceDetails( + "Database", + "DeregisterAutonomousDatabaseDataSafe", "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabase/DeregisterAutonomousDatabaseDataSafe") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(DeregisterAutonomousDatabaseDataSafeRequest::builder) @@ -6468,6 +6968,60 @@ public GetExascaleDbStorageVaultResponse getExascaleDbStorageVault( .callSync(); } + @Override + public GetExecutionActionResponse getExecutionAction(GetExecutionActionRequest request) { + + Validate.notBlank(request.getExecutionActionId(), "executionActionId must not be blank"); + + return clientCall(request, GetExecutionActionResponse::builder) + .logger(LOG, "getExecutionAction") + .serviceDetails( + "Database", + "GetExecutionAction", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExecutionAction/GetExecutionAction") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetExecutionActionRequest::builder) + .basePath("/20160918") + .appendPathParam("executionActions") + .appendPathParam(request.getExecutionActionId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.database.model.ExecutionAction.class, + GetExecutionActionResponse.Builder::executionAction) + .handleResponseHeaderString("etag", GetExecutionActionResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetExecutionActionResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetExecutionWindowResponse getExecutionWindow(GetExecutionWindowRequest request) { + + Validate.notBlank(request.getExecutionWindowId(), "executionWindowId must not be blank"); + + return clientCall(request, GetExecutionWindowResponse::builder) + .logger(LOG, "getExecutionWindow") + .serviceDetails( + "Database", + "GetExecutionWindow", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExecutionWindow/GetExecutionWindow") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetExecutionWindowRequest::builder) + .basePath("/20160918") + .appendPathParam("executionWindows") + .appendPathParam(request.getExecutionWindowId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.database.model.ExecutionWindow.class, + GetExecutionWindowResponse.Builder::executionWindow) + .handleResponseHeaderString("etag", GetExecutionWindowResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetExecutionWindowResponse.Builder::opcRequestId) + .callSync(); + } + @Override public GetExternalBackupJobResponse getExternalBackupJob(GetExternalBackupJobRequest request) { @@ -6825,6 +7379,118 @@ public GetPluggableDatabaseResponse getPluggableDatabase(GetPluggableDatabaseReq .callSync(); } + @Override + public GetScheduledActionResponse getScheduledAction(GetScheduledActionRequest request) { + + Validate.notBlank(request.getScheduledActionId(), "scheduledActionId must not be blank"); + + return clientCall(request, GetScheduledActionResponse::builder) + .logger(LOG, "getScheduledAction") + .serviceDetails( + "Database", + "GetScheduledAction", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/ScheduledAction/GetScheduledAction") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetScheduledActionRequest::builder) + .basePath("/20160918") + .appendPathParam("scheduledActions") + .appendPathParam(request.getScheduledActionId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.database.model.ScheduledAction.class, + GetScheduledActionResponse.Builder::scheduledAction) + .handleResponseHeaderString("etag", GetScheduledActionResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetScheduledActionResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetSchedulingPlanResponse getSchedulingPlan(GetSchedulingPlanRequest request) { + + Validate.notBlank(request.getSchedulingPlanId(), "schedulingPlanId must not be blank"); + + return clientCall(request, GetSchedulingPlanResponse::builder) + .logger(LOG, "getSchedulingPlan") + .serviceDetails( + "Database", + "GetSchedulingPlan", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingPlan/GetSchedulingPlan") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetSchedulingPlanRequest::builder) + .basePath("/20160918") + .appendPathParam("schedulingPlans") + .appendPathParam(request.getSchedulingPlanId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.database.model.SchedulingPlan.class, + GetSchedulingPlanResponse.Builder::schedulingPlan) + .handleResponseHeaderString("etag", GetSchedulingPlanResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetSchedulingPlanResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetSchedulingPolicyResponse getSchedulingPolicy(GetSchedulingPolicyRequest request) { + + Validate.notBlank(request.getSchedulingPolicyId(), "schedulingPolicyId must not be blank"); + + return clientCall(request, GetSchedulingPolicyResponse::builder) + .logger(LOG, "getSchedulingPolicy") + .serviceDetails( + "Database", + "GetSchedulingPolicy", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingPolicy/GetSchedulingPolicy") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetSchedulingPolicyRequest::builder) + .basePath("/20160918") + .appendPathParam("schedulingPolicies") + .appendPathParam(request.getSchedulingPolicyId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.database.model.SchedulingPolicy.class, + GetSchedulingPolicyResponse.Builder::schedulingPolicy) + .handleResponseHeaderString("etag", GetSchedulingPolicyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetSchedulingPolicyResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetSchedulingWindowResponse getSchedulingWindow(GetSchedulingWindowRequest request) { + + Validate.notBlank(request.getSchedulingPolicyId(), "schedulingPolicyId must not be blank"); + + Validate.notBlank(request.getSchedulingWindowId(), "schedulingWindowId must not be blank"); + + return clientCall(request, GetSchedulingWindowResponse::builder) + .logger(LOG, "getSchedulingWindow") + .serviceDetails( + "Database", + "GetSchedulingWindow", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingWindow/GetSchedulingWindow") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetSchedulingWindowRequest::builder) + .basePath("/20160918") + .appendPathParam("schedulingPolicies") + .appendPathParam(request.getSchedulingPolicyId()) + .appendPathParam("schedulingWindows") + .appendPathParam(request.getSchedulingWindowId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.database.model.SchedulingWindow.class, + GetSchedulingWindowResponse.Builder::schedulingWindow) + .handleResponseHeaderString("etag", GetSchedulingWindowResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetSchedulingWindowResponse.Builder::opcRequestId) + .callSync(); + } + @Override public GetVmClusterResponse getVmCluster(GetVmClusterRequest request) { @@ -8903,6 +9569,74 @@ public ListExascaleDbStorageVaultsResponse listExascaleDbStorageVaults( .callSync(); } + @Override + public ListExecutionActionsResponse listExecutionActions(ListExecutionActionsRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListExecutionActionsResponse::builder) + .logger(LOG, "listExecutionActions") + .serviceDetails( + "Database", + "ListExecutionActions", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExecutionAction/ListExecutionActions") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListExecutionActionsRequest::builder) + .basePath("/20160918") + .appendPathParam("executionActions") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("executionWindowId", request.getExecutionWindowId()) + .appendQueryParam("displayName", request.getDisplayName()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBodyList( + com.oracle.bmc.database.model.ExecutionActionSummary.class, + ListExecutionActionsResponse.Builder::items) + .handleResponseHeaderString( + "opc-request-id", ListExecutionActionsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListExecutionActionsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListExecutionWindowsResponse listExecutionWindows(ListExecutionWindowsRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListExecutionWindowsResponse::builder) + .logger(LOG, "listExecutionWindows") + .serviceDetails( + "Database", + "ListExecutionWindows", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExecutionWindow/ListExecutionWindows") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListExecutionWindowsRequest::builder) + .basePath("/20160918") + .appendPathParam("executionWindows") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("executionResourceId", request.getExecutionResourceId()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBodyList( + com.oracle.bmc.database.model.ExecutionWindowSummary.class, + ListExecutionWindowsResponse.Builder::items) + .handleResponseHeaderString( + "opc-request-id", ListExecutionWindowsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListExecutionWindowsResponse.Builder::opcNextPage) + .callSync(); + } + @Override public ListExternalContainerDatabasesResponse listExternalContainerDatabases( ListExternalContainerDatabasesRequest request) { @@ -9205,159 +9939,376 @@ public ListMaintenanceRunHistoryResponse listMaintenanceRunHistory( .appendEnumQueryParam("maintenanceType", request.getMaintenanceType()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) - .appendEnumQueryParam("sortBy", request.getSortBy()) - .appendEnumQueryParam("sortOrder", request.getSortOrder()) - .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) - .appendQueryParam("availabilityDomain", request.getAvailabilityDomain()) - .appendEnumQueryParam("maintenanceSubtype", request.getMaintenanceSubtype()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("availabilityDomain", request.getAvailabilityDomain()) + .appendEnumQueryParam("maintenanceSubtype", request.getMaintenanceSubtype()) + .accept("application/json") + .handleBodyList( + com.oracle.bmc.database.model.MaintenanceRunHistorySummary.class, + ListMaintenanceRunHistoryResponse.Builder::items) + .handleResponseHeaderString( + "opc-request-id", ListMaintenanceRunHistoryResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListMaintenanceRunHistoryResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListMaintenanceRunsResponse listMaintenanceRuns(ListMaintenanceRunsRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListMaintenanceRunsResponse::builder) + .logger(LOG, "listMaintenanceRuns") + .serviceDetails( + "Database", + "ListMaintenanceRuns", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/MaintenanceRun/ListMaintenanceRuns") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListMaintenanceRunsRequest::builder) + .basePath("/20160918") + .appendPathParam("maintenanceRuns") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("targetResourceId", request.getTargetResourceId()) + .appendEnumQueryParam("targetResourceType", request.getTargetResourceType()) + .appendEnumQueryParam("maintenanceType", request.getMaintenanceType()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("availabilityDomain", request.getAvailabilityDomain()) + .appendEnumQueryParam("maintenanceSubtype", request.getMaintenanceSubtype()) + .accept("application/json") + .handleBodyList( + com.oracle.bmc.database.model.MaintenanceRunSummary.class, + ListMaintenanceRunsResponse.Builder::items) + .handleResponseHeaderString( + "opc-request-id", ListMaintenanceRunsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListMaintenanceRunsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListOneoffPatchesResponse listOneoffPatches(ListOneoffPatchesRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListOneoffPatchesResponse::builder) + .logger(LOG, "listOneoffPatches") + .serviceDetails( + "Database", + "ListOneoffPatches", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/OneoffPatch/ListOneoffPatches") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListOneoffPatchesRequest::builder) + .basePath("/20160918") + .appendPathParam("oneoffPatches") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBodyList( + com.oracle.bmc.database.model.OneoffPatchSummary.class, + ListOneoffPatchesResponse.Builder::items) + .handleResponseHeaderString( + "opc-request-id", ListOneoffPatchesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListOneoffPatchesResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListParamsForActionTypeResponse listParamsForActionType( + ListParamsForActionTypeRequest request) { + Objects.requireNonNull(request.getType(), "type is required"); + + return clientCall(request, ListParamsForActionTypeResponse::builder) + .logger(LOG, "listParamsForActionType") + .serviceDetails( + "Database", + "ListParamsForActionType", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/ActionParamValuesSummary/ListParamsForActionType") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListParamsForActionTypeRequest::builder) + .basePath("/20160918") + .appendPathParam("scheduledActionParams") + .appendEnumQueryParam("type", request.getType()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.database.model.ActionParamValuesCollection.class, + ListParamsForActionTypeResponse.Builder::actionParamValuesCollection) + .handleResponseHeaderString( + "opc-request-id", ListParamsForActionTypeResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListParamsForActionTypeResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListPdbConversionHistoryEntriesResponse listPdbConversionHistoryEntries( + ListPdbConversionHistoryEntriesRequest request) { + + Validate.notBlank(request.getDatabaseId(), "databaseId must not be blank"); + + return clientCall(request, ListPdbConversionHistoryEntriesResponse::builder) + .logger(LOG, "listPdbConversionHistoryEntries") + .serviceDetails( + "Database", + "ListPdbConversionHistoryEntries", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/Database/ListPdbConversionHistoryEntries") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListPdbConversionHistoryEntriesRequest::builder) + .basePath("/20160918") + .appendPathParam("databases") + .appendPathParam(request.getDatabaseId()) + .appendPathParam("pdbConversionHistoryEntries") + .appendEnumQueryParam("pdbConversionAction", request.getPdbConversionAction()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBodyList( + com.oracle.bmc.database.model.PdbConversionHistoryEntrySummary.class, + ListPdbConversionHistoryEntriesResponse.Builder::items) + .handleResponseHeaderString( + "opc-request-id", + ListPdbConversionHistoryEntriesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListPdbConversionHistoryEntriesResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListPluggableDatabasesResponse listPluggableDatabases( + ListPluggableDatabasesRequest request) { + + return clientCall(request, ListPluggableDatabasesResponse::builder) + .logger(LOG, "listPluggableDatabases") + .serviceDetails( + "Database", + "ListPluggableDatabases", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/PluggableDatabase/ListPluggableDatabases") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListPluggableDatabasesRequest::builder) + .basePath("/20160918") + .appendPathParam("pluggableDatabases") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("databaseId", request.getDatabaseId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("pdbName", request.getPdbName()) + .accept("application/json") + .handleBodyList( + com.oracle.bmc.database.model.PluggableDatabaseSummary.class, + ListPluggableDatabasesResponse.Builder::items) + .handleResponseHeaderString( + "opc-request-id", ListPluggableDatabasesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListPluggableDatabasesResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListRecommendedScheduledActionsResponse listRecommendedScheduledActions( + ListRecommendedScheduledActionsRequest request) { + + Validate.notBlank(request.getSchedulingPolicyId(), "schedulingPolicyId must not be blank"); + Objects.requireNonNull( + request.getSchedulingPolicyTargetResourceId(), + "schedulingPolicyTargetResourceId is required"); + + Objects.requireNonNull(request.getPlanIntent(), "planIntent is required"); + + return clientCall(request, ListRecommendedScheduledActionsResponse::builder) + .logger(LOG, "listRecommendedScheduledActions") + .serviceDetails( + "Database", + "ListRecommendedScheduledActions", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/RecommendedScheduledActionSummary/ListRecommendedScheduledActions") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListRecommendedScheduledActionsRequest::builder) + .basePath("/20160918") + .appendPathParam("schedulingPolicies") + .appendPathParam(request.getSchedulingPolicyId()) + .appendPathParam("recommendedScheduledActions") + .appendQueryParam( + "schedulingPolicyTargetResourceId", + request.getSchedulingPolicyTargetResourceId()) + .appendEnumQueryParam("planIntent", request.getPlanIntent()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) .accept("application/json") - .handleBodyList( - com.oracle.bmc.database.model.MaintenanceRunHistorySummary.class, - ListMaintenanceRunHistoryResponse.Builder::items) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.database.model.RecommendedScheduledActionsCollection.class, + ListRecommendedScheduledActionsResponse.Builder + ::recommendedScheduledActionsCollection) .handleResponseHeaderString( - "opc-request-id", ListMaintenanceRunHistoryResponse.Builder::opcRequestId) + "opc-request-id", + ListRecommendedScheduledActionsResponse.Builder::opcRequestId) .handleResponseHeaderString( - "opc-next-page", ListMaintenanceRunHistoryResponse.Builder::opcNextPage) + "opc-next-page", + ListRecommendedScheduledActionsResponse.Builder::opcNextPage) .callSync(); } @Override - public ListMaintenanceRunsResponse listMaintenanceRuns(ListMaintenanceRunsRequest request) { + public ListScheduledActionsResponse listScheduledActions(ListScheduledActionsRequest request) { Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); - return clientCall(request, ListMaintenanceRunsResponse::builder) - .logger(LOG, "listMaintenanceRuns") + return clientCall(request, ListScheduledActionsResponse::builder) + .logger(LOG, "listScheduledActions") .serviceDetails( "Database", - "ListMaintenanceRuns", - "https://docs.oracle.com/iaas/api/#/en/database/20160918/MaintenanceRun/ListMaintenanceRuns") + "ListScheduledActions", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/ScheduledAction/ListScheduledActions") .method(com.oracle.bmc.http.client.Method.GET) - .requestBuilder(ListMaintenanceRunsRequest::builder) + .requestBuilder(ListScheduledActionsRequest::builder) .basePath("/20160918") - .appendPathParam("maintenanceRuns") - .appendQueryParam("compartmentId", request.getCompartmentId()) - .appendQueryParam("targetResourceId", request.getTargetResourceId()) - .appendEnumQueryParam("targetResourceType", request.getTargetResourceType()) - .appendEnumQueryParam("maintenanceType", request.getMaintenanceType()) + .appendPathParam("scheduledActions") .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("compartmentId", request.getCompartmentId()) .appendQueryParam("page", request.getPage()) - .appendEnumQueryParam("sortBy", request.getSortBy()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("serviceType", request.getServiceType()) + .appendQueryParam("schedulingPlanId", request.getSchedulingPlanId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("id", request.getId()) .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) - .appendQueryParam("availabilityDomain", request.getAvailabilityDomain()) - .appendEnumQueryParam("maintenanceSubtype", request.getMaintenanceSubtype()) .accept("application/json") - .handleBodyList( - com.oracle.bmc.database.model.MaintenanceRunSummary.class, - ListMaintenanceRunsResponse.Builder::items) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.database.model.ScheduledActionCollection.class, + ListScheduledActionsResponse.Builder::scheduledActionCollection) .handleResponseHeaderString( - "opc-request-id", ListMaintenanceRunsResponse.Builder::opcRequestId) + "opc-request-id", ListScheduledActionsResponse.Builder::opcRequestId) .handleResponseHeaderString( - "opc-next-page", ListMaintenanceRunsResponse.Builder::opcNextPage) + "opc-next-page", ListScheduledActionsResponse.Builder::opcNextPage) .callSync(); } @Override - public ListOneoffPatchesResponse listOneoffPatches(ListOneoffPatchesRequest request) { + public ListSchedulingPlansResponse listSchedulingPlans(ListSchedulingPlansRequest request) { Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); - return clientCall(request, ListOneoffPatchesResponse::builder) - .logger(LOG, "listOneoffPatches") + return clientCall(request, ListSchedulingPlansResponse::builder) + .logger(LOG, "listSchedulingPlans") .serviceDetails( "Database", - "ListOneoffPatches", - "https://docs.oracle.com/iaas/api/#/en/database/20160918/OneoffPatch/ListOneoffPatches") + "ListSchedulingPlans", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingPlan/ListSchedulingPlans") .method(com.oracle.bmc.http.client.Method.GET) - .requestBuilder(ListOneoffPatchesRequest::builder) + .requestBuilder(ListSchedulingPlansRequest::builder) .basePath("/20160918") - .appendPathParam("oneoffPatches") + .appendPathParam("schedulingPlans") .appendQueryParam("compartmentId", request.getCompartmentId()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) .appendEnumQueryParam("sortBy", request.getSortBy()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("schedulingPolicyId", request.getSchedulingPolicyId()) .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("resourceId", request.getResourceId()) + .appendQueryParam("id", request.getId()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) - .handleBodyList( - com.oracle.bmc.database.model.OneoffPatchSummary.class, - ListOneoffPatchesResponse.Builder::items) + .handleBody( + com.oracle.bmc.database.model.SchedulingPlanCollection.class, + ListSchedulingPlansResponse.Builder::schedulingPlanCollection) .handleResponseHeaderString( - "opc-request-id", ListOneoffPatchesResponse.Builder::opcRequestId) + "opc-request-id", ListSchedulingPlansResponse.Builder::opcRequestId) .handleResponseHeaderString( - "opc-next-page", ListOneoffPatchesResponse.Builder::opcNextPage) + "opc-next-page", ListSchedulingPlansResponse.Builder::opcNextPage) .callSync(); } @Override - public ListPdbConversionHistoryEntriesResponse listPdbConversionHistoryEntries( - ListPdbConversionHistoryEntriesRequest request) { - - Validate.notBlank(request.getDatabaseId(), "databaseId must not be blank"); + public ListSchedulingPoliciesResponse listSchedulingPolicies( + ListSchedulingPoliciesRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); - return clientCall(request, ListPdbConversionHistoryEntriesResponse::builder) - .logger(LOG, "listPdbConversionHistoryEntries") + return clientCall(request, ListSchedulingPoliciesResponse::builder) + .logger(LOG, "listSchedulingPolicies") .serviceDetails( "Database", - "ListPdbConversionHistoryEntries", - "https://docs.oracle.com/iaas/api/#/en/database/20160918/Database/ListPdbConversionHistoryEntries") + "ListSchedulingPolicies", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingPolicy/ListSchedulingPolicies") .method(com.oracle.bmc.http.client.Method.GET) - .requestBuilder(ListPdbConversionHistoryEntriesRequest::builder) + .requestBuilder(ListSchedulingPoliciesRequest::builder) .basePath("/20160918") - .appendPathParam("databases") - .appendPathParam(request.getDatabaseId()) - .appendPathParam("pdbConversionHistoryEntries") - .appendEnumQueryParam("pdbConversionAction", request.getPdbConversionAction()) - .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) - .appendEnumQueryParam("sortBy", request.getSortBy()) - .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendPathParam("schedulingPolicies") + .appendQueryParam("compartmentId", request.getCompartmentId()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBodyList( - com.oracle.bmc.database.model.PdbConversionHistoryEntrySummary.class, - ListPdbConversionHistoryEntriesResponse.Builder::items) + com.oracle.bmc.database.model.SchedulingPolicySummary.class, + ListSchedulingPoliciesResponse.Builder::items) .handleResponseHeaderString( - "opc-request-id", - ListPdbConversionHistoryEntriesResponse.Builder::opcRequestId) + "opc-request-id", ListSchedulingPoliciesResponse.Builder::opcRequestId) .handleResponseHeaderString( - "opc-next-page", - ListPdbConversionHistoryEntriesResponse.Builder::opcNextPage) + "opc-next-page", ListSchedulingPoliciesResponse.Builder::opcNextPage) .callSync(); } @Override - public ListPluggableDatabasesResponse listPluggableDatabases( - ListPluggableDatabasesRequest request) { + public ListSchedulingWindowsResponse listSchedulingWindows( + ListSchedulingWindowsRequest request) { - return clientCall(request, ListPluggableDatabasesResponse::builder) - .logger(LOG, "listPluggableDatabases") + Validate.notBlank(request.getSchedulingPolicyId(), "schedulingPolicyId must not be blank"); + + return clientCall(request, ListSchedulingWindowsResponse::builder) + .logger(LOG, "listSchedulingWindows") .serviceDetails( "Database", - "ListPluggableDatabases", - "https://docs.oracle.com/iaas/api/#/en/database/20160918/PluggableDatabase/ListPluggableDatabases") + "ListSchedulingWindows", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingWindow/ListSchedulingWindows") .method(com.oracle.bmc.http.client.Method.GET) - .requestBuilder(ListPluggableDatabasesRequest::builder) + .requestBuilder(ListSchedulingWindowsRequest::builder) .basePath("/20160918") - .appendPathParam("pluggableDatabases") + .appendPathParam("schedulingPolicies") + .appendPathParam(request.getSchedulingPolicyId()) + .appendPathParam("schedulingWindows") .appendQueryParam("compartmentId", request.getCompartmentId()) - .appendQueryParam("databaseId", request.getDatabaseId()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) .appendEnumQueryParam("sortBy", request.getSortBy()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) - .appendQueryParam("pdbName", request.getPdbName()) + .appendQueryParam("displayName", request.getDisplayName()) .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBodyList( - com.oracle.bmc.database.model.PluggableDatabaseSummary.class, - ListPluggableDatabasesResponse.Builder::items) + com.oracle.bmc.database.model.SchedulingWindowSummary.class, + ListSchedulingWindowsResponse.Builder::items) .handleResponseHeaderString( - "opc-request-id", ListPluggableDatabasesResponse.Builder::opcRequestId) + "opc-request-id", ListSchedulingWindowsResponse.Builder::opcRequestId) .handleResponseHeaderString( - "opc-next-page", ListPluggableDatabasesResponse.Builder::opcNextPage) + "opc-next-page", ListSchedulingWindowsResponse.Builder::opcNextPage) .callSync(); } @@ -9798,6 +10749,45 @@ public ModifyPluggableDatabaseManagementResponse modifyPluggableDatabaseManageme .callSync(); } + @Override + public MoveExecutionActionMemberResponse moveExecutionActionMember( + MoveExecutionActionMemberRequest request) { + + Validate.notBlank(request.getExecutionActionId(), "executionActionId must not be blank"); + Objects.requireNonNull( + request.getMoveExecutionActionMemberDetails(), + "moveExecutionActionMemberDetails is required"); + + return clientCall(request, MoveExecutionActionMemberResponse::builder) + .logger(LOG, "moveExecutionActionMember") + .serviceDetails( + "Database", + "MoveExecutionActionMember", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExecutionAction/MoveExecutionActionMember") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(MoveExecutionActionMemberRequest::builder) + .basePath("/20160918") + .appendPathParam("executionActions") + .appendPathParam(request.getExecutionActionId()) + .appendPathParam("actions") + .appendPathParam("moveActionMember") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleBody( + com.oracle.bmc.database.model.ExecutionAction.class, + MoveExecutionActionMemberResponse.Builder::executionAction) + .handleResponseHeaderString( + "opc-work-request-id", + MoveExecutionActionMemberResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString("etag", MoveExecutionActionMemberResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", MoveExecutionActionMemberResponse.Builder::opcRequestId) + .callSync(); + } + @Override public RefreshPluggableDatabaseResponse refreshPluggableDatabase( RefreshPluggableDatabaseRequest request) { @@ -10128,6 +11118,86 @@ public RemoveVirtualMachineFromVmClusterResponse removeVirtualMachineFromVmClust .callSync(); } + @Override + public ReorderExecutionActionsResponse reorderExecutionActions( + ReorderExecutionActionsRequest request) { + + Validate.notBlank(request.getExecutionWindowId(), "executionWindowId must not be blank"); + Objects.requireNonNull( + request.getReorderExecutionActionDetails(), + "reorderExecutionActionDetails is required"); + + return clientCall(request, ReorderExecutionActionsResponse::builder) + .logger(LOG, "reorderExecutionActions") + .serviceDetails( + "Database", + "ReorderExecutionActions", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExecutionWindow/ReorderExecutionActions") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ReorderExecutionActionsRequest::builder) + .basePath("/20160918") + .appendPathParam("executionWindows") + .appendPathParam(request.getExecutionWindowId()) + .appendPathParam("actions") + .appendPathParam("reorder") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleBody( + com.oracle.bmc.database.model.ExecutionWindow.class, + ReorderExecutionActionsResponse.Builder::executionWindow) + .handleResponseHeaderString( + "opc-work-request-id", + ReorderExecutionActionsResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString("etag", ReorderExecutionActionsResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", ReorderExecutionActionsResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ReorderScheduledActionsResponse reorderScheduledActions( + ReorderScheduledActionsRequest request) { + Objects.requireNonNull( + request.getReorderScheduledActionsDetails(), + "reorderScheduledActionsDetails is required"); + + Validate.notBlank(request.getSchedulingPlanId(), "schedulingPlanId must not be blank"); + + return clientCall(request, ReorderScheduledActionsResponse::builder) + .logger(LOG, "reorderScheduledActions") + .serviceDetails( + "Database", + "ReorderScheduledActions", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingPlan/ReorderScheduledActions") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ReorderScheduledActionsRequest::builder) + .basePath("/20160918") + .appendPathParam("schedulingPlans") + .appendPathParam(request.getSchedulingPlanId()) + .appendPathParam("actions") + .appendPathParam("reorder") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleBody( + com.oracle.bmc.database.model.SchedulingPlan.class, + ReorderScheduledActionsResponse.Builder::schedulingPlan) + .handleResponseHeaderString("etag", ReorderScheduledActionsResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", ReorderScheduledActionsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ReorderScheduledActionsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-work-request-id", + ReorderScheduledActionsResponse.Builder::opcWorkRequestId) + .callSync(); + } + @Override public ResizeVmClusterNetworkResponse resizeVmClusterNetwork( ResizeVmClusterNetworkRequest request) { @@ -12144,6 +13214,78 @@ public UpdateExascaleDbStorageVaultResponse updateExascaleDbStorageVault( .callSync(); } + @Override + public UpdateExecutionActionResponse updateExecutionAction( + UpdateExecutionActionRequest request) { + + Validate.notBlank(request.getExecutionActionId(), "executionActionId must not be blank"); + Objects.requireNonNull( + request.getUpdateExecutionActionDetails(), + "updateExecutionActionDetails is required"); + + return clientCall(request, UpdateExecutionActionResponse::builder) + .logger(LOG, "updateExecutionAction") + .serviceDetails( + "Database", + "UpdateExecutionAction", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExecutionAction/UpdateExecutionAction") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateExecutionActionRequest::builder) + .basePath("/20160918") + .appendPathParam("executionActions") + .appendPathParam(request.getExecutionActionId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.database.model.ExecutionAction.class, + UpdateExecutionActionResponse.Builder::executionAction) + .handleResponseHeaderString( + "opc-work-request-id", + UpdateExecutionActionResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString("etag", UpdateExecutionActionResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", UpdateExecutionActionResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public UpdateExecutionWindowResponse updateExecutionWindow( + UpdateExecutionWindowRequest request) { + + Validate.notBlank(request.getExecutionWindowId(), "executionWindowId must not be blank"); + Objects.requireNonNull( + request.getUpdateExecutionWindowDetails(), + "updateExecutionWindowDetails is required"); + + return clientCall(request, UpdateExecutionWindowResponse::builder) + .logger(LOG, "updateExecutionWindow") + .serviceDetails( + "Database", + "UpdateExecutionWindow", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExecutionWindow/UpdateExecutionWindow") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateExecutionWindowRequest::builder) + .basePath("/20160918") + .appendPathParam("executionWindows") + .appendPathParam(request.getExecutionWindowId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.database.model.ExecutionWindow.class, + UpdateExecutionWindowResponse.Builder::executionWindow) + .handleResponseHeaderString( + "opc-work-request-id", + UpdateExecutionWindowResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString("etag", UpdateExecutionWindowResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", UpdateExecutionWindowResponse.Builder::opcRequestId) + .callSync(); + } + @Override public UpdateExternalContainerDatabaseResponse updateExternalContainerDatabase( UpdateExternalContainerDatabaseRequest request) { @@ -12434,6 +13576,115 @@ public UpdatePluggableDatabaseResponse updatePluggableDatabase( .callSync(); } + @Override + public UpdateScheduledActionResponse updateScheduledAction( + UpdateScheduledActionRequest request) { + + Validate.notBlank(request.getScheduledActionId(), "scheduledActionId must not be blank"); + Objects.requireNonNull( + request.getUpdateScheduledActionDetails(), + "updateScheduledActionDetails is required"); + + return clientCall(request, UpdateScheduledActionResponse::builder) + .logger(LOG, "updateScheduledAction") + .serviceDetails("Database", "UpdateScheduledAction", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateScheduledActionRequest::builder) + .basePath("/20160918") + .appendPathParam("scheduledActions") + .appendPathParam(request.getScheduledActionId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.database.model.ScheduledAction.class, + UpdateScheduledActionResponse.Builder::scheduledAction) + .handleResponseHeaderString( + "opc-work-request-id", + UpdateScheduledActionResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString("etag", UpdateScheduledActionResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", UpdateScheduledActionResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public UpdateSchedulingPolicyResponse updateSchedulingPolicy( + UpdateSchedulingPolicyRequest request) { + + Validate.notBlank(request.getSchedulingPolicyId(), "schedulingPolicyId must not be blank"); + Objects.requireNonNull( + request.getUpdateSchedulingPolicyDetails(), + "updateSchedulingPolicyDetails is required"); + + return clientCall(request, UpdateSchedulingPolicyResponse::builder) + .logger(LOG, "updateSchedulingPolicy") + .serviceDetails( + "Database", + "UpdateSchedulingPolicy", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingPolicy/UpdateSchedulingPolicy") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateSchedulingPolicyRequest::builder) + .basePath("/20160918") + .appendPathParam("schedulingPolicies") + .appendPathParam(request.getSchedulingPolicyId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.database.model.SchedulingPolicy.class, + UpdateSchedulingPolicyResponse.Builder::schedulingPolicy) + .handleResponseHeaderString( + "opc-work-request-id", + UpdateSchedulingPolicyResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString("etag", UpdateSchedulingPolicyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", UpdateSchedulingPolicyResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public UpdateSchedulingWindowResponse updateSchedulingWindow( + UpdateSchedulingWindowRequest request) { + + Validate.notBlank(request.getSchedulingPolicyId(), "schedulingPolicyId must not be blank"); + + Validate.notBlank(request.getSchedulingWindowId(), "schedulingWindowId must not be blank"); + Objects.requireNonNull( + request.getUpdateSchedulingWindowDetails(), + "updateSchedulingWindowDetails is required"); + + return clientCall(request, UpdateSchedulingWindowResponse::builder) + .logger(LOG, "updateSchedulingWindow") + .serviceDetails( + "Database", + "UpdateSchedulingWindow", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingWindow/UpdateSchedulingWindow") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateSchedulingWindowRequest::builder) + .basePath("/20160918") + .appendPathParam("schedulingPolicies") + .appendPathParam(request.getSchedulingPolicyId()) + .appendPathParam("schedulingWindows") + .appendPathParam(request.getSchedulingWindowId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.database.model.SchedulingWindow.class, + UpdateSchedulingWindowResponse.Builder::schedulingWindow) + .handleResponseHeaderString( + "opc-work-request-id", + UpdateSchedulingWindowResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString("etag", UpdateSchedulingWindowResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", UpdateSchedulingWindowResponse.Builder::opcRequestId) + .callSync(); + } + @Override public UpdateVmClusterResponse updateVmCluster(UpdateVmClusterRequest request) { diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabasePaginators.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabasePaginators.java index 54746793d60..881a6a1651c 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabasePaginators.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabasePaginators.java @@ -6080,6 +6080,242 @@ public ListExascaleDbStorageVaultsResponse apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the + * listExecutionActions 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 listExecutionActionsResponseIterator( + final ListExecutionActionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListExecutionActionsRequest.Builder, + ListExecutionActionsRequest, + ListExecutionActionsResponse>( + new java.util.function.Supplier() { + @Override + public ListExecutionActionsRequest.Builder get() { + return ListExecutionActionsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListExecutionActionsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListExecutionActionsRequest.Builder>, + ListExecutionActionsRequest>() { + @Override + public ListExecutionActionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListExecutionActionsRequest.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< + ListExecutionActionsRequest, ListExecutionActionsResponse>() { + @Override + public ListExecutionActionsResponse apply(ListExecutionActionsRequest request) { + return client.listExecutionActions(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.database.model.ExecutionActionSummary} objects contained in responses from the + * listExecutionActions operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.database.model.ExecutionActionSummary} objects contained in responses + * received from the service. + */ + public Iterable + listExecutionActionsRecordIterator(final ListExecutionActionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListExecutionActionsRequest.Builder, + ListExecutionActionsRequest, + ListExecutionActionsResponse, + com.oracle.bmc.database.model.ExecutionActionSummary>( + new java.util.function.Supplier() { + @Override + public ListExecutionActionsRequest.Builder get() { + return ListExecutionActionsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListExecutionActionsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListExecutionActionsRequest.Builder>, + ListExecutionActionsRequest>() { + @Override + public ListExecutionActionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListExecutionActionsRequest.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< + ListExecutionActionsRequest, ListExecutionActionsResponse>() { + @Override + public ListExecutionActionsResponse apply(ListExecutionActionsRequest request) { + return client.listExecutionActions(request); + } + }, + new java.util.function.Function< + ListExecutionActionsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListExecutionActionsResponse response) { + return response.getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listExecutionWindows 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 listExecutionWindowsResponseIterator( + final ListExecutionWindowsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListExecutionWindowsRequest.Builder, + ListExecutionWindowsRequest, + ListExecutionWindowsResponse>( + new java.util.function.Supplier() { + @Override + public ListExecutionWindowsRequest.Builder get() { + return ListExecutionWindowsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListExecutionWindowsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListExecutionWindowsRequest.Builder>, + ListExecutionWindowsRequest>() { + @Override + public ListExecutionWindowsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListExecutionWindowsRequest.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< + ListExecutionWindowsRequest, ListExecutionWindowsResponse>() { + @Override + public ListExecutionWindowsResponse apply(ListExecutionWindowsRequest request) { + return client.listExecutionWindows(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.database.model.ExecutionWindowSummary} objects contained in responses from the + * listExecutionWindows operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.database.model.ExecutionWindowSummary} objects contained in responses + * received from the service. + */ + public Iterable + listExecutionWindowsRecordIterator(final ListExecutionWindowsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListExecutionWindowsRequest.Builder, + ListExecutionWindowsRequest, + ListExecutionWindowsResponse, + com.oracle.bmc.database.model.ExecutionWindowSummary>( + new java.util.function.Supplier() { + @Override + public ListExecutionWindowsRequest.Builder get() { + return ListExecutionWindowsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListExecutionWindowsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListExecutionWindowsRequest.Builder>, + ListExecutionWindowsRequest>() { + @Override + public ListExecutionWindowsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListExecutionWindowsRequest.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< + ListExecutionWindowsRequest, ListExecutionWindowsResponse>() { + @Override + public ListExecutionWindowsResponse apply(ListExecutionWindowsRequest request) { + return client.listExecutionWindows(request); + } + }, + new java.util.function.Function< + ListExecutionWindowsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListExecutionWindowsResponse response) { + return response.getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the * listExternalContainerDatabases operation. This iterable will fetch more data from the server @@ -7428,6 +7664,128 @@ public java.util.List apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the + * listParamsForActionType 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 listParamsForActionTypeResponseIterator( + final ListParamsForActionTypeRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListParamsForActionTypeRequest.Builder, + ListParamsForActionTypeRequest, + ListParamsForActionTypeResponse>( + new java.util.function.Supplier() { + @Override + public ListParamsForActionTypeRequest.Builder get() { + return ListParamsForActionTypeRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListParamsForActionTypeResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListParamsForActionTypeRequest.Builder>, + ListParamsForActionTypeRequest>() { + @Override + public ListParamsForActionTypeRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListParamsForActionTypeRequest.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< + ListParamsForActionTypeRequest, ListParamsForActionTypeResponse>() { + @Override + public ListParamsForActionTypeResponse apply( + ListParamsForActionTypeRequest request) { + return client.listParamsForActionType(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.database.model.ActionParamValuesSummary} objects contained in responses from + * the listParamsForActionType operation. This iterable will fetch more data from the server as + * needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.database.model.ActionParamValuesSummary} objects contained in responses + * received from the service. + */ + public Iterable + listParamsForActionTypeRecordIterator(final ListParamsForActionTypeRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListParamsForActionTypeRequest.Builder, + ListParamsForActionTypeRequest, + ListParamsForActionTypeResponse, + com.oracle.bmc.database.model.ActionParamValuesSummary>( + new java.util.function.Supplier() { + @Override + public ListParamsForActionTypeRequest.Builder get() { + return ListParamsForActionTypeRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListParamsForActionTypeResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListParamsForActionTypeRequest.Builder>, + ListParamsForActionTypeRequest>() { + @Override + public ListParamsForActionTypeRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListParamsForActionTypeRequest.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< + ListParamsForActionTypeRequest, ListParamsForActionTypeResponse>() { + @Override + public ListParamsForActionTypeResponse apply( + ListParamsForActionTypeRequest request) { + return client.listParamsForActionType(request); + } + }, + new java.util.function.Function< + ListParamsForActionTypeResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListParamsForActionTypeResponse response) { + return response.getActionParamValuesCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the * listPdbConversionHistoryEntries operation. This iterable will fetch more data from the server @@ -7678,6 +8036,615 @@ public ListPluggableDatabasesResponse apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the + * listRecommendedScheduledActions 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 + listRecommendedScheduledActionsResponseIterator( + final ListRecommendedScheduledActionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListRecommendedScheduledActionsRequest.Builder, + ListRecommendedScheduledActionsRequest, + ListRecommendedScheduledActionsResponse>( + new java.util.function.Supplier() { + @Override + public ListRecommendedScheduledActionsRequest.Builder get() { + return ListRecommendedScheduledActionsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListRecommendedScheduledActionsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRecommendedScheduledActionsRequest.Builder>, + ListRecommendedScheduledActionsRequest>() { + @Override + public ListRecommendedScheduledActionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRecommendedScheduledActionsRequest.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< + ListRecommendedScheduledActionsRequest, + ListRecommendedScheduledActionsResponse>() { + @Override + public ListRecommendedScheduledActionsResponse apply( + ListRecommendedScheduledActionsRequest request) { + return client.listRecommendedScheduledActions(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.database.model.RecommendedScheduledActionSummary} objects contained in + * responses from the listRecommendedScheduledActions operation. This iterable will fetch more + * data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.database.model.RecommendedScheduledActionSummary} objects contained in + * responses received from the service. + */ + public Iterable + listRecommendedScheduledActionsRecordIterator( + final ListRecommendedScheduledActionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListRecommendedScheduledActionsRequest.Builder, + ListRecommendedScheduledActionsRequest, + ListRecommendedScheduledActionsResponse, + com.oracle.bmc.database.model.RecommendedScheduledActionSummary>( + new java.util.function.Supplier() { + @Override + public ListRecommendedScheduledActionsRequest.Builder get() { + return ListRecommendedScheduledActionsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListRecommendedScheduledActionsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRecommendedScheduledActionsRequest.Builder>, + ListRecommendedScheduledActionsRequest>() { + @Override + public ListRecommendedScheduledActionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRecommendedScheduledActionsRequest.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< + ListRecommendedScheduledActionsRequest, + ListRecommendedScheduledActionsResponse>() { + @Override + public ListRecommendedScheduledActionsResponse apply( + ListRecommendedScheduledActionsRequest request) { + return client.listRecommendedScheduledActions(request); + } + }, + new java.util.function.Function< + ListRecommendedScheduledActionsResponse, + java.util.List< + com.oracle.bmc.database.model + .RecommendedScheduledActionSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.database.model.RecommendedScheduledActionSummary> + apply(ListRecommendedScheduledActionsResponse response) { + return response.getRecommendedScheduledActionsCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listScheduledActions 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 listScheduledActionsResponseIterator( + final ListScheduledActionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListScheduledActionsRequest.Builder, + ListScheduledActionsRequest, + ListScheduledActionsResponse>( + new java.util.function.Supplier() { + @Override + public ListScheduledActionsRequest.Builder get() { + return ListScheduledActionsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListScheduledActionsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListScheduledActionsRequest.Builder>, + ListScheduledActionsRequest>() { + @Override + public ListScheduledActionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListScheduledActionsRequest.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< + ListScheduledActionsRequest, ListScheduledActionsResponse>() { + @Override + public ListScheduledActionsResponse apply(ListScheduledActionsRequest request) { + return client.listScheduledActions(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.database.model.ScheduledActionSummary} objects contained in responses from the + * listScheduledActions operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.database.model.ScheduledActionSummary} objects contained in responses + * received from the service. + */ + public Iterable + listScheduledActionsRecordIterator(final ListScheduledActionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListScheduledActionsRequest.Builder, + ListScheduledActionsRequest, + ListScheduledActionsResponse, + com.oracle.bmc.database.model.ScheduledActionSummary>( + new java.util.function.Supplier() { + @Override + public ListScheduledActionsRequest.Builder get() { + return ListScheduledActionsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListScheduledActionsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListScheduledActionsRequest.Builder>, + ListScheduledActionsRequest>() { + @Override + public ListScheduledActionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListScheduledActionsRequest.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< + ListScheduledActionsRequest, ListScheduledActionsResponse>() { + @Override + public ListScheduledActionsResponse apply(ListScheduledActionsRequest request) { + return client.listScheduledActions(request); + } + }, + new java.util.function.Function< + ListScheduledActionsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListScheduledActionsResponse response) { + return response.getScheduledActionCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listSchedulingPlans 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 listSchedulingPlansResponseIterator( + final ListSchedulingPlansRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListSchedulingPlansRequest.Builder, + ListSchedulingPlansRequest, + ListSchedulingPlansResponse>( + new java.util.function.Supplier() { + @Override + public ListSchedulingPlansRequest.Builder get() { + return ListSchedulingPlansRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListSchedulingPlansResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSchedulingPlansRequest.Builder>, + ListSchedulingPlansRequest>() { + @Override + public ListSchedulingPlansRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSchedulingPlansRequest.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< + ListSchedulingPlansRequest, ListSchedulingPlansResponse>() { + @Override + public ListSchedulingPlansResponse apply(ListSchedulingPlansRequest request) { + return client.listSchedulingPlans(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.database.model.SchedulingPlanSummary} objects contained in responses from the + * listSchedulingPlans operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.database.model.SchedulingPlanSummary} objects contained in responses + * received from the service. + */ + public Iterable + listSchedulingPlansRecordIterator(final ListSchedulingPlansRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListSchedulingPlansRequest.Builder, + ListSchedulingPlansRequest, + ListSchedulingPlansResponse, + com.oracle.bmc.database.model.SchedulingPlanSummary>( + new java.util.function.Supplier() { + @Override + public ListSchedulingPlansRequest.Builder get() { + return ListSchedulingPlansRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListSchedulingPlansResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSchedulingPlansRequest.Builder>, + ListSchedulingPlansRequest>() { + @Override + public ListSchedulingPlansRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSchedulingPlansRequest.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< + ListSchedulingPlansRequest, ListSchedulingPlansResponse>() { + @Override + public ListSchedulingPlansResponse apply(ListSchedulingPlansRequest request) { + return client.listSchedulingPlans(request); + } + }, + new java.util.function.Function< + ListSchedulingPlansResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListSchedulingPlansResponse response) { + return response.getSchedulingPlanCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listSchedulingPolicies 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 listSchedulingPoliciesResponseIterator( + final ListSchedulingPoliciesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListSchedulingPoliciesRequest.Builder, + ListSchedulingPoliciesRequest, + ListSchedulingPoliciesResponse>( + new java.util.function.Supplier() { + @Override + public ListSchedulingPoliciesRequest.Builder get() { + return ListSchedulingPoliciesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListSchedulingPoliciesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSchedulingPoliciesRequest.Builder>, + ListSchedulingPoliciesRequest>() { + @Override + public ListSchedulingPoliciesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSchedulingPoliciesRequest.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< + ListSchedulingPoliciesRequest, ListSchedulingPoliciesResponse>() { + @Override + public ListSchedulingPoliciesResponse apply( + ListSchedulingPoliciesRequest request) { + return client.listSchedulingPolicies(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.database.model.SchedulingPolicySummary} objects contained in responses from + * the listSchedulingPolicies operation. This iterable will fetch more data from the server as + * needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.database.model.SchedulingPolicySummary} objects contained in responses + * received from the service. + */ + public Iterable + listSchedulingPoliciesRecordIterator(final ListSchedulingPoliciesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListSchedulingPoliciesRequest.Builder, + ListSchedulingPoliciesRequest, + ListSchedulingPoliciesResponse, + com.oracle.bmc.database.model.SchedulingPolicySummary>( + new java.util.function.Supplier() { + @Override + public ListSchedulingPoliciesRequest.Builder get() { + return ListSchedulingPoliciesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListSchedulingPoliciesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSchedulingPoliciesRequest.Builder>, + ListSchedulingPoliciesRequest>() { + @Override + public ListSchedulingPoliciesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSchedulingPoliciesRequest.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< + ListSchedulingPoliciesRequest, ListSchedulingPoliciesResponse>() { + @Override + public ListSchedulingPoliciesResponse apply( + ListSchedulingPoliciesRequest request) { + return client.listSchedulingPolicies(request); + } + }, + new java.util.function.Function< + ListSchedulingPoliciesResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListSchedulingPoliciesResponse response) { + return response.getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listSchedulingWindows 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 listSchedulingWindowsResponseIterator( + final ListSchedulingWindowsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListSchedulingWindowsRequest.Builder, + ListSchedulingWindowsRequest, + ListSchedulingWindowsResponse>( + new java.util.function.Supplier() { + @Override + public ListSchedulingWindowsRequest.Builder get() { + return ListSchedulingWindowsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListSchedulingWindowsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSchedulingWindowsRequest.Builder>, + ListSchedulingWindowsRequest>() { + @Override + public ListSchedulingWindowsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSchedulingWindowsRequest.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< + ListSchedulingWindowsRequest, ListSchedulingWindowsResponse>() { + @Override + public ListSchedulingWindowsResponse apply( + ListSchedulingWindowsRequest request) { + return client.listSchedulingWindows(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.database.model.SchedulingWindowSummary} objects contained in responses from + * the listSchedulingWindows operation. This iterable will fetch more data from the server as + * needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.database.model.SchedulingWindowSummary} objects contained in responses + * received from the service. + */ + public Iterable + listSchedulingWindowsRecordIterator(final ListSchedulingWindowsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListSchedulingWindowsRequest.Builder, + ListSchedulingWindowsRequest, + ListSchedulingWindowsResponse, + com.oracle.bmc.database.model.SchedulingWindowSummary>( + new java.util.function.Supplier() { + @Override + public ListSchedulingWindowsRequest.Builder get() { + return ListSchedulingWindowsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListSchedulingWindowsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSchedulingWindowsRequest.Builder>, + ListSchedulingWindowsRequest>() { + @Override + public ListSchedulingWindowsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSchedulingWindowsRequest.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< + ListSchedulingWindowsRequest, ListSchedulingWindowsResponse>() { + @Override + public ListSchedulingWindowsResponse apply( + ListSchedulingWindowsRequest request) { + return client.listSchedulingWindows(request); + } + }, + new java.util.function.Function< + ListSchedulingWindowsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListSchedulingWindowsResponse response) { + return response.getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the * listSystemVersions operation. This iterable will fetch more data from the server as needed. diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseWaiters.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseWaiters.java index ad2314820dc..0453a801c92 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseWaiters.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseWaiters.java @@ -490,6 +490,130 @@ public CancelBackupResponse call() throws Exception { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forCancelExecutionWindow(CancelExecutionWindowRequest request) { + return forCancelExecutionWindow( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forCancelExecutionWindow( + CancelExecutionWindowRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public CancelExecutionWindowResponse call() throws Exception { + final CancelExecutionWindowResponse response = + client.cancelExecutionWindow(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + CascadingDeleteSchedulingPlanRequest, CascadingDeleteSchedulingPlanResponse> + forCascadingDeleteSchedulingPlan(CascadingDeleteSchedulingPlanRequest request) { + return forCascadingDeleteSchedulingPlan( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + CascadingDeleteSchedulingPlanRequest, CascadingDeleteSchedulingPlanResponse> + forCascadingDeleteSchedulingPlan( + CascadingDeleteSchedulingPlanRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public CascadingDeleteSchedulingPlanResponse call() throws Exception { + final CascadingDeleteSchedulingPlanResponse response = + client.cascadingDeleteSchedulingPlan(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * @@ -2135,6 +2259,134 @@ public ChangeOneoffPatchCompartmentResponse call() throws Exception { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + ChangeSchedulingPlanCompartmentRequest, ChangeSchedulingPlanCompartmentResponse> + forChangeSchedulingPlanCompartment(ChangeSchedulingPlanCompartmentRequest request) { + return forChangeSchedulingPlanCompartment( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + ChangeSchedulingPlanCompartmentRequest, ChangeSchedulingPlanCompartmentResponse> + forChangeSchedulingPlanCompartment( + ChangeSchedulingPlanCompartmentRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public ChangeSchedulingPlanCompartmentResponse call() throws Exception { + final ChangeSchedulingPlanCompartmentResponse response = + client.changeSchedulingPlanCompartment(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + ChangeSchedulingPolicyCompartmentRequest, + ChangeSchedulingPolicyCompartmentResponse> + forChangeSchedulingPolicyCompartment(ChangeSchedulingPolicyCompartmentRequest request) { + return forChangeSchedulingPolicyCompartment( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + ChangeSchedulingPolicyCompartmentRequest, + ChangeSchedulingPolicyCompartmentResponse> + forChangeSchedulingPolicyCompartment( + ChangeSchedulingPolicyCompartmentRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public ChangeSchedulingPolicyCompartmentResponse call() throws Exception { + final ChangeSchedulingPolicyCompartmentResponse response = + client.changeSchedulingPolicyCompartment(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * @@ -3909,10 +4161,9 @@ public CreateExascaleDbStorageVaultResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - CreateExternalBackupJobRequest, CreateExternalBackupJobResponse> - forCreateExternalBackupJob(CreateExternalBackupJobRequest request) { - return forCreateExternalBackupJob( + public com.oracle.bmc.waiter.Waiter + forCreateExecutionAction(CreateExecutionActionRequest request) { + return forCreateExecutionAction( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -3926,10 +4177,9 @@ public CreateExascaleDbStorageVaultResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - CreateExternalBackupJobRequest, CreateExternalBackupJobResponse> - forCreateExternalBackupJob( - CreateExternalBackupJobRequest request, + public com.oracle.bmc.waiter.Waiter + forCreateExecutionAction( + CreateExecutionActionRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -3939,11 +4189,11 @@ public CreateExascaleDbStorageVaultResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public CreateExternalBackupJobResponse call() throws Exception { - final CreateExternalBackupJobResponse response = - client.createExternalBackupJob(request); + public CreateExecutionActionResponse call() throws Exception { + final CreateExecutionActionResponse response = + client.createExecutionAction(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -3972,10 +4222,9 @@ public CreateExternalBackupJobResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - CreateExternalContainerDatabaseRequest, CreateExternalContainerDatabaseResponse> - forCreateExternalContainerDatabase(CreateExternalContainerDatabaseRequest request) { - return forCreateExternalContainerDatabase( + public com.oracle.bmc.waiter.Waiter + forCreateExecutionWindow(CreateExecutionWindowRequest request) { + return forCreateExecutionWindow( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -3989,10 +4238,9 @@ public CreateExternalBackupJobResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - CreateExternalContainerDatabaseRequest, CreateExternalContainerDatabaseResponse> - forCreateExternalContainerDatabase( - CreateExternalContainerDatabaseRequest request, + public com.oracle.bmc.waiter.Waiter + forCreateExecutionWindow( + CreateExecutionWindowRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -4002,11 +4250,11 @@ public CreateExternalBackupJobResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public CreateExternalContainerDatabaseResponse call() throws Exception { - final CreateExternalContainerDatabaseResponse response = - client.createExternalContainerDatabase(request); + public CreateExecutionWindowResponse call() throws Exception { + final CreateExecutionWindowResponse response = + client.createExecutionWindow(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -4036,9 +4284,9 @@ public CreateExternalContainerDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - CreateExternalDatabaseConnectorRequest, CreateExternalDatabaseConnectorResponse> - forCreateExternalDatabaseConnector(CreateExternalDatabaseConnectorRequest request) { - return forCreateExternalDatabaseConnector( + CreateExternalBackupJobRequest, CreateExternalBackupJobResponse> + forCreateExternalBackupJob(CreateExternalBackupJobRequest request) { + return forCreateExternalBackupJob( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -4053,9 +4301,9 @@ public CreateExternalContainerDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - CreateExternalDatabaseConnectorRequest, CreateExternalDatabaseConnectorResponse> - forCreateExternalDatabaseConnector( - CreateExternalDatabaseConnectorRequest request, + CreateExternalBackupJobRequest, CreateExternalBackupJobResponse> + forCreateExternalBackupJob( + CreateExternalBackupJobRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -4065,11 +4313,11 @@ public CreateExternalContainerDatabaseResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public CreateExternalDatabaseConnectorResponse call() throws Exception { - final CreateExternalDatabaseConnectorResponse response = - client.createExternalDatabaseConnector(request); + public CreateExternalBackupJobResponse call() throws Exception { + final CreateExternalBackupJobResponse response = + client.createExternalBackupJob(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -4099,11 +4347,9 @@ public CreateExternalDatabaseConnectorResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - CreateExternalNonContainerDatabaseRequest, - CreateExternalNonContainerDatabaseResponse> - forCreateExternalNonContainerDatabase( - CreateExternalNonContainerDatabaseRequest request) { - return forCreateExternalNonContainerDatabase( + CreateExternalContainerDatabaseRequest, CreateExternalContainerDatabaseResponse> + forCreateExternalContainerDatabase(CreateExternalContainerDatabaseRequest request) { + return forCreateExternalContainerDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -4118,10 +4364,9 @@ public CreateExternalDatabaseConnectorResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - CreateExternalNonContainerDatabaseRequest, - CreateExternalNonContainerDatabaseResponse> - forCreateExternalNonContainerDatabase( - CreateExternalNonContainerDatabaseRequest request, + CreateExternalContainerDatabaseRequest, CreateExternalContainerDatabaseResponse> + forCreateExternalContainerDatabase( + CreateExternalContainerDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -4131,11 +4376,11 @@ public CreateExternalDatabaseConnectorResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public CreateExternalNonContainerDatabaseResponse call() throws Exception { - final CreateExternalNonContainerDatabaseResponse response = - client.createExternalNonContainerDatabase(request); + public CreateExternalContainerDatabaseResponse call() throws Exception { + final CreateExternalContainerDatabaseResponse response = + client.createExternalContainerDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -4165,9 +4410,9 @@ public CreateExternalNonContainerDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - CreateExternalPluggableDatabaseRequest, CreateExternalPluggableDatabaseResponse> - forCreateExternalPluggableDatabase(CreateExternalPluggableDatabaseRequest request) { - return forCreateExternalPluggableDatabase( + CreateExternalDatabaseConnectorRequest, CreateExternalDatabaseConnectorResponse> + forCreateExternalDatabaseConnector(CreateExternalDatabaseConnectorRequest request) { + return forCreateExternalDatabaseConnector( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -4182,9 +4427,9 @@ public CreateExternalNonContainerDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - CreateExternalPluggableDatabaseRequest, CreateExternalPluggableDatabaseResponse> - forCreateExternalPluggableDatabase( - CreateExternalPluggableDatabaseRequest request, + CreateExternalDatabaseConnectorRequest, CreateExternalDatabaseConnectorResponse> + forCreateExternalDatabaseConnector( + CreateExternalDatabaseConnectorRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -4194,11 +4439,11 @@ public CreateExternalNonContainerDatabaseResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public CreateExternalPluggableDatabaseResponse call() throws Exception { - final CreateExternalPluggableDatabaseResponse response = - client.createExternalPluggableDatabase(request); + public CreateExternalDatabaseConnectorResponse call() throws Exception { + final CreateExternalDatabaseConnectorResponse response = + client.createExternalDatabaseConnector(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -4227,9 +4472,12 @@ public CreateExternalPluggableDatabaseResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forCreateOneoffPatch(CreateOneoffPatchRequest request) { - return forCreateOneoffPatch( + public com.oracle.bmc.waiter.Waiter< + CreateExternalNonContainerDatabaseRequest, + CreateExternalNonContainerDatabaseResponse> + forCreateExternalNonContainerDatabase( + CreateExternalNonContainerDatabaseRequest request) { + return forCreateExternalNonContainerDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -4243,9 +4491,11 @@ public CreateExternalPluggableDatabaseResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forCreateOneoffPatch( - CreateOneoffPatchRequest request, + public com.oracle.bmc.waiter.Waiter< + CreateExternalNonContainerDatabaseRequest, + CreateExternalNonContainerDatabaseResponse> + forCreateExternalNonContainerDatabase( + CreateExternalNonContainerDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -4255,11 +4505,11 @@ public CreateExternalPluggableDatabaseResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public CreateOneoffPatchResponse call() throws Exception { - final CreateOneoffPatchResponse response = - client.createOneoffPatch(request); + public CreateExternalNonContainerDatabaseResponse call() throws Exception { + final CreateExternalNonContainerDatabaseResponse response = + client.createExternalNonContainerDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -4289,9 +4539,9 @@ public CreateOneoffPatchResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - CreatePluggableDatabaseRequest, CreatePluggableDatabaseResponse> - forCreatePluggableDatabase(CreatePluggableDatabaseRequest request) { - return forCreatePluggableDatabase( + CreateExternalPluggableDatabaseRequest, CreateExternalPluggableDatabaseResponse> + forCreateExternalPluggableDatabase(CreateExternalPluggableDatabaseRequest request) { + return forCreateExternalPluggableDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -4306,9 +4556,9 @@ public CreateOneoffPatchResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - CreatePluggableDatabaseRequest, CreatePluggableDatabaseResponse> - forCreatePluggableDatabase( - CreatePluggableDatabaseRequest request, + CreateExternalPluggableDatabaseRequest, CreateExternalPluggableDatabaseResponse> + forCreateExternalPluggableDatabase( + CreateExternalPluggableDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -4318,11 +4568,11 @@ public CreateOneoffPatchResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public CreatePluggableDatabaseResponse call() throws Exception { - final CreatePluggableDatabaseResponse response = - client.createPluggableDatabase(request); + public CreateExternalPluggableDatabaseResponse call() throws Exception { + final CreateExternalPluggableDatabaseResponse response = + client.createExternalPluggableDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -4351,9 +4601,9 @@ public CreatePluggableDatabaseResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forCreateVmCluster(CreateVmClusterRequest request) { - return forCreateVmCluster( + public com.oracle.bmc.waiter.Waiter + forCreateOneoffPatch(CreateOneoffPatchRequest request) { + return forCreateOneoffPatch( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -4367,9 +4617,9 @@ public CreatePluggableDatabaseResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forCreateVmCluster( - CreateVmClusterRequest request, + public com.oracle.bmc.waiter.Waiter + forCreateOneoffPatch( + CreateOneoffPatchRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -4379,10 +4629,11 @@ public CreatePluggableDatabaseResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public CreateVmClusterResponse call() throws Exception { - final CreateVmClusterResponse response = client.createVmCluster(request); + public CreateOneoffPatchResponse call() throws Exception { + final CreateOneoffPatchResponse response = + client.createOneoffPatch(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -4412,9 +4663,9 @@ public CreateVmClusterResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - CreateVmClusterNetworkRequest, CreateVmClusterNetworkResponse> - forCreateVmClusterNetwork(CreateVmClusterNetworkRequest request) { - return forCreateVmClusterNetwork( + CreatePluggableDatabaseRequest, CreatePluggableDatabaseResponse> + forCreatePluggableDatabase(CreatePluggableDatabaseRequest request) { + return forCreatePluggableDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -4429,9 +4680,9 @@ public CreateVmClusterResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - CreateVmClusterNetworkRequest, CreateVmClusterNetworkResponse> - forCreateVmClusterNetwork( - CreateVmClusterNetworkRequest request, + CreatePluggableDatabaseRequest, CreatePluggableDatabaseResponse> + forCreatePluggableDatabase( + CreatePluggableDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -4441,11 +4692,11 @@ public CreateVmClusterResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public CreateVmClusterNetworkResponse call() throws Exception { - final CreateVmClusterNetworkResponse response = - client.createVmClusterNetwork(request); + public CreatePluggableDatabaseResponse call() throws Exception { + final CreatePluggableDatabaseResponse response = + client.createPluggableDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -4474,9 +4725,9 @@ public CreateVmClusterNetworkResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forDbNodeAction( - DbNodeActionRequest request) { - return forDbNodeAction( + public com.oracle.bmc.waiter.Waiter + forCreateScheduledAction(CreateScheduledActionRequest request) { + return forCreateScheduledAction( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -4490,10 +4741,11 @@ public com.oracle.bmc.waiter.Waiter f * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forDbNodeAction( - DbNodeActionRequest request, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + public com.oracle.bmc.waiter.Waiter + forCreateScheduledAction( + CreateScheduledActionRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); @@ -4501,10 +4753,11 @@ public com.oracle.bmc.waiter.Waiter f return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public DbNodeActionResponse call() throws Exception { - final DbNodeActionResponse response = client.dbNodeAction(request); + public CreateScheduledActionResponse call() throws Exception { + final CreateScheduledActionResponse response = + client.createScheduledAction(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -4533,9 +4786,9 @@ public DbNodeActionResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forDeleteApplicationVip(DeleteApplicationVipRequest request) { - return forDeleteApplicationVip( + public com.oracle.bmc.waiter.Waiter + forCreateSchedulingPlan(CreateSchedulingPlanRequest request) { + return forCreateSchedulingPlan( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -4549,9 +4802,9 @@ public DbNodeActionResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forDeleteApplicationVip( - DeleteApplicationVipRequest request, + public com.oracle.bmc.waiter.Waiter + forCreateSchedulingPlan( + CreateSchedulingPlanRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -4561,11 +4814,11 @@ public DbNodeActionResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public DeleteApplicationVipResponse call() throws Exception { - final DeleteApplicationVipResponse response = - client.deleteApplicationVip(request); + public CreateSchedulingPlanResponse call() throws Exception { + final CreateSchedulingPlanResponse response = + client.createSchedulingPlan(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -4595,9 +4848,9 @@ public DeleteApplicationVipResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DeleteAutonomousDatabaseRequest, DeleteAutonomousDatabaseResponse> - forDeleteAutonomousDatabase(DeleteAutonomousDatabaseRequest request) { - return forDeleteAutonomousDatabase( + CreateSchedulingPolicyRequest, CreateSchedulingPolicyResponse> + forCreateSchedulingPolicy(CreateSchedulingPolicyRequest request) { + return forCreateSchedulingPolicy( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -4612,9 +4865,9 @@ public DeleteApplicationVipResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DeleteAutonomousDatabaseRequest, DeleteAutonomousDatabaseResponse> - forDeleteAutonomousDatabase( - DeleteAutonomousDatabaseRequest request, + CreateSchedulingPolicyRequest, CreateSchedulingPolicyResponse> + forCreateSchedulingPolicy( + CreateSchedulingPolicyRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -4624,11 +4877,11 @@ public DeleteApplicationVipResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public DeleteAutonomousDatabaseResponse call() throws Exception { - final DeleteAutonomousDatabaseResponse response = - client.deleteAutonomousDatabase(request); + public CreateSchedulingPolicyResponse call() throws Exception { + final CreateSchedulingPolicyResponse response = + client.createSchedulingPolicy(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -4658,9 +4911,9 @@ public DeleteAutonomousDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DeleteAutonomousDatabaseBackupRequest, DeleteAutonomousDatabaseBackupResponse> - forDeleteAutonomousDatabaseBackup(DeleteAutonomousDatabaseBackupRequest request) { - return forDeleteAutonomousDatabaseBackup( + CreateSchedulingWindowRequest, CreateSchedulingWindowResponse> + forCreateSchedulingWindow(CreateSchedulingWindowRequest request) { + return forCreateSchedulingWindow( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -4675,9 +4928,9 @@ public DeleteAutonomousDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DeleteAutonomousDatabaseBackupRequest, DeleteAutonomousDatabaseBackupResponse> - forDeleteAutonomousDatabaseBackup( - DeleteAutonomousDatabaseBackupRequest request, + CreateSchedulingWindowRequest, CreateSchedulingWindowResponse> + forCreateSchedulingWindow( + CreateSchedulingWindowRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -4687,11 +4940,11 @@ public DeleteAutonomousDatabaseResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public DeleteAutonomousDatabaseBackupResponse call() throws Exception { - final DeleteAutonomousDatabaseBackupResponse response = - client.deleteAutonomousDatabaseBackup(request); + public CreateSchedulingWindowResponse call() throws Exception { + final CreateSchedulingWindowResponse response = + client.createSchedulingWindow(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -4720,12 +4973,9 @@ public DeleteAutonomousDatabaseBackupResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - DeleteAutonomousDatabaseSoftwareImageRequest, - DeleteAutonomousDatabaseSoftwareImageResponse> - forDeleteAutonomousDatabaseSoftwareImage( - DeleteAutonomousDatabaseSoftwareImageRequest request) { - return forDeleteAutonomousDatabaseSoftwareImage( + public com.oracle.bmc.waiter.Waiter + forCreateVmCluster(CreateVmClusterRequest request) { + return forCreateVmCluster( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -4739,11 +4989,9 @@ public DeleteAutonomousDatabaseBackupResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - DeleteAutonomousDatabaseSoftwareImageRequest, - DeleteAutonomousDatabaseSoftwareImageResponse> - forDeleteAutonomousDatabaseSoftwareImage( - DeleteAutonomousDatabaseSoftwareImageRequest request, + public com.oracle.bmc.waiter.Waiter + forCreateVmCluster( + CreateVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -4753,11 +5001,10 @@ public DeleteAutonomousDatabaseBackupResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public DeleteAutonomousDatabaseSoftwareImageResponse call() throws Exception { - final DeleteAutonomousDatabaseSoftwareImageResponse response = - client.deleteAutonomousDatabaseSoftwareImage(request); + public CreateVmClusterResponse call() throws Exception { + final CreateVmClusterResponse response = client.createVmCluster(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -4787,9 +5034,9 @@ public DeleteAutonomousDatabaseSoftwareImageResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DeleteAutonomousVmClusterRequest, DeleteAutonomousVmClusterResponse> - forDeleteAutonomousVmCluster(DeleteAutonomousVmClusterRequest request) { - return forDeleteAutonomousVmCluster( + CreateVmClusterNetworkRequest, CreateVmClusterNetworkResponse> + forCreateVmClusterNetwork(CreateVmClusterNetworkRequest request) { + return forCreateVmClusterNetwork( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -4804,9 +5051,9 @@ public DeleteAutonomousDatabaseSoftwareImageResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DeleteAutonomousVmClusterRequest, DeleteAutonomousVmClusterResponse> - forDeleteAutonomousVmCluster( - DeleteAutonomousVmClusterRequest request, + CreateVmClusterNetworkRequest, CreateVmClusterNetworkResponse> + forCreateVmClusterNetwork( + CreateVmClusterNetworkRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -4816,11 +5063,11 @@ public DeleteAutonomousDatabaseSoftwareImageResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public DeleteAutonomousVmClusterResponse call() throws Exception { - final DeleteAutonomousVmClusterResponse response = - client.deleteAutonomousVmCluster(request); + public CreateVmClusterNetworkResponse call() throws Exception { + final CreateVmClusterNetworkResponse response = + client.createVmClusterNetwork(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -4849,9 +5096,9 @@ public DeleteAutonomousVmClusterResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forDeleteBackup( - DeleteBackupRequest request) { - return forDeleteBackup( + public com.oracle.bmc.waiter.Waiter forDbNodeAction( + DbNodeActionRequest request) { + return forDbNodeAction( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -4865,8 +5112,8 @@ public com.oracle.bmc.waiter.Waiter f * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forDeleteBackup( - DeleteBackupRequest request, + public com.oracle.bmc.waiter.Waiter forDbNodeAction( + DbNodeActionRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -4876,10 +5123,10 @@ public com.oracle.bmc.waiter.Waiter f return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public DeleteBackupResponse call() throws Exception { - final DeleteBackupResponse response = client.deleteBackup(request); + public DbNodeActionResponse call() throws Exception { + final DbNodeActionResponse response = client.dbNodeAction(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -4908,10 +5155,9 @@ public DeleteBackupResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - DeleteCloudAutonomousVmClusterRequest, DeleteCloudAutonomousVmClusterResponse> - forDeleteCloudAutonomousVmCluster(DeleteCloudAutonomousVmClusterRequest request) { - return forDeleteCloudAutonomousVmCluster( + public com.oracle.bmc.waiter.Waiter + forDeleteApplicationVip(DeleteApplicationVipRequest request) { + return forDeleteApplicationVip( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -4925,10 +5171,9 @@ public DeleteBackupResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - DeleteCloudAutonomousVmClusterRequest, DeleteCloudAutonomousVmClusterResponse> - forDeleteCloudAutonomousVmCluster( - DeleteCloudAutonomousVmClusterRequest request, + public com.oracle.bmc.waiter.Waiter + forDeleteApplicationVip( + DeleteApplicationVipRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -4938,11 +5183,11 @@ public DeleteBackupResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public DeleteCloudAutonomousVmClusterResponse call() throws Exception { - final DeleteCloudAutonomousVmClusterResponse response = - client.deleteCloudAutonomousVmCluster(request); + public DeleteApplicationVipResponse call() throws Exception { + final DeleteApplicationVipResponse response = + client.deleteApplicationVip(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -4972,10 +5217,9 @@ public DeleteCloudAutonomousVmClusterResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DeleteCloudExadataInfrastructureRequest, - DeleteCloudExadataInfrastructureResponse> - forDeleteCloudExadataInfrastructure(DeleteCloudExadataInfrastructureRequest request) { - return forDeleteCloudExadataInfrastructure( + DeleteAutonomousDatabaseRequest, DeleteAutonomousDatabaseResponse> + forDeleteAutonomousDatabase(DeleteAutonomousDatabaseRequest request) { + return forDeleteAutonomousDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -4990,10 +5234,9 @@ public DeleteCloudAutonomousVmClusterResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DeleteCloudExadataInfrastructureRequest, - DeleteCloudExadataInfrastructureResponse> - forDeleteCloudExadataInfrastructure( - DeleteCloudExadataInfrastructureRequest request, + DeleteAutonomousDatabaseRequest, DeleteAutonomousDatabaseResponse> + forDeleteAutonomousDatabase( + DeleteAutonomousDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -5003,11 +5246,11 @@ public DeleteCloudAutonomousVmClusterResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public DeleteCloudExadataInfrastructureResponse call() throws Exception { - final DeleteCloudExadataInfrastructureResponse response = - client.deleteCloudExadataInfrastructure(request); + public DeleteAutonomousDatabaseResponse call() throws Exception { + final DeleteAutonomousDatabaseResponse response = + client.deleteAutonomousDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -5036,9 +5279,10 @@ public DeleteCloudExadataInfrastructureResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forDeleteCloudVmCluster(DeleteCloudVmClusterRequest request) { - return forDeleteCloudVmCluster( + public com.oracle.bmc.waiter.Waiter< + DeleteAutonomousDatabaseBackupRequest, DeleteAutonomousDatabaseBackupResponse> + forDeleteAutonomousDatabaseBackup(DeleteAutonomousDatabaseBackupRequest request) { + return forDeleteAutonomousDatabaseBackup( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -5052,9 +5296,10 @@ public DeleteCloudExadataInfrastructureResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forDeleteCloudVmCluster( - DeleteCloudVmClusterRequest request, + public com.oracle.bmc.waiter.Waiter< + DeleteAutonomousDatabaseBackupRequest, DeleteAutonomousDatabaseBackupResponse> + forDeleteAutonomousDatabaseBackup( + DeleteAutonomousDatabaseBackupRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -5064,11 +5309,11 @@ public DeleteCloudExadataInfrastructureResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public DeleteCloudVmClusterResponse call() throws Exception { - final DeleteCloudVmClusterResponse response = - client.deleteCloudVmCluster(request); + public DeleteAutonomousDatabaseBackupResponse call() throws Exception { + final DeleteAutonomousDatabaseBackupResponse response = + client.deleteAutonomousDatabaseBackup(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -5098,9 +5343,11 @@ public DeleteCloudVmClusterResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DeleteConsoleConnectionRequest, DeleteConsoleConnectionResponse> - forDeleteConsoleConnection(DeleteConsoleConnectionRequest request) { - return forDeleteConsoleConnection( + DeleteAutonomousDatabaseSoftwareImageRequest, + DeleteAutonomousDatabaseSoftwareImageResponse> + forDeleteAutonomousDatabaseSoftwareImage( + DeleteAutonomousDatabaseSoftwareImageRequest request) { + return forDeleteAutonomousDatabaseSoftwareImage( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -5115,9 +5362,10 @@ public DeleteCloudVmClusterResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DeleteConsoleConnectionRequest, DeleteConsoleConnectionResponse> - forDeleteConsoleConnection( - DeleteConsoleConnectionRequest request, + DeleteAutonomousDatabaseSoftwareImageRequest, + DeleteAutonomousDatabaseSoftwareImageResponse> + forDeleteAutonomousDatabaseSoftwareImage( + DeleteAutonomousDatabaseSoftwareImageRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -5127,11 +5375,11 @@ public DeleteCloudVmClusterResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public DeleteConsoleConnectionResponse call() throws Exception { - final DeleteConsoleConnectionResponse response = - client.deleteConsoleConnection(request); + public DeleteAutonomousDatabaseSoftwareImageResponse call() throws Exception { + final DeleteAutonomousDatabaseSoftwareImageResponse response = + client.deleteAutonomousDatabaseSoftwareImage(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -5160,9 +5408,10 @@ public DeleteConsoleConnectionResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forDeleteConsoleHistory(DeleteConsoleHistoryRequest request) { - return forDeleteConsoleHistory( + public com.oracle.bmc.waiter.Waiter< + DeleteAutonomousVmClusterRequest, DeleteAutonomousVmClusterResponse> + forDeleteAutonomousVmCluster(DeleteAutonomousVmClusterRequest request) { + return forDeleteAutonomousVmCluster( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -5176,9 +5425,10 @@ public DeleteConsoleConnectionResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forDeleteConsoleHistory( - DeleteConsoleHistoryRequest request, + public com.oracle.bmc.waiter.Waiter< + DeleteAutonomousVmClusterRequest, DeleteAutonomousVmClusterResponse> + forDeleteAutonomousVmCluster( + DeleteAutonomousVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -5188,11 +5438,11 @@ public DeleteConsoleConnectionResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public DeleteConsoleHistoryResponse call() throws Exception { - final DeleteConsoleHistoryResponse response = - client.deleteConsoleHistory(request); + public DeleteAutonomousVmClusterResponse call() throws Exception { + final DeleteAutonomousVmClusterResponse response = + client.deleteAutonomousVmCluster(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -5221,9 +5471,9 @@ public DeleteConsoleHistoryResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forDeleteDatabase(DeleteDatabaseRequest request) { - return forDeleteDatabase( + public com.oracle.bmc.waiter.Waiter forDeleteBackup( + DeleteBackupRequest request) { + return forDeleteBackup( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -5237,11 +5487,10 @@ public DeleteConsoleHistoryResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forDeleteDatabase( - DeleteDatabaseRequest request, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + public com.oracle.bmc.waiter.Waiter forDeleteBackup( + DeleteBackupRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); @@ -5249,10 +5498,10 @@ public DeleteConsoleHistoryResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public DeleteDatabaseResponse call() throws Exception { - final DeleteDatabaseResponse response = client.deleteDatabase(request); + public DeleteBackupResponse call() throws Exception { + final DeleteBackupResponse response = client.deleteBackup(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -5282,9 +5531,9 @@ public DeleteDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DeleteDatabaseSoftwareImageRequest, DeleteDatabaseSoftwareImageResponse> - forDeleteDatabaseSoftwareImage(DeleteDatabaseSoftwareImageRequest request) { - return forDeleteDatabaseSoftwareImage( + DeleteCloudAutonomousVmClusterRequest, DeleteCloudAutonomousVmClusterResponse> + forDeleteCloudAutonomousVmCluster(DeleteCloudAutonomousVmClusterRequest request) { + return forDeleteCloudAutonomousVmCluster( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -5299,9 +5548,9 @@ public DeleteDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DeleteDatabaseSoftwareImageRequest, DeleteDatabaseSoftwareImageResponse> - forDeleteDatabaseSoftwareImage( - DeleteDatabaseSoftwareImageRequest request, + DeleteCloudAutonomousVmClusterRequest, DeleteCloudAutonomousVmClusterResponse> + forDeleteCloudAutonomousVmCluster( + DeleteCloudAutonomousVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -5311,11 +5560,11 @@ public DeleteDatabaseResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public DeleteDatabaseSoftwareImageResponse call() throws Exception { - final DeleteDatabaseSoftwareImageResponse response = - client.deleteDatabaseSoftwareImage(request); + public DeleteCloudAutonomousVmClusterResponse call() throws Exception { + final DeleteCloudAutonomousVmClusterResponse response = + client.deleteCloudAutonomousVmCluster(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -5344,9 +5593,11 @@ public DeleteDatabaseSoftwareImageResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forDeleteDbHome( - DeleteDbHomeRequest request) { - return forDeleteDbHome( + public com.oracle.bmc.waiter.Waiter< + DeleteCloudExadataInfrastructureRequest, + DeleteCloudExadataInfrastructureResponse> + forDeleteCloudExadataInfrastructure(DeleteCloudExadataInfrastructureRequest request) { + return forDeleteCloudExadataInfrastructure( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -5360,10 +5611,13 @@ public com.oracle.bmc.waiter.Waiter f * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forDeleteDbHome( - DeleteDbHomeRequest request, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + public com.oracle.bmc.waiter.Waiter< + DeleteCloudExadataInfrastructureRequest, + DeleteCloudExadataInfrastructureResponse> + forDeleteCloudExadataInfrastructure( + DeleteCloudExadataInfrastructureRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); @@ -5371,10 +5625,11 @@ public com.oracle.bmc.waiter.Waiter f return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public DeleteDbHomeResponse call() throws Exception { - final DeleteDbHomeResponse response = client.deleteDbHome(request); + public DeleteCloudExadataInfrastructureResponse call() throws Exception { + final DeleteCloudExadataInfrastructureResponse response = + client.deleteCloudExadataInfrastructure(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -5403,10 +5658,9 @@ public DeleteDbHomeResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - DeleteExadataInfrastructureRequest, DeleteExadataInfrastructureResponse> - forDeleteExadataInfrastructure(DeleteExadataInfrastructureRequest request) { - return forDeleteExadataInfrastructure( + public com.oracle.bmc.waiter.Waiter + forDeleteCloudVmCluster(DeleteCloudVmClusterRequest request) { + return forDeleteCloudVmCluster( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -5420,10 +5674,9 @@ public DeleteDbHomeResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - DeleteExadataInfrastructureRequest, DeleteExadataInfrastructureResponse> - forDeleteExadataInfrastructure( - DeleteExadataInfrastructureRequest request, + public com.oracle.bmc.waiter.Waiter + forDeleteCloudVmCluster( + DeleteCloudVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -5433,11 +5686,11 @@ public DeleteDbHomeResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public DeleteExadataInfrastructureResponse call() throws Exception { - final DeleteExadataInfrastructureResponse response = - client.deleteExadataInfrastructure(request); + public DeleteCloudVmClusterResponse call() throws Exception { + final DeleteCloudVmClusterResponse response = + client.deleteCloudVmCluster(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -5466,9 +5719,10 @@ public DeleteExadataInfrastructureResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forDeleteExadbVmCluster(DeleteExadbVmClusterRequest request) { - return forDeleteExadbVmCluster( + public com.oracle.bmc.waiter.Waiter< + DeleteConsoleConnectionRequest, DeleteConsoleConnectionResponse> + forDeleteConsoleConnection(DeleteConsoleConnectionRequest request) { + return forDeleteConsoleConnection( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -5482,9 +5736,10 @@ public DeleteExadataInfrastructureResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forDeleteExadbVmCluster( - DeleteExadbVmClusterRequest request, + public com.oracle.bmc.waiter.Waiter< + DeleteConsoleConnectionRequest, DeleteConsoleConnectionResponse> + forDeleteConsoleConnection( + DeleteConsoleConnectionRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -5494,11 +5749,11 @@ public DeleteExadataInfrastructureResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public DeleteExadbVmClusterResponse call() throws Exception { - final DeleteExadbVmClusterResponse response = - client.deleteExadbVmCluster(request); + public DeleteConsoleConnectionResponse call() throws Exception { + final DeleteConsoleConnectionResponse response = + client.deleteConsoleConnection(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -5527,10 +5782,9 @@ public DeleteExadbVmClusterResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - DeleteExascaleDbStorageVaultRequest, DeleteExascaleDbStorageVaultResponse> - forDeleteExascaleDbStorageVault(DeleteExascaleDbStorageVaultRequest request) { - return forDeleteExascaleDbStorageVault( + public com.oracle.bmc.waiter.Waiter + forDeleteConsoleHistory(DeleteConsoleHistoryRequest request) { + return forDeleteConsoleHistory( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -5544,10 +5798,9 @@ public DeleteExadbVmClusterResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - DeleteExascaleDbStorageVaultRequest, DeleteExascaleDbStorageVaultResponse> - forDeleteExascaleDbStorageVault( - DeleteExascaleDbStorageVaultRequest request, + public com.oracle.bmc.waiter.Waiter + forDeleteConsoleHistory( + DeleteConsoleHistoryRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -5557,11 +5810,11 @@ public DeleteExadbVmClusterResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public DeleteExascaleDbStorageVaultResponse call() throws Exception { - final DeleteExascaleDbStorageVaultResponse response = - client.deleteExascaleDbStorageVault(request); + public DeleteConsoleHistoryResponse call() throws Exception { + final DeleteConsoleHistoryResponse response = + client.deleteConsoleHistory(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -5590,10 +5843,9 @@ public DeleteExascaleDbStorageVaultResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - DeleteExternalContainerDatabaseRequest, DeleteExternalContainerDatabaseResponse> - forDeleteExternalContainerDatabase(DeleteExternalContainerDatabaseRequest request) { - return forDeleteExternalContainerDatabase( + public com.oracle.bmc.waiter.Waiter + forDeleteDatabase(DeleteDatabaseRequest request) { + return forDeleteDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -5607,10 +5859,9 @@ public DeleteExascaleDbStorageVaultResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - DeleteExternalContainerDatabaseRequest, DeleteExternalContainerDatabaseResponse> - forDeleteExternalContainerDatabase( - DeleteExternalContainerDatabaseRequest request, + public com.oracle.bmc.waiter.Waiter + forDeleteDatabase( + DeleteDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -5620,11 +5871,10 @@ public DeleteExascaleDbStorageVaultResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public DeleteExternalContainerDatabaseResponse call() throws Exception { - final DeleteExternalContainerDatabaseResponse response = - client.deleteExternalContainerDatabase(request); + public DeleteDatabaseResponse call() throws Exception { + final DeleteDatabaseResponse response = client.deleteDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -5654,9 +5904,9 @@ public DeleteExternalContainerDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DeleteExternalDatabaseConnectorRequest, DeleteExternalDatabaseConnectorResponse> - forDeleteExternalDatabaseConnector(DeleteExternalDatabaseConnectorRequest request) { - return forDeleteExternalDatabaseConnector( + DeleteDatabaseSoftwareImageRequest, DeleteDatabaseSoftwareImageResponse> + forDeleteDatabaseSoftwareImage(DeleteDatabaseSoftwareImageRequest request) { + return forDeleteDatabaseSoftwareImage( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -5671,9 +5921,9 @@ public DeleteExternalContainerDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DeleteExternalDatabaseConnectorRequest, DeleteExternalDatabaseConnectorResponse> - forDeleteExternalDatabaseConnector( - DeleteExternalDatabaseConnectorRequest request, + DeleteDatabaseSoftwareImageRequest, DeleteDatabaseSoftwareImageResponse> + forDeleteDatabaseSoftwareImage( + DeleteDatabaseSoftwareImageRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -5683,11 +5933,11 @@ public DeleteExternalContainerDatabaseResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public DeleteExternalDatabaseConnectorResponse call() throws Exception { - final DeleteExternalDatabaseConnectorResponse response = - client.deleteExternalDatabaseConnector(request); + public DeleteDatabaseSoftwareImageResponse call() throws Exception { + final DeleteDatabaseSoftwareImageResponse response = + client.deleteDatabaseSoftwareImage(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -5716,12 +5966,9 @@ public DeleteExternalDatabaseConnectorResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - DeleteExternalNonContainerDatabaseRequest, - DeleteExternalNonContainerDatabaseResponse> - forDeleteExternalNonContainerDatabase( - DeleteExternalNonContainerDatabaseRequest request) { - return forDeleteExternalNonContainerDatabase( + public com.oracle.bmc.waiter.Waiter forDeleteDbHome( + DeleteDbHomeRequest request) { + return forDeleteDbHome( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -5735,13 +5982,10 @@ public DeleteExternalDatabaseConnectorResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - DeleteExternalNonContainerDatabaseRequest, - DeleteExternalNonContainerDatabaseResponse> - forDeleteExternalNonContainerDatabase( - DeleteExternalNonContainerDatabaseRequest request, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + public com.oracle.bmc.waiter.Waiter forDeleteDbHome( + DeleteDbHomeRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); @@ -5749,11 +5993,10 @@ public DeleteExternalDatabaseConnectorResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public DeleteExternalNonContainerDatabaseResponse call() throws Exception { - final DeleteExternalNonContainerDatabaseResponse response = - client.deleteExternalNonContainerDatabase(request); + public DeleteDbHomeResponse call() throws Exception { + final DeleteDbHomeResponse response = client.deleteDbHome(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -5783,9 +6026,9 @@ public DeleteExternalNonContainerDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DeleteExternalPluggableDatabaseRequest, DeleteExternalPluggableDatabaseResponse> - forDeleteExternalPluggableDatabase(DeleteExternalPluggableDatabaseRequest request) { - return forDeleteExternalPluggableDatabase( + DeleteExadataInfrastructureRequest, DeleteExadataInfrastructureResponse> + forDeleteExadataInfrastructure(DeleteExadataInfrastructureRequest request) { + return forDeleteExadataInfrastructure( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -5800,9 +6043,9 @@ public DeleteExternalNonContainerDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DeleteExternalPluggableDatabaseRequest, DeleteExternalPluggableDatabaseResponse> - forDeleteExternalPluggableDatabase( - DeleteExternalPluggableDatabaseRequest request, + DeleteExadataInfrastructureRequest, DeleteExadataInfrastructureResponse> + forDeleteExadataInfrastructure( + DeleteExadataInfrastructureRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -5812,11 +6055,11 @@ public DeleteExternalNonContainerDatabaseResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public DeleteExternalPluggableDatabaseResponse call() throws Exception { - final DeleteExternalPluggableDatabaseResponse response = - client.deleteExternalPluggableDatabase(request); + public DeleteExadataInfrastructureResponse call() throws Exception { + final DeleteExadataInfrastructureResponse response = + client.deleteExadataInfrastructure(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -5845,9 +6088,9 @@ public DeleteExternalPluggableDatabaseResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forDeleteOneoffPatch(DeleteOneoffPatchRequest request) { - return forDeleteOneoffPatch( + public com.oracle.bmc.waiter.Waiter + forDeleteExadbVmCluster(DeleteExadbVmClusterRequest request) { + return forDeleteExadbVmCluster( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -5861,9 +6104,9 @@ public DeleteExternalPluggableDatabaseResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forDeleteOneoffPatch( - DeleteOneoffPatchRequest request, + public com.oracle.bmc.waiter.Waiter + forDeleteExadbVmCluster( + DeleteExadbVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -5873,11 +6116,11 @@ public DeleteExternalPluggableDatabaseResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public DeleteOneoffPatchResponse call() throws Exception { - final DeleteOneoffPatchResponse response = - client.deleteOneoffPatch(request); + public DeleteExadbVmClusterResponse call() throws Exception { + final DeleteExadbVmClusterResponse response = + client.deleteExadbVmCluster(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -5907,9 +6150,9 @@ public DeleteOneoffPatchResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DeletePluggableDatabaseRequest, DeletePluggableDatabaseResponse> - forDeletePluggableDatabase(DeletePluggableDatabaseRequest request) { - return forDeletePluggableDatabase( + DeleteExascaleDbStorageVaultRequest, DeleteExascaleDbStorageVaultResponse> + forDeleteExascaleDbStorageVault(DeleteExascaleDbStorageVaultRequest request) { + return forDeleteExascaleDbStorageVault( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -5924,9 +6167,9 @@ public DeleteOneoffPatchResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DeletePluggableDatabaseRequest, DeletePluggableDatabaseResponse> - forDeletePluggableDatabase( - DeletePluggableDatabaseRequest request, + DeleteExascaleDbStorageVaultRequest, DeleteExascaleDbStorageVaultResponse> + forDeleteExascaleDbStorageVault( + DeleteExascaleDbStorageVaultRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -5936,11 +6179,11 @@ public DeleteOneoffPatchResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public DeletePluggableDatabaseResponse call() throws Exception { - final DeletePluggableDatabaseResponse response = - client.deletePluggableDatabase(request); + public DeleteExascaleDbStorageVaultResponse call() throws Exception { + final DeleteExascaleDbStorageVaultResponse response = + client.deleteExascaleDbStorageVault(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -5969,9 +6212,9 @@ public DeletePluggableDatabaseResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forDeleteVmCluster(DeleteVmClusterRequest request) { - return forDeleteVmCluster( + public com.oracle.bmc.waiter.Waiter + forDeleteExecutionAction(DeleteExecutionActionRequest request) { + return forDeleteExecutionAction( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -5985,9 +6228,9 @@ public DeletePluggableDatabaseResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forDeleteVmCluster( - DeleteVmClusterRequest request, + public com.oracle.bmc.waiter.Waiter + forDeleteExecutionAction( + DeleteExecutionActionRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -5997,10 +6240,11 @@ public DeletePluggableDatabaseResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public DeleteVmClusterResponse call() throws Exception { - final DeleteVmClusterResponse response = client.deleteVmCluster(request); + public DeleteExecutionActionResponse call() throws Exception { + final DeleteExecutionActionResponse response = + client.deleteExecutionAction(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -6030,9 +6274,9 @@ public DeleteVmClusterResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DeleteVmClusterNetworkRequest, DeleteVmClusterNetworkResponse> - forDeleteVmClusterNetwork(DeleteVmClusterNetworkRequest request) { - return forDeleteVmClusterNetwork( + DeleteExternalContainerDatabaseRequest, DeleteExternalContainerDatabaseResponse> + forDeleteExternalContainerDatabase(DeleteExternalContainerDatabaseRequest request) { + return forDeleteExternalContainerDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -6047,9 +6291,9 @@ public DeleteVmClusterResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DeleteVmClusterNetworkRequest, DeleteVmClusterNetworkResponse> - forDeleteVmClusterNetwork( - DeleteVmClusterNetworkRequest request, + DeleteExternalContainerDatabaseRequest, DeleteExternalContainerDatabaseResponse> + forDeleteExternalContainerDatabase( + DeleteExternalContainerDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -6059,11 +6303,11 @@ public DeleteVmClusterResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public DeleteVmClusterNetworkResponse call() throws Exception { - final DeleteVmClusterNetworkResponse response = - client.deleteVmClusterNetwork(request); + public DeleteExternalContainerDatabaseResponse call() throws Exception { + final DeleteExternalContainerDatabaseResponse response = + client.deleteExternalContainerDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -6093,11 +6337,9 @@ public DeleteVmClusterNetworkResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DeregisterAutonomousDatabaseDataSafeRequest, - DeregisterAutonomousDatabaseDataSafeResponse> - forDeregisterAutonomousDatabaseDataSafe( - DeregisterAutonomousDatabaseDataSafeRequest request) { - return forDeregisterAutonomousDatabaseDataSafe( + DeleteExternalDatabaseConnectorRequest, DeleteExternalDatabaseConnectorResponse> + forDeleteExternalDatabaseConnector(DeleteExternalDatabaseConnectorRequest request) { + return forDeleteExternalDatabaseConnector( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -6112,10 +6354,9 @@ public DeleteVmClusterNetworkResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DeregisterAutonomousDatabaseDataSafeRequest, - DeregisterAutonomousDatabaseDataSafeResponse> - forDeregisterAutonomousDatabaseDataSafe( - DeregisterAutonomousDatabaseDataSafeRequest request, + DeleteExternalDatabaseConnectorRequest, DeleteExternalDatabaseConnectorResponse> + forDeleteExternalDatabaseConnector( + DeleteExternalDatabaseConnectorRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -6125,11 +6366,11 @@ public DeleteVmClusterNetworkResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public DeregisterAutonomousDatabaseDataSafeResponse call() throws Exception { - final DeregisterAutonomousDatabaseDataSafeResponse response = - client.deregisterAutonomousDatabaseDataSafe(request); + public DeleteExternalDatabaseConnectorResponse call() throws Exception { + final DeleteExternalDatabaseConnectorResponse response = + client.deleteExternalDatabaseConnector(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -6159,11 +6400,11 @@ public DeregisterAutonomousDatabaseDataSafeResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DisableAutonomousDatabaseManagementRequest, - DisableAutonomousDatabaseManagementResponse> - forDisableAutonomousDatabaseManagement( - DisableAutonomousDatabaseManagementRequest request) { - return forDisableAutonomousDatabaseManagement( + DeleteExternalNonContainerDatabaseRequest, + DeleteExternalNonContainerDatabaseResponse> + forDeleteExternalNonContainerDatabase( + DeleteExternalNonContainerDatabaseRequest request) { + return forDeleteExternalNonContainerDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -6178,10 +6419,10 @@ public DeregisterAutonomousDatabaseDataSafeResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DisableAutonomousDatabaseManagementRequest, - DisableAutonomousDatabaseManagementResponse> - forDisableAutonomousDatabaseManagement( - DisableAutonomousDatabaseManagementRequest request, + DeleteExternalNonContainerDatabaseRequest, + DeleteExternalNonContainerDatabaseResponse> + forDeleteExternalNonContainerDatabase( + DeleteExternalNonContainerDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -6191,11 +6432,11 @@ public DeregisterAutonomousDatabaseDataSafeResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public DisableAutonomousDatabaseManagementResponse call() throws Exception { - final DisableAutonomousDatabaseManagementResponse response = - client.disableAutonomousDatabaseManagement(request); + public DeleteExternalNonContainerDatabaseResponse call() throws Exception { + final DeleteExternalNonContainerDatabaseResponse response = + client.deleteExternalNonContainerDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -6225,11 +6466,9 @@ public DisableAutonomousDatabaseManagementResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DisableAutonomousDatabaseOperationsInsightsRequest, - DisableAutonomousDatabaseOperationsInsightsResponse> - forDisableAutonomousDatabaseOperationsInsights( - DisableAutonomousDatabaseOperationsInsightsRequest request) { - return forDisableAutonomousDatabaseOperationsInsights( + DeleteExternalPluggableDatabaseRequest, DeleteExternalPluggableDatabaseResponse> + forDeleteExternalPluggableDatabase(DeleteExternalPluggableDatabaseRequest request) { + return forDeleteExternalPluggableDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -6244,10 +6483,9 @@ public DisableAutonomousDatabaseManagementResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DisableAutonomousDatabaseOperationsInsightsRequest, - DisableAutonomousDatabaseOperationsInsightsResponse> - forDisableAutonomousDatabaseOperationsInsights( - DisableAutonomousDatabaseOperationsInsightsRequest request, + DeleteExternalPluggableDatabaseRequest, DeleteExternalPluggableDatabaseResponse> + forDeleteExternalPluggableDatabase( + DeleteExternalPluggableDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -6257,13 +6495,11 @@ public DisableAutonomousDatabaseManagementResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable< - DisableAutonomousDatabaseOperationsInsightsResponse>() { + new java.util.concurrent.Callable() { @Override - public DisableAutonomousDatabaseOperationsInsightsResponse call() - throws Exception { - final DisableAutonomousDatabaseOperationsInsightsResponse response = - client.disableAutonomousDatabaseOperationsInsights(request); + public DeleteExternalPluggableDatabaseResponse call() throws Exception { + final DeleteExternalPluggableDatabaseResponse response = + client.deleteExternalPluggableDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -6292,10 +6528,9 @@ public DisableAutonomousDatabaseOperationsInsightsResponse call() * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - DisableDatabaseManagementRequest, DisableDatabaseManagementResponse> - forDisableDatabaseManagement(DisableDatabaseManagementRequest request) { - return forDisableDatabaseManagement( + public com.oracle.bmc.waiter.Waiter + forDeleteOneoffPatch(DeleteOneoffPatchRequest request) { + return forDeleteOneoffPatch( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -6309,10 +6544,9 @@ public DisableAutonomousDatabaseOperationsInsightsResponse call() * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - DisableDatabaseManagementRequest, DisableDatabaseManagementResponse> - forDisableDatabaseManagement( - DisableDatabaseManagementRequest request, + public com.oracle.bmc.waiter.Waiter + forDeleteOneoffPatch( + DeleteOneoffPatchRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -6322,11 +6556,11 @@ public DisableAutonomousDatabaseOperationsInsightsResponse call() return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public DisableDatabaseManagementResponse call() throws Exception { - final DisableDatabaseManagementResponse response = - client.disableDatabaseManagement(request); + public DeleteOneoffPatchResponse call() throws Exception { + final DeleteOneoffPatchResponse response = + client.deleteOneoffPatch(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -6356,11 +6590,9 @@ public DisableDatabaseManagementResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DisableExternalContainerDatabaseDatabaseManagementRequest, - DisableExternalContainerDatabaseDatabaseManagementResponse> - forDisableExternalContainerDatabaseDatabaseManagement( - DisableExternalContainerDatabaseDatabaseManagementRequest request) { - return forDisableExternalContainerDatabaseDatabaseManagement( + DeletePluggableDatabaseRequest, DeletePluggableDatabaseResponse> + forDeletePluggableDatabase(DeletePluggableDatabaseRequest request) { + return forDeletePluggableDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -6375,10 +6607,9 @@ public DisableDatabaseManagementResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DisableExternalContainerDatabaseDatabaseManagementRequest, - DisableExternalContainerDatabaseDatabaseManagementResponse> - forDisableExternalContainerDatabaseDatabaseManagement( - DisableExternalContainerDatabaseDatabaseManagementRequest request, + DeletePluggableDatabaseRequest, DeletePluggableDatabaseResponse> + forDeletePluggableDatabase( + DeletePluggableDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -6388,13 +6619,11 @@ public DisableDatabaseManagementResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable< - DisableExternalContainerDatabaseDatabaseManagementResponse>() { + new java.util.concurrent.Callable() { @Override - public DisableExternalContainerDatabaseDatabaseManagementResponse call() - throws Exception { - final DisableExternalContainerDatabaseDatabaseManagementResponse response = - client.disableExternalContainerDatabaseDatabaseManagement(request); + public DeletePluggableDatabaseResponse call() throws Exception { + final DeletePluggableDatabaseResponse response = + client.deletePluggableDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -6423,12 +6652,9 @@ public DisableExternalContainerDatabaseDatabaseManagementResponse call() * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - DisableExternalContainerDatabaseStackMonitoringRequest, - DisableExternalContainerDatabaseStackMonitoringResponse> - forDisableExternalContainerDatabaseStackMonitoring( - DisableExternalContainerDatabaseStackMonitoringRequest request) { - return forDisableExternalContainerDatabaseStackMonitoring( + public com.oracle.bmc.waiter.Waiter + forDeleteScheduledAction(DeleteScheduledActionRequest request) { + return forDeleteScheduledAction( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -6442,11 +6668,9 @@ public DisableExternalContainerDatabaseDatabaseManagementResponse call() * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - DisableExternalContainerDatabaseStackMonitoringRequest, - DisableExternalContainerDatabaseStackMonitoringResponse> - forDisableExternalContainerDatabaseStackMonitoring( - DisableExternalContainerDatabaseStackMonitoringRequest request, + public com.oracle.bmc.waiter.Waiter + forDeleteScheduledAction( + DeleteScheduledActionRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -6456,13 +6680,11 @@ public DisableExternalContainerDatabaseDatabaseManagementResponse call() return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable< - DisableExternalContainerDatabaseStackMonitoringResponse>() { + new java.util.concurrent.Callable() { @Override - public DisableExternalContainerDatabaseStackMonitoringResponse call() - throws Exception { - final DisableExternalContainerDatabaseStackMonitoringResponse response = - client.disableExternalContainerDatabaseStackMonitoring(request); + public DeleteScheduledActionResponse call() throws Exception { + final DeleteScheduledActionResponse response = + client.deleteScheduledAction(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -6491,12 +6713,9 @@ public DisableExternalContainerDatabaseStackMonitoringResponse call() * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - DisableExternalNonContainerDatabaseDatabaseManagementRequest, - DisableExternalNonContainerDatabaseDatabaseManagementResponse> - forDisableExternalNonContainerDatabaseDatabaseManagement( - DisableExternalNonContainerDatabaseDatabaseManagementRequest request) { - return forDisableExternalNonContainerDatabaseDatabaseManagement( + public com.oracle.bmc.waiter.Waiter + forDeleteSchedulingPlan(DeleteSchedulingPlanRequest request) { + return forDeleteSchedulingPlan( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -6510,11 +6729,9 @@ public DisableExternalContainerDatabaseStackMonitoringResponse call() * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - DisableExternalNonContainerDatabaseDatabaseManagementRequest, - DisableExternalNonContainerDatabaseDatabaseManagementResponse> - forDisableExternalNonContainerDatabaseDatabaseManagement( - DisableExternalNonContainerDatabaseDatabaseManagementRequest request, + public com.oracle.bmc.waiter.Waiter + forDeleteSchedulingPlan( + DeleteSchedulingPlanRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -6524,16 +6741,11 @@ public DisableExternalContainerDatabaseStackMonitoringResponse call() return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable< - DisableExternalNonContainerDatabaseDatabaseManagementResponse>() { + new java.util.concurrent.Callable() { @Override - public DisableExternalNonContainerDatabaseDatabaseManagementResponse call() - throws Exception { - final DisableExternalNonContainerDatabaseDatabaseManagementResponse - response = - client - .disableExternalNonContainerDatabaseDatabaseManagement( - request); + public DeleteSchedulingPlanResponse call() throws Exception { + final DeleteSchedulingPlanResponse response = + client.deleteSchedulingPlan(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -6562,12 +6774,9 @@ public DisableExternalNonContainerDatabaseDatabaseManagementResponse call() * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - DisableExternalNonContainerDatabaseOperationsInsightsRequest, - DisableExternalNonContainerDatabaseOperationsInsightsResponse> - forDisableExternalNonContainerDatabaseOperationsInsights( - DisableExternalNonContainerDatabaseOperationsInsightsRequest request) { - return forDisableExternalNonContainerDatabaseOperationsInsights( + public com.oracle.bmc.waiter.Waiter + forDeleteVmCluster(DeleteVmClusterRequest request) { + return forDeleteVmCluster( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -6581,11 +6790,9 @@ public DisableExternalNonContainerDatabaseDatabaseManagementResponse call() * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - DisableExternalNonContainerDatabaseOperationsInsightsRequest, - DisableExternalNonContainerDatabaseOperationsInsightsResponse> - forDisableExternalNonContainerDatabaseOperationsInsights( - DisableExternalNonContainerDatabaseOperationsInsightsRequest request, + public com.oracle.bmc.waiter.Waiter + forDeleteVmCluster( + DeleteVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -6595,16 +6802,10 @@ public DisableExternalNonContainerDatabaseDatabaseManagementResponse call() return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable< - DisableExternalNonContainerDatabaseOperationsInsightsResponse>() { + new java.util.concurrent.Callable() { @Override - public DisableExternalNonContainerDatabaseOperationsInsightsResponse call() - throws Exception { - final DisableExternalNonContainerDatabaseOperationsInsightsResponse - response = - client - .disableExternalNonContainerDatabaseOperationsInsights( - request); + public DeleteVmClusterResponse call() throws Exception { + final DeleteVmClusterResponse response = client.deleteVmCluster(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -6634,11 +6835,9 @@ public DisableExternalNonContainerDatabaseOperationsInsightsResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DisableExternalNonContainerDatabaseStackMonitoringRequest, - DisableExternalNonContainerDatabaseStackMonitoringResponse> - forDisableExternalNonContainerDatabaseStackMonitoring( - DisableExternalNonContainerDatabaseStackMonitoringRequest request) { - return forDisableExternalNonContainerDatabaseStackMonitoring( + DeleteVmClusterNetworkRequest, DeleteVmClusterNetworkResponse> + forDeleteVmClusterNetwork(DeleteVmClusterNetworkRequest request) { + return forDeleteVmClusterNetwork( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -6653,10 +6852,9 @@ public DisableExternalNonContainerDatabaseOperationsInsightsResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DisableExternalNonContainerDatabaseStackMonitoringRequest, - DisableExternalNonContainerDatabaseStackMonitoringResponse> - forDisableExternalNonContainerDatabaseStackMonitoring( - DisableExternalNonContainerDatabaseStackMonitoringRequest request, + DeleteVmClusterNetworkRequest, DeleteVmClusterNetworkResponse> + forDeleteVmClusterNetwork( + DeleteVmClusterNetworkRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -6666,13 +6864,11 @@ public DisableExternalNonContainerDatabaseOperationsInsightsResponse call() return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable< - DisableExternalNonContainerDatabaseStackMonitoringResponse>() { + new java.util.concurrent.Callable() { @Override - public DisableExternalNonContainerDatabaseStackMonitoringResponse call() - throws Exception { - final DisableExternalNonContainerDatabaseStackMonitoringResponse response = - client.disableExternalNonContainerDatabaseStackMonitoring(request); + public DeleteVmClusterNetworkResponse call() throws Exception { + final DeleteVmClusterNetworkResponse response = + client.deleteVmClusterNetwork(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -6702,11 +6898,11 @@ public DisableExternalNonContainerDatabaseStackMonitoringResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DisableExternalPluggableDatabaseDatabaseManagementRequest, - DisableExternalPluggableDatabaseDatabaseManagementResponse> - forDisableExternalPluggableDatabaseDatabaseManagement( - DisableExternalPluggableDatabaseDatabaseManagementRequest request) { - return forDisableExternalPluggableDatabaseDatabaseManagement( + DeregisterAutonomousDatabaseDataSafeRequest, + DeregisterAutonomousDatabaseDataSafeResponse> + forDeregisterAutonomousDatabaseDataSafe( + DeregisterAutonomousDatabaseDataSafeRequest request) { + return forDeregisterAutonomousDatabaseDataSafe( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -6721,10 +6917,10 @@ public DisableExternalNonContainerDatabaseStackMonitoringResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DisableExternalPluggableDatabaseDatabaseManagementRequest, - DisableExternalPluggableDatabaseDatabaseManagementResponse> - forDisableExternalPluggableDatabaseDatabaseManagement( - DisableExternalPluggableDatabaseDatabaseManagementRequest request, + DeregisterAutonomousDatabaseDataSafeRequest, + DeregisterAutonomousDatabaseDataSafeResponse> + forDeregisterAutonomousDatabaseDataSafe( + DeregisterAutonomousDatabaseDataSafeRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -6734,13 +6930,11 @@ public DisableExternalNonContainerDatabaseStackMonitoringResponse call() return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable< - DisableExternalPluggableDatabaseDatabaseManagementResponse>() { + new java.util.concurrent.Callable() { @Override - public DisableExternalPluggableDatabaseDatabaseManagementResponse call() - throws Exception { - final DisableExternalPluggableDatabaseDatabaseManagementResponse response = - client.disableExternalPluggableDatabaseDatabaseManagement(request); + public DeregisterAutonomousDatabaseDataSafeResponse call() throws Exception { + final DeregisterAutonomousDatabaseDataSafeResponse response = + client.deregisterAutonomousDatabaseDataSafe(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -6770,11 +6964,11 @@ public DisableExternalPluggableDatabaseDatabaseManagementResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DisableExternalPluggableDatabaseOperationsInsightsRequest, - DisableExternalPluggableDatabaseOperationsInsightsResponse> - forDisableExternalPluggableDatabaseOperationsInsights( - DisableExternalPluggableDatabaseOperationsInsightsRequest request) { - return forDisableExternalPluggableDatabaseOperationsInsights( + DisableAutonomousDatabaseManagementRequest, + DisableAutonomousDatabaseManagementResponse> + forDisableAutonomousDatabaseManagement( + DisableAutonomousDatabaseManagementRequest request) { + return forDisableAutonomousDatabaseManagement( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -6789,10 +6983,10 @@ public DisableExternalPluggableDatabaseDatabaseManagementResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DisableExternalPluggableDatabaseOperationsInsightsRequest, - DisableExternalPluggableDatabaseOperationsInsightsResponse> - forDisableExternalPluggableDatabaseOperationsInsights( - DisableExternalPluggableDatabaseOperationsInsightsRequest request, + DisableAutonomousDatabaseManagementRequest, + DisableAutonomousDatabaseManagementResponse> + forDisableAutonomousDatabaseManagement( + DisableAutonomousDatabaseManagementRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -6802,13 +6996,11 @@ public DisableExternalPluggableDatabaseDatabaseManagementResponse call() return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable< - DisableExternalPluggableDatabaseOperationsInsightsResponse>() { + new java.util.concurrent.Callable() { @Override - public DisableExternalPluggableDatabaseOperationsInsightsResponse call() - throws Exception { - final DisableExternalPluggableDatabaseOperationsInsightsResponse response = - client.disableExternalPluggableDatabaseOperationsInsights(request); + public DisableAutonomousDatabaseManagementResponse call() throws Exception { + final DisableAutonomousDatabaseManagementResponse response = + client.disableAutonomousDatabaseManagement(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -6838,11 +7030,11 @@ public DisableExternalPluggableDatabaseOperationsInsightsResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DisableExternalPluggableDatabaseStackMonitoringRequest, - DisableExternalPluggableDatabaseStackMonitoringResponse> - forDisableExternalPluggableDatabaseStackMonitoring( - DisableExternalPluggableDatabaseStackMonitoringRequest request) { - return forDisableExternalPluggableDatabaseStackMonitoring( + DisableAutonomousDatabaseOperationsInsightsRequest, + DisableAutonomousDatabaseOperationsInsightsResponse> + forDisableAutonomousDatabaseOperationsInsights( + DisableAutonomousDatabaseOperationsInsightsRequest request) { + return forDisableAutonomousDatabaseOperationsInsights( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -6857,10 +7049,10 @@ public DisableExternalPluggableDatabaseOperationsInsightsResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DisableExternalPluggableDatabaseStackMonitoringRequest, - DisableExternalPluggableDatabaseStackMonitoringResponse> - forDisableExternalPluggableDatabaseStackMonitoring( - DisableExternalPluggableDatabaseStackMonitoringRequest request, + DisableAutonomousDatabaseOperationsInsightsRequest, + DisableAutonomousDatabaseOperationsInsightsResponse> + forDisableAutonomousDatabaseOperationsInsights( + DisableAutonomousDatabaseOperationsInsightsRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -6871,12 +7063,12 @@ public DisableExternalPluggableDatabaseOperationsInsightsResponse call() return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< - DisableExternalPluggableDatabaseStackMonitoringResponse>() { + DisableAutonomousDatabaseOperationsInsightsResponse>() { @Override - public DisableExternalPluggableDatabaseStackMonitoringResponse call() + public DisableAutonomousDatabaseOperationsInsightsResponse call() throws Exception { - final DisableExternalPluggableDatabaseStackMonitoringResponse response = - client.disableExternalPluggableDatabaseStackMonitoring(request); + final DisableAutonomousDatabaseOperationsInsightsResponse response = + client.disableAutonomousDatabaseOperationsInsights(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -6906,11 +7098,9 @@ public DisableExternalPluggableDatabaseStackMonitoringResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DisablePluggableDatabaseManagementRequest, - DisablePluggableDatabaseManagementResponse> - forDisablePluggableDatabaseManagement( - DisablePluggableDatabaseManagementRequest request) { - return forDisablePluggableDatabaseManagement( + DisableDatabaseManagementRequest, DisableDatabaseManagementResponse> + forDisableDatabaseManagement(DisableDatabaseManagementRequest request) { + return forDisableDatabaseManagement( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -6925,10 +7115,9 @@ public DisableExternalPluggableDatabaseStackMonitoringResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DisablePluggableDatabaseManagementRequest, - DisablePluggableDatabaseManagementResponse> - forDisablePluggableDatabaseManagement( - DisablePluggableDatabaseManagementRequest request, + DisableDatabaseManagementRequest, DisableDatabaseManagementResponse> + forDisableDatabaseManagement( + DisableDatabaseManagementRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -6938,11 +7127,11 @@ public DisableExternalPluggableDatabaseStackMonitoringResponse call() return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public DisablePluggableDatabaseManagementResponse call() throws Exception { - final DisablePluggableDatabaseManagementResponse response = - client.disablePluggableDatabaseManagement(request); + public DisableDatabaseManagementResponse call() throws Exception { + final DisableDatabaseManagementResponse response = + client.disableDatabaseManagement(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -6972,11 +7161,11 @@ public DisablePluggableDatabaseManagementResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - EnableAutonomousDatabaseManagementRequest, - EnableAutonomousDatabaseManagementResponse> - forEnableAutonomousDatabaseManagement( - EnableAutonomousDatabaseManagementRequest request) { - return forEnableAutonomousDatabaseManagement( + DisableExternalContainerDatabaseDatabaseManagementRequest, + DisableExternalContainerDatabaseDatabaseManagementResponse> + forDisableExternalContainerDatabaseDatabaseManagement( + DisableExternalContainerDatabaseDatabaseManagementRequest request) { + return forDisableExternalContainerDatabaseDatabaseManagement( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -6991,10 +7180,10 @@ public DisablePluggableDatabaseManagementResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - EnableAutonomousDatabaseManagementRequest, - EnableAutonomousDatabaseManagementResponse> - forEnableAutonomousDatabaseManagement( - EnableAutonomousDatabaseManagementRequest request, + DisableExternalContainerDatabaseDatabaseManagementRequest, + DisableExternalContainerDatabaseDatabaseManagementResponse> + forDisableExternalContainerDatabaseDatabaseManagement( + DisableExternalContainerDatabaseDatabaseManagementRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -7004,11 +7193,13 @@ public DisablePluggableDatabaseManagementResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable< + DisableExternalContainerDatabaseDatabaseManagementResponse>() { @Override - public EnableAutonomousDatabaseManagementResponse call() throws Exception { - final EnableAutonomousDatabaseManagementResponse response = - client.enableAutonomousDatabaseManagement(request); + public DisableExternalContainerDatabaseDatabaseManagementResponse call() + throws Exception { + final DisableExternalContainerDatabaseDatabaseManagementResponse response = + client.disableExternalContainerDatabaseDatabaseManagement(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -7038,11 +7229,11 @@ public EnableAutonomousDatabaseManagementResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - EnableAutonomousDatabaseOperationsInsightsRequest, - EnableAutonomousDatabaseOperationsInsightsResponse> - forEnableAutonomousDatabaseOperationsInsights( - EnableAutonomousDatabaseOperationsInsightsRequest request) { - return forEnableAutonomousDatabaseOperationsInsights( + DisableExternalContainerDatabaseStackMonitoringRequest, + DisableExternalContainerDatabaseStackMonitoringResponse> + forDisableExternalContainerDatabaseStackMonitoring( + DisableExternalContainerDatabaseStackMonitoringRequest request) { + return forDisableExternalContainerDatabaseStackMonitoring( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -7057,10 +7248,10 @@ public EnableAutonomousDatabaseManagementResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - EnableAutonomousDatabaseOperationsInsightsRequest, - EnableAutonomousDatabaseOperationsInsightsResponse> - forEnableAutonomousDatabaseOperationsInsights( - EnableAutonomousDatabaseOperationsInsightsRequest request, + DisableExternalContainerDatabaseStackMonitoringRequest, + DisableExternalContainerDatabaseStackMonitoringResponse> + forDisableExternalContainerDatabaseStackMonitoring( + DisableExternalContainerDatabaseStackMonitoringRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -7071,12 +7262,12 @@ public EnableAutonomousDatabaseManagementResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< - EnableAutonomousDatabaseOperationsInsightsResponse>() { + DisableExternalContainerDatabaseStackMonitoringResponse>() { @Override - public EnableAutonomousDatabaseOperationsInsightsResponse call() + public DisableExternalContainerDatabaseStackMonitoringResponse call() throws Exception { - final EnableAutonomousDatabaseOperationsInsightsResponse response = - client.enableAutonomousDatabaseOperationsInsights(request); + final DisableExternalContainerDatabaseStackMonitoringResponse response = + client.disableExternalContainerDatabaseStackMonitoring(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -7106,9 +7297,11 @@ public EnableAutonomousDatabaseOperationsInsightsResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - EnableDatabaseManagementRequest, EnableDatabaseManagementResponse> - forEnableDatabaseManagement(EnableDatabaseManagementRequest request) { - return forEnableDatabaseManagement( + DisableExternalNonContainerDatabaseDatabaseManagementRequest, + DisableExternalNonContainerDatabaseDatabaseManagementResponse> + forDisableExternalNonContainerDatabaseDatabaseManagement( + DisableExternalNonContainerDatabaseDatabaseManagementRequest request) { + return forDisableExternalNonContainerDatabaseDatabaseManagement( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -7123,9 +7316,10 @@ public EnableAutonomousDatabaseOperationsInsightsResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - EnableDatabaseManagementRequest, EnableDatabaseManagementResponse> - forEnableDatabaseManagement( - EnableDatabaseManagementRequest request, + DisableExternalNonContainerDatabaseDatabaseManagementRequest, + DisableExternalNonContainerDatabaseDatabaseManagementResponse> + forDisableExternalNonContainerDatabaseDatabaseManagement( + DisableExternalNonContainerDatabaseDatabaseManagementRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -7135,15 +7329,20 @@ public EnableAutonomousDatabaseOperationsInsightsResponse call() return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable< + DisableExternalNonContainerDatabaseDatabaseManagementResponse>() { @Override - public EnableDatabaseManagementResponse call() throws Exception { - final EnableDatabaseManagementResponse response = - client.enableDatabaseManagement(request); - - if (response.getOpcWorkRequestId() != null) { - final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest - getWorkRequestRequest = + public DisableExternalNonContainerDatabaseDatabaseManagementResponse call() + throws Exception { + final DisableExternalNonContainerDatabaseDatabaseManagementResponse + response = + client + .disableExternalNonContainerDatabaseDatabaseManagement( + request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) @@ -7169,11 +7368,11 @@ public EnableDatabaseManagementResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - EnableExternalContainerDatabaseDatabaseManagementRequest, - EnableExternalContainerDatabaseDatabaseManagementResponse> - forEnableExternalContainerDatabaseDatabaseManagement( - EnableExternalContainerDatabaseDatabaseManagementRequest request) { - return forEnableExternalContainerDatabaseDatabaseManagement( + DisableExternalNonContainerDatabaseOperationsInsightsRequest, + DisableExternalNonContainerDatabaseOperationsInsightsResponse> + forDisableExternalNonContainerDatabaseOperationsInsights( + DisableExternalNonContainerDatabaseOperationsInsightsRequest request) { + return forDisableExternalNonContainerDatabaseOperationsInsights( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -7188,10 +7387,10 @@ public EnableDatabaseManagementResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - EnableExternalContainerDatabaseDatabaseManagementRequest, - EnableExternalContainerDatabaseDatabaseManagementResponse> - forEnableExternalContainerDatabaseDatabaseManagement( - EnableExternalContainerDatabaseDatabaseManagementRequest request, + DisableExternalNonContainerDatabaseOperationsInsightsRequest, + DisableExternalNonContainerDatabaseOperationsInsightsResponse> + forDisableExternalNonContainerDatabaseOperationsInsights( + DisableExternalNonContainerDatabaseOperationsInsightsRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -7202,12 +7401,15 @@ public EnableDatabaseManagementResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< - EnableExternalContainerDatabaseDatabaseManagementResponse>() { + DisableExternalNonContainerDatabaseOperationsInsightsResponse>() { @Override - public EnableExternalContainerDatabaseDatabaseManagementResponse call() + public DisableExternalNonContainerDatabaseOperationsInsightsResponse call() throws Exception { - final EnableExternalContainerDatabaseDatabaseManagementResponse response = - client.enableExternalContainerDatabaseDatabaseManagement(request); + final DisableExternalNonContainerDatabaseOperationsInsightsResponse + response = + client + .disableExternalNonContainerDatabaseOperationsInsights( + request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -7237,11 +7439,11 @@ public EnableExternalContainerDatabaseDatabaseManagementResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - EnableExternalContainerDatabaseStackMonitoringRequest, - EnableExternalContainerDatabaseStackMonitoringResponse> - forEnableExternalContainerDatabaseStackMonitoring( - EnableExternalContainerDatabaseStackMonitoringRequest request) { - return forEnableExternalContainerDatabaseStackMonitoring( + DisableExternalNonContainerDatabaseStackMonitoringRequest, + DisableExternalNonContainerDatabaseStackMonitoringResponse> + forDisableExternalNonContainerDatabaseStackMonitoring( + DisableExternalNonContainerDatabaseStackMonitoringRequest request) { + return forDisableExternalNonContainerDatabaseStackMonitoring( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -7256,10 +7458,10 @@ public EnableExternalContainerDatabaseDatabaseManagementResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - EnableExternalContainerDatabaseStackMonitoringRequest, - EnableExternalContainerDatabaseStackMonitoringResponse> - forEnableExternalContainerDatabaseStackMonitoring( - EnableExternalContainerDatabaseStackMonitoringRequest request, + DisableExternalNonContainerDatabaseStackMonitoringRequest, + DisableExternalNonContainerDatabaseStackMonitoringResponse> + forDisableExternalNonContainerDatabaseStackMonitoring( + DisableExternalNonContainerDatabaseStackMonitoringRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -7270,12 +7472,12 @@ public EnableExternalContainerDatabaseDatabaseManagementResponse call() return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< - EnableExternalContainerDatabaseStackMonitoringResponse>() { + DisableExternalNonContainerDatabaseStackMonitoringResponse>() { @Override - public EnableExternalContainerDatabaseStackMonitoringResponse call() + public DisableExternalNonContainerDatabaseStackMonitoringResponse call() throws Exception { - final EnableExternalContainerDatabaseStackMonitoringResponse response = - client.enableExternalContainerDatabaseStackMonitoring(request); + final DisableExternalNonContainerDatabaseStackMonitoringResponse response = + client.disableExternalNonContainerDatabaseStackMonitoring(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -7305,11 +7507,11 @@ public EnableExternalContainerDatabaseStackMonitoringResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - EnableExternalNonContainerDatabaseDatabaseManagementRequest, - EnableExternalNonContainerDatabaseDatabaseManagementResponse> - forEnableExternalNonContainerDatabaseDatabaseManagement( - EnableExternalNonContainerDatabaseDatabaseManagementRequest request) { - return forEnableExternalNonContainerDatabaseDatabaseManagement( + DisableExternalPluggableDatabaseDatabaseManagementRequest, + DisableExternalPluggableDatabaseDatabaseManagementResponse> + forDisableExternalPluggableDatabaseDatabaseManagement( + DisableExternalPluggableDatabaseDatabaseManagementRequest request) { + return forDisableExternalPluggableDatabaseDatabaseManagement( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -7324,10 +7526,10 @@ public EnableExternalContainerDatabaseStackMonitoringResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - EnableExternalNonContainerDatabaseDatabaseManagementRequest, - EnableExternalNonContainerDatabaseDatabaseManagementResponse> - forEnableExternalNonContainerDatabaseDatabaseManagement( - EnableExternalNonContainerDatabaseDatabaseManagementRequest request, + DisableExternalPluggableDatabaseDatabaseManagementRequest, + DisableExternalPluggableDatabaseDatabaseManagementResponse> + forDisableExternalPluggableDatabaseDatabaseManagement( + DisableExternalPluggableDatabaseDatabaseManagementRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -7338,14 +7540,12 @@ public EnableExternalContainerDatabaseStackMonitoringResponse call() return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< - EnableExternalNonContainerDatabaseDatabaseManagementResponse>() { + DisableExternalPluggableDatabaseDatabaseManagementResponse>() { @Override - public EnableExternalNonContainerDatabaseDatabaseManagementResponse call() + public DisableExternalPluggableDatabaseDatabaseManagementResponse call() throws Exception { - final EnableExternalNonContainerDatabaseDatabaseManagementResponse - response = - client.enableExternalNonContainerDatabaseDatabaseManagement( - request); + final DisableExternalPluggableDatabaseDatabaseManagementResponse response = + client.disableExternalPluggableDatabaseDatabaseManagement(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -7375,11 +7575,11 @@ public EnableExternalNonContainerDatabaseDatabaseManagementResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - EnableExternalNonContainerDatabaseOperationsInsightsRequest, - EnableExternalNonContainerDatabaseOperationsInsightsResponse> - forEnableExternalNonContainerDatabaseOperationsInsights( - EnableExternalNonContainerDatabaseOperationsInsightsRequest request) { - return forEnableExternalNonContainerDatabaseOperationsInsights( + DisableExternalPluggableDatabaseOperationsInsightsRequest, + DisableExternalPluggableDatabaseOperationsInsightsResponse> + forDisableExternalPluggableDatabaseOperationsInsights( + DisableExternalPluggableDatabaseOperationsInsightsRequest request) { + return forDisableExternalPluggableDatabaseOperationsInsights( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -7394,10 +7594,10 @@ public EnableExternalNonContainerDatabaseDatabaseManagementResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - EnableExternalNonContainerDatabaseOperationsInsightsRequest, - EnableExternalNonContainerDatabaseOperationsInsightsResponse> - forEnableExternalNonContainerDatabaseOperationsInsights( - EnableExternalNonContainerDatabaseOperationsInsightsRequest request, + DisableExternalPluggableDatabaseOperationsInsightsRequest, + DisableExternalPluggableDatabaseOperationsInsightsResponse> + forDisableExternalPluggableDatabaseOperationsInsights( + DisableExternalPluggableDatabaseOperationsInsightsRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -7408,14 +7608,12 @@ public EnableExternalNonContainerDatabaseDatabaseManagementResponse call() return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< - EnableExternalNonContainerDatabaseOperationsInsightsResponse>() { + DisableExternalPluggableDatabaseOperationsInsightsResponse>() { @Override - public EnableExternalNonContainerDatabaseOperationsInsightsResponse call() + public DisableExternalPluggableDatabaseOperationsInsightsResponse call() throws Exception { - final EnableExternalNonContainerDatabaseOperationsInsightsResponse - response = - client.enableExternalNonContainerDatabaseOperationsInsights( - request); + final DisableExternalPluggableDatabaseOperationsInsightsResponse response = + client.disableExternalPluggableDatabaseOperationsInsights(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -7445,11 +7643,11 @@ public EnableExternalNonContainerDatabaseOperationsInsightsResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - EnableExternalNonContainerDatabaseStackMonitoringRequest, - EnableExternalNonContainerDatabaseStackMonitoringResponse> - forEnableExternalNonContainerDatabaseStackMonitoring( - EnableExternalNonContainerDatabaseStackMonitoringRequest request) { - return forEnableExternalNonContainerDatabaseStackMonitoring( + DisableExternalPluggableDatabaseStackMonitoringRequest, + DisableExternalPluggableDatabaseStackMonitoringResponse> + forDisableExternalPluggableDatabaseStackMonitoring( + DisableExternalPluggableDatabaseStackMonitoringRequest request) { + return forDisableExternalPluggableDatabaseStackMonitoring( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -7464,10 +7662,10 @@ public EnableExternalNonContainerDatabaseOperationsInsightsResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - EnableExternalNonContainerDatabaseStackMonitoringRequest, - EnableExternalNonContainerDatabaseStackMonitoringResponse> - forEnableExternalNonContainerDatabaseStackMonitoring( - EnableExternalNonContainerDatabaseStackMonitoringRequest request, + DisableExternalPluggableDatabaseStackMonitoringRequest, + DisableExternalPluggableDatabaseStackMonitoringResponse> + forDisableExternalPluggableDatabaseStackMonitoring( + DisableExternalPluggableDatabaseStackMonitoringRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -7478,12 +7676,12 @@ public EnableExternalNonContainerDatabaseOperationsInsightsResponse call() return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< - EnableExternalNonContainerDatabaseStackMonitoringResponse>() { + DisableExternalPluggableDatabaseStackMonitoringResponse>() { @Override - public EnableExternalNonContainerDatabaseStackMonitoringResponse call() + public DisableExternalPluggableDatabaseStackMonitoringResponse call() throws Exception { - final EnableExternalNonContainerDatabaseStackMonitoringResponse response = - client.enableExternalNonContainerDatabaseStackMonitoring(request); + final DisableExternalPluggableDatabaseStackMonitoringResponse response = + client.disableExternalPluggableDatabaseStackMonitoring(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -7513,11 +7711,11 @@ public EnableExternalNonContainerDatabaseStackMonitoringResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - EnableExternalPluggableDatabaseDatabaseManagementRequest, - EnableExternalPluggableDatabaseDatabaseManagementResponse> - forEnableExternalPluggableDatabaseDatabaseManagement( - EnableExternalPluggableDatabaseDatabaseManagementRequest request) { - return forEnableExternalPluggableDatabaseDatabaseManagement( + DisablePluggableDatabaseManagementRequest, + DisablePluggableDatabaseManagementResponse> + forDisablePluggableDatabaseManagement( + DisablePluggableDatabaseManagementRequest request) { + return forDisablePluggableDatabaseManagement( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -7532,10 +7730,10 @@ public EnableExternalNonContainerDatabaseStackMonitoringResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - EnableExternalPluggableDatabaseDatabaseManagementRequest, - EnableExternalPluggableDatabaseDatabaseManagementResponse> - forEnableExternalPluggableDatabaseDatabaseManagement( - EnableExternalPluggableDatabaseDatabaseManagementRequest request, + DisablePluggableDatabaseManagementRequest, + DisablePluggableDatabaseManagementResponse> + forDisablePluggableDatabaseManagement( + DisablePluggableDatabaseManagementRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -7545,13 +7743,11 @@ public EnableExternalNonContainerDatabaseStackMonitoringResponse call() return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable< - EnableExternalPluggableDatabaseDatabaseManagementResponse>() { + new java.util.concurrent.Callable() { @Override - public EnableExternalPluggableDatabaseDatabaseManagementResponse call() - throws Exception { - final EnableExternalPluggableDatabaseDatabaseManagementResponse response = - client.enableExternalPluggableDatabaseDatabaseManagement(request); + public DisablePluggableDatabaseManagementResponse call() throws Exception { + final DisablePluggableDatabaseManagementResponse response = + client.disablePluggableDatabaseManagement(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -7581,11 +7777,11 @@ public EnableExternalPluggableDatabaseDatabaseManagementResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - EnableExternalPluggableDatabaseOperationsInsightsRequest, - EnableExternalPluggableDatabaseOperationsInsightsResponse> - forEnableExternalPluggableDatabaseOperationsInsights( - EnableExternalPluggableDatabaseOperationsInsightsRequest request) { - return forEnableExternalPluggableDatabaseOperationsInsights( + EnableAutonomousDatabaseManagementRequest, + EnableAutonomousDatabaseManagementResponse> + forEnableAutonomousDatabaseManagement( + EnableAutonomousDatabaseManagementRequest request) { + return forEnableAutonomousDatabaseManagement( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -7600,10 +7796,10 @@ public EnableExternalPluggableDatabaseDatabaseManagementResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - EnableExternalPluggableDatabaseOperationsInsightsRequest, - EnableExternalPluggableDatabaseOperationsInsightsResponse> - forEnableExternalPluggableDatabaseOperationsInsights( - EnableExternalPluggableDatabaseOperationsInsightsRequest request, + EnableAutonomousDatabaseManagementRequest, + EnableAutonomousDatabaseManagementResponse> + forEnableAutonomousDatabaseManagement( + EnableAutonomousDatabaseManagementRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -7613,13 +7809,11 @@ public EnableExternalPluggableDatabaseDatabaseManagementResponse call() return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable< - EnableExternalPluggableDatabaseOperationsInsightsResponse>() { + new java.util.concurrent.Callable() { @Override - public EnableExternalPluggableDatabaseOperationsInsightsResponse call() - throws Exception { - final EnableExternalPluggableDatabaseOperationsInsightsResponse response = - client.enableExternalPluggableDatabaseOperationsInsights(request); + public EnableAutonomousDatabaseManagementResponse call() throws Exception { + final EnableAutonomousDatabaseManagementResponse response = + client.enableAutonomousDatabaseManagement(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -7649,11 +7843,11 @@ public EnableExternalPluggableDatabaseOperationsInsightsResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - EnableExternalPluggableDatabaseStackMonitoringRequest, - EnableExternalPluggableDatabaseStackMonitoringResponse> - forEnableExternalPluggableDatabaseStackMonitoring( - EnableExternalPluggableDatabaseStackMonitoringRequest request) { - return forEnableExternalPluggableDatabaseStackMonitoring( + EnableAutonomousDatabaseOperationsInsightsRequest, + EnableAutonomousDatabaseOperationsInsightsResponse> + forEnableAutonomousDatabaseOperationsInsights( + EnableAutonomousDatabaseOperationsInsightsRequest request) { + return forEnableAutonomousDatabaseOperationsInsights( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -7668,10 +7862,10 @@ public EnableExternalPluggableDatabaseOperationsInsightsResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - EnableExternalPluggableDatabaseStackMonitoringRequest, - EnableExternalPluggableDatabaseStackMonitoringResponse> - forEnableExternalPluggableDatabaseStackMonitoring( - EnableExternalPluggableDatabaseStackMonitoringRequest request, + EnableAutonomousDatabaseOperationsInsightsRequest, + EnableAutonomousDatabaseOperationsInsightsResponse> + forEnableAutonomousDatabaseOperationsInsights( + EnableAutonomousDatabaseOperationsInsightsRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -7682,12 +7876,12 @@ public EnableExternalPluggableDatabaseOperationsInsightsResponse call() return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< - EnableExternalPluggableDatabaseStackMonitoringResponse>() { + EnableAutonomousDatabaseOperationsInsightsResponse>() { @Override - public EnableExternalPluggableDatabaseStackMonitoringResponse call() + public EnableAutonomousDatabaseOperationsInsightsResponse call() throws Exception { - final EnableExternalPluggableDatabaseStackMonitoringResponse response = - client.enableExternalPluggableDatabaseStackMonitoring(request); + final EnableAutonomousDatabaseOperationsInsightsResponse response = + client.enableAutonomousDatabaseOperationsInsights(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -7717,10 +7911,9 @@ public EnableExternalPluggableDatabaseStackMonitoringResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - EnablePluggableDatabaseManagementRequest, - EnablePluggableDatabaseManagementResponse> - forEnablePluggableDatabaseManagement(EnablePluggableDatabaseManagementRequest request) { - return forEnablePluggableDatabaseManagement( + EnableDatabaseManagementRequest, EnableDatabaseManagementResponse> + forEnableDatabaseManagement(EnableDatabaseManagementRequest request) { + return forEnableDatabaseManagement( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -7735,10 +7928,9 @@ public EnableExternalPluggableDatabaseStackMonitoringResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - EnablePluggableDatabaseManagementRequest, - EnablePluggableDatabaseManagementResponse> - forEnablePluggableDatabaseManagement( - EnablePluggableDatabaseManagementRequest request, + EnableDatabaseManagementRequest, EnableDatabaseManagementResponse> + forEnableDatabaseManagement( + EnableDatabaseManagementRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -7748,11 +7940,11 @@ public EnableExternalPluggableDatabaseStackMonitoringResponse call() return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public EnablePluggableDatabaseManagementResponse call() throws Exception { - final EnablePluggableDatabaseManagementResponse response = - client.enablePluggableDatabaseManagement(request); + public EnableDatabaseManagementResponse call() throws Exception { + final EnableDatabaseManagementResponse response = + client.enableDatabaseManagement(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -7782,10 +7974,12 @@ public EnablePluggableDatabaseManagementResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - FailOverAutonomousDatabaseRequest, FailOverAutonomousDatabaseResponse> - forFailOverAutonomousDatabase(FailOverAutonomousDatabaseRequest request) { - return forFailOverAutonomousDatabase( - request, + EnableExternalContainerDatabaseDatabaseManagementRequest, + EnableExternalContainerDatabaseDatabaseManagementResponse> + forEnableExternalContainerDatabaseDatabaseManagement( + EnableExternalContainerDatabaseDatabaseManagementRequest request) { + return forEnableExternalContainerDatabaseDatabaseManagement( + request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } @@ -7799,9 +7993,10 @@ public EnablePluggableDatabaseManagementResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - FailOverAutonomousDatabaseRequest, FailOverAutonomousDatabaseResponse> - forFailOverAutonomousDatabase( - FailOverAutonomousDatabaseRequest request, + EnableExternalContainerDatabaseDatabaseManagementRequest, + EnableExternalContainerDatabaseDatabaseManagementResponse> + forEnableExternalContainerDatabaseDatabaseManagement( + EnableExternalContainerDatabaseDatabaseManagementRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -7811,11 +8006,13 @@ public EnablePluggableDatabaseManagementResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable< + EnableExternalContainerDatabaseDatabaseManagementResponse>() { @Override - public FailOverAutonomousDatabaseResponse call() throws Exception { - final FailOverAutonomousDatabaseResponse response = - client.failOverAutonomousDatabase(request); + public EnableExternalContainerDatabaseDatabaseManagementResponse call() + throws Exception { + final EnableExternalContainerDatabaseDatabaseManagementResponse response = + client.enableExternalContainerDatabaseDatabaseManagement(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -7845,11 +8042,11 @@ public FailOverAutonomousDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - FailoverAutonomousContainerDatabaseDataguardAssociationRequest, - FailoverAutonomousContainerDatabaseDataguardAssociationResponse> - forFailoverAutonomousContainerDatabaseDataguardAssociation( - FailoverAutonomousContainerDatabaseDataguardAssociationRequest request) { - return forFailoverAutonomousContainerDatabaseDataguardAssociation( + EnableExternalContainerDatabaseStackMonitoringRequest, + EnableExternalContainerDatabaseStackMonitoringResponse> + forEnableExternalContainerDatabaseStackMonitoring( + EnableExternalContainerDatabaseStackMonitoringRequest request) { + return forEnableExternalContainerDatabaseStackMonitoring( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -7864,10 +8061,10 @@ public FailOverAutonomousDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - FailoverAutonomousContainerDatabaseDataguardAssociationRequest, - FailoverAutonomousContainerDatabaseDataguardAssociationResponse> - forFailoverAutonomousContainerDatabaseDataguardAssociation( - FailoverAutonomousContainerDatabaseDataguardAssociationRequest request, + EnableExternalContainerDatabaseStackMonitoringRequest, + EnableExternalContainerDatabaseStackMonitoringResponse> + forEnableExternalContainerDatabaseStackMonitoring( + EnableExternalContainerDatabaseStackMonitoringRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -7878,15 +8075,12 @@ public FailOverAutonomousDatabaseResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< - FailoverAutonomousContainerDatabaseDataguardAssociationResponse>() { + EnableExternalContainerDatabaseStackMonitoringResponse>() { @Override - public FailoverAutonomousContainerDatabaseDataguardAssociationResponse call() + public EnableExternalContainerDatabaseStackMonitoringResponse call() throws Exception { - final FailoverAutonomousContainerDatabaseDataguardAssociationResponse - response = - client - .failoverAutonomousContainerDatabaseDataguardAssociation( - request); + final EnableExternalContainerDatabaseStackMonitoringResponse response = + client.enableExternalContainerDatabaseStackMonitoring(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -7916,9 +8110,11 @@ public FailoverAutonomousContainerDatabaseDataguardAssociationResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - FailoverDataGuardAssociationRequest, FailoverDataGuardAssociationResponse> - forFailoverDataGuardAssociation(FailoverDataGuardAssociationRequest request) { - return forFailoverDataGuardAssociation( + EnableExternalNonContainerDatabaseDatabaseManagementRequest, + EnableExternalNonContainerDatabaseDatabaseManagementResponse> + forEnableExternalNonContainerDatabaseDatabaseManagement( + EnableExternalNonContainerDatabaseDatabaseManagementRequest request) { + return forEnableExternalNonContainerDatabaseDatabaseManagement( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -7933,9 +8129,10 @@ public FailoverAutonomousContainerDatabaseDataguardAssociationResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - FailoverDataGuardAssociationRequest, FailoverDataGuardAssociationResponse> - forFailoverDataGuardAssociation( - FailoverDataGuardAssociationRequest request, + EnableExternalNonContainerDatabaseDatabaseManagementRequest, + EnableExternalNonContainerDatabaseDatabaseManagementResponse> + forEnableExternalNonContainerDatabaseDatabaseManagement( + EnableExternalNonContainerDatabaseDatabaseManagementRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -7945,11 +8142,15 @@ public FailoverAutonomousContainerDatabaseDataguardAssociationResponse call() return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable< + EnableExternalNonContainerDatabaseDatabaseManagementResponse>() { @Override - public FailoverDataGuardAssociationResponse call() throws Exception { - final FailoverDataGuardAssociationResponse response = - client.failoverDataGuardAssociation(request); + public EnableExternalNonContainerDatabaseDatabaseManagementResponse call() + throws Exception { + final EnableExternalNonContainerDatabaseDatabaseManagementResponse + response = + client.enableExternalNonContainerDatabaseDatabaseManagement( + request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -7976,45 +8177,17 @@ public FailoverDataGuardAssociationResponse call() throws Exception { * 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 - forApplicationVip( - GetApplicationVipRequest request, - com.oracle.bmc.database.model.ApplicationVip.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 forApplicationVip( - 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 + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forApplicationVip( - GetApplicationVipRequest request, - com.oracle.bmc.database.model.ApplicationVip.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 forApplicationVip( - com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + public com.oracle.bmc.waiter.Waiter< + EnableExternalNonContainerDatabaseOperationsInsightsRequest, + EnableExternalNonContainerDatabaseOperationsInsightsResponse> + forEnableExternalNonContainerDatabaseOperationsInsights( + EnableExternalNonContainerDatabaseOperationsInsightsRequest request) { + return forEnableExternalNonContainerDatabaseOperationsInsights( request, - targetState); + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** @@ -8023,59 +8196,50 @@ public FailoverDataGuardAssociationResponse call() throws Exception { * @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 + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forApplicationVip( - GetApplicationVipRequest request, + public com.oracle.bmc.waiter.Waiter< + EnableExternalNonContainerDatabaseOperationsInsightsRequest, + EnableExternalNonContainerDatabaseOperationsInsightsResponse> + forEnableExternalNonContainerDatabaseOperationsInsights( + EnableExternalNonContainerDatabaseOperationsInsightsRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.ApplicationVip.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 forApplicationVip( - com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), - request, - targetStates); - } - - // Helper method to create a new Waiter for ApplicationVip. - private com.oracle.bmc.waiter.Waiter - forApplicationVip( - com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetApplicationVipRequest request, - final com.oracle.bmc.database.model.ApplicationVip.LifecycleState... - targetStates) { - final java.util.Set - targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - waiter.toCallable( - () -> request, - new java.util.function.Function< - GetApplicationVipRequest, GetApplicationVipResponse>() { - @Override - public GetApplicationVipResponse apply( - GetApplicationVipRequest request) { - return client.getApplicationVip(request); - } - }, - new java.util.function.Predicate() { - @Override - public boolean test(GetApplicationVipResponse response) { - return targetStatesSet.contains( - response.getApplicationVip().getLifecycleState()); - } - }, - targetStatesSet.contains( - com.oracle.bmc.database.model.ApplicationVip.LifecycleState - .Terminated)), + new java.util.concurrent.Callable< + EnableExternalNonContainerDatabaseOperationsInsightsResponse>() { + @Override + public EnableExternalNonContainerDatabaseOperationsInsightsResponse call() + throws Exception { + final EnableExternalNonContainerDatabaseOperationsInsightsResponse + response = + client.enableExternalNonContainerDatabaseOperationsInsights( + request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, request); } @@ -8083,49 +8247,85 @@ public boolean test(GetApplicationVipResponse response) { * 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 + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetAutonomousContainerDatabaseRequest, GetAutonomousContainerDatabaseResponse> - forAutonomousContainerDatabase( - GetAutonomousContainerDatabaseRequest request, - com.oracle.bmc.database.model.AutonomousContainerDatabase.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 forAutonomousContainerDatabase( - com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); + EnableExternalNonContainerDatabaseStackMonitoringRequest, + EnableExternalNonContainerDatabaseStackMonitoringResponse> + forEnableExternalNonContainerDatabaseStackMonitoring( + EnableExternalNonContainerDatabaseStackMonitoringRequest request) { + return forEnableExternalNonContainerDatabaseStackMonitoring( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send - * @param 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 + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetAutonomousContainerDatabaseRequest, GetAutonomousContainerDatabaseResponse> - forAutonomousContainerDatabase( - GetAutonomousContainerDatabaseRequest request, - com.oracle.bmc.database.model.AutonomousContainerDatabase.LifecycleState - targetState, + EnableExternalNonContainerDatabaseStackMonitoringRequest, + EnableExternalNonContainerDatabaseStackMonitoringResponse> + forEnableExternalNonContainerDatabaseStackMonitoring( + EnableExternalNonContainerDatabaseStackMonitoringRequest request, 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"); + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } - return forAutonomousContainerDatabase( - com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable< + EnableExternalNonContainerDatabaseStackMonitoringResponse>() { + @Override + public EnableExternalNonContainerDatabaseStackMonitoringResponse call() + throws Exception { + final EnableExternalNonContainerDatabaseStackMonitoringResponse response = + client.enableExternalNonContainerDatabaseStackMonitoring(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + EnableExternalPluggableDatabaseDatabaseManagementRequest, + EnableExternalPluggableDatabaseDatabaseManagementResponse> + forEnableExternalPluggableDatabaseDatabaseManagement( + EnableExternalPluggableDatabaseDatabaseManagementRequest request) { + return forEnableExternalPluggableDatabaseDatabaseManagement( request, - targetState); + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** @@ -8134,66 +8334,48 @@ public boolean test(GetApplicationVipResponse response) { * @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 + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetAutonomousContainerDatabaseRequest, GetAutonomousContainerDatabaseResponse> - forAutonomousContainerDatabase( - GetAutonomousContainerDatabaseRequest request, + EnableExternalPluggableDatabaseDatabaseManagementRequest, + EnableExternalPluggableDatabaseDatabaseManagementResponse> + forEnableExternalPluggableDatabaseDatabaseManagement( + EnableExternalPluggableDatabaseDatabaseManagementRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.AutonomousContainerDatabase.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 forAutonomousContainerDatabase( - com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), - request, - targetStates); - } - - // Helper method to create a new Waiter for AutonomousContainerDatabase. - private com.oracle.bmc.waiter.Waiter< - GetAutonomousContainerDatabaseRequest, GetAutonomousContainerDatabaseResponse> - forAutonomousContainerDatabase( - com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetAutonomousContainerDatabaseRequest request, - final com.oracle.bmc.database.model.AutonomousContainerDatabase.LifecycleState - ... - targetStates) { - final java.util.Set< - com.oracle.bmc.database.model.AutonomousContainerDatabase.LifecycleState> - targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - waiter.toCallable( - () -> request, - new java.util.function.Function< - GetAutonomousContainerDatabaseRequest, - GetAutonomousContainerDatabaseResponse>() { - @Override - public GetAutonomousContainerDatabaseResponse apply( - GetAutonomousContainerDatabaseRequest request) { - return client.getAutonomousContainerDatabase(request); - } - }, - new java.util.function.Predicate() { - @Override - public boolean test(GetAutonomousContainerDatabaseResponse response) { - return targetStatesSet.contains( - response.getAutonomousContainerDatabase() - .getLifecycleState()); - } - }, - targetStatesSet.contains( - com.oracle.bmc.database.model.AutonomousContainerDatabase - .LifecycleState.Terminated)), + new java.util.concurrent.Callable< + EnableExternalPluggableDatabaseDatabaseManagementResponse>() { + @Override + public EnableExternalPluggableDatabaseDatabaseManagementResponse call() + throws Exception { + final EnableExternalPluggableDatabaseDatabaseManagementResponse response = + client.enableExternalPluggableDatabaseDatabaseManagement(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, request); } @@ -8201,54 +8383,85 @@ public boolean test(GetAutonomousContainerDatabaseResponse response) { * 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 + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetAutonomousContainerDatabaseDataguardAssociationRequest, - GetAutonomousContainerDatabaseDataguardAssociationResponse> - forAutonomousContainerDatabaseDataguardAssociation( - GetAutonomousContainerDatabaseDataguardAssociationRequest request, - com.oracle.bmc.database.model.AutonomousContainerDatabaseDataguardAssociation - .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 forAutonomousContainerDatabaseDataguardAssociation( - com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); + EnableExternalPluggableDatabaseOperationsInsightsRequest, + EnableExternalPluggableDatabaseOperationsInsightsResponse> + forEnableExternalPluggableDatabaseOperationsInsights( + EnableExternalPluggableDatabaseOperationsInsightsRequest request) { + return forEnableExternalPluggableDatabaseOperationsInsights( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send - * @param 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 + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetAutonomousContainerDatabaseDataguardAssociationRequest, - GetAutonomousContainerDatabaseDataguardAssociationResponse> - forAutonomousContainerDatabaseDataguardAssociation( - GetAutonomousContainerDatabaseDataguardAssociationRequest request, - com.oracle.bmc.database.model.AutonomousContainerDatabaseDataguardAssociation - .LifecycleState - targetState, + EnableExternalPluggableDatabaseOperationsInsightsRequest, + EnableExternalPluggableDatabaseOperationsInsightsResponse> + forEnableExternalPluggableDatabaseOperationsInsights( + EnableExternalPluggableDatabaseOperationsInsightsRequest request, 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"); + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } - return forAutonomousContainerDatabaseDataguardAssociation( - com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable< + EnableExternalPluggableDatabaseOperationsInsightsResponse>() { + @Override + public EnableExternalPluggableDatabaseOperationsInsightsResponse call() + throws Exception { + final EnableExternalPluggableDatabaseOperationsInsightsResponse response = + client.enableExternalPluggableDatabaseOperationsInsights(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + EnableExternalPluggableDatabaseStackMonitoringRequest, + EnableExternalPluggableDatabaseStackMonitoringResponse> + forEnableExternalPluggableDatabaseStackMonitoring( + EnableExternalPluggableDatabaseStackMonitoringRequest request) { + return forEnableExternalPluggableDatabaseStackMonitoring( request, - targetState); + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** @@ -8257,79 +8470,48 @@ public boolean test(GetAutonomousContainerDatabaseResponse response) { * @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 + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetAutonomousContainerDatabaseDataguardAssociationRequest, - GetAutonomousContainerDatabaseDataguardAssociationResponse> - forAutonomousContainerDatabaseDataguardAssociation( - GetAutonomousContainerDatabaseDataguardAssociationRequest request, + EnableExternalPluggableDatabaseStackMonitoringRequest, + EnableExternalPluggableDatabaseStackMonitoringResponse> + forEnableExternalPluggableDatabaseStackMonitoring( + EnableExternalPluggableDatabaseStackMonitoringRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.AutonomousContainerDatabaseDataguardAssociation - .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 forAutonomousContainerDatabaseDataguardAssociation( - com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), - request, - targetStates); - } - - // Helper method to create a new Waiter for AutonomousContainerDatabaseDataguardAssociation. - private com.oracle.bmc.waiter.Waiter< - GetAutonomousContainerDatabaseDataguardAssociationRequest, - GetAutonomousContainerDatabaseDataguardAssociationResponse> - forAutonomousContainerDatabaseDataguardAssociation( - com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetAutonomousContainerDatabaseDataguardAssociationRequest request, - final com.oracle.bmc.database.model - .AutonomousContainerDatabaseDataguardAssociation - .LifecycleState - ... - targetStates) { - final java.util.Set< - com.oracle.bmc.database.model - .AutonomousContainerDatabaseDataguardAssociation.LifecycleState> - targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - waiter.toCallable( - () -> request, - new java.util.function.Function< - GetAutonomousContainerDatabaseDataguardAssociationRequest, - GetAutonomousContainerDatabaseDataguardAssociationResponse>() { - @Override - public GetAutonomousContainerDatabaseDataguardAssociationResponse apply( - GetAutonomousContainerDatabaseDataguardAssociationRequest - request) { - return client.getAutonomousContainerDatabaseDataguardAssociation( - request); - } - }, - new java.util.function.Predicate< - GetAutonomousContainerDatabaseDataguardAssociationResponse>() { - @Override - public boolean test( - GetAutonomousContainerDatabaseDataguardAssociationResponse - response) { - return targetStatesSet.contains( - response.getAutonomousContainerDatabaseDataguardAssociation() - .getLifecycleState()); - } - }, - targetStatesSet.contains( - com.oracle.bmc.database.model - .AutonomousContainerDatabaseDataguardAssociation - .LifecycleState.Terminated)), + new java.util.concurrent.Callable< + EnableExternalPluggableDatabaseStackMonitoringResponse>() { + @Override + public EnableExternalPluggableDatabaseStackMonitoringResponse call() + throws Exception { + final EnableExternalPluggableDatabaseStackMonitoringResponse response = + client.enableExternalPluggableDatabaseStackMonitoring(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, request); } @@ -8337,46 +8519,16 @@ public boolean test( * 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 - forAutonomousDatabase( - GetAutonomousDatabaseRequest request, - com.oracle.bmc.database.model.AutonomousDatabase.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 forAutonomousDatabase( - 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 + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forAutonomousDatabase( - GetAutonomousDatabaseRequest request, - com.oracle.bmc.database.model.AutonomousDatabase.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 forAutonomousDatabase( - com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + public com.oracle.bmc.waiter.Waiter< + EnablePluggableDatabaseManagementRequest, + EnablePluggableDatabaseManagementResponse> + forEnablePluggableDatabaseManagement(EnablePluggableDatabaseManagementRequest request) { + return forEnablePluggableDatabaseManagement( request, - targetState); + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** @@ -8385,61 +8537,46 @@ public boolean test( * @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 + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forAutonomousDatabase( - GetAutonomousDatabaseRequest request, + public com.oracle.bmc.waiter.Waiter< + EnablePluggableDatabaseManagementRequest, + EnablePluggableDatabaseManagementResponse> + forEnablePluggableDatabaseManagement( + EnablePluggableDatabaseManagementRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.AutonomousDatabase.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 forAutonomousDatabase( - com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), - request, - targetStates); - } - - // Helper method to create a new Waiter for AutonomousDatabase. - private com.oracle.bmc.waiter.Waiter< - GetAutonomousDatabaseRequest, GetAutonomousDatabaseResponse> - forAutonomousDatabase( - com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetAutonomousDatabaseRequest request, - final com.oracle.bmc.database.model.AutonomousDatabase.LifecycleState... - targetStates) { - final java.util.Set - targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - waiter.toCallable( - () -> request, - new java.util.function.Function< - GetAutonomousDatabaseRequest, GetAutonomousDatabaseResponse>() { - @Override - public GetAutonomousDatabaseResponse apply( - GetAutonomousDatabaseRequest request) { - return client.getAutonomousDatabase(request); - } - }, - new java.util.function.Predicate() { - @Override - public boolean test(GetAutonomousDatabaseResponse response) { - return targetStatesSet.contains( - response.getAutonomousDatabase().getLifecycleState()); - } - }, - targetStatesSet.contains( - com.oracle.bmc.database.model.AutonomousDatabase.LifecycleState - .Terminated)), + new java.util.concurrent.Callable() { + @Override + public EnablePluggableDatabaseManagementResponse call() throws Exception { + final EnablePluggableDatabaseManagementResponse response = + client.enablePluggableDatabaseManagement(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, request); } @@ -8447,114 +8584,196 @@ public boolean test(GetAutonomousDatabaseResponse response) { * 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 + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetAutonomousDatabaseBackupRequest, GetAutonomousDatabaseBackupResponse> - forAutonomousDatabaseBackup( - GetAutonomousDatabaseBackupRequest request, - com.oracle.bmc.database.model.AutonomousDatabaseBackup.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 forAutonomousDatabaseBackup( - com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); + FailOverAutonomousDatabaseRequest, FailOverAutonomousDatabaseResponse> + forFailOverAutonomousDatabase(FailOverAutonomousDatabaseRequest request) { + return forFailOverAutonomousDatabase( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send - * @param 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 + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetAutonomousDatabaseBackupRequest, GetAutonomousDatabaseBackupResponse> - forAutonomousDatabaseBackup( - GetAutonomousDatabaseBackupRequest request, - com.oracle.bmc.database.model.AutonomousDatabaseBackup.LifecycleState - targetState, + FailOverAutonomousDatabaseRequest, FailOverAutonomousDatabaseResponse> + forFailOverAutonomousDatabase( + FailOverAutonomousDatabaseRequest request, 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 forAutonomousDatabaseBackup( - com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), - request, - targetState); - } + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } - /** - * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public FailOverAutonomousDatabaseResponse call() throws Exception { + final FailOverAutonomousDatabaseResponse response = + client.failOverAutonomousDatabase(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + FailoverAutonomousContainerDatabaseDataguardAssociationRequest, + FailoverAutonomousContainerDatabaseDataguardAssociationResponse> + forFailoverAutonomousContainerDatabaseDataguardAssociation( + FailoverAutonomousContainerDatabaseDataguardAssociationRequest request) { + return forFailoverAutonomousContainerDatabaseDataguardAssociation( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use - * @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 + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetAutonomousDatabaseBackupRequest, GetAutonomousDatabaseBackupResponse> - forAutonomousDatabaseBackup( - GetAutonomousDatabaseBackupRequest request, + FailoverAutonomousContainerDatabaseDataguardAssociationRequest, + FailoverAutonomousContainerDatabaseDataguardAssociationResponse> + forFailoverAutonomousContainerDatabaseDataguardAssociation( + FailoverAutonomousContainerDatabaseDataguardAssociationRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.AutonomousDatabaseBackup.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"); + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } - return forAutonomousDatabaseBackup( - com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable< + FailoverAutonomousContainerDatabaseDataguardAssociationResponse>() { + @Override + public FailoverAutonomousContainerDatabaseDataguardAssociationResponse call() + throws Exception { + final FailoverAutonomousContainerDatabaseDataguardAssociationResponse + response = + client + .failoverAutonomousContainerDatabaseDataguardAssociation( + request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + FailoverDataGuardAssociationRequest, FailoverDataGuardAssociationResponse> + forFailoverDataGuardAssociation(FailoverDataGuardAssociationRequest request) { + return forFailoverDataGuardAssociation( request, - targetStates); + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } - // Helper method to create a new Waiter for AutonomousDatabaseBackup. - private com.oracle.bmc.waiter.Waiter< - GetAutonomousDatabaseBackupRequest, GetAutonomousDatabaseBackupResponse> - forAutonomousDatabaseBackup( - com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetAutonomousDatabaseBackupRequest request, - final com.oracle.bmc.database.model.AutonomousDatabaseBackup.LifecycleState... - targetStates) { - final java.util.Set - targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + FailoverDataGuardAssociationRequest, FailoverDataGuardAssociationResponse> + forFailoverDataGuardAssociation( + FailoverDataGuardAssociationRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - waiter.toCallable( - () -> request, - new java.util.function.Function< - GetAutonomousDatabaseBackupRequest, - GetAutonomousDatabaseBackupResponse>() { - @Override - public GetAutonomousDatabaseBackupResponse apply( - GetAutonomousDatabaseBackupRequest request) { - return client.getAutonomousDatabaseBackup(request); - } - }, - new java.util.function.Predicate() { - @Override - public boolean test(GetAutonomousDatabaseBackupResponse response) { - return targetStatesSet.contains( - response.getAutonomousDatabaseBackup().getLifecycleState()); - } - }, - targetStatesSet.contains( - com.oracle.bmc.database.model.AutonomousDatabaseBackup - .LifecycleState.Deleted)), + new java.util.concurrent.Callable() { + @Override + public FailoverDataGuardAssociationResponse call() throws Exception { + final FailoverDataGuardAssociationResponse response = + client.failoverDataGuardAssociation(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, request); } @@ -8566,21 +8785,16 @@ public boolean test(GetAutonomousDatabaseBackupResponse response) { * waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetAutonomousDatabaseDataguardAssociationRequest, - GetAutonomousDatabaseDataguardAssociationResponse> - forAutonomousDatabaseDataguardAssociation( - GetAutonomousDatabaseDataguardAssociationRequest request, - com.oracle.bmc.database.model.AutonomousDatabaseDataguardAssociation - .LifecycleState - ... - targetStates) { + public com.oracle.bmc.waiter.Waiter + forApplicationVip( + GetApplicationVipRequest request, + com.oracle.bmc.database.model.ApplicationVip.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 forAutonomousDatabaseDataguardAssociation( + return forApplicationVip( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -8593,20 +8807,16 @@ public boolean test(GetAutonomousDatabaseBackupResponse response) { * @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< - GetAutonomousDatabaseDataguardAssociationRequest, - GetAutonomousDatabaseDataguardAssociationResponse> - forAutonomousDatabaseDataguardAssociation( - GetAutonomousDatabaseDataguardAssociationRequest request, - com.oracle.bmc.database.model.AutonomousDatabaseDataguardAssociation - .LifecycleState - targetState, + public com.oracle.bmc.waiter.Waiter + forApplicationVip( + GetApplicationVipRequest request, + com.oracle.bmc.database.model.ApplicationVip.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 forAutonomousDatabaseDataguardAssociation( + return forApplicationVip( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -8622,42 +8832,31 @@ public boolean test(GetAutonomousDatabaseBackupResponse response) { * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetAutonomousDatabaseDataguardAssociationRequest, - GetAutonomousDatabaseDataguardAssociationResponse> - forAutonomousDatabaseDataguardAssociation( - GetAutonomousDatabaseDataguardAssociationRequest request, + public com.oracle.bmc.waiter.Waiter + forApplicationVip( + GetApplicationVipRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.AutonomousDatabaseDataguardAssociation - .LifecycleState - ... - targetStates) { + com.oracle.bmc.database.model.ApplicationVip.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 forAutonomousDatabaseDataguardAssociation( + return forApplicationVip( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for AutonomousDatabaseDataguardAssociation. - private com.oracle.bmc.waiter.Waiter< - GetAutonomousDatabaseDataguardAssociationRequest, - GetAutonomousDatabaseDataguardAssociationResponse> - forAutonomousDatabaseDataguardAssociation( + // Helper method to create a new Waiter for ApplicationVip. + private com.oracle.bmc.waiter.Waiter + forApplicationVip( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetAutonomousDatabaseDataguardAssociationRequest request, - final com.oracle.bmc.database.model.AutonomousDatabaseDataguardAssociation - .LifecycleState - ... + final GetApplicationVipRequest request, + final com.oracle.bmc.database.model.ApplicationVip.LifecycleState... targetStates) { - final java.util.Set< - com.oracle.bmc.database.model.AutonomousDatabaseDataguardAssociation - .LifecycleState> + final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -8665,27 +8864,23 @@ public boolean test(GetAutonomousDatabaseBackupResponse response) { waiter.toCallable( () -> request, new java.util.function.Function< - GetAutonomousDatabaseDataguardAssociationRequest, - GetAutonomousDatabaseDataguardAssociationResponse>() { + GetApplicationVipRequest, GetApplicationVipResponse>() { @Override - public GetAutonomousDatabaseDataguardAssociationResponse apply( - GetAutonomousDatabaseDataguardAssociationRequest request) { - return client.getAutonomousDatabaseDataguardAssociation(request); + public GetApplicationVipResponse apply( + GetApplicationVipRequest request) { + return client.getApplicationVip(request); } }, - new java.util.function.Predicate< - GetAutonomousDatabaseDataguardAssociationResponse>() { + new java.util.function.Predicate() { @Override - public boolean test( - GetAutonomousDatabaseDataguardAssociationResponse response) { + public boolean test(GetApplicationVipResponse response) { return targetStatesSet.contains( - response.getAutonomousDatabaseDataguardAssociation() - .getLifecycleState()); + response.getApplicationVip().getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.AutonomousDatabaseDataguardAssociation - .LifecycleState.Terminated)), + com.oracle.bmc.database.model.ApplicationVip.LifecycleState + .Terminated)), request); } @@ -8698,18 +8893,17 @@ public boolean test( * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetAutonomousDatabaseSoftwareImageRequest, - GetAutonomousDatabaseSoftwareImageResponse> - forAutonomousDatabaseSoftwareImage( - GetAutonomousDatabaseSoftwareImageRequest request, - com.oracle.bmc.database.model.AutonomousDatabaseSoftwareImage.LifecycleState... + GetAutonomousContainerDatabaseRequest, GetAutonomousContainerDatabaseResponse> + forAutonomousContainerDatabase( + GetAutonomousContainerDatabaseRequest request, + com.oracle.bmc.database.model.AutonomousContainerDatabase.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 forAutonomousDatabaseSoftwareImage( + return forAutonomousContainerDatabase( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -8723,18 +8917,17 @@ public boolean test( * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetAutonomousDatabaseSoftwareImageRequest, - GetAutonomousDatabaseSoftwareImageResponse> - forAutonomousDatabaseSoftwareImage( - GetAutonomousDatabaseSoftwareImageRequest request, - com.oracle.bmc.database.model.AutonomousDatabaseSoftwareImage.LifecycleState + GetAutonomousContainerDatabaseRequest, GetAutonomousContainerDatabaseResponse> + forAutonomousContainerDatabase( + GetAutonomousContainerDatabaseRequest request, + com.oracle.bmc.database.model.AutonomousContainerDatabase.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 forAutonomousDatabaseSoftwareImage( + return forAutonomousContainerDatabase( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -8751,39 +8944,35 @@ public boolean test( * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetAutonomousDatabaseSoftwareImageRequest, - GetAutonomousDatabaseSoftwareImageResponse> - forAutonomousDatabaseSoftwareImage( - GetAutonomousDatabaseSoftwareImageRequest request, + GetAutonomousContainerDatabaseRequest, GetAutonomousContainerDatabaseResponse> + forAutonomousContainerDatabase( + GetAutonomousContainerDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.AutonomousDatabaseSoftwareImage.LifecycleState... + com.oracle.bmc.database.model.AutonomousContainerDatabase.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 forAutonomousDatabaseSoftwareImage( + return forAutonomousContainerDatabase( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for AutonomousDatabaseSoftwareImage. + // Helper method to create a new Waiter for AutonomousContainerDatabase. private com.oracle.bmc.waiter.Waiter< - GetAutonomousDatabaseSoftwareImageRequest, - GetAutonomousDatabaseSoftwareImageResponse> - forAutonomousDatabaseSoftwareImage( + GetAutonomousContainerDatabaseRequest, GetAutonomousContainerDatabaseResponse> + forAutonomousContainerDatabase( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetAutonomousDatabaseSoftwareImageRequest request, - final com.oracle.bmc.database.model.AutonomousDatabaseSoftwareImage - .LifecycleState + final GetAutonomousContainerDatabaseRequest request, + final com.oracle.bmc.database.model.AutonomousContainerDatabase.LifecycleState ... targetStates) { final java.util.Set< - com.oracle.bmc.database.model.AutonomousDatabaseSoftwareImage - .LifecycleState> + com.oracle.bmc.database.model.AutonomousContainerDatabase.LifecycleState> targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -8791,26 +8980,24 @@ public boolean test( waiter.toCallable( () -> request, new java.util.function.Function< - GetAutonomousDatabaseSoftwareImageRequest, - GetAutonomousDatabaseSoftwareImageResponse>() { + GetAutonomousContainerDatabaseRequest, + GetAutonomousContainerDatabaseResponse>() { @Override - public GetAutonomousDatabaseSoftwareImageResponse apply( - GetAutonomousDatabaseSoftwareImageRequest request) { - return client.getAutonomousDatabaseSoftwareImage(request); + public GetAutonomousContainerDatabaseResponse apply( + GetAutonomousContainerDatabaseRequest request) { + return client.getAutonomousContainerDatabase(request); } }, - new java.util.function.Predicate< - GetAutonomousDatabaseSoftwareImageResponse>() { + new java.util.function.Predicate() { @Override - public boolean test( - GetAutonomousDatabaseSoftwareImageResponse response) { + public boolean test(GetAutonomousContainerDatabaseResponse response) { return targetStatesSet.contains( - response.getAutonomousDatabaseSoftwareImage() + response.getAutonomousContainerDatabase() .getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.AutonomousDatabaseSoftwareImage + com.oracle.bmc.database.model.AutonomousContainerDatabase .LifecycleState.Terminated)), request); } @@ -8824,17 +9011,20 @@ public boolean test( * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetAutonomousDatabaseWalletRequest, GetAutonomousDatabaseWalletResponse> - forAutonomousDatabaseWallet( - GetAutonomousDatabaseWalletRequest request, - com.oracle.bmc.database.model.AutonomousDatabaseWallet.LifecycleState... + GetAutonomousContainerDatabaseDataguardAssociationRequest, + GetAutonomousContainerDatabaseDataguardAssociationResponse> + forAutonomousContainerDatabaseDataguardAssociation( + GetAutonomousContainerDatabaseDataguardAssociationRequest request, + com.oracle.bmc.database.model.AutonomousContainerDatabaseDataguardAssociation + .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 forAutonomousDatabaseWallet( + return forAutonomousContainerDatabaseDataguardAssociation( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -8848,17 +9038,19 @@ public boolean test( * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetAutonomousDatabaseWalletRequest, GetAutonomousDatabaseWalletResponse> - forAutonomousDatabaseWallet( - GetAutonomousDatabaseWalletRequest request, - com.oracle.bmc.database.model.AutonomousDatabaseWallet.LifecycleState + GetAutonomousContainerDatabaseDataguardAssociationRequest, + GetAutonomousContainerDatabaseDataguardAssociationResponse> + forAutonomousContainerDatabaseDataguardAssociation( + GetAutonomousContainerDatabaseDataguardAssociationRequest request, + com.oracle.bmc.database.model.AutonomousContainerDatabaseDataguardAssociation + .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 forAutonomousDatabaseWallet( + return forAutonomousContainerDatabaseDataguardAssociation( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -8875,33 +9067,42 @@ public boolean test( * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetAutonomousDatabaseWalletRequest, GetAutonomousDatabaseWalletResponse> - forAutonomousDatabaseWallet( - GetAutonomousDatabaseWalletRequest request, + GetAutonomousContainerDatabaseDataguardAssociationRequest, + GetAutonomousContainerDatabaseDataguardAssociationResponse> + forAutonomousContainerDatabaseDataguardAssociation( + GetAutonomousContainerDatabaseDataguardAssociationRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.AutonomousDatabaseWallet.LifecycleState... + com.oracle.bmc.database.model.AutonomousContainerDatabaseDataguardAssociation + .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 forAutonomousDatabaseWallet( + return forAutonomousContainerDatabaseDataguardAssociation( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for AutonomousDatabaseWallet. + // Helper method to create a new Waiter for AutonomousContainerDatabaseDataguardAssociation. private com.oracle.bmc.waiter.Waiter< - GetAutonomousDatabaseWalletRequest, GetAutonomousDatabaseWalletResponse> - forAutonomousDatabaseWallet( + GetAutonomousContainerDatabaseDataguardAssociationRequest, + GetAutonomousContainerDatabaseDataguardAssociationResponse> + forAutonomousContainerDatabaseDataguardAssociation( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetAutonomousDatabaseWalletRequest request, - final com.oracle.bmc.database.model.AutonomousDatabaseWallet.LifecycleState... + final GetAutonomousContainerDatabaseDataguardAssociationRequest request, + final com.oracle.bmc.database.model + .AutonomousContainerDatabaseDataguardAssociation + .LifecycleState + ... targetStates) { - final java.util.Set + final java.util.Set< + com.oracle.bmc.database.model + .AutonomousContainerDatabaseDataguardAssociation.LifecycleState> targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -8909,22 +9110,31 @@ public boolean test( waiter.toCallable( () -> request, new java.util.function.Function< - GetAutonomousDatabaseWalletRequest, - GetAutonomousDatabaseWalletResponse>() { + GetAutonomousContainerDatabaseDataguardAssociationRequest, + GetAutonomousContainerDatabaseDataguardAssociationResponse>() { @Override - public GetAutonomousDatabaseWalletResponse apply( - GetAutonomousDatabaseWalletRequest request) { - return client.getAutonomousDatabaseWallet(request); + public GetAutonomousContainerDatabaseDataguardAssociationResponse apply( + GetAutonomousContainerDatabaseDataguardAssociationRequest + request) { + return client.getAutonomousContainerDatabaseDataguardAssociation( + request); } }, - new java.util.function.Predicate() { + new java.util.function.Predicate< + GetAutonomousContainerDatabaseDataguardAssociationResponse>() { @Override - public boolean test(GetAutonomousDatabaseWalletResponse response) { + public boolean test( + GetAutonomousContainerDatabaseDataguardAssociationResponse + response) { return targetStatesSet.contains( - response.getAutonomousDatabaseWallet().getLifecycleState()); + response.getAutonomousContainerDatabaseDataguardAssociation() + .getLifecycleState()); } }, - false), + targetStatesSet.contains( + com.oracle.bmc.database.model + .AutonomousContainerDatabaseDataguardAssociation + .LifecycleState.Terminated)), request); } @@ -8936,19 +9146,17 @@ public boolean test(GetAutonomousDatabaseWalletResponse response) { * waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetAutonomousExadataInfrastructureRequest, - GetAutonomousExadataInfrastructureResponse> - forAutonomousExadataInfrastructure( - GetAutonomousExadataInfrastructureRequest request, - com.oracle.bmc.database.model.AutonomousExadataInfrastructure.LifecycleState... + public com.oracle.bmc.waiter.Waiter + forAutonomousDatabase( + GetAutonomousDatabaseRequest request, + com.oracle.bmc.database.model.AutonomousDatabase.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 forAutonomousExadataInfrastructure( + return forAutonomousDatabase( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -8961,19 +9169,16 @@ public boolean test(GetAutonomousDatabaseWalletResponse response) { * @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< - GetAutonomousExadataInfrastructureRequest, - GetAutonomousExadataInfrastructureResponse> - forAutonomousExadataInfrastructure( - GetAutonomousExadataInfrastructureRequest request, - com.oracle.bmc.database.model.AutonomousExadataInfrastructure.LifecycleState - targetState, + public com.oracle.bmc.waiter.Waiter + forAutonomousDatabase( + GetAutonomousDatabaseRequest request, + com.oracle.bmc.database.model.AutonomousDatabase.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 forAutonomousExadataInfrastructure( + return forAutonomousDatabase( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -8989,40 +9194,33 @@ public boolean test(GetAutonomousDatabaseWalletResponse response) { * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetAutonomousExadataInfrastructureRequest, - GetAutonomousExadataInfrastructureResponse> - forAutonomousExadataInfrastructure( - GetAutonomousExadataInfrastructureRequest request, + public com.oracle.bmc.waiter.Waiter + forAutonomousDatabase( + GetAutonomousDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.AutonomousExadataInfrastructure.LifecycleState... + com.oracle.bmc.database.model.AutonomousDatabase.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 forAutonomousExadataInfrastructure( + return forAutonomousDatabase( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for AutonomousExadataInfrastructure. + // Helper method to create a new Waiter for AutonomousDatabase. private com.oracle.bmc.waiter.Waiter< - GetAutonomousExadataInfrastructureRequest, - GetAutonomousExadataInfrastructureResponse> - forAutonomousExadataInfrastructure( + GetAutonomousDatabaseRequest, GetAutonomousDatabaseResponse> + forAutonomousDatabase( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetAutonomousExadataInfrastructureRequest request, - final com.oracle.bmc.database.model.AutonomousExadataInfrastructure - .LifecycleState - ... + final GetAutonomousDatabaseRequest request, + final com.oracle.bmc.database.model.AutonomousDatabase.LifecycleState... targetStates) { - final java.util.Set< - com.oracle.bmc.database.model.AutonomousExadataInfrastructure - .LifecycleState> + final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -9030,27 +9228,23 @@ public boolean test(GetAutonomousDatabaseWalletResponse response) { waiter.toCallable( () -> request, new java.util.function.Function< - GetAutonomousExadataInfrastructureRequest, - GetAutonomousExadataInfrastructureResponse>() { + GetAutonomousDatabaseRequest, GetAutonomousDatabaseResponse>() { @Override - public GetAutonomousExadataInfrastructureResponse apply( - GetAutonomousExadataInfrastructureRequest request) { - return client.getAutonomousExadataInfrastructure(request); + public GetAutonomousDatabaseResponse apply( + GetAutonomousDatabaseRequest request) { + return client.getAutonomousDatabase(request); } }, - new java.util.function.Predicate< - GetAutonomousExadataInfrastructureResponse>() { + new java.util.function.Predicate() { @Override - public boolean test( - GetAutonomousExadataInfrastructureResponse response) { + public boolean test(GetAutonomousDatabaseResponse response) { return targetStatesSet.contains( - response.getAutonomousExadataInfrastructure() - .getLifecycleState()); + response.getAutonomousDatabase().getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.AutonomousExadataInfrastructure - .LifecycleState.Terminated)), + com.oracle.bmc.database.model.AutonomousDatabase.LifecycleState + .Terminated)), request); } @@ -9062,16 +9256,18 @@ public boolean test( * waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forAutonomousPatch( - GetAutonomousPatchRequest request, - com.oracle.bmc.database.model.AutonomousPatch.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"); + public com.oracle.bmc.waiter.Waiter< + GetAutonomousDatabaseBackupRequest, GetAutonomousDatabaseBackupResponse> + forAutonomousDatabaseBackup( + GetAutonomousDatabaseBackupRequest request, + com.oracle.bmc.database.model.AutonomousDatabaseBackup.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 forAutonomousPatch( + return forAutonomousDatabaseBackup( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -9084,16 +9280,18 @@ public boolean test( * @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 - forAutonomousPatch( - GetAutonomousPatchRequest request, - com.oracle.bmc.database.model.AutonomousPatch.LifecycleState targetState, + public com.oracle.bmc.waiter.Waiter< + GetAutonomousDatabaseBackupRequest, GetAutonomousDatabaseBackupResponse> + forAutonomousDatabaseBackup( + GetAutonomousDatabaseBackupRequest request, + com.oracle.bmc.database.model.AutonomousDatabaseBackup.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 forAutonomousPatch( + return forAutonomousDatabaseBackup( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -9109,31 +9307,34 @@ public boolean test( * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forAutonomousPatch( - GetAutonomousPatchRequest request, + public com.oracle.bmc.waiter.Waiter< + GetAutonomousDatabaseBackupRequest, GetAutonomousDatabaseBackupResponse> + forAutonomousDatabaseBackup( + GetAutonomousDatabaseBackupRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.AutonomousPatch.LifecycleState... targetStates) { + com.oracle.bmc.database.model.AutonomousDatabaseBackup.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 forAutonomousPatch( + return forAutonomousDatabaseBackup( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for AutonomousPatch. - private com.oracle.bmc.waiter.Waiter - forAutonomousPatch( + // Helper method to create a new Waiter for AutonomousDatabaseBackup. + private com.oracle.bmc.waiter.Waiter< + GetAutonomousDatabaseBackupRequest, GetAutonomousDatabaseBackupResponse> + forAutonomousDatabaseBackup( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetAutonomousPatchRequest request, - final com.oracle.bmc.database.model.AutonomousPatch.LifecycleState... + final GetAutonomousDatabaseBackupRequest request, + final com.oracle.bmc.database.model.AutonomousDatabaseBackup.LifecycleState... targetStates) { - final java.util.Set + final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -9141,21 +9342,24 @@ public boolean test( waiter.toCallable( () -> request, new java.util.function.Function< - GetAutonomousPatchRequest, GetAutonomousPatchResponse>() { + GetAutonomousDatabaseBackupRequest, + GetAutonomousDatabaseBackupResponse>() { @Override - public GetAutonomousPatchResponse apply( - GetAutonomousPatchRequest request) { - return client.getAutonomousPatch(request); + public GetAutonomousDatabaseBackupResponse apply( + GetAutonomousDatabaseBackupRequest request) { + return client.getAutonomousDatabaseBackup(request); } }, - new java.util.function.Predicate() { + new java.util.function.Predicate() { @Override - public boolean test(GetAutonomousPatchResponse response) { + public boolean test(GetAutonomousDatabaseBackupResponse response) { return targetStatesSet.contains( - response.getAutonomousPatch().getLifecycleState()); + response.getAutonomousDatabaseBackup().getLifecycleState()); } }, - false), + targetStatesSet.contains( + com.oracle.bmc.database.model.AutonomousDatabaseBackup + .LifecycleState.Deleted)), request); } @@ -9168,17 +9372,20 @@ public boolean test(GetAutonomousPatchResponse response) { * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetAutonomousVirtualMachineRequest, GetAutonomousVirtualMachineResponse> - forAutonomousVirtualMachine( - GetAutonomousVirtualMachineRequest request, - com.oracle.bmc.database.model.AutonomousVirtualMachine.LifecycleState... + GetAutonomousDatabaseDataguardAssociationRequest, + GetAutonomousDatabaseDataguardAssociationResponse> + forAutonomousDatabaseDataguardAssociation( + GetAutonomousDatabaseDataguardAssociationRequest request, + com.oracle.bmc.database.model.AutonomousDatabaseDataguardAssociation + .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 forAutonomousVirtualMachine( + return forAutonomousDatabaseDataguardAssociation( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -9192,17 +9399,19 @@ public boolean test(GetAutonomousPatchResponse response) { * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetAutonomousVirtualMachineRequest, GetAutonomousVirtualMachineResponse> - forAutonomousVirtualMachine( - GetAutonomousVirtualMachineRequest request, - com.oracle.bmc.database.model.AutonomousVirtualMachine.LifecycleState + GetAutonomousDatabaseDataguardAssociationRequest, + GetAutonomousDatabaseDataguardAssociationResponse> + forAutonomousDatabaseDataguardAssociation( + GetAutonomousDatabaseDataguardAssociationRequest request, + com.oracle.bmc.database.model.AutonomousDatabaseDataguardAssociation + .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 forAutonomousVirtualMachine( + return forAutonomousDatabaseDataguardAssociation( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -9219,33 +9428,41 @@ public boolean test(GetAutonomousPatchResponse response) { * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetAutonomousVirtualMachineRequest, GetAutonomousVirtualMachineResponse> - forAutonomousVirtualMachine( - GetAutonomousVirtualMachineRequest request, + GetAutonomousDatabaseDataguardAssociationRequest, + GetAutonomousDatabaseDataguardAssociationResponse> + forAutonomousDatabaseDataguardAssociation( + GetAutonomousDatabaseDataguardAssociationRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.AutonomousVirtualMachine.LifecycleState... + com.oracle.bmc.database.model.AutonomousDatabaseDataguardAssociation + .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 forAutonomousVirtualMachine( + return forAutonomousDatabaseDataguardAssociation( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for AutonomousVirtualMachine. + // Helper method to create a new Waiter for AutonomousDatabaseDataguardAssociation. private com.oracle.bmc.waiter.Waiter< - GetAutonomousVirtualMachineRequest, GetAutonomousVirtualMachineResponse> - forAutonomousVirtualMachine( + GetAutonomousDatabaseDataguardAssociationRequest, + GetAutonomousDatabaseDataguardAssociationResponse> + forAutonomousDatabaseDataguardAssociation( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetAutonomousVirtualMachineRequest request, - final com.oracle.bmc.database.model.AutonomousVirtualMachine.LifecycleState... + final GetAutonomousDatabaseDataguardAssociationRequest request, + final com.oracle.bmc.database.model.AutonomousDatabaseDataguardAssociation + .LifecycleState + ... targetStates) { - final java.util.Set + final java.util.Set< + com.oracle.bmc.database.model.AutonomousDatabaseDataguardAssociation + .LifecycleState> targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -9253,23 +9470,26 @@ public boolean test(GetAutonomousPatchResponse response) { waiter.toCallable( () -> request, new java.util.function.Function< - GetAutonomousVirtualMachineRequest, - GetAutonomousVirtualMachineResponse>() { + GetAutonomousDatabaseDataguardAssociationRequest, + GetAutonomousDatabaseDataguardAssociationResponse>() { @Override - public GetAutonomousVirtualMachineResponse apply( - GetAutonomousVirtualMachineRequest request) { - return client.getAutonomousVirtualMachine(request); + public GetAutonomousDatabaseDataguardAssociationResponse apply( + GetAutonomousDatabaseDataguardAssociationRequest request) { + return client.getAutonomousDatabaseDataguardAssociation(request); } }, - new java.util.function.Predicate() { + new java.util.function.Predicate< + GetAutonomousDatabaseDataguardAssociationResponse>() { @Override - public boolean test(GetAutonomousVirtualMachineResponse response) { + public boolean test( + GetAutonomousDatabaseDataguardAssociationResponse response) { return targetStatesSet.contains( - response.getAutonomousVirtualMachine().getLifecycleState()); + response.getAutonomousDatabaseDataguardAssociation() + .getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.AutonomousVirtualMachine + com.oracle.bmc.database.model.AutonomousDatabaseDataguardAssociation .LifecycleState.Terminated)), request); } @@ -9283,17 +9503,18 @@ public boolean test(GetAutonomousVirtualMachineResponse response) { * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetAutonomousVmClusterRequest, GetAutonomousVmClusterResponse> - forAutonomousVmCluster( - GetAutonomousVmClusterRequest request, - com.oracle.bmc.database.model.AutonomousVmCluster.LifecycleState... + GetAutonomousDatabaseSoftwareImageRequest, + GetAutonomousDatabaseSoftwareImageResponse> + forAutonomousDatabaseSoftwareImage( + GetAutonomousDatabaseSoftwareImageRequest request, + com.oracle.bmc.database.model.AutonomousDatabaseSoftwareImage.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 forAutonomousVmCluster( + return forAutonomousDatabaseSoftwareImage( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -9307,16 +9528,18 @@ public boolean test(GetAutonomousVirtualMachineResponse response) { * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetAutonomousVmClusterRequest, GetAutonomousVmClusterResponse> - forAutonomousVmCluster( - GetAutonomousVmClusterRequest request, - com.oracle.bmc.database.model.AutonomousVmCluster.LifecycleState targetState, + GetAutonomousDatabaseSoftwareImageRequest, + GetAutonomousDatabaseSoftwareImageResponse> + forAutonomousDatabaseSoftwareImage( + GetAutonomousDatabaseSoftwareImageRequest request, + com.oracle.bmc.database.model.AutonomousDatabaseSoftwareImage.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 forAutonomousVmCluster( + return forAutonomousDatabaseSoftwareImage( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -9333,33 +9556,39 @@ public boolean test(GetAutonomousVirtualMachineResponse response) { * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetAutonomousVmClusterRequest, GetAutonomousVmClusterResponse> - forAutonomousVmCluster( - GetAutonomousVmClusterRequest request, + GetAutonomousDatabaseSoftwareImageRequest, + GetAutonomousDatabaseSoftwareImageResponse> + forAutonomousDatabaseSoftwareImage( + GetAutonomousDatabaseSoftwareImageRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.AutonomousVmCluster.LifecycleState... + com.oracle.bmc.database.model.AutonomousDatabaseSoftwareImage.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 forAutonomousVmCluster( + return forAutonomousDatabaseSoftwareImage( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for AutonomousVmCluster. + // Helper method to create a new Waiter for AutonomousDatabaseSoftwareImage. private com.oracle.bmc.waiter.Waiter< - GetAutonomousVmClusterRequest, GetAutonomousVmClusterResponse> - forAutonomousVmCluster( + GetAutonomousDatabaseSoftwareImageRequest, + GetAutonomousDatabaseSoftwareImageResponse> + forAutonomousDatabaseSoftwareImage( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetAutonomousVmClusterRequest request, - final com.oracle.bmc.database.model.AutonomousVmCluster.LifecycleState... + final GetAutonomousDatabaseSoftwareImageRequest request, + final com.oracle.bmc.database.model.AutonomousDatabaseSoftwareImage + .LifecycleState + ... targetStates) { - final java.util.Set + final java.util.Set< + com.oracle.bmc.database.model.AutonomousDatabaseSoftwareImage + .LifecycleState> targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -9367,23 +9596,27 @@ public boolean test(GetAutonomousVirtualMachineResponse response) { waiter.toCallable( () -> request, new java.util.function.Function< - GetAutonomousVmClusterRequest, GetAutonomousVmClusterResponse>() { + GetAutonomousDatabaseSoftwareImageRequest, + GetAutonomousDatabaseSoftwareImageResponse>() { @Override - public GetAutonomousVmClusterResponse apply( - GetAutonomousVmClusterRequest request) { - return client.getAutonomousVmCluster(request); + public GetAutonomousDatabaseSoftwareImageResponse apply( + GetAutonomousDatabaseSoftwareImageRequest request) { + return client.getAutonomousDatabaseSoftwareImage(request); } }, - new java.util.function.Predicate() { + new java.util.function.Predicate< + GetAutonomousDatabaseSoftwareImageResponse>() { @Override - public boolean test(GetAutonomousVmClusterResponse response) { + public boolean test( + GetAutonomousDatabaseSoftwareImageResponse response) { return targetStatesSet.contains( - response.getAutonomousVmCluster().getLifecycleState()); + response.getAutonomousDatabaseSoftwareImage() + .getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.AutonomousVmCluster.LifecycleState - .Terminated)), + com.oracle.bmc.database.model.AutonomousDatabaseSoftwareImage + .LifecycleState.Terminated)), request); } @@ -9395,15 +9628,18 @@ public boolean test(GetAutonomousVmClusterResponse response) { * waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forBackup( - GetBackupRequest request, - com.oracle.bmc.database.model.Backup.LifecycleState... targetStates) { + public com.oracle.bmc.waiter.Waiter< + GetAutonomousDatabaseWalletRequest, GetAutonomousDatabaseWalletResponse> + forAutonomousDatabaseWallet( + GetAutonomousDatabaseWalletRequest request, + com.oracle.bmc.database.model.AutonomousDatabaseWallet.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 forBackup( + return forAutonomousDatabaseWallet( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -9416,15 +9652,18 @@ public com.oracle.bmc.waiter.Waiter forBack * @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 forBackup( - GetBackupRequest request, - com.oracle.bmc.database.model.Backup.LifecycleState targetState, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + public com.oracle.bmc.waiter.Waiter< + GetAutonomousDatabaseWalletRequest, GetAutonomousDatabaseWalletResponse> + forAutonomousDatabaseWallet( + GetAutonomousDatabaseWalletRequest request, + com.oracle.bmc.database.model.AutonomousDatabaseWallet.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 forBackup( + return forAutonomousDatabaseWallet( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -9440,49 +9679,57 @@ public com.oracle.bmc.waiter.Waiter forBack * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forBackup( - GetBackupRequest request, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.Backup.LifecycleState... targetStates) { + public com.oracle.bmc.waiter.Waiter< + GetAutonomousDatabaseWalletRequest, GetAutonomousDatabaseWalletResponse> + forAutonomousDatabaseWallet( + GetAutonomousDatabaseWalletRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.AutonomousDatabaseWallet.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 forBackup( + return forAutonomousDatabaseWallet( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for Backup. - private com.oracle.bmc.waiter.Waiter forBackup( - com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetBackupRequest request, - final com.oracle.bmc.database.model.Backup.LifecycleState... targetStates) { - final java.util.Set targetStatesSet = - new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + // Helper method to create a new Waiter for AutonomousDatabaseWallet. + private com.oracle.bmc.waiter.Waiter< + GetAutonomousDatabaseWalletRequest, GetAutonomousDatabaseWalletResponse> + forAutonomousDatabaseWallet( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetAutonomousDatabaseWalletRequest request, + final com.oracle.bmc.database.model.AutonomousDatabaseWallet.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() { + new java.util.function.Function< + GetAutonomousDatabaseWalletRequest, + GetAutonomousDatabaseWalletResponse>() { @Override - public GetBackupResponse apply(GetBackupRequest request) { - return client.getBackup(request); + public GetAutonomousDatabaseWalletResponse apply( + GetAutonomousDatabaseWalletRequest request) { + return client.getAutonomousDatabaseWallet(request); } }, - new java.util.function.Predicate() { + new java.util.function.Predicate() { @Override - public boolean test(GetBackupResponse response) { + public boolean test(GetAutonomousDatabaseWalletResponse response) { return targetStatesSet.contains( - response.getBackup().getLifecycleState()); + response.getAutonomousDatabaseWallet().getLifecycleState()); } }, - targetStatesSet.contains( - com.oracle.bmc.database.model.Backup.LifecycleState.Deleted)), + false), request); } @@ -9494,17 +9741,19 @@ public boolean test(GetBackupResponse response) { * waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forBackupDestination( - GetBackupDestinationRequest request, - com.oracle.bmc.database.model.BackupDestination.LifecycleState... + public com.oracle.bmc.waiter.Waiter< + GetAutonomousExadataInfrastructureRequest, + GetAutonomousExadataInfrastructureResponse> + forAutonomousExadataInfrastructure( + GetAutonomousExadataInfrastructureRequest request, + com.oracle.bmc.database.model.AutonomousExadataInfrastructure.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 forBackupDestination( + return forAutonomousExadataInfrastructure( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -9517,16 +9766,19 @@ public boolean test(GetBackupResponse response) { * @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 - forBackupDestination( - GetBackupDestinationRequest request, - com.oracle.bmc.database.model.BackupDestination.LifecycleState targetState, + public com.oracle.bmc.waiter.Waiter< + GetAutonomousExadataInfrastructureRequest, + GetAutonomousExadataInfrastructureResponse> + forAutonomousExadataInfrastructure( + GetAutonomousExadataInfrastructureRequest request, + com.oracle.bmc.database.model.AutonomousExadataInfrastructure.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 forBackupDestination( + return forAutonomousExadataInfrastructure( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -9542,32 +9794,40 @@ public boolean test(GetBackupResponse response) { * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forBackupDestination( - GetBackupDestinationRequest request, + public com.oracle.bmc.waiter.Waiter< + GetAutonomousExadataInfrastructureRequest, + GetAutonomousExadataInfrastructureResponse> + forAutonomousExadataInfrastructure( + GetAutonomousExadataInfrastructureRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.BackupDestination.LifecycleState... + com.oracle.bmc.database.model.AutonomousExadataInfrastructure.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 forBackupDestination( + return forAutonomousExadataInfrastructure( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for BackupDestination. - private com.oracle.bmc.waiter.Waiter - forBackupDestination( + // Helper method to create a new Waiter for AutonomousExadataInfrastructure. + private com.oracle.bmc.waiter.Waiter< + GetAutonomousExadataInfrastructureRequest, + GetAutonomousExadataInfrastructureResponse> + forAutonomousExadataInfrastructure( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetBackupDestinationRequest request, - final com.oracle.bmc.database.model.BackupDestination.LifecycleState... + final GetAutonomousExadataInfrastructureRequest request, + final com.oracle.bmc.database.model.AutonomousExadataInfrastructure + .LifecycleState + ... targetStates) { - final java.util.Set + final java.util.Set< + com.oracle.bmc.database.model.AutonomousExadataInfrastructure + .LifecycleState> targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -9575,23 +9835,27 @@ public boolean test(GetBackupResponse response) { waiter.toCallable( () -> request, new java.util.function.Function< - GetBackupDestinationRequest, GetBackupDestinationResponse>() { + GetAutonomousExadataInfrastructureRequest, + GetAutonomousExadataInfrastructureResponse>() { @Override - public GetBackupDestinationResponse apply( - GetBackupDestinationRequest request) { - return client.getBackupDestination(request); + public GetAutonomousExadataInfrastructureResponse apply( + GetAutonomousExadataInfrastructureRequest request) { + return client.getAutonomousExadataInfrastructure(request); } }, - new java.util.function.Predicate() { + new java.util.function.Predicate< + GetAutonomousExadataInfrastructureResponse>() { @Override - public boolean test(GetBackupDestinationResponse response) { + public boolean test( + GetAutonomousExadataInfrastructureResponse response) { return targetStatesSet.contains( - response.getBackupDestination().getLifecycleState()); + response.getAutonomousExadataInfrastructure() + .getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.BackupDestination.LifecycleState - .Deleted)), + com.oracle.bmc.database.model.AutonomousExadataInfrastructure + .LifecycleState.Terminated)), request); } @@ -9603,18 +9867,16 @@ public boolean test(GetBackupDestinationResponse response) { * waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetCloudAutonomousVmClusterRequest, GetCloudAutonomousVmClusterResponse> - forCloudAutonomousVmCluster( - GetCloudAutonomousVmClusterRequest request, - com.oracle.bmc.database.model.CloudAutonomousVmCluster.LifecycleState... - targetStates) { + public com.oracle.bmc.waiter.Waiter + forAutonomousPatch( + GetAutonomousPatchRequest request, + com.oracle.bmc.database.model.AutonomousPatch.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 forCloudAutonomousVmCluster( + return forAutonomousPatch( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -9627,18 +9889,16 @@ public boolean test(GetBackupDestinationResponse response) { * @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< - GetCloudAutonomousVmClusterRequest, GetCloudAutonomousVmClusterResponse> - forCloudAutonomousVmCluster( - GetCloudAutonomousVmClusterRequest request, - com.oracle.bmc.database.model.CloudAutonomousVmCluster.LifecycleState - targetState, + public com.oracle.bmc.waiter.Waiter + forAutonomousPatch( + GetAutonomousPatchRequest request, + com.oracle.bmc.database.model.AutonomousPatch.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 forCloudAutonomousVmCluster( + return forAutonomousPatch( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -9654,34 +9914,31 @@ public boolean test(GetBackupDestinationResponse response) { * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetCloudAutonomousVmClusterRequest, GetCloudAutonomousVmClusterResponse> - forCloudAutonomousVmCluster( - GetCloudAutonomousVmClusterRequest request, + public com.oracle.bmc.waiter.Waiter + forAutonomousPatch( + GetAutonomousPatchRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.CloudAutonomousVmCluster.LifecycleState... - targetStates) { + com.oracle.bmc.database.model.AutonomousPatch.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 forCloudAutonomousVmCluster( + return forAutonomousPatch( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for CloudAutonomousVmCluster. - private com.oracle.bmc.waiter.Waiter< - GetCloudAutonomousVmClusterRequest, GetCloudAutonomousVmClusterResponse> - forCloudAutonomousVmCluster( + // Helper method to create a new Waiter for AutonomousPatch. + private com.oracle.bmc.waiter.Waiter + forAutonomousPatch( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetCloudAutonomousVmClusterRequest request, - final com.oracle.bmc.database.model.CloudAutonomousVmCluster.LifecycleState... + final GetAutonomousPatchRequest request, + final com.oracle.bmc.database.model.AutonomousPatch.LifecycleState... targetStates) { - final java.util.Set + final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -9689,24 +9946,21 @@ public boolean test(GetBackupDestinationResponse response) { waiter.toCallable( () -> request, new java.util.function.Function< - GetCloudAutonomousVmClusterRequest, - GetCloudAutonomousVmClusterResponse>() { + GetAutonomousPatchRequest, GetAutonomousPatchResponse>() { @Override - public GetCloudAutonomousVmClusterResponse apply( - GetCloudAutonomousVmClusterRequest request) { - return client.getCloudAutonomousVmCluster(request); + public GetAutonomousPatchResponse apply( + GetAutonomousPatchRequest request) { + return client.getAutonomousPatch(request); } }, - new java.util.function.Predicate() { + new java.util.function.Predicate() { @Override - public boolean test(GetCloudAutonomousVmClusterResponse response) { + public boolean test(GetAutonomousPatchResponse response) { return targetStatesSet.contains( - response.getCloudAutonomousVmCluster().getLifecycleState()); + response.getAutonomousPatch().getLifecycleState()); } }, - targetStatesSet.contains( - com.oracle.bmc.database.model.CloudAutonomousVmCluster - .LifecycleState.Terminated)), + false), request); } @@ -9719,17 +9973,17 @@ public boolean test(GetCloudAutonomousVmClusterResponse response) { * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetCloudExadataInfrastructureRequest, GetCloudExadataInfrastructureResponse> - forCloudExadataInfrastructure( - GetCloudExadataInfrastructureRequest request, - com.oracle.bmc.database.model.CloudExadataInfrastructure.LifecycleState... + GetAutonomousVirtualMachineRequest, GetAutonomousVirtualMachineResponse> + forAutonomousVirtualMachine( + GetAutonomousVirtualMachineRequest request, + com.oracle.bmc.database.model.AutonomousVirtualMachine.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 forCloudExadataInfrastructure( + return forAutonomousVirtualMachine( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -9743,17 +9997,17 @@ public boolean test(GetCloudAutonomousVmClusterResponse response) { * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetCloudExadataInfrastructureRequest, GetCloudExadataInfrastructureResponse> - forCloudExadataInfrastructure( - GetCloudExadataInfrastructureRequest request, - com.oracle.bmc.database.model.CloudExadataInfrastructure.LifecycleState + GetAutonomousVirtualMachineRequest, GetAutonomousVirtualMachineResponse> + forAutonomousVirtualMachine( + GetAutonomousVirtualMachineRequest request, + com.oracle.bmc.database.model.AutonomousVirtualMachine.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 forCloudExadataInfrastructure( + return forAutonomousVirtualMachine( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -9770,33 +10024,33 @@ public boolean test(GetCloudAutonomousVmClusterResponse response) { * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetCloudExadataInfrastructureRequest, GetCloudExadataInfrastructureResponse> - forCloudExadataInfrastructure( - GetCloudExadataInfrastructureRequest request, + GetAutonomousVirtualMachineRequest, GetAutonomousVirtualMachineResponse> + forAutonomousVirtualMachine( + GetAutonomousVirtualMachineRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.CloudExadataInfrastructure.LifecycleState... + com.oracle.bmc.database.model.AutonomousVirtualMachine.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 forCloudExadataInfrastructure( + return forAutonomousVirtualMachine( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for CloudExadataInfrastructure. + // Helper method to create a new Waiter for AutonomousVirtualMachine. private com.oracle.bmc.waiter.Waiter< - GetCloudExadataInfrastructureRequest, GetCloudExadataInfrastructureResponse> - forCloudExadataInfrastructure( + GetAutonomousVirtualMachineRequest, GetAutonomousVirtualMachineResponse> + forAutonomousVirtualMachine( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetCloudExadataInfrastructureRequest request, - final com.oracle.bmc.database.model.CloudExadataInfrastructure.LifecycleState... + final GetAutonomousVirtualMachineRequest request, + final com.oracle.bmc.database.model.AutonomousVirtualMachine.LifecycleState... targetStates) { - final java.util.Set + final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -9804,24 +10058,23 @@ public boolean test(GetCloudAutonomousVmClusterResponse response) { waiter.toCallable( () -> request, new java.util.function.Function< - GetCloudExadataInfrastructureRequest, - GetCloudExadataInfrastructureResponse>() { + GetAutonomousVirtualMachineRequest, + GetAutonomousVirtualMachineResponse>() { @Override - public GetCloudExadataInfrastructureResponse apply( - GetCloudExadataInfrastructureRequest request) { - return client.getCloudExadataInfrastructure(request); + public GetAutonomousVirtualMachineResponse apply( + GetAutonomousVirtualMachineRequest request) { + return client.getAutonomousVirtualMachine(request); } }, - new java.util.function.Predicate() { + new java.util.function.Predicate() { @Override - public boolean test(GetCloudExadataInfrastructureResponse response) { + public boolean test(GetAutonomousVirtualMachineResponse response) { return targetStatesSet.contains( - response.getCloudExadataInfrastructure() - .getLifecycleState()); + response.getAutonomousVirtualMachine().getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.CloudExadataInfrastructure + com.oracle.bmc.database.model.AutonomousVirtualMachine .LifecycleState.Terminated)), request); } @@ -9834,16 +10087,18 @@ public boolean test(GetCloudExadataInfrastructureResponse response) { * waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forCloudVmCluster( - GetCloudVmClusterRequest request, - com.oracle.bmc.database.model.CloudVmCluster.LifecycleState... targetStates) { + public com.oracle.bmc.waiter.Waiter< + GetAutonomousVmClusterRequest, GetAutonomousVmClusterResponse> + forAutonomousVmCluster( + GetAutonomousVmClusterRequest request, + com.oracle.bmc.database.model.AutonomousVmCluster.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 forCloudVmCluster( + return forAutonomousVmCluster( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -9856,16 +10111,17 @@ public boolean test(GetCloudExadataInfrastructureResponse response) { * @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 - forCloudVmCluster( - GetCloudVmClusterRequest request, - com.oracle.bmc.database.model.CloudVmCluster.LifecycleState targetState, + public com.oracle.bmc.waiter.Waiter< + GetAutonomousVmClusterRequest, GetAutonomousVmClusterResponse> + forAutonomousVmCluster( + GetAutonomousVmClusterRequest request, + com.oracle.bmc.database.model.AutonomousVmCluster.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 forCloudVmCluster( + return forAutonomousVmCluster( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -9881,31 +10137,34 @@ public boolean test(GetCloudExadataInfrastructureResponse response) { * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forCloudVmCluster( - GetCloudVmClusterRequest request, + public com.oracle.bmc.waiter.Waiter< + GetAutonomousVmClusterRequest, GetAutonomousVmClusterResponse> + forAutonomousVmCluster( + GetAutonomousVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.CloudVmCluster.LifecycleState... targetStates) { + com.oracle.bmc.database.model.AutonomousVmCluster.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 forCloudVmCluster( + return forAutonomousVmCluster( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for CloudVmCluster. - private com.oracle.bmc.waiter.Waiter - forCloudVmCluster( + // Helper method to create a new Waiter for AutonomousVmCluster. + private com.oracle.bmc.waiter.Waiter< + GetAutonomousVmClusterRequest, GetAutonomousVmClusterResponse> + forAutonomousVmCluster( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetCloudVmClusterRequest request, - final com.oracle.bmc.database.model.CloudVmCluster.LifecycleState... + final GetAutonomousVmClusterRequest request, + final com.oracle.bmc.database.model.AutonomousVmCluster.LifecycleState... targetStates) { - final java.util.Set + final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -9913,22 +10172,22 @@ public boolean test(GetCloudExadataInfrastructureResponse response) { waiter.toCallable( () -> request, new java.util.function.Function< - GetCloudVmClusterRequest, GetCloudVmClusterResponse>() { + GetAutonomousVmClusterRequest, GetAutonomousVmClusterResponse>() { @Override - public GetCloudVmClusterResponse apply( - GetCloudVmClusterRequest request) { - return client.getCloudVmCluster(request); + public GetAutonomousVmClusterResponse apply( + GetAutonomousVmClusterRequest request) { + return client.getAutonomousVmCluster(request); } }, - new java.util.function.Predicate() { + new java.util.function.Predicate() { @Override - public boolean test(GetCloudVmClusterResponse response) { + public boolean test(GetAutonomousVmClusterResponse response) { return targetStatesSet.contains( - response.getCloudVmCluster().getLifecycleState()); + response.getAutonomousVmCluster().getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.CloudVmCluster.LifecycleState + com.oracle.bmc.database.model.AutonomousVmCluster.LifecycleState .Terminated)), request); } @@ -9941,17 +10200,15 @@ public boolean test(GetCloudVmClusterResponse response) { * waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forConsoleConnection( - GetConsoleConnectionRequest request, - com.oracle.bmc.database.model.ConsoleConnection.LifecycleState... - targetStates) { + public com.oracle.bmc.waiter.Waiter forBackup( + GetBackupRequest request, + com.oracle.bmc.database.model.Backup.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 forConsoleConnection( + return forBackup( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -9964,16 +10221,15 @@ public boolean test(GetCloudVmClusterResponse response) { * @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 - forConsoleConnection( - GetConsoleConnectionRequest request, - com.oracle.bmc.database.model.ConsoleConnection.LifecycleState targetState, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + public com.oracle.bmc.waiter.Waiter forBackup( + GetBackupRequest request, + com.oracle.bmc.database.model.Backup.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 forConsoleConnection( + return forBackup( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -9989,56 +10245,49 @@ public boolean test(GetCloudVmClusterResponse response) { * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forConsoleConnection( - GetConsoleConnectionRequest request, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.ConsoleConnection.LifecycleState... - targetStates) { + public com.oracle.bmc.waiter.Waiter forBackup( + GetBackupRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.Backup.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 forConsoleConnection( + return forBackup( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for ConsoleConnection. - private com.oracle.bmc.waiter.Waiter - forConsoleConnection( - com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetConsoleConnectionRequest request, - final com.oracle.bmc.database.model.ConsoleConnection.LifecycleState... - targetStates) { - final java.util.Set - targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + // Helper method to create a new Waiter for Backup. + private com.oracle.bmc.waiter.Waiter forBackup( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetBackupRequest request, + final com.oracle.bmc.database.model.Backup.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< - GetConsoleConnectionRequest, GetConsoleConnectionResponse>() { + new java.util.function.Function() { @Override - public GetConsoleConnectionResponse apply( - GetConsoleConnectionRequest request) { - return client.getConsoleConnection(request); + public GetBackupResponse apply(GetBackupRequest request) { + return client.getBackup(request); } }, - new java.util.function.Predicate() { + new java.util.function.Predicate() { @Override - public boolean test(GetConsoleConnectionResponse response) { + public boolean test(GetBackupResponse response) { return targetStatesSet.contains( - response.getConsoleConnection().getLifecycleState()); + response.getBackup().getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.ConsoleConnection.LifecycleState - .Deleted)), + com.oracle.bmc.database.model.Backup.LifecycleState.Deleted)), request); } @@ -10050,16 +10299,17 @@ public boolean test(GetConsoleConnectionResponse response) { * waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forConsoleHistory( - GetConsoleHistoryRequest request, - com.oracle.bmc.database.model.ConsoleHistory.LifecycleState... targetStates) { + public com.oracle.bmc.waiter.Waiter + forBackupDestination( + GetBackupDestinationRequest request, + com.oracle.bmc.database.model.BackupDestination.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 forConsoleHistory( + return forBackupDestination( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -10072,16 +10322,16 @@ public boolean test(GetConsoleConnectionResponse response) { * @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 - forConsoleHistory( - GetConsoleHistoryRequest request, - com.oracle.bmc.database.model.ConsoleHistory.LifecycleState targetState, + public com.oracle.bmc.waiter.Waiter + forBackupDestination( + GetBackupDestinationRequest request, + com.oracle.bmc.database.model.BackupDestination.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 forConsoleHistory( + return forBackupDestination( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -10097,31 +10347,32 @@ public boolean test(GetConsoleConnectionResponse response) { * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forConsoleHistory( - GetConsoleHistoryRequest request, + public com.oracle.bmc.waiter.Waiter + forBackupDestination( + GetBackupDestinationRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.ConsoleHistory.LifecycleState... targetStates) { + com.oracle.bmc.database.model.BackupDestination.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 forConsoleHistory( + return forBackupDestination( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for ConsoleHistory. - private com.oracle.bmc.waiter.Waiter - forConsoleHistory( + // Helper method to create a new Waiter for BackupDestination. + private com.oracle.bmc.waiter.Waiter + forBackupDestination( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetConsoleHistoryRequest request, - final com.oracle.bmc.database.model.ConsoleHistory.LifecycleState... + final GetBackupDestinationRequest request, + final com.oracle.bmc.database.model.BackupDestination.LifecycleState... targetStates) { - final java.util.Set + final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -10129,22 +10380,22 @@ public boolean test(GetConsoleConnectionResponse response) { waiter.toCallable( () -> request, new java.util.function.Function< - GetConsoleHistoryRequest, GetConsoleHistoryResponse>() { + GetBackupDestinationRequest, GetBackupDestinationResponse>() { @Override - public GetConsoleHistoryResponse apply( - GetConsoleHistoryRequest request) { - return client.getConsoleHistory(request); + public GetBackupDestinationResponse apply( + GetBackupDestinationRequest request) { + return client.getBackupDestination(request); } }, - new java.util.function.Predicate() { + new java.util.function.Predicate() { @Override - public boolean test(GetConsoleHistoryResponse response) { + public boolean test(GetBackupDestinationResponse response) { return targetStatesSet.contains( - response.getConsoleHistory().getLifecycleState()); + response.getBackupDestination().getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.ConsoleHistory.LifecycleState + com.oracle.bmc.database.model.BackupDestination.LifecycleState .Deleted)), request); } @@ -10158,17 +10409,17 @@ public boolean test(GetConsoleHistoryResponse response) { * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetDataGuardAssociationRequest, GetDataGuardAssociationResponse> - forDataGuardAssociation( - GetDataGuardAssociationRequest request, - com.oracle.bmc.database.model.DataGuardAssociation.LifecycleState... + GetCloudAutonomousVmClusterRequest, GetCloudAutonomousVmClusterResponse> + forCloudAutonomousVmCluster( + GetCloudAutonomousVmClusterRequest request, + com.oracle.bmc.database.model.CloudAutonomousVmCluster.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 forDataGuardAssociation( + return forCloudAutonomousVmCluster( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -10182,16 +10433,17 @@ public boolean test(GetConsoleHistoryResponse response) { * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetDataGuardAssociationRequest, GetDataGuardAssociationResponse> - forDataGuardAssociation( - GetDataGuardAssociationRequest request, - com.oracle.bmc.database.model.DataGuardAssociation.LifecycleState targetState, + GetCloudAutonomousVmClusterRequest, GetCloudAutonomousVmClusterResponse> + forCloudAutonomousVmCluster( + GetCloudAutonomousVmClusterRequest request, + com.oracle.bmc.database.model.CloudAutonomousVmCluster.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 forDataGuardAssociation( + return forCloudAutonomousVmCluster( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -10208,33 +10460,33 @@ public boolean test(GetConsoleHistoryResponse response) { * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetDataGuardAssociationRequest, GetDataGuardAssociationResponse> - forDataGuardAssociation( - GetDataGuardAssociationRequest request, + GetCloudAutonomousVmClusterRequest, GetCloudAutonomousVmClusterResponse> + forCloudAutonomousVmCluster( + GetCloudAutonomousVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.DataGuardAssociation.LifecycleState... + com.oracle.bmc.database.model.CloudAutonomousVmCluster.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 forDataGuardAssociation( + return forCloudAutonomousVmCluster( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for DataGuardAssociation. + // Helper method to create a new Waiter for CloudAutonomousVmCluster. private com.oracle.bmc.waiter.Waiter< - GetDataGuardAssociationRequest, GetDataGuardAssociationResponse> - forDataGuardAssociation( + GetCloudAutonomousVmClusterRequest, GetCloudAutonomousVmClusterResponse> + forCloudAutonomousVmCluster( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetDataGuardAssociationRequest request, - final com.oracle.bmc.database.model.DataGuardAssociation.LifecycleState... + final GetCloudAutonomousVmClusterRequest request, + final com.oracle.bmc.database.model.CloudAutonomousVmCluster.LifecycleState... targetStates) { - final java.util.Set + final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -10242,23 +10494,24 @@ public boolean test(GetConsoleHistoryResponse response) { waiter.toCallable( () -> request, new java.util.function.Function< - GetDataGuardAssociationRequest, GetDataGuardAssociationResponse>() { + GetCloudAutonomousVmClusterRequest, + GetCloudAutonomousVmClusterResponse>() { @Override - public GetDataGuardAssociationResponse apply( - GetDataGuardAssociationRequest request) { - return client.getDataGuardAssociation(request); + public GetCloudAutonomousVmClusterResponse apply( + GetCloudAutonomousVmClusterRequest request) { + return client.getCloudAutonomousVmCluster(request); } }, - new java.util.function.Predicate() { + new java.util.function.Predicate() { @Override - public boolean test(GetDataGuardAssociationResponse response) { + public boolean test(GetCloudAutonomousVmClusterResponse response) { return targetStatesSet.contains( - response.getDataGuardAssociation().getLifecycleState()); + response.getCloudAutonomousVmCluster().getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.DataGuardAssociation.LifecycleState - .Terminated)), + com.oracle.bmc.database.model.CloudAutonomousVmCluster + .LifecycleState.Terminated)), request); } @@ -10270,15 +10523,18 @@ public boolean test(GetDataGuardAssociationResponse response) { * waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forDatabase( - GetDatabaseRequest request, - com.oracle.bmc.database.model.Database.LifecycleState... targetStates) { + public com.oracle.bmc.waiter.Waiter< + GetCloudExadataInfrastructureRequest, GetCloudExadataInfrastructureResponse> + forCloudExadataInfrastructure( + GetCloudExadataInfrastructureRequest request, + com.oracle.bmc.database.model.CloudExadataInfrastructure.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 forDatabase( + return forCloudExadataInfrastructure( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -10291,15 +10547,18 @@ public com.oracle.bmc.waiter.Waiter for * @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 forDatabase( - GetDatabaseRequest request, - com.oracle.bmc.database.model.Database.LifecycleState targetState, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + public com.oracle.bmc.waiter.Waiter< + GetCloudExadataInfrastructureRequest, GetCloudExadataInfrastructureResponse> + forCloudExadataInfrastructure( + GetCloudExadataInfrastructureRequest request, + com.oracle.bmc.database.model.CloudExadataInfrastructure.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 forDatabase( + return forCloudExadataInfrastructure( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -10315,49 +10574,60 @@ public com.oracle.bmc.waiter.Waiter for * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forDatabase( - GetDatabaseRequest request, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.Database.LifecycleState... targetStates) { + public com.oracle.bmc.waiter.Waiter< + GetCloudExadataInfrastructureRequest, GetCloudExadataInfrastructureResponse> + forCloudExadataInfrastructure( + GetCloudExadataInfrastructureRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.CloudExadataInfrastructure.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 forDatabase( + return forCloudExadataInfrastructure( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for Database. - private com.oracle.bmc.waiter.Waiter forDatabase( - com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetDatabaseRequest request, - final com.oracle.bmc.database.model.Database.LifecycleState... targetStates) { - final java.util.Set targetStatesSet = - new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + // Helper method to create a new Waiter for CloudExadataInfrastructure. + private com.oracle.bmc.waiter.Waiter< + GetCloudExadataInfrastructureRequest, GetCloudExadataInfrastructureResponse> + forCloudExadataInfrastructure( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetCloudExadataInfrastructureRequest request, + final com.oracle.bmc.database.model.CloudExadataInfrastructure.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() { + new java.util.function.Function< + GetCloudExadataInfrastructureRequest, + GetCloudExadataInfrastructureResponse>() { @Override - public GetDatabaseResponse apply(GetDatabaseRequest request) { - return client.getDatabase(request); + public GetCloudExadataInfrastructureResponse apply( + GetCloudExadataInfrastructureRequest request) { + return client.getCloudExadataInfrastructure(request); } }, - new java.util.function.Predicate() { + new java.util.function.Predicate() { @Override - public boolean test(GetDatabaseResponse response) { + public boolean test(GetCloudExadataInfrastructureResponse response) { return targetStatesSet.contains( - response.getDatabase().getLifecycleState()); + response.getCloudExadataInfrastructure() + .getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.Database.LifecycleState.Terminated)), + com.oracle.bmc.database.model.CloudExadataInfrastructure + .LifecycleState.Terminated)), request); } @@ -10369,18 +10639,16 @@ public boolean test(GetDatabaseResponse response) { * waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetDatabaseSoftwareImageRequest, GetDatabaseSoftwareImageResponse> - forDatabaseSoftwareImage( - GetDatabaseSoftwareImageRequest request, - com.oracle.bmc.database.model.DatabaseSoftwareImage.LifecycleState... - targetStates) { + public com.oracle.bmc.waiter.Waiter + forCloudVmCluster( + GetCloudVmClusterRequest request, + com.oracle.bmc.database.model.CloudVmCluster.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 forDatabaseSoftwareImage( + return forCloudVmCluster( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -10393,17 +10661,16 @@ public boolean test(GetDatabaseResponse response) { * @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< - GetDatabaseSoftwareImageRequest, GetDatabaseSoftwareImageResponse> - forDatabaseSoftwareImage( - GetDatabaseSoftwareImageRequest request, - com.oracle.bmc.database.model.DatabaseSoftwareImage.LifecycleState targetState, + public com.oracle.bmc.waiter.Waiter + forCloudVmCluster( + GetCloudVmClusterRequest request, + com.oracle.bmc.database.model.CloudVmCluster.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 forDatabaseSoftwareImage( + return forCloudVmCluster( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -10419,34 +10686,31 @@ public boolean test(GetDatabaseResponse response) { * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetDatabaseSoftwareImageRequest, GetDatabaseSoftwareImageResponse> - forDatabaseSoftwareImage( - GetDatabaseSoftwareImageRequest request, + public com.oracle.bmc.waiter.Waiter + forCloudVmCluster( + GetCloudVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.DatabaseSoftwareImage.LifecycleState... - targetStates) { + com.oracle.bmc.database.model.CloudVmCluster.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 forDatabaseSoftwareImage( + return forCloudVmCluster( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for DatabaseSoftwareImage. - private com.oracle.bmc.waiter.Waiter< - GetDatabaseSoftwareImageRequest, GetDatabaseSoftwareImageResponse> - forDatabaseSoftwareImage( + // Helper method to create a new Waiter for CloudVmCluster. + private com.oracle.bmc.waiter.Waiter + forCloudVmCluster( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetDatabaseSoftwareImageRequest request, - final com.oracle.bmc.database.model.DatabaseSoftwareImage.LifecycleState... + final GetCloudVmClusterRequest request, + final com.oracle.bmc.database.model.CloudVmCluster.LifecycleState... targetStates) { - final java.util.Set + final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -10454,23 +10718,22 @@ public boolean test(GetDatabaseResponse response) { waiter.toCallable( () -> request, new java.util.function.Function< - GetDatabaseSoftwareImageRequest, - GetDatabaseSoftwareImageResponse>() { + GetCloudVmClusterRequest, GetCloudVmClusterResponse>() { @Override - public GetDatabaseSoftwareImageResponse apply( - GetDatabaseSoftwareImageRequest request) { - return client.getDatabaseSoftwareImage(request); + public GetCloudVmClusterResponse apply( + GetCloudVmClusterRequest request) { + return client.getCloudVmCluster(request); } }, - new java.util.function.Predicate() { + new java.util.function.Predicate() { @Override - public boolean test(GetDatabaseSoftwareImageResponse response) { + public boolean test(GetCloudVmClusterResponse response) { return targetStatesSet.contains( - response.getDatabaseSoftwareImage().getLifecycleState()); + response.getCloudVmCluster().getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.DatabaseSoftwareImage.LifecycleState + com.oracle.bmc.database.model.CloudVmCluster.LifecycleState .Terminated)), request); } @@ -10483,18 +10746,17 @@ public boolean test(GetDatabaseSoftwareImageResponse response) { * waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetDatabaseUpgradeHistoryEntryRequest, GetDatabaseUpgradeHistoryEntryResponse> - forDatabaseUpgradeHistoryEntry( - GetDatabaseUpgradeHistoryEntryRequest request, - com.oracle.bmc.database.model.DatabaseUpgradeHistoryEntry.LifecycleState... + public com.oracle.bmc.waiter.Waiter + forConsoleConnection( + GetConsoleConnectionRequest request, + com.oracle.bmc.database.model.ConsoleConnection.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 forDatabaseUpgradeHistoryEntry( + return forConsoleConnection( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -10507,18 +10769,16 @@ public boolean test(GetDatabaseSoftwareImageResponse response) { * @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< - GetDatabaseUpgradeHistoryEntryRequest, GetDatabaseUpgradeHistoryEntryResponse> - forDatabaseUpgradeHistoryEntry( - GetDatabaseUpgradeHistoryEntryRequest request, - com.oracle.bmc.database.model.DatabaseUpgradeHistoryEntry.LifecycleState - targetState, + public com.oracle.bmc.waiter.Waiter + forConsoleConnection( + GetConsoleConnectionRequest request, + com.oracle.bmc.database.model.ConsoleConnection.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 forDatabaseUpgradeHistoryEntry( + return forConsoleConnection( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -10534,36 +10794,32 @@ public boolean test(GetDatabaseSoftwareImageResponse response) { * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetDatabaseUpgradeHistoryEntryRequest, GetDatabaseUpgradeHistoryEntryResponse> - forDatabaseUpgradeHistoryEntry( - GetDatabaseUpgradeHistoryEntryRequest request, + public com.oracle.bmc.waiter.Waiter + forConsoleConnection( + GetConsoleConnectionRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.DatabaseUpgradeHistoryEntry.LifecycleState... + com.oracle.bmc.database.model.ConsoleConnection.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 forDatabaseUpgradeHistoryEntry( + return forConsoleConnection( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for DatabaseUpgradeHistoryEntry. - private com.oracle.bmc.waiter.Waiter< - GetDatabaseUpgradeHistoryEntryRequest, GetDatabaseUpgradeHistoryEntryResponse> - forDatabaseUpgradeHistoryEntry( + // Helper method to create a new Waiter for ConsoleConnection. + private com.oracle.bmc.waiter.Waiter + forConsoleConnection( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetDatabaseUpgradeHistoryEntryRequest request, - final com.oracle.bmc.database.model.DatabaseUpgradeHistoryEntry.LifecycleState - ... + final GetConsoleConnectionRequest request, + final com.oracle.bmc.database.model.ConsoleConnection.LifecycleState... targetStates) { - final java.util.Set< - com.oracle.bmc.database.model.DatabaseUpgradeHistoryEntry.LifecycleState> + final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -10571,23 +10827,23 @@ public boolean test(GetDatabaseSoftwareImageResponse response) { waiter.toCallable( () -> request, new java.util.function.Function< - GetDatabaseUpgradeHistoryEntryRequest, - GetDatabaseUpgradeHistoryEntryResponse>() { + GetConsoleConnectionRequest, GetConsoleConnectionResponse>() { @Override - public GetDatabaseUpgradeHistoryEntryResponse apply( - GetDatabaseUpgradeHistoryEntryRequest request) { - return client.getDatabaseUpgradeHistoryEntry(request); + public GetConsoleConnectionResponse apply( + GetConsoleConnectionRequest request) { + return client.getConsoleConnection(request); } }, - new java.util.function.Predicate() { + new java.util.function.Predicate() { @Override - public boolean test(GetDatabaseUpgradeHistoryEntryResponse response) { + public boolean test(GetConsoleConnectionResponse response) { return targetStatesSet.contains( - response.getDatabaseUpgradeHistoryEntry() - .getLifecycleState()); + response.getConsoleConnection().getLifecycleState()); } }, - false), + targetStatesSet.contains( + com.oracle.bmc.database.model.ConsoleConnection.LifecycleState + .Deleted)), request); } @@ -10599,15 +10855,16 @@ public boolean test(GetDatabaseUpgradeHistoryEntryResponse response) { * waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forDbHome( - GetDbHomeRequest request, - com.oracle.bmc.database.model.DbHome.LifecycleState... targetStates) { + public com.oracle.bmc.waiter.Waiter + forConsoleHistory( + GetConsoleHistoryRequest request, + com.oracle.bmc.database.model.ConsoleHistory.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 forDbHome( + return forConsoleHistory( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -10620,15 +10877,16 @@ public com.oracle.bmc.waiter.Waiter forDbHo * @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 forDbHome( - GetDbHomeRequest request, - com.oracle.bmc.database.model.DbHome.LifecycleState targetState, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + public com.oracle.bmc.waiter.Waiter + forConsoleHistory( + GetConsoleHistoryRequest request, + com.oracle.bmc.database.model.ConsoleHistory.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 forDbHome( + return forConsoleHistory( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -10644,49 +10902,55 @@ public com.oracle.bmc.waiter.Waiter forDbHo * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forDbHome( - GetDbHomeRequest request, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.DbHome.LifecycleState... targetStates) { + public com.oracle.bmc.waiter.Waiter + forConsoleHistory( + GetConsoleHistoryRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.ConsoleHistory.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 forDbHome( + return forConsoleHistory( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for DbHome. - private com.oracle.bmc.waiter.Waiter forDbHome( - com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetDbHomeRequest request, - final com.oracle.bmc.database.model.DbHome.LifecycleState... targetStates) { - final java.util.Set targetStatesSet = - new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + // Helper method to create a new Waiter for ConsoleHistory. + private com.oracle.bmc.waiter.Waiter + forConsoleHistory( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetConsoleHistoryRequest request, + final com.oracle.bmc.database.model.ConsoleHistory.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() { + new java.util.function.Function< + GetConsoleHistoryRequest, GetConsoleHistoryResponse>() { @Override - public GetDbHomeResponse apply(GetDbHomeRequest request) { - return client.getDbHome(request); - } - }, - new java.util.function.Predicate() { + public GetConsoleHistoryResponse apply( + GetConsoleHistoryRequest request) { + return client.getConsoleHistory(request); + } + }, + new java.util.function.Predicate() { @Override - public boolean test(GetDbHomeResponse response) { + public boolean test(GetConsoleHistoryResponse response) { return targetStatesSet.contains( - response.getDbHome().getLifecycleState()); + response.getConsoleHistory().getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.DbHome.LifecycleState.Terminated)), + com.oracle.bmc.database.model.ConsoleHistory.LifecycleState + .Deleted)), request); } @@ -10698,15 +10962,18 @@ public boolean test(GetDbHomeResponse response) { * waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forDbNode( - GetDbNodeRequest request, - com.oracle.bmc.database.model.DbNode.LifecycleState... targetStates) { + public com.oracle.bmc.waiter.Waiter< + GetDataGuardAssociationRequest, GetDataGuardAssociationResponse> + forDataGuardAssociation( + GetDataGuardAssociationRequest request, + com.oracle.bmc.database.model.DataGuardAssociation.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 forDbNode( + return forDataGuardAssociation( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -10719,15 +10986,17 @@ public com.oracle.bmc.waiter.Waiter forDbNo * @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 forDbNode( - GetDbNodeRequest request, - com.oracle.bmc.database.model.DbNode.LifecycleState targetState, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + public com.oracle.bmc.waiter.Waiter< + GetDataGuardAssociationRequest, GetDataGuardAssociationResponse> + forDataGuardAssociation( + GetDataGuardAssociationRequest request, + com.oracle.bmc.database.model.DataGuardAssociation.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 forDbNode( + return forDataGuardAssociation( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -10743,49 +11012,58 @@ public com.oracle.bmc.waiter.Waiter forDbNo * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forDbNode( - GetDbNodeRequest request, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.DbNode.LifecycleState... targetStates) { + public com.oracle.bmc.waiter.Waiter< + GetDataGuardAssociationRequest, GetDataGuardAssociationResponse> + forDataGuardAssociation( + GetDataGuardAssociationRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.DataGuardAssociation.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 forDbNode( + return forDataGuardAssociation( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for DbNode. - private com.oracle.bmc.waiter.Waiter forDbNode( - com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetDbNodeRequest request, - final com.oracle.bmc.database.model.DbNode.LifecycleState... targetStates) { - final java.util.Set targetStatesSet = - new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + // Helper method to create a new Waiter for DataGuardAssociation. + private com.oracle.bmc.waiter.Waiter< + GetDataGuardAssociationRequest, GetDataGuardAssociationResponse> + forDataGuardAssociation( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetDataGuardAssociationRequest request, + final com.oracle.bmc.database.model.DataGuardAssociation.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() { + new java.util.function.Function< + GetDataGuardAssociationRequest, GetDataGuardAssociationResponse>() { @Override - public GetDbNodeResponse apply(GetDbNodeRequest request) { - return client.getDbNode(request); + public GetDataGuardAssociationResponse apply( + GetDataGuardAssociationRequest request) { + return client.getDataGuardAssociation(request); } }, - new java.util.function.Predicate() { + new java.util.function.Predicate() { @Override - public boolean test(GetDbNodeResponse response) { + public boolean test(GetDataGuardAssociationResponse response) { return targetStatesSet.contains( - response.getDbNode().getLifecycleState()); + response.getDataGuardAssociation().getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.DbNode.LifecycleState.Terminated)), + com.oracle.bmc.database.model.DataGuardAssociation.LifecycleState + .Terminated)), request); } @@ -10797,15 +11075,15 @@ public boolean test(GetDbNodeResponse response) { * waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forDbServer( - GetDbServerRequest request, - com.oracle.bmc.database.model.DbServer.LifecycleState... targetStates) { + public com.oracle.bmc.waiter.Waiter forDatabase( + GetDatabaseRequest request, + com.oracle.bmc.database.model.Database.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 forDbServer( + return forDatabase( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -10818,15 +11096,15 @@ public com.oracle.bmc.waiter.Waiter for * @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 forDbServer( - GetDbServerRequest request, - com.oracle.bmc.database.model.DbServer.LifecycleState targetState, + public com.oracle.bmc.waiter.Waiter forDatabase( + GetDatabaseRequest request, + com.oracle.bmc.database.model.Database.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 forDbServer( + return forDatabase( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -10842,49 +11120,49 @@ public com.oracle.bmc.waiter.Waiter for * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forDbServer( - GetDbServerRequest request, + public com.oracle.bmc.waiter.Waiter forDatabase( + GetDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.DbServer.LifecycleState... targetStates) { + com.oracle.bmc.database.model.Database.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 forDbServer( + return forDatabase( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for DbServer. - private com.oracle.bmc.waiter.Waiter forDbServer( + // Helper method to create a new Waiter for Database. + private com.oracle.bmc.waiter.Waiter forDatabase( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetDbServerRequest request, - final com.oracle.bmc.database.model.DbServer.LifecycleState... targetStates) { - final java.util.Set targetStatesSet = + final GetDatabaseRequest request, + final com.oracle.bmc.database.model.Database.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() { + new java.util.function.Function() { @Override - public GetDbServerResponse apply(GetDbServerRequest request) { - return client.getDbServer(request); + public GetDatabaseResponse apply(GetDatabaseRequest request) { + return client.getDatabase(request); } }, - new java.util.function.Predicate() { + new java.util.function.Predicate() { @Override - public boolean test(GetDbServerResponse response) { + public boolean test(GetDatabaseResponse response) { return targetStatesSet.contains( - response.getDbServer().getLifecycleState()); + response.getDatabase().getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.DbServer.LifecycleState.Deleted)), + com.oracle.bmc.database.model.Database.LifecycleState.Terminated)), request); } @@ -10896,15 +11174,18 @@ public boolean test(GetDbServerResponse response) { * waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forDbSystem( - GetDbSystemRequest request, - com.oracle.bmc.database.model.DbSystem.LifecycleState... targetStates) { + public com.oracle.bmc.waiter.Waiter< + GetDatabaseSoftwareImageRequest, GetDatabaseSoftwareImageResponse> + forDatabaseSoftwareImage( + GetDatabaseSoftwareImageRequest request, + com.oracle.bmc.database.model.DatabaseSoftwareImage.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 forDbSystem( + return forDatabaseSoftwareImage( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -10917,15 +11198,17 @@ public com.oracle.bmc.waiter.Waiter for * @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 forDbSystem( - GetDbSystemRequest request, - com.oracle.bmc.database.model.DbSystem.LifecycleState targetState, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + public com.oracle.bmc.waiter.Waiter< + GetDatabaseSoftwareImageRequest, GetDatabaseSoftwareImageResponse> + forDatabaseSoftwareImage( + GetDatabaseSoftwareImageRequest request, + com.oracle.bmc.database.model.DatabaseSoftwareImage.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 forDbSystem( + return forDatabaseSoftwareImage( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -10941,49 +11224,59 @@ public com.oracle.bmc.waiter.Waiter for * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forDbSystem( - GetDbSystemRequest request, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.DbSystem.LifecycleState... targetStates) { + public com.oracle.bmc.waiter.Waiter< + GetDatabaseSoftwareImageRequest, GetDatabaseSoftwareImageResponse> + forDatabaseSoftwareImage( + GetDatabaseSoftwareImageRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.DatabaseSoftwareImage.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 forDbSystem( + return forDatabaseSoftwareImage( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for DbSystem. - private com.oracle.bmc.waiter.Waiter forDbSystem( - com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetDbSystemRequest request, - final com.oracle.bmc.database.model.DbSystem.LifecycleState... targetStates) { - final java.util.Set targetStatesSet = - new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + // Helper method to create a new Waiter for DatabaseSoftwareImage. + private com.oracle.bmc.waiter.Waiter< + GetDatabaseSoftwareImageRequest, GetDatabaseSoftwareImageResponse> + forDatabaseSoftwareImage( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetDatabaseSoftwareImageRequest request, + final com.oracle.bmc.database.model.DatabaseSoftwareImage.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() { + new java.util.function.Function< + GetDatabaseSoftwareImageRequest, + GetDatabaseSoftwareImageResponse>() { @Override - public GetDbSystemResponse apply(GetDbSystemRequest request) { - return client.getDbSystem(request); + public GetDatabaseSoftwareImageResponse apply( + GetDatabaseSoftwareImageRequest request) { + return client.getDatabaseSoftwareImage(request); } }, - new java.util.function.Predicate() { + new java.util.function.Predicate() { @Override - public boolean test(GetDbSystemResponse response) { + public boolean test(GetDatabaseSoftwareImageResponse response) { return targetStatesSet.contains( - response.getDbSystem().getLifecycleState()); + response.getDatabaseSoftwareImage().getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.DbSystem.LifecycleState.Terminated)), + com.oracle.bmc.database.model.DatabaseSoftwareImage.LifecycleState + .Terminated)), request); } @@ -10996,17 +11289,17 @@ public boolean test(GetDbSystemResponse response) { * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetDbSystemUpgradeHistoryEntryRequest, GetDbSystemUpgradeHistoryEntryResponse> - forDbSystemUpgradeHistoryEntry( - GetDbSystemUpgradeHistoryEntryRequest request, - com.oracle.bmc.database.model.DbSystemUpgradeHistoryEntry.LifecycleState... + GetDatabaseUpgradeHistoryEntryRequest, GetDatabaseUpgradeHistoryEntryResponse> + forDatabaseUpgradeHistoryEntry( + GetDatabaseUpgradeHistoryEntryRequest request, + com.oracle.bmc.database.model.DatabaseUpgradeHistoryEntry.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 forDbSystemUpgradeHistoryEntry( + return forDatabaseUpgradeHistoryEntry( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -11020,17 +11313,17 @@ public boolean test(GetDbSystemResponse response) { * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetDbSystemUpgradeHistoryEntryRequest, GetDbSystemUpgradeHistoryEntryResponse> - forDbSystemUpgradeHistoryEntry( - GetDbSystemUpgradeHistoryEntryRequest request, - com.oracle.bmc.database.model.DbSystemUpgradeHistoryEntry.LifecycleState + GetDatabaseUpgradeHistoryEntryRequest, GetDatabaseUpgradeHistoryEntryResponse> + forDatabaseUpgradeHistoryEntry( + GetDatabaseUpgradeHistoryEntryRequest request, + com.oracle.bmc.database.model.DatabaseUpgradeHistoryEntry.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 forDbSystemUpgradeHistoryEntry( + return forDatabaseUpgradeHistoryEntry( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -11047,35 +11340,35 @@ public boolean test(GetDbSystemResponse response) { * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetDbSystemUpgradeHistoryEntryRequest, GetDbSystemUpgradeHistoryEntryResponse> - forDbSystemUpgradeHistoryEntry( - GetDbSystemUpgradeHistoryEntryRequest request, + GetDatabaseUpgradeHistoryEntryRequest, GetDatabaseUpgradeHistoryEntryResponse> + forDatabaseUpgradeHistoryEntry( + GetDatabaseUpgradeHistoryEntryRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.DbSystemUpgradeHistoryEntry.LifecycleState... + com.oracle.bmc.database.model.DatabaseUpgradeHistoryEntry.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 forDbSystemUpgradeHistoryEntry( + return forDatabaseUpgradeHistoryEntry( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for DbSystemUpgradeHistoryEntry. + // Helper method to create a new Waiter for DatabaseUpgradeHistoryEntry. private com.oracle.bmc.waiter.Waiter< - GetDbSystemUpgradeHistoryEntryRequest, GetDbSystemUpgradeHistoryEntryResponse> - forDbSystemUpgradeHistoryEntry( + GetDatabaseUpgradeHistoryEntryRequest, GetDatabaseUpgradeHistoryEntryResponse> + forDatabaseUpgradeHistoryEntry( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetDbSystemUpgradeHistoryEntryRequest request, - final com.oracle.bmc.database.model.DbSystemUpgradeHistoryEntry.LifecycleState + final GetDatabaseUpgradeHistoryEntryRequest request, + final com.oracle.bmc.database.model.DatabaseUpgradeHistoryEntry.LifecycleState ... targetStates) { final java.util.Set< - com.oracle.bmc.database.model.DbSystemUpgradeHistoryEntry.LifecycleState> + com.oracle.bmc.database.model.DatabaseUpgradeHistoryEntry.LifecycleState> targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -11083,19 +11376,19 @@ public boolean test(GetDbSystemResponse response) { waiter.toCallable( () -> request, new java.util.function.Function< - GetDbSystemUpgradeHistoryEntryRequest, - GetDbSystemUpgradeHistoryEntryResponse>() { - @Override - public GetDbSystemUpgradeHistoryEntryResponse apply( - GetDbSystemUpgradeHistoryEntryRequest request) { - return client.getDbSystemUpgradeHistoryEntry(request); + GetDatabaseUpgradeHistoryEntryRequest, + GetDatabaseUpgradeHistoryEntryResponse>() { + @Override + public GetDatabaseUpgradeHistoryEntryResponse apply( + GetDatabaseUpgradeHistoryEntryRequest request) { + return client.getDatabaseUpgradeHistoryEntry(request); } }, - new java.util.function.Predicate() { + new java.util.function.Predicate() { @Override - public boolean test(GetDbSystemUpgradeHistoryEntryResponse response) { + public boolean test(GetDatabaseUpgradeHistoryEntryResponse response) { return targetStatesSet.contains( - response.getDbSystemUpgradeHistoryEntry() + response.getDatabaseUpgradeHistoryEntry() .getLifecycleState()); } }, @@ -11111,18 +11404,15 @@ public boolean test(GetDbSystemUpgradeHistoryEntryResponse response) { * waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetExadataInfrastructureRequest, GetExadataInfrastructureResponse> - forExadataInfrastructure( - GetExadataInfrastructureRequest request, - com.oracle.bmc.database.model.ExadataInfrastructure.LifecycleState... - targetStates) { + public com.oracle.bmc.waiter.Waiter forDbHome( + GetDbHomeRequest request, + com.oracle.bmc.database.model.DbHome.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 forExadataInfrastructure( + return forDbHome( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -11135,17 +11425,15 @@ public boolean test(GetDbSystemUpgradeHistoryEntryResponse response) { * @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< - GetExadataInfrastructureRequest, GetExadataInfrastructureResponse> - forExadataInfrastructure( - GetExadataInfrastructureRequest request, - com.oracle.bmc.database.model.ExadataInfrastructure.LifecycleState targetState, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + public com.oracle.bmc.waiter.Waiter forDbHome( + GetDbHomeRequest request, + com.oracle.bmc.database.model.DbHome.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 forExadataInfrastructure( + return forDbHome( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -11161,59 +11449,49 @@ public boolean test(GetDbSystemUpgradeHistoryEntryResponse response) { * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetExadataInfrastructureRequest, GetExadataInfrastructureResponse> - forExadataInfrastructure( - GetExadataInfrastructureRequest request, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.ExadataInfrastructure.LifecycleState... - targetStates) { + public com.oracle.bmc.waiter.Waiter forDbHome( + GetDbHomeRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.DbHome.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 forExadataInfrastructure( + return forDbHome( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for ExadataInfrastructure. - private com.oracle.bmc.waiter.Waiter< - GetExadataInfrastructureRequest, GetExadataInfrastructureResponse> - forExadataInfrastructure( - com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetExadataInfrastructureRequest request, - final com.oracle.bmc.database.model.ExadataInfrastructure.LifecycleState... - targetStates) { - final java.util.Set - targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + // Helper method to create a new Waiter for DbHome. + private com.oracle.bmc.waiter.Waiter forDbHome( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetDbHomeRequest request, + final com.oracle.bmc.database.model.DbHome.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< - GetExadataInfrastructureRequest, - GetExadataInfrastructureResponse>() { + new java.util.function.Function() { @Override - public GetExadataInfrastructureResponse apply( - GetExadataInfrastructureRequest request) { - return client.getExadataInfrastructure(request); + public GetDbHomeResponse apply(GetDbHomeRequest request) { + return client.getDbHome(request); } }, - new java.util.function.Predicate() { + new java.util.function.Predicate() { @Override - public boolean test(GetExadataInfrastructureResponse response) { + public boolean test(GetDbHomeResponse response) { return targetStatesSet.contains( - response.getExadataInfrastructure().getLifecycleState()); + response.getDbHome().getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.ExadataInfrastructure.LifecycleState - .Deleted)), + com.oracle.bmc.database.model.DbHome.LifecycleState.Terminated)), request); } @@ -11225,17 +11503,15 @@ public boolean test(GetExadataInfrastructureResponse response) { * waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forExadataIormConfig( - GetExadataIormConfigRequest request, - com.oracle.bmc.database.model.ExadataIormConfig.LifecycleState... - targetStates) { + public com.oracle.bmc.waiter.Waiter forDbNode( + GetDbNodeRequest request, + com.oracle.bmc.database.model.DbNode.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 forExadataIormConfig( + return forDbNode( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -11248,16 +11524,15 @@ public boolean test(GetExadataInfrastructureResponse response) { * @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 - forExadataIormConfig( - GetExadataIormConfigRequest request, - com.oracle.bmc.database.model.ExadataIormConfig.LifecycleState targetState, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + public com.oracle.bmc.waiter.Waiter forDbNode( + GetDbNodeRequest request, + com.oracle.bmc.database.model.DbNode.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 forExadataIormConfig( + return forDbNode( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -11273,54 +11548,49 @@ public boolean test(GetExadataInfrastructureResponse response) { * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forExadataIormConfig( - GetExadataIormConfigRequest request, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.ExadataIormConfig.LifecycleState... - targetStates) { + public com.oracle.bmc.waiter.Waiter forDbNode( + GetDbNodeRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.DbNode.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 forExadataIormConfig( + return forDbNode( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for ExadataIormConfig. - private com.oracle.bmc.waiter.Waiter - forExadataIormConfig( - com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetExadataIormConfigRequest request, - final com.oracle.bmc.database.model.ExadataIormConfig.LifecycleState... - targetStates) { - final java.util.Set - targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + // Helper method to create a new Waiter for DbNode. + private com.oracle.bmc.waiter.Waiter forDbNode( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetDbNodeRequest request, + final com.oracle.bmc.database.model.DbNode.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< - GetExadataIormConfigRequest, GetExadataIormConfigResponse>() { + new java.util.function.Function() { @Override - public GetExadataIormConfigResponse apply( - GetExadataIormConfigRequest request) { - return client.getExadataIormConfig(request); + public GetDbNodeResponse apply(GetDbNodeRequest request) { + return client.getDbNode(request); } }, - new java.util.function.Predicate() { + new java.util.function.Predicate() { @Override - public boolean test(GetExadataIormConfigResponse response) { + public boolean test(GetDbNodeResponse response) { return targetStatesSet.contains( - response.getExadataIormConfig().getLifecycleState()); + response.getDbNode().getLifecycleState()); } }, - false), + targetStatesSet.contains( + com.oracle.bmc.database.model.DbNode.LifecycleState.Terminated)), request); } @@ -11332,16 +11602,15 @@ public boolean test(GetExadataIormConfigResponse response) { * waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forExadbVmCluster( - GetExadbVmClusterRequest request, - com.oracle.bmc.database.model.ExadbVmCluster.LifecycleState... targetStates) { + public com.oracle.bmc.waiter.Waiter forDbServer( + GetDbServerRequest request, + com.oracle.bmc.database.model.DbServer.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 forExadbVmCluster( + return forDbServer( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -11354,16 +11623,15 @@ public boolean test(GetExadataIormConfigResponse response) { * @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 - forExadbVmCluster( - GetExadbVmClusterRequest request, - com.oracle.bmc.database.model.ExadbVmCluster.LifecycleState targetState, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + public com.oracle.bmc.waiter.Waiter forDbServer( + GetDbServerRequest request, + com.oracle.bmc.database.model.DbServer.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 forExadbVmCluster( + return forDbServer( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -11379,55 +11647,49 @@ public boolean test(GetExadataIormConfigResponse response) { * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forExadbVmCluster( - GetExadbVmClusterRequest request, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.ExadbVmCluster.LifecycleState... targetStates) { + public com.oracle.bmc.waiter.Waiter forDbServer( + GetDbServerRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.DbServer.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 forExadbVmCluster( + return forDbServer( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for ExadbVmCluster. - private com.oracle.bmc.waiter.Waiter - forExadbVmCluster( - com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetExadbVmClusterRequest request, - final com.oracle.bmc.database.model.ExadbVmCluster.LifecycleState... - targetStates) { - final java.util.Set - targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + // Helper method to create a new Waiter for DbServer. + private com.oracle.bmc.waiter.Waiter forDbServer( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetDbServerRequest request, + final com.oracle.bmc.database.model.DbServer.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< - GetExadbVmClusterRequest, GetExadbVmClusterResponse>() { + new java.util.function.Function() { @Override - public GetExadbVmClusterResponse apply( - GetExadbVmClusterRequest request) { - return client.getExadbVmCluster(request); + public GetDbServerResponse apply(GetDbServerRequest request) { + return client.getDbServer(request); } }, - new java.util.function.Predicate() { + new java.util.function.Predicate() { @Override - public boolean test(GetExadbVmClusterResponse response) { + public boolean test(GetDbServerResponse response) { return targetStatesSet.contains( - response.getExadbVmCluster().getLifecycleState()); + response.getDbServer().getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.ExadbVmCluster.LifecycleState - .Terminated)), + com.oracle.bmc.database.model.DbServer.LifecycleState.Deleted)), request); } @@ -11439,18 +11701,15 @@ public boolean test(GetExadbVmClusterResponse response) { * waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetExadbVmClusterUpdateRequest, GetExadbVmClusterUpdateResponse> - forExadbVmClusterUpdate( - GetExadbVmClusterUpdateRequest request, - com.oracle.bmc.database.model.ExadbVmClusterUpdate.LifecycleState... - targetStates) { + public com.oracle.bmc.waiter.Waiter forDbSystem( + GetDbSystemRequest request, + com.oracle.bmc.database.model.DbSystem.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 forExadbVmClusterUpdate( + return forDbSystem( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -11463,17 +11722,15 @@ public boolean test(GetExadbVmClusterResponse response) { * @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< - GetExadbVmClusterUpdateRequest, GetExadbVmClusterUpdateResponse> - forExadbVmClusterUpdate( - GetExadbVmClusterUpdateRequest request, - com.oracle.bmc.database.model.ExadbVmClusterUpdate.LifecycleState targetState, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + public com.oracle.bmc.waiter.Waiter forDbSystem( + GetDbSystemRequest request, + com.oracle.bmc.database.model.DbSystem.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 forExadbVmClusterUpdate( + return forDbSystem( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -11489,56 +11746,49 @@ public boolean test(GetExadbVmClusterResponse response) { * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetExadbVmClusterUpdateRequest, GetExadbVmClusterUpdateResponse> - forExadbVmClusterUpdate( - GetExadbVmClusterUpdateRequest request, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.ExadbVmClusterUpdate.LifecycleState... - targetStates) { + public com.oracle.bmc.waiter.Waiter forDbSystem( + GetDbSystemRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.DbSystem.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 forExadbVmClusterUpdate( + return forDbSystem( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for ExadbVmClusterUpdate. - private com.oracle.bmc.waiter.Waiter< - GetExadbVmClusterUpdateRequest, GetExadbVmClusterUpdateResponse> - forExadbVmClusterUpdate( - com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetExadbVmClusterUpdateRequest request, - final com.oracle.bmc.database.model.ExadbVmClusterUpdate.LifecycleState... - targetStates) { - final java.util.Set - targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + // Helper method to create a new Waiter for DbSystem. + private com.oracle.bmc.waiter.Waiter forDbSystem( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetDbSystemRequest request, + final com.oracle.bmc.database.model.DbSystem.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< - GetExadbVmClusterUpdateRequest, GetExadbVmClusterUpdateResponse>() { + new java.util.function.Function() { @Override - public GetExadbVmClusterUpdateResponse apply( - GetExadbVmClusterUpdateRequest request) { - return client.getExadbVmClusterUpdate(request); + public GetDbSystemResponse apply(GetDbSystemRequest request) { + return client.getDbSystem(request); } }, - new java.util.function.Predicate() { + new java.util.function.Predicate() { @Override - public boolean test(GetExadbVmClusterUpdateResponse response) { + public boolean test(GetDbSystemResponse response) { return targetStatesSet.contains( - response.getExadbVmClusterUpdate().getLifecycleState()); + response.getDbSystem().getLifecycleState()); } }, - false), + targetStatesSet.contains( + com.oracle.bmc.database.model.DbSystem.LifecycleState.Terminated)), request); } @@ -11551,18 +11801,17 @@ public boolean test(GetExadbVmClusterUpdateResponse response) { * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetExadbVmClusterUpdateHistoryEntryRequest, - GetExadbVmClusterUpdateHistoryEntryResponse> - forExadbVmClusterUpdateHistoryEntry( - GetExadbVmClusterUpdateHistoryEntryRequest request, - com.oracle.bmc.database.model.ExadbVmClusterUpdateHistoryEntry.LifecycleState... + GetDbSystemUpgradeHistoryEntryRequest, GetDbSystemUpgradeHistoryEntryResponse> + forDbSystemUpgradeHistoryEntry( + GetDbSystemUpgradeHistoryEntryRequest request, + com.oracle.bmc.database.model.DbSystemUpgradeHistoryEntry.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 forExadbVmClusterUpdateHistoryEntry( + return forDbSystemUpgradeHistoryEntry( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -11576,18 +11825,17 @@ public boolean test(GetExadbVmClusterUpdateResponse response) { * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetExadbVmClusterUpdateHistoryEntryRequest, - GetExadbVmClusterUpdateHistoryEntryResponse> - forExadbVmClusterUpdateHistoryEntry( - GetExadbVmClusterUpdateHistoryEntryRequest request, - com.oracle.bmc.database.model.ExadbVmClusterUpdateHistoryEntry.LifecycleState + GetDbSystemUpgradeHistoryEntryRequest, GetDbSystemUpgradeHistoryEntryResponse> + forDbSystemUpgradeHistoryEntry( + GetDbSystemUpgradeHistoryEntryRequest request, + com.oracle.bmc.database.model.DbSystemUpgradeHistoryEntry.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 forExadbVmClusterUpdateHistoryEntry( + return forDbSystemUpgradeHistoryEntry( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -11604,39 +11852,35 @@ public boolean test(GetExadbVmClusterUpdateResponse response) { * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetExadbVmClusterUpdateHistoryEntryRequest, - GetExadbVmClusterUpdateHistoryEntryResponse> - forExadbVmClusterUpdateHistoryEntry( - GetExadbVmClusterUpdateHistoryEntryRequest request, + GetDbSystemUpgradeHistoryEntryRequest, GetDbSystemUpgradeHistoryEntryResponse> + forDbSystemUpgradeHistoryEntry( + GetDbSystemUpgradeHistoryEntryRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.ExadbVmClusterUpdateHistoryEntry.LifecycleState... + com.oracle.bmc.database.model.DbSystemUpgradeHistoryEntry.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 forExadbVmClusterUpdateHistoryEntry( + return forDbSystemUpgradeHistoryEntry( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for ExadbVmClusterUpdateHistoryEntry. + // Helper method to create a new Waiter for DbSystemUpgradeHistoryEntry. private com.oracle.bmc.waiter.Waiter< - GetExadbVmClusterUpdateHistoryEntryRequest, - GetExadbVmClusterUpdateHistoryEntryResponse> - forExadbVmClusterUpdateHistoryEntry( + GetDbSystemUpgradeHistoryEntryRequest, GetDbSystemUpgradeHistoryEntryResponse> + forDbSystemUpgradeHistoryEntry( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetExadbVmClusterUpdateHistoryEntryRequest request, - final com.oracle.bmc.database.model.ExadbVmClusterUpdateHistoryEntry - .LifecycleState + final GetDbSystemUpgradeHistoryEntryRequest request, + final com.oracle.bmc.database.model.DbSystemUpgradeHistoryEntry.LifecycleState ... targetStates) { final java.util.Set< - com.oracle.bmc.database.model.ExadbVmClusterUpdateHistoryEntry - .LifecycleState> + com.oracle.bmc.database.model.DbSystemUpgradeHistoryEntry.LifecycleState> targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -11644,21 +11888,19 @@ public boolean test(GetExadbVmClusterUpdateResponse response) { waiter.toCallable( () -> request, new java.util.function.Function< - GetExadbVmClusterUpdateHistoryEntryRequest, - GetExadbVmClusterUpdateHistoryEntryResponse>() { + GetDbSystemUpgradeHistoryEntryRequest, + GetDbSystemUpgradeHistoryEntryResponse>() { @Override - public GetExadbVmClusterUpdateHistoryEntryResponse apply( - GetExadbVmClusterUpdateHistoryEntryRequest request) { - return client.getExadbVmClusterUpdateHistoryEntry(request); + public GetDbSystemUpgradeHistoryEntryResponse apply( + GetDbSystemUpgradeHistoryEntryRequest request) { + return client.getDbSystemUpgradeHistoryEntry(request); } }, - new java.util.function.Predicate< - GetExadbVmClusterUpdateHistoryEntryResponse>() { + new java.util.function.Predicate() { @Override - public boolean test( - GetExadbVmClusterUpdateHistoryEntryResponse response) { + public boolean test(GetDbSystemUpgradeHistoryEntryResponse response) { return targetStatesSet.contains( - response.getExadbVmClusterUpdateHistoryEntry() + response.getDbSystemUpgradeHistoryEntry() .getLifecycleState()); } }, @@ -11675,17 +11917,17 @@ public boolean test( * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetExascaleDbStorageVaultRequest, GetExascaleDbStorageVaultResponse> - forExascaleDbStorageVault( - GetExascaleDbStorageVaultRequest request, - com.oracle.bmc.database.model.ExascaleDbStorageVault.LifecycleState... + GetExadataInfrastructureRequest, GetExadataInfrastructureResponse> + forExadataInfrastructure( + GetExadataInfrastructureRequest request, + com.oracle.bmc.database.model.ExadataInfrastructure.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 forExascaleDbStorageVault( + return forExadataInfrastructure( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -11699,16 +11941,16 @@ public boolean test( * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetExascaleDbStorageVaultRequest, GetExascaleDbStorageVaultResponse> - forExascaleDbStorageVault( - GetExascaleDbStorageVaultRequest request, - com.oracle.bmc.database.model.ExascaleDbStorageVault.LifecycleState targetState, + GetExadataInfrastructureRequest, GetExadataInfrastructureResponse> + forExadataInfrastructure( + GetExadataInfrastructureRequest request, + com.oracle.bmc.database.model.ExadataInfrastructure.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 forExascaleDbStorageVault( + return forExadataInfrastructure( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -11725,33 +11967,33 @@ public boolean test( * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetExascaleDbStorageVaultRequest, GetExascaleDbStorageVaultResponse> - forExascaleDbStorageVault( - GetExascaleDbStorageVaultRequest request, + GetExadataInfrastructureRequest, GetExadataInfrastructureResponse> + forExadataInfrastructure( + GetExadataInfrastructureRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.ExascaleDbStorageVault.LifecycleState... + com.oracle.bmc.database.model.ExadataInfrastructure.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 forExascaleDbStorageVault( + return forExadataInfrastructure( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for ExascaleDbStorageVault. + // Helper method to create a new Waiter for ExadataInfrastructure. private com.oracle.bmc.waiter.Waiter< - GetExascaleDbStorageVaultRequest, GetExascaleDbStorageVaultResponse> - forExascaleDbStorageVault( + GetExadataInfrastructureRequest, GetExadataInfrastructureResponse> + forExadataInfrastructure( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetExascaleDbStorageVaultRequest request, - final com.oracle.bmc.database.model.ExascaleDbStorageVault.LifecycleState... + final GetExadataInfrastructureRequest request, + final com.oracle.bmc.database.model.ExadataInfrastructure.LifecycleState... targetStates) { - final java.util.Set + final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -11759,24 +12001,24 @@ public boolean test( waiter.toCallable( () -> request, new java.util.function.Function< - GetExascaleDbStorageVaultRequest, - GetExascaleDbStorageVaultResponse>() { + GetExadataInfrastructureRequest, + GetExadataInfrastructureResponse>() { @Override - public GetExascaleDbStorageVaultResponse apply( - GetExascaleDbStorageVaultRequest request) { - return client.getExascaleDbStorageVault(request); + public GetExadataInfrastructureResponse apply( + GetExadataInfrastructureRequest request) { + return client.getExadataInfrastructure(request); } }, - new java.util.function.Predicate() { + new java.util.function.Predicate() { @Override - public boolean test(GetExascaleDbStorageVaultResponse response) { + public boolean test(GetExadataInfrastructureResponse response) { return targetStatesSet.contains( - response.getExascaleDbStorageVault().getLifecycleState()); + response.getExadataInfrastructure().getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.ExascaleDbStorageVault.LifecycleState - .Terminated)), + com.oracle.bmc.database.model.ExadataInfrastructure.LifecycleState + .Deleted)), request); } @@ -11788,18 +12030,17 @@ public boolean test(GetExascaleDbStorageVaultResponse response) { * waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetExternalContainerDatabaseRequest, GetExternalContainerDatabaseResponse> - forExternalContainerDatabase( - GetExternalContainerDatabaseRequest request, - com.oracle.bmc.database.model.ExternalContainerDatabase.LifecycleState... + public com.oracle.bmc.waiter.Waiter + forExadataIormConfig( + GetExadataIormConfigRequest request, + com.oracle.bmc.database.model.ExadataIormConfig.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 forExternalContainerDatabase( + return forExadataIormConfig( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -11812,18 +12053,16 @@ public boolean test(GetExascaleDbStorageVaultResponse response) { * @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< - GetExternalContainerDatabaseRequest, GetExternalContainerDatabaseResponse> - forExternalContainerDatabase( - GetExternalContainerDatabaseRequest request, - com.oracle.bmc.database.model.ExternalContainerDatabase.LifecycleState - targetState, + public com.oracle.bmc.waiter.Waiter + forExadataIormConfig( + GetExadataIormConfigRequest request, + com.oracle.bmc.database.model.ExadataIormConfig.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 forExternalContainerDatabase( + return forExadataIormConfig( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -11839,34 +12078,32 @@ public boolean test(GetExascaleDbStorageVaultResponse response) { * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetExternalContainerDatabaseRequest, GetExternalContainerDatabaseResponse> - forExternalContainerDatabase( - GetExternalContainerDatabaseRequest request, + public com.oracle.bmc.waiter.Waiter + forExadataIormConfig( + GetExadataIormConfigRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.ExternalContainerDatabase.LifecycleState... + com.oracle.bmc.database.model.ExadataIormConfig.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 forExternalContainerDatabase( + return forExadataIormConfig( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for ExternalContainerDatabase. - private com.oracle.bmc.waiter.Waiter< - GetExternalContainerDatabaseRequest, GetExternalContainerDatabaseResponse> - forExternalContainerDatabase( + // Helper method to create a new Waiter for ExadataIormConfig. + private com.oracle.bmc.waiter.Waiter + forExadataIormConfig( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetExternalContainerDatabaseRequest request, - final com.oracle.bmc.database.model.ExternalContainerDatabase.LifecycleState... + final GetExadataIormConfigRequest request, + final com.oracle.bmc.database.model.ExadataIormConfig.LifecycleState... targetStates) { - final java.util.Set + final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -11874,25 +12111,21 @@ public boolean test(GetExascaleDbStorageVaultResponse response) { waiter.toCallable( () -> request, new java.util.function.Function< - GetExternalContainerDatabaseRequest, - GetExternalContainerDatabaseResponse>() { + GetExadataIormConfigRequest, GetExadataIormConfigResponse>() { @Override - public GetExternalContainerDatabaseResponse apply( - GetExternalContainerDatabaseRequest request) { - return client.getExternalContainerDatabase(request); + public GetExadataIormConfigResponse apply( + GetExadataIormConfigRequest request) { + return client.getExadataIormConfig(request); } }, - new java.util.function.Predicate() { + new java.util.function.Predicate() { @Override - public boolean test(GetExternalContainerDatabaseResponse response) { + public boolean test(GetExadataIormConfigResponse response) { return targetStatesSet.contains( - response.getExternalContainerDatabase() - .getLifecycleState()); + response.getExadataIormConfig().getLifecycleState()); } }, - targetStatesSet.contains( - com.oracle.bmc.database.model.ExternalContainerDatabase - .LifecycleState.Terminated)), + false), request); } @@ -11904,18 +12137,16 @@ public boolean test(GetExternalContainerDatabaseResponse response) { * waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetExternalDatabaseConnectorRequest, GetExternalDatabaseConnectorResponse> - forExternalDatabaseConnector( - GetExternalDatabaseConnectorRequest request, - com.oracle.bmc.database.model.ExternalDatabaseConnector.LifecycleState... - targetStates) { + public com.oracle.bmc.waiter.Waiter + forExadbVmCluster( + GetExadbVmClusterRequest request, + com.oracle.bmc.database.model.ExadbVmCluster.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 forExternalDatabaseConnector( + return forExadbVmCluster( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -11928,18 +12159,16 @@ public boolean test(GetExternalContainerDatabaseResponse response) { * @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< - GetExternalDatabaseConnectorRequest, GetExternalDatabaseConnectorResponse> - forExternalDatabaseConnector( - GetExternalDatabaseConnectorRequest request, - com.oracle.bmc.database.model.ExternalDatabaseConnector.LifecycleState - targetState, + public com.oracle.bmc.waiter.Waiter + forExadbVmCluster( + GetExadbVmClusterRequest request, + com.oracle.bmc.database.model.ExadbVmCluster.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 forExternalDatabaseConnector( + return forExadbVmCluster( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -11955,34 +12184,31 @@ public boolean test(GetExternalContainerDatabaseResponse response) { * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetExternalDatabaseConnectorRequest, GetExternalDatabaseConnectorResponse> - forExternalDatabaseConnector( - GetExternalDatabaseConnectorRequest request, + public com.oracle.bmc.waiter.Waiter + forExadbVmCluster( + GetExadbVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.ExternalDatabaseConnector.LifecycleState... - targetStates) { + com.oracle.bmc.database.model.ExadbVmCluster.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 forExternalDatabaseConnector( + return forExadbVmCluster( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for ExternalDatabaseConnector. - private com.oracle.bmc.waiter.Waiter< - GetExternalDatabaseConnectorRequest, GetExternalDatabaseConnectorResponse> - forExternalDatabaseConnector( + // Helper method to create a new Waiter for ExadbVmCluster. + private com.oracle.bmc.waiter.Waiter + forExadbVmCluster( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetExternalDatabaseConnectorRequest request, - final com.oracle.bmc.database.model.ExternalDatabaseConnector.LifecycleState... + final GetExadbVmClusterRequest request, + final com.oracle.bmc.database.model.ExadbVmCluster.LifecycleState... targetStates) { - final java.util.Set + final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -11990,25 +12216,23 @@ public boolean test(GetExternalContainerDatabaseResponse response) { waiter.toCallable( () -> request, new java.util.function.Function< - GetExternalDatabaseConnectorRequest, - GetExternalDatabaseConnectorResponse>() { + GetExadbVmClusterRequest, GetExadbVmClusterResponse>() { @Override - public GetExternalDatabaseConnectorResponse apply( - GetExternalDatabaseConnectorRequest request) { - return client.getExternalDatabaseConnector(request); + public GetExadbVmClusterResponse apply( + GetExadbVmClusterRequest request) { + return client.getExadbVmCluster(request); } }, - new java.util.function.Predicate() { + new java.util.function.Predicate() { @Override - public boolean test(GetExternalDatabaseConnectorResponse response) { + public boolean test(GetExadbVmClusterResponse response) { return targetStatesSet.contains( - response.getExternalDatabaseConnector() - .getLifecycleState()); + response.getExadbVmCluster().getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.ExternalDatabaseConnector - .LifecycleState.Terminated)), + com.oracle.bmc.database.model.ExadbVmCluster.LifecycleState + .Terminated)), request); } @@ -12021,17 +12245,17 @@ public boolean test(GetExternalDatabaseConnectorResponse response) { * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetExternalNonContainerDatabaseRequest, GetExternalNonContainerDatabaseResponse> - forExternalNonContainerDatabase( - GetExternalNonContainerDatabaseRequest request, - com.oracle.bmc.database.model.ExternalNonContainerDatabase.LifecycleState... + GetExadbVmClusterUpdateRequest, GetExadbVmClusterUpdateResponse> + forExadbVmClusterUpdate( + GetExadbVmClusterUpdateRequest request, + com.oracle.bmc.database.model.ExadbVmClusterUpdate.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 forExternalNonContainerDatabase( + return forExadbVmClusterUpdate( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -12045,17 +12269,16 @@ public boolean test(GetExternalDatabaseConnectorResponse response) { * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetExternalNonContainerDatabaseRequest, GetExternalNonContainerDatabaseResponse> - forExternalNonContainerDatabase( - GetExternalNonContainerDatabaseRequest request, - com.oracle.bmc.database.model.ExternalNonContainerDatabase.LifecycleState - targetState, + GetExadbVmClusterUpdateRequest, GetExadbVmClusterUpdateResponse> + forExadbVmClusterUpdate( + GetExadbVmClusterUpdateRequest request, + com.oracle.bmc.database.model.ExadbVmClusterUpdate.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 forExternalNonContainerDatabase( + return forExadbVmClusterUpdate( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -12072,35 +12295,33 @@ public boolean test(GetExternalDatabaseConnectorResponse response) { * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetExternalNonContainerDatabaseRequest, GetExternalNonContainerDatabaseResponse> - forExternalNonContainerDatabase( - GetExternalNonContainerDatabaseRequest request, + GetExadbVmClusterUpdateRequest, GetExadbVmClusterUpdateResponse> + forExadbVmClusterUpdate( + GetExadbVmClusterUpdateRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.ExternalNonContainerDatabase.LifecycleState... + com.oracle.bmc.database.model.ExadbVmClusterUpdate.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 forExternalNonContainerDatabase( + return forExadbVmClusterUpdate( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for ExternalNonContainerDatabase. + // Helper method to create a new Waiter for ExadbVmClusterUpdate. private com.oracle.bmc.waiter.Waiter< - GetExternalNonContainerDatabaseRequest, GetExternalNonContainerDatabaseResponse> - forExternalNonContainerDatabase( + GetExadbVmClusterUpdateRequest, GetExadbVmClusterUpdateResponse> + forExadbVmClusterUpdate( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetExternalNonContainerDatabaseRequest request, - final com.oracle.bmc.database.model.ExternalNonContainerDatabase.LifecycleState - ... + final GetExadbVmClusterUpdateRequest request, + final com.oracle.bmc.database.model.ExadbVmClusterUpdate.LifecycleState... targetStates) { - final java.util.Set< - com.oracle.bmc.database.model.ExternalNonContainerDatabase.LifecycleState> + final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -12108,26 +12329,21 @@ public boolean test(GetExternalDatabaseConnectorResponse response) { waiter.toCallable( () -> request, new java.util.function.Function< - GetExternalNonContainerDatabaseRequest, - GetExternalNonContainerDatabaseResponse>() { + GetExadbVmClusterUpdateRequest, GetExadbVmClusterUpdateResponse>() { @Override - public GetExternalNonContainerDatabaseResponse apply( - GetExternalNonContainerDatabaseRequest request) { - return client.getExternalNonContainerDatabase(request); + public GetExadbVmClusterUpdateResponse apply( + GetExadbVmClusterUpdateRequest request) { + return client.getExadbVmClusterUpdate(request); } }, - new java.util.function.Predicate< - GetExternalNonContainerDatabaseResponse>() { + new java.util.function.Predicate() { @Override - public boolean test(GetExternalNonContainerDatabaseResponse response) { + public boolean test(GetExadbVmClusterUpdateResponse response) { return targetStatesSet.contains( - response.getExternalNonContainerDatabase() - .getLifecycleState()); + response.getExadbVmClusterUpdate().getLifecycleState()); } }, - targetStatesSet.contains( - com.oracle.bmc.database.model.ExternalNonContainerDatabase - .LifecycleState.Terminated)), + false), request); } @@ -12140,17 +12356,18 @@ public boolean test(GetExternalNonContainerDatabaseResponse response) { * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetExternalPluggableDatabaseRequest, GetExternalPluggableDatabaseResponse> - forExternalPluggableDatabase( - GetExternalPluggableDatabaseRequest request, - com.oracle.bmc.database.model.ExternalPluggableDatabase.LifecycleState... + GetExadbVmClusterUpdateHistoryEntryRequest, + GetExadbVmClusterUpdateHistoryEntryResponse> + forExadbVmClusterUpdateHistoryEntry( + GetExadbVmClusterUpdateHistoryEntryRequest request, + com.oracle.bmc.database.model.ExadbVmClusterUpdateHistoryEntry.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 forExternalPluggableDatabase( + return forExadbVmClusterUpdateHistoryEntry( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -12164,17 +12381,18 @@ public boolean test(GetExternalNonContainerDatabaseResponse response) { * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetExternalPluggableDatabaseRequest, GetExternalPluggableDatabaseResponse> - forExternalPluggableDatabase( - GetExternalPluggableDatabaseRequest request, - com.oracle.bmc.database.model.ExternalPluggableDatabase.LifecycleState + GetExadbVmClusterUpdateHistoryEntryRequest, + GetExadbVmClusterUpdateHistoryEntryResponse> + forExadbVmClusterUpdateHistoryEntry( + GetExadbVmClusterUpdateHistoryEntryRequest request, + com.oracle.bmc.database.model.ExadbVmClusterUpdateHistoryEntry.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 forExternalPluggableDatabase( + return forExadbVmClusterUpdateHistoryEntry( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -12191,33 +12409,39 @@ public boolean test(GetExternalNonContainerDatabaseResponse response) { * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetExternalPluggableDatabaseRequest, GetExternalPluggableDatabaseResponse> - forExternalPluggableDatabase( - GetExternalPluggableDatabaseRequest request, + GetExadbVmClusterUpdateHistoryEntryRequest, + GetExadbVmClusterUpdateHistoryEntryResponse> + forExadbVmClusterUpdateHistoryEntry( + GetExadbVmClusterUpdateHistoryEntryRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.ExternalPluggableDatabase.LifecycleState... + com.oracle.bmc.database.model.ExadbVmClusterUpdateHistoryEntry.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 forExternalPluggableDatabase( + return forExadbVmClusterUpdateHistoryEntry( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for ExternalPluggableDatabase. + // Helper method to create a new Waiter for ExadbVmClusterUpdateHistoryEntry. private com.oracle.bmc.waiter.Waiter< - GetExternalPluggableDatabaseRequest, GetExternalPluggableDatabaseResponse> - forExternalPluggableDatabase( + GetExadbVmClusterUpdateHistoryEntryRequest, + GetExadbVmClusterUpdateHistoryEntryResponse> + forExadbVmClusterUpdateHistoryEntry( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetExternalPluggableDatabaseRequest request, - final com.oracle.bmc.database.model.ExternalPluggableDatabase.LifecycleState... + final GetExadbVmClusterUpdateHistoryEntryRequest request, + final com.oracle.bmc.database.model.ExadbVmClusterUpdateHistoryEntry + .LifecycleState + ... targetStates) { - final java.util.Set + final java.util.Set< + com.oracle.bmc.database.model.ExadbVmClusterUpdateHistoryEntry + .LifecycleState> targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -12225,25 +12449,25 @@ public boolean test(GetExternalNonContainerDatabaseResponse response) { waiter.toCallable( () -> request, new java.util.function.Function< - GetExternalPluggableDatabaseRequest, - GetExternalPluggableDatabaseResponse>() { + GetExadbVmClusterUpdateHistoryEntryRequest, + GetExadbVmClusterUpdateHistoryEntryResponse>() { @Override - public GetExternalPluggableDatabaseResponse apply( - GetExternalPluggableDatabaseRequest request) { - return client.getExternalPluggableDatabase(request); + public GetExadbVmClusterUpdateHistoryEntryResponse apply( + GetExadbVmClusterUpdateHistoryEntryRequest request) { + return client.getExadbVmClusterUpdateHistoryEntry(request); } }, - new java.util.function.Predicate() { + new java.util.function.Predicate< + GetExadbVmClusterUpdateHistoryEntryResponse>() { @Override - public boolean test(GetExternalPluggableDatabaseResponse response) { + public boolean test( + GetExadbVmClusterUpdateHistoryEntryResponse response) { return targetStatesSet.contains( - response.getExternalPluggableDatabase() + response.getExadbVmClusterUpdateHistoryEntry() .getLifecycleState()); } }, - targetStatesSet.contains( - com.oracle.bmc.database.model.ExternalPluggableDatabase - .LifecycleState.Terminated)), + false), request); } @@ -12255,15 +12479,18 @@ public boolean test(GetExternalPluggableDatabaseResponse response) { * waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forKeyStore( - GetKeyStoreRequest request, - com.oracle.bmc.database.model.KeyStore.LifecycleState... targetStates) { + public com.oracle.bmc.waiter.Waiter< + GetExascaleDbStorageVaultRequest, GetExascaleDbStorageVaultResponse> + forExascaleDbStorageVault( + GetExascaleDbStorageVaultRequest request, + com.oracle.bmc.database.model.ExascaleDbStorageVault.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 forKeyStore( + return forExascaleDbStorageVault( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -12276,15 +12503,17 @@ public com.oracle.bmc.waiter.Waiter for * @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 forKeyStore( - GetKeyStoreRequest request, - com.oracle.bmc.database.model.KeyStore.LifecycleState targetState, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + public com.oracle.bmc.waiter.Waiter< + GetExascaleDbStorageVaultRequest, GetExascaleDbStorageVaultResponse> + forExascaleDbStorageVault( + GetExascaleDbStorageVaultRequest request, + com.oracle.bmc.database.model.ExascaleDbStorageVault.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 forKeyStore( + return forExascaleDbStorageVault( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -12300,49 +12529,59 @@ public com.oracle.bmc.waiter.Waiter for * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forKeyStore( - GetKeyStoreRequest request, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.KeyStore.LifecycleState... targetStates) { + public com.oracle.bmc.waiter.Waiter< + GetExascaleDbStorageVaultRequest, GetExascaleDbStorageVaultResponse> + forExascaleDbStorageVault( + GetExascaleDbStorageVaultRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.ExascaleDbStorageVault.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 forKeyStore( + return forExascaleDbStorageVault( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for KeyStore. - private com.oracle.bmc.waiter.Waiter forKeyStore( - com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetKeyStoreRequest request, - final com.oracle.bmc.database.model.KeyStore.LifecycleState... targetStates) { - final java.util.Set targetStatesSet = - new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + // Helper method to create a new Waiter for ExascaleDbStorageVault. + private com.oracle.bmc.waiter.Waiter< + GetExascaleDbStorageVaultRequest, GetExascaleDbStorageVaultResponse> + forExascaleDbStorageVault( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetExascaleDbStorageVaultRequest request, + final com.oracle.bmc.database.model.ExascaleDbStorageVault.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() { + new java.util.function.Function< + GetExascaleDbStorageVaultRequest, + GetExascaleDbStorageVaultResponse>() { @Override - public GetKeyStoreResponse apply(GetKeyStoreRequest request) { - return client.getKeyStore(request); - } + public GetExascaleDbStorageVaultResponse apply( + GetExascaleDbStorageVaultRequest request) { + return client.getExascaleDbStorageVault(request); + } }, - new java.util.function.Predicate() { + new java.util.function.Predicate() { @Override - public boolean test(GetKeyStoreResponse response) { + public boolean test(GetExascaleDbStorageVaultResponse response) { return targetStatesSet.contains( - response.getKeyStore().getLifecycleState()); + response.getExascaleDbStorageVault().getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.KeyStore.LifecycleState.Deleted)), + com.oracle.bmc.database.model.ExascaleDbStorageVault.LifecycleState + .Terminated)), request); } @@ -12354,16 +12593,16 @@ public boolean test(GetKeyStoreResponse response) { * waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forMaintenanceRun( - GetMaintenanceRunRequest request, - com.oracle.bmc.database.model.MaintenanceRun.LifecycleState... targetStates) { + public com.oracle.bmc.waiter.Waiter + forExecutionAction( + GetExecutionActionRequest request, + com.oracle.bmc.database.model.ExecutionAction.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 forMaintenanceRun( + return forExecutionAction( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -12376,16 +12615,16 @@ public boolean test(GetKeyStoreResponse response) { * @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 - forMaintenanceRun( - GetMaintenanceRunRequest request, - com.oracle.bmc.database.model.MaintenanceRun.LifecycleState targetState, + public com.oracle.bmc.waiter.Waiter + forExecutionAction( + GetExecutionActionRequest request, + com.oracle.bmc.database.model.ExecutionAction.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 forMaintenanceRun( + return forExecutionAction( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -12401,31 +12640,31 @@ public boolean test(GetKeyStoreResponse response) { * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forMaintenanceRun( - GetMaintenanceRunRequest request, + public com.oracle.bmc.waiter.Waiter + forExecutionAction( + GetExecutionActionRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.MaintenanceRun.LifecycleState... targetStates) { + com.oracle.bmc.database.model.ExecutionAction.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 forMaintenanceRun( + return forExecutionAction( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for MaintenanceRun. - private com.oracle.bmc.waiter.Waiter - forMaintenanceRun( + // Helper method to create a new Waiter for ExecutionAction. + private com.oracle.bmc.waiter.Waiter + forExecutionAction( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetMaintenanceRunRequest request, - final com.oracle.bmc.database.model.MaintenanceRun.LifecycleState... + final GetExecutionActionRequest request, + final com.oracle.bmc.database.model.ExecutionAction.LifecycleState... targetStates) { - final java.util.Set + final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -12433,22 +12672,22 @@ public boolean test(GetKeyStoreResponse response) { waiter.toCallable( () -> request, new java.util.function.Function< - GetMaintenanceRunRequest, GetMaintenanceRunResponse>() { + GetExecutionActionRequest, GetExecutionActionResponse>() { @Override - public GetMaintenanceRunResponse apply( - GetMaintenanceRunRequest request) { - return client.getMaintenanceRun(request); + public GetExecutionActionResponse apply( + GetExecutionActionRequest request) { + return client.getExecutionAction(request); } }, - new java.util.function.Predicate() { + new java.util.function.Predicate() { @Override - public boolean test(GetMaintenanceRunResponse response) { + public boolean test(GetExecutionActionResponse response) { return targetStatesSet.contains( - response.getMaintenanceRun().getLifecycleState()); + response.getExecutionAction().getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.MaintenanceRun.LifecycleState + com.oracle.bmc.database.model.ExecutionAction.LifecycleState .Deleted)), request); } @@ -12461,16 +12700,16 @@ public boolean test(GetMaintenanceRunResponse response) { * waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forOneoffPatch( - GetOneoffPatchRequest request, - com.oracle.bmc.database.model.OneoffPatch.LifecycleState... targetStates) { + public com.oracle.bmc.waiter.Waiter + forExecutionWindow( + GetExecutionWindowRequest request, + com.oracle.bmc.database.model.ExecutionWindow.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 forOneoffPatch( + return forExecutionWindow( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -12483,16 +12722,16 @@ public boolean test(GetMaintenanceRunResponse response) { * @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 - forOneoffPatch( - GetOneoffPatchRequest request, - com.oracle.bmc.database.model.OneoffPatch.LifecycleState targetState, + public com.oracle.bmc.waiter.Waiter + forExecutionWindow( + GetExecutionWindowRequest request, + com.oracle.bmc.database.model.ExecutionWindow.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 forOneoffPatch( + return forExecutionWindow( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -12508,31 +12747,31 @@ public boolean test(GetMaintenanceRunResponse response) { * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forOneoffPatch( - GetOneoffPatchRequest request, + public com.oracle.bmc.waiter.Waiter + forExecutionWindow( + GetExecutionWindowRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.OneoffPatch.LifecycleState... targetStates) { + com.oracle.bmc.database.model.ExecutionWindow.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 forOneoffPatch( + return forExecutionWindow( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for OneoffPatch. - private com.oracle.bmc.waiter.Waiter - forOneoffPatch( + // Helper method to create a new Waiter for ExecutionWindow. + private com.oracle.bmc.waiter.Waiter + forExecutionWindow( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetOneoffPatchRequest request, - final com.oracle.bmc.database.model.OneoffPatch.LifecycleState... + final GetExecutionWindowRequest request, + final com.oracle.bmc.database.model.ExecutionWindow.LifecycleState... targetStates) { - final java.util.Set + final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -12540,22 +12779,23 @@ public boolean test(GetMaintenanceRunResponse response) { waiter.toCallable( () -> request, new java.util.function.Function< - GetOneoffPatchRequest, GetOneoffPatchResponse>() { + GetExecutionWindowRequest, GetExecutionWindowResponse>() { @Override - public GetOneoffPatchResponse apply(GetOneoffPatchRequest request) { - return client.getOneoffPatch(request); + public GetExecutionWindowResponse apply( + GetExecutionWindowRequest request) { + return client.getExecutionWindow(request); } }, - new java.util.function.Predicate() { + new java.util.function.Predicate() { @Override - public boolean test(GetOneoffPatchResponse response) { + public boolean test(GetExecutionWindowResponse response) { return targetStatesSet.contains( - response.getOneoffPatch().getLifecycleState()); + response.getExecutionWindow().getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.OneoffPatch.LifecycleState - .Terminated)), + com.oracle.bmc.database.model.ExecutionWindow.LifecycleState + .Deleted)), request); } @@ -12568,17 +12808,17 @@ public boolean test(GetOneoffPatchResponse response) { * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetPdbConversionHistoryEntryRequest, GetPdbConversionHistoryEntryResponse> - forPdbConversionHistoryEntry( - GetPdbConversionHistoryEntryRequest request, - com.oracle.bmc.database.model.PdbConversionHistoryEntry.LifecycleState... + GetExternalContainerDatabaseRequest, GetExternalContainerDatabaseResponse> + forExternalContainerDatabase( + GetExternalContainerDatabaseRequest request, + com.oracle.bmc.database.model.ExternalContainerDatabase.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 forPdbConversionHistoryEntry( + return forExternalContainerDatabase( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -12592,17 +12832,17 @@ public boolean test(GetOneoffPatchResponse response) { * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetPdbConversionHistoryEntryRequest, GetPdbConversionHistoryEntryResponse> - forPdbConversionHistoryEntry( - GetPdbConversionHistoryEntryRequest request, - com.oracle.bmc.database.model.PdbConversionHistoryEntry.LifecycleState + GetExternalContainerDatabaseRequest, GetExternalContainerDatabaseResponse> + forExternalContainerDatabase( + GetExternalContainerDatabaseRequest request, + com.oracle.bmc.database.model.ExternalContainerDatabase.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 forPdbConversionHistoryEntry( + return forExternalContainerDatabase( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -12619,33 +12859,33 @@ public boolean test(GetOneoffPatchResponse response) { * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetPdbConversionHistoryEntryRequest, GetPdbConversionHistoryEntryResponse> - forPdbConversionHistoryEntry( - GetPdbConversionHistoryEntryRequest request, + GetExternalContainerDatabaseRequest, GetExternalContainerDatabaseResponse> + forExternalContainerDatabase( + GetExternalContainerDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.PdbConversionHistoryEntry.LifecycleState... + com.oracle.bmc.database.model.ExternalContainerDatabase.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 forPdbConversionHistoryEntry( + return forExternalContainerDatabase( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for PdbConversionHistoryEntry. + // Helper method to create a new Waiter for ExternalContainerDatabase. private com.oracle.bmc.waiter.Waiter< - GetPdbConversionHistoryEntryRequest, GetPdbConversionHistoryEntryResponse> - forPdbConversionHistoryEntry( + GetExternalContainerDatabaseRequest, GetExternalContainerDatabaseResponse> + forExternalContainerDatabase( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetPdbConversionHistoryEntryRequest request, - final com.oracle.bmc.database.model.PdbConversionHistoryEntry.LifecycleState... + final GetExternalContainerDatabaseRequest request, + final com.oracle.bmc.database.model.ExternalContainerDatabase.LifecycleState... targetStates) { - final java.util.Set + final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -12653,23 +12893,25 @@ public boolean test(GetOneoffPatchResponse response) { waiter.toCallable( () -> request, new java.util.function.Function< - GetPdbConversionHistoryEntryRequest, - GetPdbConversionHistoryEntryResponse>() { + GetExternalContainerDatabaseRequest, + GetExternalContainerDatabaseResponse>() { @Override - public GetPdbConversionHistoryEntryResponse apply( - GetPdbConversionHistoryEntryRequest request) { - return client.getPdbConversionHistoryEntry(request); + public GetExternalContainerDatabaseResponse apply( + GetExternalContainerDatabaseRequest request) { + return client.getExternalContainerDatabase(request); } }, - new java.util.function.Predicate() { + new java.util.function.Predicate() { @Override - public boolean test(GetPdbConversionHistoryEntryResponse response) { + public boolean test(GetExternalContainerDatabaseResponse response) { return targetStatesSet.contains( - response.getPdbConversionHistoryEntry() + response.getExternalContainerDatabase() .getLifecycleState()); } }, - false), + targetStatesSet.contains( + com.oracle.bmc.database.model.ExternalContainerDatabase + .LifecycleState.Terminated)), request); } @@ -12681,17 +12923,18 @@ public boolean test(GetPdbConversionHistoryEntryResponse response) { * waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forPluggableDatabase( - GetPluggableDatabaseRequest request, - com.oracle.bmc.database.model.PluggableDatabase.LifecycleState... + public com.oracle.bmc.waiter.Waiter< + GetExternalDatabaseConnectorRequest, GetExternalDatabaseConnectorResponse> + forExternalDatabaseConnector( + GetExternalDatabaseConnectorRequest request, + com.oracle.bmc.database.model.ExternalDatabaseConnector.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 forPluggableDatabase( + return forExternalDatabaseConnector( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -12704,16 +12947,18 @@ public boolean test(GetPdbConversionHistoryEntryResponse response) { * @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 - forPluggableDatabase( - GetPluggableDatabaseRequest request, - com.oracle.bmc.database.model.PluggableDatabase.LifecycleState targetState, + public com.oracle.bmc.waiter.Waiter< + GetExternalDatabaseConnectorRequest, GetExternalDatabaseConnectorResponse> + forExternalDatabaseConnector( + GetExternalDatabaseConnectorRequest request, + com.oracle.bmc.database.model.ExternalDatabaseConnector.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 forPluggableDatabase( + return forExternalDatabaseConnector( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -12729,32 +12974,34 @@ public boolean test(GetPdbConversionHistoryEntryResponse response) { * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forPluggableDatabase( - GetPluggableDatabaseRequest request, + public com.oracle.bmc.waiter.Waiter< + GetExternalDatabaseConnectorRequest, GetExternalDatabaseConnectorResponse> + forExternalDatabaseConnector( + GetExternalDatabaseConnectorRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.PluggableDatabase.LifecycleState... + com.oracle.bmc.database.model.ExternalDatabaseConnector.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 forPluggableDatabase( + return forExternalDatabaseConnector( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for PluggableDatabase. - private com.oracle.bmc.waiter.Waiter - forPluggableDatabase( + // Helper method to create a new Waiter for ExternalDatabaseConnector. + private com.oracle.bmc.waiter.Waiter< + GetExternalDatabaseConnectorRequest, GetExternalDatabaseConnectorResponse> + forExternalDatabaseConnector( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetPluggableDatabaseRequest request, - final com.oracle.bmc.database.model.PluggableDatabase.LifecycleState... + final GetExternalDatabaseConnectorRequest request, + final com.oracle.bmc.database.model.ExternalDatabaseConnector.LifecycleState... targetStates) { - final java.util.Set + final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -12762,23 +13009,25 @@ public boolean test(GetPdbConversionHistoryEntryResponse response) { waiter.toCallable( () -> request, new java.util.function.Function< - GetPluggableDatabaseRequest, GetPluggableDatabaseResponse>() { + GetExternalDatabaseConnectorRequest, + GetExternalDatabaseConnectorResponse>() { @Override - public GetPluggableDatabaseResponse apply( - GetPluggableDatabaseRequest request) { - return client.getPluggableDatabase(request); + public GetExternalDatabaseConnectorResponse apply( + GetExternalDatabaseConnectorRequest request) { + return client.getExternalDatabaseConnector(request); } }, - new java.util.function.Predicate() { + new java.util.function.Predicate() { @Override - public boolean test(GetPluggableDatabaseResponse response) { + public boolean test(GetExternalDatabaseConnectorResponse response) { return targetStatesSet.contains( - response.getPluggableDatabase().getLifecycleState()); + response.getExternalDatabaseConnector() + .getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.PluggableDatabase.LifecycleState - .Terminated)), + com.oracle.bmc.database.model.ExternalDatabaseConnector + .LifecycleState.Terminated)), request); } @@ -12790,15 +13039,18 @@ public boolean test(GetPluggableDatabaseResponse response) { * waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forVmCluster( - GetVmClusterRequest request, - com.oracle.bmc.database.model.VmCluster.LifecycleState... targetStates) { + public com.oracle.bmc.waiter.Waiter< + GetExternalNonContainerDatabaseRequest, GetExternalNonContainerDatabaseResponse> + forExternalNonContainerDatabase( + GetExternalNonContainerDatabaseRequest request, + com.oracle.bmc.database.model.ExternalNonContainerDatabase.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 forVmCluster( + return forExternalNonContainerDatabase( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -12811,15 +13063,18 @@ public com.oracle.bmc.waiter.Waiter f * @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 forVmCluster( - GetVmClusterRequest request, - com.oracle.bmc.database.model.VmCluster.LifecycleState targetState, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + public com.oracle.bmc.waiter.Waiter< + GetExternalNonContainerDatabaseRequest, GetExternalNonContainerDatabaseResponse> + forExternalNonContainerDatabase( + GetExternalNonContainerDatabaseRequest request, + com.oracle.bmc.database.model.ExternalNonContainerDatabase.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 forVmCluster( + return forExternalNonContainerDatabase( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -12835,50 +13090,63 @@ public com.oracle.bmc.waiter.Waiter f * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forVmCluster( - GetVmClusterRequest request, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.VmCluster.LifecycleState... targetStates) { + public com.oracle.bmc.waiter.Waiter< + GetExternalNonContainerDatabaseRequest, GetExternalNonContainerDatabaseResponse> + forExternalNonContainerDatabase( + GetExternalNonContainerDatabaseRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.ExternalNonContainerDatabase.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 forVmCluster( + return forExternalNonContainerDatabase( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for VmCluster. - private com.oracle.bmc.waiter.Waiter forVmCluster( - com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetVmClusterRequest request, - final com.oracle.bmc.database.model.VmCluster.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< - GetVmClusterRequest, GetVmClusterResponse>() { + // Helper method to create a new Waiter for ExternalNonContainerDatabase. + private com.oracle.bmc.waiter.Waiter< + GetExternalNonContainerDatabaseRequest, GetExternalNonContainerDatabaseResponse> + forExternalNonContainerDatabase( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetExternalNonContainerDatabaseRequest request, + final com.oracle.bmc.database.model.ExternalNonContainerDatabase.LifecycleState + ... + targetStates) { + final java.util.Set< + com.oracle.bmc.database.model.ExternalNonContainerDatabase.LifecycleState> + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetExternalNonContainerDatabaseRequest, + GetExternalNonContainerDatabaseResponse>() { @Override - public GetVmClusterResponse apply(GetVmClusterRequest request) { - return client.getVmCluster(request); + public GetExternalNonContainerDatabaseResponse apply( + GetExternalNonContainerDatabaseRequest request) { + return client.getExternalNonContainerDatabase(request); } }, - new java.util.function.Predicate() { + new java.util.function.Predicate< + GetExternalNonContainerDatabaseResponse>() { @Override - public boolean test(GetVmClusterResponse response) { + public boolean test(GetExternalNonContainerDatabaseResponse response) { return targetStatesSet.contains( - response.getVmCluster().getLifecycleState()); + response.getExternalNonContainerDatabase() + .getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.VmCluster.LifecycleState.Terminated)), + com.oracle.bmc.database.model.ExternalNonContainerDatabase + .LifecycleState.Terminated)), request); } @@ -12890,16 +13158,18 @@ public boolean test(GetVmClusterResponse response) { * waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forVmClusterNetwork( - GetVmClusterNetworkRequest request, - com.oracle.bmc.database.model.VmClusterNetwork.LifecycleState... targetStates) { + public com.oracle.bmc.waiter.Waiter< + GetExternalPluggableDatabaseRequest, GetExternalPluggableDatabaseResponse> + forExternalPluggableDatabase( + GetExternalPluggableDatabaseRequest request, + com.oracle.bmc.database.model.ExternalPluggableDatabase.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 forVmClusterNetwork( + return forExternalPluggableDatabase( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -12912,16 +13182,18 @@ public boolean test(GetVmClusterResponse response) { * @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 - forVmClusterNetwork( - GetVmClusterNetworkRequest request, - com.oracle.bmc.database.model.VmClusterNetwork.LifecycleState targetState, + public com.oracle.bmc.waiter.Waiter< + GetExternalPluggableDatabaseRequest, GetExternalPluggableDatabaseResponse> + forExternalPluggableDatabase( + GetExternalPluggableDatabaseRequest request, + com.oracle.bmc.database.model.ExternalPluggableDatabase.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 forVmClusterNetwork( + return forExternalPluggableDatabase( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -12937,31 +13209,34 @@ public boolean test(GetVmClusterResponse response) { * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forVmClusterNetwork( - GetVmClusterNetworkRequest request, + public com.oracle.bmc.waiter.Waiter< + GetExternalPluggableDatabaseRequest, GetExternalPluggableDatabaseResponse> + forExternalPluggableDatabase( + GetExternalPluggableDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.VmClusterNetwork.LifecycleState... targetStates) { + com.oracle.bmc.database.model.ExternalPluggableDatabase.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 forVmClusterNetwork( + return forExternalPluggableDatabase( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for VmClusterNetwork. - private com.oracle.bmc.waiter.Waiter - forVmClusterNetwork( + // Helper method to create a new Waiter for ExternalPluggableDatabase. + private com.oracle.bmc.waiter.Waiter< + GetExternalPluggableDatabaseRequest, GetExternalPluggableDatabaseResponse> + forExternalPluggableDatabase( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetVmClusterNetworkRequest request, - final com.oracle.bmc.database.model.VmClusterNetwork.LifecycleState... + final GetExternalPluggableDatabaseRequest request, + final com.oracle.bmc.database.model.ExternalPluggableDatabase.LifecycleState... targetStates) { - final java.util.Set + final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -12969,23 +13244,25 @@ public boolean test(GetVmClusterResponse response) { waiter.toCallable( () -> request, new java.util.function.Function< - GetVmClusterNetworkRequest, GetVmClusterNetworkResponse>() { + GetExternalPluggableDatabaseRequest, + GetExternalPluggableDatabaseResponse>() { @Override - public GetVmClusterNetworkResponse apply( - GetVmClusterNetworkRequest request) { - return client.getVmClusterNetwork(request); + public GetExternalPluggableDatabaseResponse apply( + GetExternalPluggableDatabaseRequest request) { + return client.getExternalPluggableDatabase(request); } }, - new java.util.function.Predicate() { + new java.util.function.Predicate() { @Override - public boolean test(GetVmClusterNetworkResponse response) { + public boolean test(GetExternalPluggableDatabaseResponse response) { return targetStatesSet.contains( - response.getVmClusterNetwork().getLifecycleState()); + response.getExternalPluggableDatabase() + .getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.VmClusterNetwork.LifecycleState - .Terminated)), + com.oracle.bmc.database.model.ExternalPluggableDatabase + .LifecycleState.Terminated)), request); } @@ -12997,41 +13274,1781 @@ public boolean test(GetVmClusterNetworkResponse response) { * waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forVmClusterUpdate( - GetVmClusterUpdateRequest request, - com.oracle.bmc.database.model.VmClusterUpdate.LifecycleState... targetStates) { + public com.oracle.bmc.waiter.Waiter forKeyStore( + GetKeyStoreRequest request, + com.oracle.bmc.database.model.KeyStore.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 forVmClusterUpdate( + return forKeyStore( + 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 forKeyStore( + GetKeyStoreRequest request, + com.oracle.bmc.database.model.KeyStore.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 forKeyStore( + 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 forKeyStore( + GetKeyStoreRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.KeyStore.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 forKeyStore( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for KeyStore. + private com.oracle.bmc.waiter.Waiter forKeyStore( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetKeyStoreRequest request, + final com.oracle.bmc.database.model.KeyStore.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 GetKeyStoreResponse apply(GetKeyStoreRequest request) { + return client.getKeyStore(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetKeyStoreResponse response) { + return targetStatesSet.contains( + response.getKeyStore().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.database.model.KeyStore.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 + forMaintenanceRun( + GetMaintenanceRunRequest request, + com.oracle.bmc.database.model.MaintenanceRun.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 forMaintenanceRun( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** - * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * 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 + forMaintenanceRun( + GetMaintenanceRunRequest request, + com.oracle.bmc.database.model.MaintenanceRun.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 forMaintenanceRun( + 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 + forMaintenanceRun( + GetMaintenanceRunRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.MaintenanceRun.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 forMaintenanceRun( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for MaintenanceRun. + private com.oracle.bmc.waiter.Waiter + forMaintenanceRun( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetMaintenanceRunRequest request, + final com.oracle.bmc.database.model.MaintenanceRun.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< + GetMaintenanceRunRequest, GetMaintenanceRunResponse>() { + @Override + public GetMaintenanceRunResponse apply( + GetMaintenanceRunRequest request) { + return client.getMaintenanceRun(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetMaintenanceRunResponse response) { + return targetStatesSet.contains( + response.getMaintenanceRun().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.database.model.MaintenanceRun.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 + forOneoffPatch( + GetOneoffPatchRequest request, + com.oracle.bmc.database.model.OneoffPatch.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 forOneoffPatch( + 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 + forOneoffPatch( + GetOneoffPatchRequest request, + com.oracle.bmc.database.model.OneoffPatch.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 forOneoffPatch( + 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 + forOneoffPatch( + GetOneoffPatchRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.OneoffPatch.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 forOneoffPatch( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for OneoffPatch. + private com.oracle.bmc.waiter.Waiter + forOneoffPatch( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetOneoffPatchRequest request, + final com.oracle.bmc.database.model.OneoffPatch.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< + GetOneoffPatchRequest, GetOneoffPatchResponse>() { + @Override + public GetOneoffPatchResponse apply(GetOneoffPatchRequest request) { + return client.getOneoffPatch(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetOneoffPatchResponse response) { + return targetStatesSet.contains( + response.getOneoffPatch().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.database.model.OneoffPatch.LifecycleState + .Terminated)), + 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< + GetPdbConversionHistoryEntryRequest, GetPdbConversionHistoryEntryResponse> + forPdbConversionHistoryEntry( + GetPdbConversionHistoryEntryRequest request, + com.oracle.bmc.database.model.PdbConversionHistoryEntry.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 forPdbConversionHistoryEntry( + 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< + GetPdbConversionHistoryEntryRequest, GetPdbConversionHistoryEntryResponse> + forPdbConversionHistoryEntry( + GetPdbConversionHistoryEntryRequest request, + com.oracle.bmc.database.model.PdbConversionHistoryEntry.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 forPdbConversionHistoryEntry( + 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< + GetPdbConversionHistoryEntryRequest, GetPdbConversionHistoryEntryResponse> + forPdbConversionHistoryEntry( + GetPdbConversionHistoryEntryRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.PdbConversionHistoryEntry.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 forPdbConversionHistoryEntry( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for PdbConversionHistoryEntry. + private com.oracle.bmc.waiter.Waiter< + GetPdbConversionHistoryEntryRequest, GetPdbConversionHistoryEntryResponse> + forPdbConversionHistoryEntry( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetPdbConversionHistoryEntryRequest request, + final com.oracle.bmc.database.model.PdbConversionHistoryEntry.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< + GetPdbConversionHistoryEntryRequest, + GetPdbConversionHistoryEntryResponse>() { + @Override + public GetPdbConversionHistoryEntryResponse apply( + GetPdbConversionHistoryEntryRequest request) { + return client.getPdbConversionHistoryEntry(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetPdbConversionHistoryEntryResponse response) { + return targetStatesSet.contains( + response.getPdbConversionHistoryEntry() + .getLifecycleState()); + } + }, + false), + 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 + forPluggableDatabase( + GetPluggableDatabaseRequest request, + com.oracle.bmc.database.model.PluggableDatabase.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 forPluggableDatabase( + 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 + forPluggableDatabase( + GetPluggableDatabaseRequest request, + com.oracle.bmc.database.model.PluggableDatabase.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 forPluggableDatabase( + 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 + forPluggableDatabase( + GetPluggableDatabaseRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.PluggableDatabase.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 forPluggableDatabase( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for PluggableDatabase. + private com.oracle.bmc.waiter.Waiter + forPluggableDatabase( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetPluggableDatabaseRequest request, + final com.oracle.bmc.database.model.PluggableDatabase.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< + GetPluggableDatabaseRequest, GetPluggableDatabaseResponse>() { + @Override + public GetPluggableDatabaseResponse apply( + GetPluggableDatabaseRequest request) { + return client.getPluggableDatabase(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetPluggableDatabaseResponse response) { + return targetStatesSet.contains( + response.getPluggableDatabase().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.database.model.PluggableDatabase.LifecycleState + .Terminated)), + 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 + forScheduledAction( + GetScheduledActionRequest request, + com.oracle.bmc.database.model.ScheduledAction.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 forScheduledAction( + 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 + forScheduledAction( + GetScheduledActionRequest request, + com.oracle.bmc.database.model.ScheduledAction.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 forScheduledAction( + 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 + forScheduledAction( + GetScheduledActionRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.ScheduledAction.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 forScheduledAction( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for ScheduledAction. + private com.oracle.bmc.waiter.Waiter + forScheduledAction( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetScheduledActionRequest request, + final com.oracle.bmc.database.model.ScheduledAction.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< + GetScheduledActionRequest, GetScheduledActionResponse>() { + @Override + public GetScheduledActionResponse apply( + GetScheduledActionRequest request) { + return client.getScheduledAction(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetScheduledActionResponse response) { + return targetStatesSet.contains( + response.getScheduledAction().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.database.model.ScheduledAction.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 + forSchedulingPlan( + GetSchedulingPlanRequest request, + com.oracle.bmc.database.model.SchedulingPlan.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 forSchedulingPlan( + 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 + forSchedulingPlan( + GetSchedulingPlanRequest request, + com.oracle.bmc.database.model.SchedulingPlan.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 forSchedulingPlan( + 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 + forSchedulingPlan( + GetSchedulingPlanRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.SchedulingPlan.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 forSchedulingPlan( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for SchedulingPlan. + private com.oracle.bmc.waiter.Waiter + forSchedulingPlan( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetSchedulingPlanRequest request, + final com.oracle.bmc.database.model.SchedulingPlan.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< + GetSchedulingPlanRequest, GetSchedulingPlanResponse>() { + @Override + public GetSchedulingPlanResponse apply( + GetSchedulingPlanRequest request) { + return client.getSchedulingPlan(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetSchedulingPlanResponse response) { + return targetStatesSet.contains( + response.getSchedulingPlan().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.database.model.SchedulingPlan.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 + forSchedulingPolicy( + GetSchedulingPolicyRequest request, + com.oracle.bmc.database.model.SchedulingPolicy.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 forSchedulingPolicy( + 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 + forSchedulingPolicy( + GetSchedulingPolicyRequest request, + com.oracle.bmc.database.model.SchedulingPolicy.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 forSchedulingPolicy( + 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 + forSchedulingPolicy( + GetSchedulingPolicyRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.SchedulingPolicy.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 forSchedulingPolicy( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for SchedulingPolicy. + private com.oracle.bmc.waiter.Waiter + forSchedulingPolicy( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetSchedulingPolicyRequest request, + final com.oracle.bmc.database.model.SchedulingPolicy.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< + GetSchedulingPolicyRequest, GetSchedulingPolicyResponse>() { + @Override + public GetSchedulingPolicyResponse apply( + GetSchedulingPolicyRequest request) { + return client.getSchedulingPolicy(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetSchedulingPolicyResponse response) { + return targetStatesSet.contains( + response.getSchedulingPolicy().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.database.model.SchedulingPolicy.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 + forSchedulingWindow( + GetSchedulingWindowRequest request, + com.oracle.bmc.database.model.SchedulingWindow.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 forSchedulingWindow( + 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 + forSchedulingWindow( + GetSchedulingWindowRequest request, + com.oracle.bmc.database.model.SchedulingWindow.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 forSchedulingWindow( + 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 + forSchedulingWindow( + GetSchedulingWindowRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.SchedulingWindow.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 forSchedulingWindow( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for SchedulingWindow. + private com.oracle.bmc.waiter.Waiter + forSchedulingWindow( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetSchedulingWindowRequest request, + final com.oracle.bmc.database.model.SchedulingWindow.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< + GetSchedulingWindowRequest, GetSchedulingWindowResponse>() { + @Override + public GetSchedulingWindowResponse apply( + GetSchedulingWindowRequest request) { + return client.getSchedulingWindow(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetSchedulingWindowResponse response) { + return targetStatesSet.contains( + response.getSchedulingWindow().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.database.model.SchedulingWindow.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 forVmCluster( + GetVmClusterRequest request, + com.oracle.bmc.database.model.VmCluster.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 forVmCluster( + 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 forVmCluster( + GetVmClusterRequest request, + com.oracle.bmc.database.model.VmCluster.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 forVmCluster( + 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 forVmCluster( + GetVmClusterRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.VmCluster.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 forVmCluster( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for VmCluster. + private com.oracle.bmc.waiter.Waiter forVmCluster( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetVmClusterRequest request, + final com.oracle.bmc.database.model.VmCluster.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< + GetVmClusterRequest, GetVmClusterResponse>() { + @Override + public GetVmClusterResponse apply(GetVmClusterRequest request) { + return client.getVmCluster(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetVmClusterResponse response) { + return targetStatesSet.contains( + response.getVmCluster().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.database.model.VmCluster.LifecycleState.Terminated)), + 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 + forVmClusterNetwork( + GetVmClusterNetworkRequest request, + com.oracle.bmc.database.model.VmClusterNetwork.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 forVmClusterNetwork( + 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 + forVmClusterNetwork( + GetVmClusterNetworkRequest request, + com.oracle.bmc.database.model.VmClusterNetwork.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 forVmClusterNetwork( + 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 + forVmClusterNetwork( + GetVmClusterNetworkRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.VmClusterNetwork.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 forVmClusterNetwork( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for VmClusterNetwork. + private com.oracle.bmc.waiter.Waiter + forVmClusterNetwork( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetVmClusterNetworkRequest request, + final com.oracle.bmc.database.model.VmClusterNetwork.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< + GetVmClusterNetworkRequest, GetVmClusterNetworkResponse>() { + @Override + public GetVmClusterNetworkResponse apply( + GetVmClusterNetworkRequest request) { + return client.getVmClusterNetwork(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetVmClusterNetworkResponse response) { + return targetStatesSet.contains( + response.getVmClusterNetwork().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.database.model.VmClusterNetwork.LifecycleState + .Terminated)), + 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 + forVmClusterUpdate( + GetVmClusterUpdateRequest request, + com.oracle.bmc.database.model.VmClusterUpdate.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 forVmClusterUpdate( + 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 + forVmClusterUpdate( + GetVmClusterUpdateRequest request, + com.oracle.bmc.database.model.VmClusterUpdate.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 forVmClusterUpdate( + 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 + forVmClusterUpdate( + GetVmClusterUpdateRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.VmClusterUpdate.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 forVmClusterUpdate( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for VmClusterUpdate. + private com.oracle.bmc.waiter.Waiter + forVmClusterUpdate( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetVmClusterUpdateRequest request, + final com.oracle.bmc.database.model.VmClusterUpdate.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< + GetVmClusterUpdateRequest, GetVmClusterUpdateResponse>() { + @Override + public GetVmClusterUpdateResponse apply( + GetVmClusterUpdateRequest request) { + return client.getVmClusterUpdate(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetVmClusterUpdateResponse response) { + return targetStatesSet.contains( + response.getVmClusterUpdate().getLifecycleState()); + } + }, + false), + 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< + GetVmClusterUpdateHistoryEntryRequest, GetVmClusterUpdateHistoryEntryResponse> + forVmClusterUpdateHistoryEntry( + GetVmClusterUpdateHistoryEntryRequest request, + com.oracle.bmc.database.model.VmClusterUpdateHistoryEntry.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 forVmClusterUpdateHistoryEntry( + 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< + GetVmClusterUpdateHistoryEntryRequest, GetVmClusterUpdateHistoryEntryResponse> + forVmClusterUpdateHistoryEntry( + GetVmClusterUpdateHistoryEntryRequest request, + com.oracle.bmc.database.model.VmClusterUpdateHistoryEntry.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 forVmClusterUpdateHistoryEntry( + 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< + GetVmClusterUpdateHistoryEntryRequest, GetVmClusterUpdateHistoryEntryResponse> + forVmClusterUpdateHistoryEntry( + GetVmClusterUpdateHistoryEntryRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.VmClusterUpdateHistoryEntry.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 forVmClusterUpdateHistoryEntry( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for VmClusterUpdateHistoryEntry. + private com.oracle.bmc.waiter.Waiter< + GetVmClusterUpdateHistoryEntryRequest, GetVmClusterUpdateHistoryEntryResponse> + forVmClusterUpdateHistoryEntry( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetVmClusterUpdateHistoryEntryRequest request, + final com.oracle.bmc.database.model.VmClusterUpdateHistoryEntry.LifecycleState + ... + targetStates) { + final java.util.Set< + com.oracle.bmc.database.model.VmClusterUpdateHistoryEntry.LifecycleState> + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetVmClusterUpdateHistoryEntryRequest, + GetVmClusterUpdateHistoryEntryResponse>() { + @Override + public GetVmClusterUpdateHistoryEntryResponse apply( + GetVmClusterUpdateHistoryEntryRequest request) { + return client.getVmClusterUpdateHistoryEntry(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetVmClusterUpdateHistoryEntryResponse response) { + return targetStatesSet.contains( + response.getVmClusterUpdateHistoryEntry() + .getLifecycleState()); + } + }, + false), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + LaunchAutonomousExadataInfrastructureRequest, + LaunchAutonomousExadataInfrastructureResponse> + forLaunchAutonomousExadataInfrastructure( + LaunchAutonomousExadataInfrastructureRequest request) { + return forLaunchAutonomousExadataInfrastructure( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + LaunchAutonomousExadataInfrastructureRequest, + LaunchAutonomousExadataInfrastructureResponse> + forLaunchAutonomousExadataInfrastructure( + LaunchAutonomousExadataInfrastructureRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public LaunchAutonomousExadataInfrastructureResponse call() throws Exception { + final LaunchAutonomousExadataInfrastructureResponse response = + client.launchAutonomousExadataInfrastructure(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forLaunchDbSystem(LaunchDbSystemRequest request) { + return forLaunchDbSystem( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forLaunchDbSystem( + LaunchDbSystemRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public LaunchDbSystemResponse call() throws Exception { + final LaunchDbSystemResponse response = client.launchDbSystem(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + LocalClonePluggableDatabaseRequest, LocalClonePluggableDatabaseResponse> + forLocalClonePluggableDatabase(LocalClonePluggableDatabaseRequest request) { + return forLocalClonePluggableDatabase( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + LocalClonePluggableDatabaseRequest, LocalClonePluggableDatabaseResponse> + forLocalClonePluggableDatabase( + LocalClonePluggableDatabaseRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public LocalClonePluggableDatabaseResponse call() throws Exception { + final LocalClonePluggableDatabaseResponse response = + client.localClonePluggableDatabase(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + MigrateExadataDbSystemResourceModelRequest, + MigrateExadataDbSystemResourceModelResponse> + forMigrateExadataDbSystemResourceModel( + MigrateExadataDbSystemResourceModelRequest request) { + return forMigrateExadataDbSystemResourceModel( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + MigrateExadataDbSystemResourceModelRequest, + MigrateExadataDbSystemResourceModelResponse> + forMigrateExadataDbSystemResourceModel( + MigrateExadataDbSystemResourceModelRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public MigrateExadataDbSystemResourceModelResponse call() throws Exception { + final MigrateExadataDbSystemResourceModelResponse response = + client.migrateExadataDbSystemResourceModel(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forMigrateVaultKey(MigrateVaultKeyRequest request) { + return forMigrateVaultKey( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forMigrateVaultKey( + MigrateVaultKeyRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public MigrateVaultKeyResponse call() throws Exception { + final MigrateVaultKeyResponse response = client.migrateVaultKey(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + ModifyDatabaseManagementRequest, ModifyDatabaseManagementResponse> + forModifyDatabaseManagement(ModifyDatabaseManagementRequest request) { + return forModifyDatabaseManagement( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + ModifyDatabaseManagementRequest, ModifyDatabaseManagementResponse> + forModifyDatabaseManagement( + ModifyDatabaseManagementRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public ModifyDatabaseManagementResponse call() throws Exception { + final ModifyDatabaseManagementResponse response = + client.modifyDatabaseManagement(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @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 + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forVmClusterUpdate( - GetVmClusterUpdateRequest request, - com.oracle.bmc.database.model.VmClusterUpdate.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 forVmClusterUpdate( - com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + public com.oracle.bmc.waiter.Waiter< + ModifyPluggableDatabaseManagementRequest, + ModifyPluggableDatabaseManagementResponse> + forModifyPluggableDatabaseManagement(ModifyPluggableDatabaseManagementRequest request) { + return forModifyPluggableDatabaseManagement( request, - targetState); + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** @@ -13040,57 +15057,46 @@ public boolean test(GetVmClusterNetworkResponse response) { * @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 + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forVmClusterUpdate( - GetVmClusterUpdateRequest request, + public com.oracle.bmc.waiter.Waiter< + ModifyPluggableDatabaseManagementRequest, + ModifyPluggableDatabaseManagementResponse> + forModifyPluggableDatabaseManagement( + ModifyPluggableDatabaseManagementRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.VmClusterUpdate.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 forVmClusterUpdate( - com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), - request, - targetStates); - } - - // Helper method to create a new Waiter for VmClusterUpdate. - private com.oracle.bmc.waiter.Waiter - forVmClusterUpdate( - com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetVmClusterUpdateRequest request, - final com.oracle.bmc.database.model.VmClusterUpdate.LifecycleState... - targetStates) { - final java.util.Set - targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - waiter.toCallable( - () -> request, - new java.util.function.Function< - GetVmClusterUpdateRequest, GetVmClusterUpdateResponse>() { - @Override - public GetVmClusterUpdateResponse apply( - GetVmClusterUpdateRequest request) { - return client.getVmClusterUpdate(request); - } - }, - new java.util.function.Predicate() { - @Override - public boolean test(GetVmClusterUpdateResponse response) { - return targetStatesSet.contains( - response.getVmClusterUpdate().getLifecycleState()); - } - }, - false), + new java.util.concurrent.Callable() { + @Override + public ModifyPluggableDatabaseManagementResponse call() throws Exception { + final ModifyPluggableDatabaseManagementResponse response = + client.modifyPluggableDatabaseManagement(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, request); } @@ -13098,49 +15104,15 @@ public boolean test(GetVmClusterUpdateResponse response) { * 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< - GetVmClusterUpdateHistoryEntryRequest, GetVmClusterUpdateHistoryEntryResponse> - forVmClusterUpdateHistoryEntry( - GetVmClusterUpdateHistoryEntryRequest request, - com.oracle.bmc.database.model.VmClusterUpdateHistoryEntry.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 forVmClusterUpdateHistoryEntry( - 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 + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetVmClusterUpdateHistoryEntryRequest, GetVmClusterUpdateHistoryEntryResponse> - forVmClusterUpdateHistoryEntry( - GetVmClusterUpdateHistoryEntryRequest request, - com.oracle.bmc.database.model.VmClusterUpdateHistoryEntry.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 forVmClusterUpdateHistoryEntry( - com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + MoveExecutionActionMemberRequest, MoveExecutionActionMemberResponse> + forMoveExecutionActionMember(MoveExecutionActionMemberRequest request) { + return forMoveExecutionActionMember( request, - targetState); + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** @@ -13149,64 +15121,45 @@ public boolean test(GetVmClusterUpdateResponse response) { * @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 + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetVmClusterUpdateHistoryEntryRequest, GetVmClusterUpdateHistoryEntryResponse> - forVmClusterUpdateHistoryEntry( - GetVmClusterUpdateHistoryEntryRequest request, + MoveExecutionActionMemberRequest, MoveExecutionActionMemberResponse> + forMoveExecutionActionMember( + MoveExecutionActionMemberRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.VmClusterUpdateHistoryEntry.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 forVmClusterUpdateHistoryEntry( - com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), - request, - targetStates); - } - - // Helper method to create a new Waiter for VmClusterUpdateHistoryEntry. - private com.oracle.bmc.waiter.Waiter< - GetVmClusterUpdateHistoryEntryRequest, GetVmClusterUpdateHistoryEntryResponse> - forVmClusterUpdateHistoryEntry( - com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetVmClusterUpdateHistoryEntryRequest request, - final com.oracle.bmc.database.model.VmClusterUpdateHistoryEntry.LifecycleState - ... - targetStates) { - final java.util.Set< - com.oracle.bmc.database.model.VmClusterUpdateHistoryEntry.LifecycleState> - targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - waiter.toCallable( - () -> request, - new java.util.function.Function< - GetVmClusterUpdateHistoryEntryRequest, - GetVmClusterUpdateHistoryEntryResponse>() { - @Override - public GetVmClusterUpdateHistoryEntryResponse apply( - GetVmClusterUpdateHistoryEntryRequest request) { - return client.getVmClusterUpdateHistoryEntry(request); - } - }, - new java.util.function.Predicate() { - @Override - public boolean test(GetVmClusterUpdateHistoryEntryResponse response) { - return targetStatesSet.contains( - response.getVmClusterUpdateHistoryEntry() - .getLifecycleState()); - } - }, - false), + new java.util.concurrent.Callable() { + @Override + public MoveExecutionActionMemberResponse call() throws Exception { + final MoveExecutionActionMemberResponse response = + client.moveExecutionActionMember(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, request); } @@ -13217,11 +15170,9 @@ public boolean test(GetVmClusterUpdateHistoryEntryResponse response) { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - LaunchAutonomousExadataInfrastructureRequest, - LaunchAutonomousExadataInfrastructureResponse> - forLaunchAutonomousExadataInfrastructure( - LaunchAutonomousExadataInfrastructureRequest request) { - return forLaunchAutonomousExadataInfrastructure( + RefreshPluggableDatabaseRequest, RefreshPluggableDatabaseResponse> + forRefreshPluggableDatabase(RefreshPluggableDatabaseRequest request) { + return forRefreshPluggableDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -13236,10 +15187,9 @@ public boolean test(GetVmClusterUpdateHistoryEntryResponse response) { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - LaunchAutonomousExadataInfrastructureRequest, - LaunchAutonomousExadataInfrastructureResponse> - forLaunchAutonomousExadataInfrastructure( - LaunchAutonomousExadataInfrastructureRequest request, + RefreshPluggableDatabaseRequest, RefreshPluggableDatabaseResponse> + forRefreshPluggableDatabase( + RefreshPluggableDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -13249,11 +15199,11 @@ public boolean test(GetVmClusterUpdateHistoryEntryResponse response) { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public LaunchAutonomousExadataInfrastructureResponse call() throws Exception { - final LaunchAutonomousExadataInfrastructureResponse response = - client.launchAutonomousExadataInfrastructure(request); + public RefreshPluggableDatabaseResponse call() throws Exception { + final RefreshPluggableDatabaseResponse response = + client.refreshPluggableDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -13282,9 +15232,12 @@ public LaunchAutonomousExadataInfrastructureResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forLaunchDbSystem(LaunchDbSystemRequest request) { - return forLaunchDbSystem( + public com.oracle.bmc.waiter.Waiter< + RegisterAutonomousDatabaseDataSafeRequest, + RegisterAutonomousDatabaseDataSafeResponse> + forRegisterAutonomousDatabaseDataSafe( + RegisterAutonomousDatabaseDataSafeRequest request) { + return forRegisterAutonomousDatabaseDataSafe( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -13298,9 +15251,11 @@ public LaunchAutonomousExadataInfrastructureResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forLaunchDbSystem( - LaunchDbSystemRequest request, + public com.oracle.bmc.waiter.Waiter< + RegisterAutonomousDatabaseDataSafeRequest, + RegisterAutonomousDatabaseDataSafeResponse> + forRegisterAutonomousDatabaseDataSafe( + RegisterAutonomousDatabaseDataSafeRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -13310,10 +15265,11 @@ public LaunchAutonomousExadataInfrastructureResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public LaunchDbSystemResponse call() throws Exception { - final LaunchDbSystemResponse response = client.launchDbSystem(request); + public RegisterAutonomousDatabaseDataSafeResponse call() throws Exception { + final RegisterAutonomousDatabaseDataSafeResponse response = + client.registerAutonomousDatabaseDataSafe(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -13343,9 +15299,11 @@ public LaunchDbSystemResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - LocalClonePluggableDatabaseRequest, LocalClonePluggableDatabaseResponse> - forLocalClonePluggableDatabase(LocalClonePluggableDatabaseRequest request) { - return forLocalClonePluggableDatabase( + ReinstateAutonomousContainerDatabaseDataguardAssociationRequest, + ReinstateAutonomousContainerDatabaseDataguardAssociationResponse> + forReinstateAutonomousContainerDatabaseDataguardAssociation( + ReinstateAutonomousContainerDatabaseDataguardAssociationRequest request) { + return forReinstateAutonomousContainerDatabaseDataguardAssociation( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -13360,9 +15318,10 @@ public LaunchDbSystemResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - LocalClonePluggableDatabaseRequest, LocalClonePluggableDatabaseResponse> - forLocalClonePluggableDatabase( - LocalClonePluggableDatabaseRequest request, + ReinstateAutonomousContainerDatabaseDataguardAssociationRequest, + ReinstateAutonomousContainerDatabaseDataguardAssociationResponse> + forReinstateAutonomousContainerDatabaseDataguardAssociation( + ReinstateAutonomousContainerDatabaseDataguardAssociationRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -13372,11 +15331,16 @@ public LaunchDbSystemResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable< + ReinstateAutonomousContainerDatabaseDataguardAssociationResponse>() { @Override - public LocalClonePluggableDatabaseResponse call() throws Exception { - final LocalClonePluggableDatabaseResponse response = - client.localClonePluggableDatabase(request); + public ReinstateAutonomousContainerDatabaseDataguardAssociationResponse call() + throws Exception { + final ReinstateAutonomousContainerDatabaseDataguardAssociationResponse + response = + client + .reinstateAutonomousContainerDatabaseDataguardAssociation( + request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -13406,11 +15370,9 @@ public LocalClonePluggableDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - MigrateExadataDbSystemResourceModelRequest, - MigrateExadataDbSystemResourceModelResponse> - forMigrateExadataDbSystemResourceModel( - MigrateExadataDbSystemResourceModelRequest request) { - return forMigrateExadataDbSystemResourceModel( + ReinstateDataGuardAssociationRequest, ReinstateDataGuardAssociationResponse> + forReinstateDataGuardAssociation(ReinstateDataGuardAssociationRequest request) { + return forReinstateDataGuardAssociation( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -13425,10 +15387,9 @@ public LocalClonePluggableDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - MigrateExadataDbSystemResourceModelRequest, - MigrateExadataDbSystemResourceModelResponse> - forMigrateExadataDbSystemResourceModel( - MigrateExadataDbSystemResourceModelRequest request, + ReinstateDataGuardAssociationRequest, ReinstateDataGuardAssociationResponse> + forReinstateDataGuardAssociation( + ReinstateDataGuardAssociationRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -13438,11 +15399,11 @@ public LocalClonePluggableDatabaseResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public MigrateExadataDbSystemResourceModelResponse call() throws Exception { - final MigrateExadataDbSystemResourceModelResponse response = - client.migrateExadataDbSystemResourceModel(request); + public ReinstateDataGuardAssociationResponse call() throws Exception { + final ReinstateDataGuardAssociationResponse response = + client.reinstateDataGuardAssociation(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -13471,9 +15432,10 @@ public MigrateExadataDbSystemResourceModelResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forMigrateVaultKey(MigrateVaultKeyRequest request) { - return forMigrateVaultKey( + public com.oracle.bmc.waiter.Waiter< + RemoteClonePluggableDatabaseRequest, RemoteClonePluggableDatabaseResponse> + forRemoteClonePluggableDatabase(RemoteClonePluggableDatabaseRequest request) { + return forRemoteClonePluggableDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -13487,9 +15449,10 @@ public MigrateExadataDbSystemResourceModelResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forMigrateVaultKey( - MigrateVaultKeyRequest request, + public com.oracle.bmc.waiter.Waiter< + RemoteClonePluggableDatabaseRequest, RemoteClonePluggableDatabaseResponse> + forRemoteClonePluggableDatabase( + RemoteClonePluggableDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -13499,10 +15462,11 @@ public MigrateExadataDbSystemResourceModelResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public MigrateVaultKeyResponse call() throws Exception { - final MigrateVaultKeyResponse response = client.migrateVaultKey(request); + public RemoteClonePluggableDatabaseResponse call() throws Exception { + final RemoteClonePluggableDatabaseResponse response = + client.remoteClonePluggableDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -13532,9 +15496,11 @@ public MigrateVaultKeyResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - ModifyDatabaseManagementRequest, ModifyDatabaseManagementResponse> - forModifyDatabaseManagement(ModifyDatabaseManagementRequest request) { - return forModifyDatabaseManagement( + RemoveVirtualMachineFromCloudVmClusterRequest, + RemoveVirtualMachineFromCloudVmClusterResponse> + forRemoveVirtualMachineFromCloudVmCluster( + RemoveVirtualMachineFromCloudVmClusterRequest request) { + return forRemoveVirtualMachineFromCloudVmCluster( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -13549,9 +15515,10 @@ public MigrateVaultKeyResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - ModifyDatabaseManagementRequest, ModifyDatabaseManagementResponse> - forModifyDatabaseManagement( - ModifyDatabaseManagementRequest request, + RemoveVirtualMachineFromCloudVmClusterRequest, + RemoveVirtualMachineFromCloudVmClusterResponse> + forRemoveVirtualMachineFromCloudVmCluster( + RemoveVirtualMachineFromCloudVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -13561,11 +15528,12 @@ public MigrateVaultKeyResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable< + RemoveVirtualMachineFromCloudVmClusterResponse>() { @Override - public ModifyDatabaseManagementResponse call() throws Exception { - final ModifyDatabaseManagementResponse response = - client.modifyDatabaseManagement(request); + public RemoveVirtualMachineFromCloudVmClusterResponse call() throws Exception { + final RemoveVirtualMachineFromCloudVmClusterResponse response = + client.removeVirtualMachineFromCloudVmCluster(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -13595,10 +15563,11 @@ public ModifyDatabaseManagementResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - ModifyPluggableDatabaseManagementRequest, - ModifyPluggableDatabaseManagementResponse> - forModifyPluggableDatabaseManagement(ModifyPluggableDatabaseManagementRequest request) { - return forModifyPluggableDatabaseManagement( + RemoveVirtualMachineFromExadbVmClusterRequest, + RemoveVirtualMachineFromExadbVmClusterResponse> + forRemoveVirtualMachineFromExadbVmCluster( + RemoveVirtualMachineFromExadbVmClusterRequest request) { + return forRemoveVirtualMachineFromExadbVmCluster( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -13613,10 +15582,10 @@ public ModifyDatabaseManagementResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - ModifyPluggableDatabaseManagementRequest, - ModifyPluggableDatabaseManagementResponse> - forModifyPluggableDatabaseManagement( - ModifyPluggableDatabaseManagementRequest request, + RemoveVirtualMachineFromExadbVmClusterRequest, + RemoveVirtualMachineFromExadbVmClusterResponse> + forRemoveVirtualMachineFromExadbVmCluster( + RemoveVirtualMachineFromExadbVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -13626,11 +15595,12 @@ public ModifyDatabaseManagementResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable< + RemoveVirtualMachineFromExadbVmClusterResponse>() { @Override - public ModifyPluggableDatabaseManagementResponse call() throws Exception { - final ModifyPluggableDatabaseManagementResponse response = - client.modifyPluggableDatabaseManagement(request); + public RemoveVirtualMachineFromExadbVmClusterResponse call() throws Exception { + final RemoveVirtualMachineFromExadbVmClusterResponse response = + client.removeVirtualMachineFromExadbVmCluster(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -13660,9 +15630,10 @@ public ModifyPluggableDatabaseManagementResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - RefreshPluggableDatabaseRequest, RefreshPluggableDatabaseResponse> - forRefreshPluggableDatabase(RefreshPluggableDatabaseRequest request) { - return forRefreshPluggableDatabase( + RemoveVirtualMachineFromVmClusterRequest, + RemoveVirtualMachineFromVmClusterResponse> + forRemoveVirtualMachineFromVmCluster(RemoveVirtualMachineFromVmClusterRequest request) { + return forRemoveVirtualMachineFromVmCluster( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -13677,9 +15648,10 @@ public ModifyPluggableDatabaseManagementResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - RefreshPluggableDatabaseRequest, RefreshPluggableDatabaseResponse> - forRefreshPluggableDatabase( - RefreshPluggableDatabaseRequest request, + RemoveVirtualMachineFromVmClusterRequest, + RemoveVirtualMachineFromVmClusterResponse> + forRemoveVirtualMachineFromVmCluster( + RemoveVirtualMachineFromVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -13689,11 +15661,11 @@ public ModifyPluggableDatabaseManagementResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public RefreshPluggableDatabaseResponse call() throws Exception { - final RefreshPluggableDatabaseResponse response = - client.refreshPluggableDatabase(request); + public RemoveVirtualMachineFromVmClusterResponse call() throws Exception { + final RemoveVirtualMachineFromVmClusterResponse response = + client.removeVirtualMachineFromVmCluster(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -13723,11 +15695,9 @@ public RefreshPluggableDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - RegisterAutonomousDatabaseDataSafeRequest, - RegisterAutonomousDatabaseDataSafeResponse> - forRegisterAutonomousDatabaseDataSafe( - RegisterAutonomousDatabaseDataSafeRequest request) { - return forRegisterAutonomousDatabaseDataSafe( + ReorderExecutionActionsRequest, ReorderExecutionActionsResponse> + forReorderExecutionActions(ReorderExecutionActionsRequest request) { + return forReorderExecutionActions( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -13742,10 +15712,9 @@ public RefreshPluggableDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - RegisterAutonomousDatabaseDataSafeRequest, - RegisterAutonomousDatabaseDataSafeResponse> - forRegisterAutonomousDatabaseDataSafe( - RegisterAutonomousDatabaseDataSafeRequest request, + ReorderExecutionActionsRequest, ReorderExecutionActionsResponse> + forReorderExecutionActions( + ReorderExecutionActionsRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -13755,11 +15724,11 @@ public RefreshPluggableDatabaseResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public RegisterAutonomousDatabaseDataSafeResponse call() throws Exception { - final RegisterAutonomousDatabaseDataSafeResponse response = - client.registerAutonomousDatabaseDataSafe(request); + public ReorderExecutionActionsResponse call() throws Exception { + final ReorderExecutionActionsResponse response = + client.reorderExecutionActions(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -13789,11 +15758,9 @@ public RegisterAutonomousDatabaseDataSafeResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - ReinstateAutonomousContainerDatabaseDataguardAssociationRequest, - ReinstateAutonomousContainerDatabaseDataguardAssociationResponse> - forReinstateAutonomousContainerDatabaseDataguardAssociation( - ReinstateAutonomousContainerDatabaseDataguardAssociationRequest request) { - return forReinstateAutonomousContainerDatabaseDataguardAssociation( + ReorderScheduledActionsRequest, ReorderScheduledActionsResponse> + forReorderScheduledActions(ReorderScheduledActionsRequest request) { + return forReorderScheduledActions( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -13808,10 +15775,9 @@ public RegisterAutonomousDatabaseDataSafeResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - ReinstateAutonomousContainerDatabaseDataguardAssociationRequest, - ReinstateAutonomousContainerDatabaseDataguardAssociationResponse> - forReinstateAutonomousContainerDatabaseDataguardAssociation( - ReinstateAutonomousContainerDatabaseDataguardAssociationRequest request, + ReorderScheduledActionsRequest, ReorderScheduledActionsResponse> + forReorderScheduledActions( + ReorderScheduledActionsRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -13821,16 +15787,11 @@ public RegisterAutonomousDatabaseDataSafeResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable< - ReinstateAutonomousContainerDatabaseDataguardAssociationResponse>() { + new java.util.concurrent.Callable() { @Override - public ReinstateAutonomousContainerDatabaseDataguardAssociationResponse call() - throws Exception { - final ReinstateAutonomousContainerDatabaseDataguardAssociationResponse - response = - client - .reinstateAutonomousContainerDatabaseDataguardAssociation( - request); + public ReorderScheduledActionsResponse call() throws Exception { + final ReorderScheduledActionsResponse response = + client.reorderScheduledActions(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -13860,9 +15821,9 @@ public ReinstateAutonomousContainerDatabaseDataguardAssociationResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - ReinstateDataGuardAssociationRequest, ReinstateDataGuardAssociationResponse> - forReinstateDataGuardAssociation(ReinstateDataGuardAssociationRequest request) { - return forReinstateDataGuardAssociation( + ResizeVmClusterNetworkRequest, ResizeVmClusterNetworkResponse> + forResizeVmClusterNetwork(ResizeVmClusterNetworkRequest request) { + return forResizeVmClusterNetwork( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -13877,9 +15838,9 @@ public ReinstateAutonomousContainerDatabaseDataguardAssociationResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - ReinstateDataGuardAssociationRequest, ReinstateDataGuardAssociationResponse> - forReinstateDataGuardAssociation( - ReinstateDataGuardAssociationRequest request, + ResizeVmClusterNetworkRequest, ResizeVmClusterNetworkResponse> + forResizeVmClusterNetwork( + ResizeVmClusterNetworkRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -13889,11 +15850,11 @@ public ReinstateAutonomousContainerDatabaseDataguardAssociationResponse call() return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public ReinstateDataGuardAssociationResponse call() throws Exception { - final ReinstateDataGuardAssociationResponse response = - client.reinstateDataGuardAssociation(request); + public ResizeVmClusterNetworkResponse call() throws Exception { + final ResizeVmClusterNetworkResponse response = + client.resizeVmClusterNetwork(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -13923,9 +15884,11 @@ public ReinstateDataGuardAssociationResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - RemoteClonePluggableDatabaseRequest, RemoteClonePluggableDatabaseResponse> - forRemoteClonePluggableDatabase(RemoteClonePluggableDatabaseRequest request) { - return forRemoteClonePluggableDatabase( + RestartAutonomousContainerDatabaseRequest, + RestartAutonomousContainerDatabaseResponse> + forRestartAutonomousContainerDatabase( + RestartAutonomousContainerDatabaseRequest request) { + return forRestartAutonomousContainerDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -13940,9 +15903,10 @@ public ReinstateDataGuardAssociationResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - RemoteClonePluggableDatabaseRequest, RemoteClonePluggableDatabaseResponse> - forRemoteClonePluggableDatabase( - RemoteClonePluggableDatabaseRequest request, + RestartAutonomousContainerDatabaseRequest, + RestartAutonomousContainerDatabaseResponse> + forRestartAutonomousContainerDatabase( + RestartAutonomousContainerDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -13952,11 +15916,11 @@ public ReinstateDataGuardAssociationResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public RemoteClonePluggableDatabaseResponse call() throws Exception { - final RemoteClonePluggableDatabaseResponse response = - client.remoteClonePluggableDatabase(request); + public RestartAutonomousContainerDatabaseResponse call() throws Exception { + final RestartAutonomousContainerDatabaseResponse response = + client.restartAutonomousContainerDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -13986,11 +15950,9 @@ public RemoteClonePluggableDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - RemoveVirtualMachineFromCloudVmClusterRequest, - RemoveVirtualMachineFromCloudVmClusterResponse> - forRemoveVirtualMachineFromCloudVmCluster( - RemoveVirtualMachineFromCloudVmClusterRequest request) { - return forRemoveVirtualMachineFromCloudVmCluster( + RestartAutonomousDatabaseRequest, RestartAutonomousDatabaseResponse> + forRestartAutonomousDatabase(RestartAutonomousDatabaseRequest request) { + return forRestartAutonomousDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -14004,11 +15966,10 @@ public RemoteClonePluggableDatabaseResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - RemoveVirtualMachineFromCloudVmClusterRequest, - RemoveVirtualMachineFromCloudVmClusterResponse> - forRemoveVirtualMachineFromCloudVmCluster( - RemoveVirtualMachineFromCloudVmClusterRequest request, + public com.oracle.bmc.waiter.Waiter< + RestartAutonomousDatabaseRequest, RestartAutonomousDatabaseResponse> + forRestartAutonomousDatabase( + RestartAutonomousDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -14018,12 +15979,11 @@ public RemoteClonePluggableDatabaseResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable< - RemoveVirtualMachineFromCloudVmClusterResponse>() { + new java.util.concurrent.Callable() { @Override - public RemoveVirtualMachineFromCloudVmClusterResponse call() throws Exception { - final RemoveVirtualMachineFromCloudVmClusterResponse response = - client.removeVirtualMachineFromCloudVmCluster(request); + public RestartAutonomousDatabaseResponse call() throws Exception { + final RestartAutonomousDatabaseResponse response = + client.restartAutonomousDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -14053,11 +16013,9 @@ public RemoveVirtualMachineFromCloudVmClusterResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - RemoveVirtualMachineFromExadbVmClusterRequest, - RemoveVirtualMachineFromExadbVmClusterResponse> - forRemoveVirtualMachineFromExadbVmCluster( - RemoveVirtualMachineFromExadbVmClusterRequest request) { - return forRemoveVirtualMachineFromExadbVmCluster( + RestoreAutonomousDatabaseRequest, RestoreAutonomousDatabaseResponse> + forRestoreAutonomousDatabase(RestoreAutonomousDatabaseRequest request) { + return forRestoreAutonomousDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -14072,10 +16030,9 @@ public RemoveVirtualMachineFromCloudVmClusterResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - RemoveVirtualMachineFromExadbVmClusterRequest, - RemoveVirtualMachineFromExadbVmClusterResponse> - forRemoveVirtualMachineFromExadbVmCluster( - RemoveVirtualMachineFromExadbVmClusterRequest request, + RestoreAutonomousDatabaseRequest, RestoreAutonomousDatabaseResponse> + forRestoreAutonomousDatabase( + RestoreAutonomousDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -14085,12 +16042,11 @@ public RemoveVirtualMachineFromCloudVmClusterResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable< - RemoveVirtualMachineFromExadbVmClusterResponse>() { + new java.util.concurrent.Callable() { @Override - public RemoveVirtualMachineFromExadbVmClusterResponse call() throws Exception { - final RemoveVirtualMachineFromExadbVmClusterResponse response = - client.removeVirtualMachineFromExadbVmCluster(request); + public RestoreAutonomousDatabaseResponse call() throws Exception { + final RestoreAutonomousDatabaseResponse response = + client.restoreAutonomousDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -14119,11 +16075,9 @@ public RemoveVirtualMachineFromExadbVmClusterResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - RemoveVirtualMachineFromVmClusterRequest, - RemoveVirtualMachineFromVmClusterResponse> - forRemoveVirtualMachineFromVmCluster(RemoveVirtualMachineFromVmClusterRequest request) { - return forRemoveVirtualMachineFromVmCluster( + public com.oracle.bmc.waiter.Waiter + forRestoreDatabase(RestoreDatabaseRequest request) { + return forRestoreDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -14137,11 +16091,9 @@ public RemoveVirtualMachineFromExadbVmClusterResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - RemoveVirtualMachineFromVmClusterRequest, - RemoveVirtualMachineFromVmClusterResponse> - forRemoveVirtualMachineFromVmCluster( - RemoveVirtualMachineFromVmClusterRequest request, + public com.oracle.bmc.waiter.Waiter + forRestoreDatabase( + RestoreDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -14151,11 +16103,10 @@ public RemoveVirtualMachineFromExadbVmClusterResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public RemoveVirtualMachineFromVmClusterResponse call() throws Exception { - final RemoveVirtualMachineFromVmClusterResponse response = - client.removeVirtualMachineFromVmCluster(request); + public RestoreDatabaseResponse call() throws Exception { + final RestoreDatabaseResponse response = client.restoreDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -14185,9 +16136,11 @@ public RemoveVirtualMachineFromVmClusterResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - ResizeVmClusterNetworkRequest, ResizeVmClusterNetworkResponse> - forResizeVmClusterNetwork(ResizeVmClusterNetworkRequest request) { - return forResizeVmClusterNetwork( + RotateAutonomousContainerDatabaseEncryptionKeyRequest, + RotateAutonomousContainerDatabaseEncryptionKeyResponse> + forRotateAutonomousContainerDatabaseEncryptionKey( + RotateAutonomousContainerDatabaseEncryptionKeyRequest request) { + return forRotateAutonomousContainerDatabaseEncryptionKey( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -14202,9 +16155,10 @@ public RemoveVirtualMachineFromVmClusterResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - ResizeVmClusterNetworkRequest, ResizeVmClusterNetworkResponse> - forResizeVmClusterNetwork( - ResizeVmClusterNetworkRequest request, + RotateAutonomousContainerDatabaseEncryptionKeyRequest, + RotateAutonomousContainerDatabaseEncryptionKeyResponse> + forRotateAutonomousContainerDatabaseEncryptionKey( + RotateAutonomousContainerDatabaseEncryptionKeyRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -14214,11 +16168,13 @@ public RemoveVirtualMachineFromVmClusterResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable< + RotateAutonomousContainerDatabaseEncryptionKeyResponse>() { @Override - public ResizeVmClusterNetworkResponse call() throws Exception { - final ResizeVmClusterNetworkResponse response = - client.resizeVmClusterNetwork(request); + public RotateAutonomousContainerDatabaseEncryptionKeyResponse call() + throws Exception { + final RotateAutonomousContainerDatabaseEncryptionKeyResponse response = + client.rotateAutonomousContainerDatabaseEncryptionKey(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -14248,11 +16204,11 @@ public ResizeVmClusterNetworkResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - RestartAutonomousContainerDatabaseRequest, - RestartAutonomousContainerDatabaseResponse> - forRestartAutonomousContainerDatabase( - RestartAutonomousContainerDatabaseRequest request) { - return forRestartAutonomousContainerDatabase( + RotateAutonomousDatabaseEncryptionKeyRequest, + RotateAutonomousDatabaseEncryptionKeyResponse> + forRotateAutonomousDatabaseEncryptionKey( + RotateAutonomousDatabaseEncryptionKeyRequest request) { + return forRotateAutonomousDatabaseEncryptionKey( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -14267,10 +16223,10 @@ public ResizeVmClusterNetworkResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - RestartAutonomousContainerDatabaseRequest, - RestartAutonomousContainerDatabaseResponse> - forRestartAutonomousContainerDatabase( - RestartAutonomousContainerDatabaseRequest request, + RotateAutonomousDatabaseEncryptionKeyRequest, + RotateAutonomousDatabaseEncryptionKeyResponse> + forRotateAutonomousDatabaseEncryptionKey( + RotateAutonomousDatabaseEncryptionKeyRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -14280,11 +16236,11 @@ public ResizeVmClusterNetworkResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public RestartAutonomousContainerDatabaseResponse call() throws Exception { - final RestartAutonomousContainerDatabaseResponse response = - client.restartAutonomousContainerDatabase(request); + public RotateAutonomousDatabaseEncryptionKeyResponse call() throws Exception { + final RotateAutonomousDatabaseEncryptionKeyResponse response = + client.rotateAutonomousDatabaseEncryptionKey(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -14314,9 +16270,11 @@ public RestartAutonomousContainerDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - RestartAutonomousDatabaseRequest, RestartAutonomousDatabaseResponse> - forRestartAutonomousDatabase(RestartAutonomousDatabaseRequest request) { - return forRestartAutonomousDatabase( + RotateAutonomousVmClusterOrdsCertsRequest, + RotateAutonomousVmClusterOrdsCertsResponse> + forRotateAutonomousVmClusterOrdsCerts( + RotateAutonomousVmClusterOrdsCertsRequest request) { + return forRotateAutonomousVmClusterOrdsCerts( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -14331,9 +16289,10 @@ public RestartAutonomousContainerDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - RestartAutonomousDatabaseRequest, RestartAutonomousDatabaseResponse> - forRestartAutonomousDatabase( - RestartAutonomousDatabaseRequest request, + RotateAutonomousVmClusterOrdsCertsRequest, + RotateAutonomousVmClusterOrdsCertsResponse> + forRotateAutonomousVmClusterOrdsCerts( + RotateAutonomousVmClusterOrdsCertsRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -14343,11 +16302,11 @@ public RestartAutonomousContainerDatabaseResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public RestartAutonomousDatabaseResponse call() throws Exception { - final RestartAutonomousDatabaseResponse response = - client.restartAutonomousDatabase(request); + public RotateAutonomousVmClusterOrdsCertsResponse call() throws Exception { + final RotateAutonomousVmClusterOrdsCertsResponse response = + client.rotateAutonomousVmClusterOrdsCerts(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -14377,9 +16336,10 @@ public RestartAutonomousDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - RestoreAutonomousDatabaseRequest, RestoreAutonomousDatabaseResponse> - forRestoreAutonomousDatabase(RestoreAutonomousDatabaseRequest request) { - return forRestoreAutonomousDatabase( + RotateAutonomousVmClusterSslCertsRequest, + RotateAutonomousVmClusterSslCertsResponse> + forRotateAutonomousVmClusterSslCerts(RotateAutonomousVmClusterSslCertsRequest request) { + return forRotateAutonomousVmClusterSslCerts( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -14394,9 +16354,10 @@ public RestartAutonomousDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - RestoreAutonomousDatabaseRequest, RestoreAutonomousDatabaseResponse> - forRestoreAutonomousDatabase( - RestoreAutonomousDatabaseRequest request, + RotateAutonomousVmClusterSslCertsRequest, + RotateAutonomousVmClusterSslCertsResponse> + forRotateAutonomousVmClusterSslCerts( + RotateAutonomousVmClusterSslCertsRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -14406,11 +16367,11 @@ public RestartAutonomousDatabaseResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public RestoreAutonomousDatabaseResponse call() throws Exception { - final RestoreAutonomousDatabaseResponse response = - client.restoreAutonomousDatabase(request); + public RotateAutonomousVmClusterSslCertsResponse call() throws Exception { + final RotateAutonomousVmClusterSslCertsResponse response = + client.rotateAutonomousVmClusterSslCerts(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -14439,9 +16400,12 @@ public RestoreAutonomousDatabaseResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forRestoreDatabase(RestoreDatabaseRequest request) { - return forRestoreDatabase( + public com.oracle.bmc.waiter.Waiter< + RotateCloudAutonomousVmClusterOrdsCertsRequest, + RotateCloudAutonomousVmClusterOrdsCertsResponse> + forRotateCloudAutonomousVmClusterOrdsCerts( + RotateCloudAutonomousVmClusterOrdsCertsRequest request) { + return forRotateCloudAutonomousVmClusterOrdsCerts( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -14455,9 +16419,11 @@ public RestoreAutonomousDatabaseResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forRestoreDatabase( - RestoreDatabaseRequest request, + public com.oracle.bmc.waiter.Waiter< + RotateCloudAutonomousVmClusterOrdsCertsRequest, + RotateCloudAutonomousVmClusterOrdsCertsResponse> + forRotateCloudAutonomousVmClusterOrdsCerts( + RotateCloudAutonomousVmClusterOrdsCertsRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -14467,10 +16433,12 @@ public RestoreAutonomousDatabaseResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable< + RotateCloudAutonomousVmClusterOrdsCertsResponse>() { @Override - public RestoreDatabaseResponse call() throws Exception { - final RestoreDatabaseResponse response = client.restoreDatabase(request); + public RotateCloudAutonomousVmClusterOrdsCertsResponse call() throws Exception { + final RotateCloudAutonomousVmClusterOrdsCertsResponse response = + client.rotateCloudAutonomousVmClusterOrdsCerts(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -14500,11 +16468,11 @@ public RestoreDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - RotateAutonomousContainerDatabaseEncryptionKeyRequest, - RotateAutonomousContainerDatabaseEncryptionKeyResponse> - forRotateAutonomousContainerDatabaseEncryptionKey( - RotateAutonomousContainerDatabaseEncryptionKeyRequest request) { - return forRotateAutonomousContainerDatabaseEncryptionKey( + RotateCloudAutonomousVmClusterSslCertsRequest, + RotateCloudAutonomousVmClusterSslCertsResponse> + forRotateCloudAutonomousVmClusterSslCerts( + RotateCloudAutonomousVmClusterSslCertsRequest request) { + return forRotateCloudAutonomousVmClusterSslCerts( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -14519,10 +16487,10 @@ public RestoreDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - RotateAutonomousContainerDatabaseEncryptionKeyRequest, - RotateAutonomousContainerDatabaseEncryptionKeyResponse> - forRotateAutonomousContainerDatabaseEncryptionKey( - RotateAutonomousContainerDatabaseEncryptionKeyRequest request, + RotateCloudAutonomousVmClusterSslCertsRequest, + RotateCloudAutonomousVmClusterSslCertsResponse> + forRotateCloudAutonomousVmClusterSslCerts( + RotateCloudAutonomousVmClusterSslCertsRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -14533,12 +16501,11 @@ public RestoreDatabaseResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< - RotateAutonomousContainerDatabaseEncryptionKeyResponse>() { + RotateCloudAutonomousVmClusterSslCertsResponse>() { @Override - public RotateAutonomousContainerDatabaseEncryptionKeyResponse call() - throws Exception { - final RotateAutonomousContainerDatabaseEncryptionKeyResponse response = - client.rotateAutonomousContainerDatabaseEncryptionKey(request); + public RotateCloudAutonomousVmClusterSslCertsResponse call() throws Exception { + final RotateCloudAutonomousVmClusterSslCertsResponse response = + client.rotateCloudAutonomousVmClusterSslCerts(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -14567,12 +16534,9 @@ public RotateAutonomousContainerDatabaseEncryptionKeyResponse call() * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - RotateAutonomousDatabaseEncryptionKeyRequest, - RotateAutonomousDatabaseEncryptionKeyResponse> - forRotateAutonomousDatabaseEncryptionKey( - RotateAutonomousDatabaseEncryptionKeyRequest request) { - return forRotateAutonomousDatabaseEncryptionKey( + public com.oracle.bmc.waiter.Waiter + forRotateOrdsCerts(RotateOrdsCertsRequest request) { + return forRotateOrdsCerts( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -14586,11 +16550,9 @@ public RotateAutonomousContainerDatabaseEncryptionKeyResponse call() * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - RotateAutonomousDatabaseEncryptionKeyRequest, - RotateAutonomousDatabaseEncryptionKeyResponse> - forRotateAutonomousDatabaseEncryptionKey( - RotateAutonomousDatabaseEncryptionKeyRequest request, + public com.oracle.bmc.waiter.Waiter + forRotateOrdsCerts( + RotateOrdsCertsRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -14600,11 +16562,10 @@ public RotateAutonomousContainerDatabaseEncryptionKeyResponse call() return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public RotateAutonomousDatabaseEncryptionKeyResponse call() throws Exception { - final RotateAutonomousDatabaseEncryptionKeyResponse response = - client.rotateAutonomousDatabaseEncryptionKey(request); + public RotateOrdsCertsResponse call() throws Exception { + final RotateOrdsCertsResponse response = client.rotateOrdsCerts(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -14634,11 +16595,11 @@ public RotateAutonomousDatabaseEncryptionKeyResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - RotateAutonomousVmClusterOrdsCertsRequest, - RotateAutonomousVmClusterOrdsCertsResponse> - forRotateAutonomousVmClusterOrdsCerts( - RotateAutonomousVmClusterOrdsCertsRequest request) { - return forRotateAutonomousVmClusterOrdsCerts( + RotatePluggableDatabaseEncryptionKeyRequest, + RotatePluggableDatabaseEncryptionKeyResponse> + forRotatePluggableDatabaseEncryptionKey( + RotatePluggableDatabaseEncryptionKeyRequest request) { + return forRotatePluggableDatabaseEncryptionKey( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -14653,10 +16614,10 @@ public RotateAutonomousDatabaseEncryptionKeyResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - RotateAutonomousVmClusterOrdsCertsRequest, - RotateAutonomousVmClusterOrdsCertsResponse> - forRotateAutonomousVmClusterOrdsCerts( - RotateAutonomousVmClusterOrdsCertsRequest request, + RotatePluggableDatabaseEncryptionKeyRequest, + RotatePluggableDatabaseEncryptionKeyResponse> + forRotatePluggableDatabaseEncryptionKey( + RotatePluggableDatabaseEncryptionKeyRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -14666,11 +16627,11 @@ public RotateAutonomousDatabaseEncryptionKeyResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public RotateAutonomousVmClusterOrdsCertsResponse call() throws Exception { - final RotateAutonomousVmClusterOrdsCertsResponse response = - client.rotateAutonomousVmClusterOrdsCerts(request); + public RotatePluggableDatabaseEncryptionKeyResponse call() throws Exception { + final RotatePluggableDatabaseEncryptionKeyResponse response = + client.rotatePluggableDatabaseEncryptionKey(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -14699,11 +16660,9 @@ public RotateAutonomousVmClusterOrdsCertsResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - RotateAutonomousVmClusterSslCertsRequest, - RotateAutonomousVmClusterSslCertsResponse> - forRotateAutonomousVmClusterSslCerts(RotateAutonomousVmClusterSslCertsRequest request) { - return forRotateAutonomousVmClusterSslCerts( + public com.oracle.bmc.waiter.Waiter + forRotateSslCerts(RotateSslCertsRequest request) { + return forRotateSslCerts( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -14717,11 +16676,9 @@ public RotateAutonomousVmClusterOrdsCertsResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - RotateAutonomousVmClusterSslCertsRequest, - RotateAutonomousVmClusterSslCertsResponse> - forRotateAutonomousVmClusterSslCerts( - RotateAutonomousVmClusterSslCertsRequest request, + public com.oracle.bmc.waiter.Waiter + forRotateSslCerts( + RotateSslCertsRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -14731,11 +16688,10 @@ public RotateAutonomousVmClusterOrdsCertsResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public RotateAutonomousVmClusterSslCertsResponse call() throws Exception { - final RotateAutonomousVmClusterSslCertsResponse response = - client.rotateAutonomousVmClusterSslCerts(request); + public RotateSslCertsResponse call() throws Exception { + final RotateSslCertsResponse response = client.rotateSslCerts(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -14764,12 +16720,9 @@ public RotateAutonomousVmClusterSslCertsResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - RotateCloudAutonomousVmClusterOrdsCertsRequest, - RotateCloudAutonomousVmClusterOrdsCertsResponse> - forRotateCloudAutonomousVmClusterOrdsCerts( - RotateCloudAutonomousVmClusterOrdsCertsRequest request) { - return forRotateCloudAutonomousVmClusterOrdsCerts( + public com.oracle.bmc.waiter.Waiter + forRotateVaultKey(RotateVaultKeyRequest request) { + return forRotateVaultKey( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -14783,11 +16736,9 @@ public RotateAutonomousVmClusterSslCertsResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - RotateCloudAutonomousVmClusterOrdsCertsRequest, - RotateCloudAutonomousVmClusterOrdsCertsResponse> - forRotateCloudAutonomousVmClusterOrdsCerts( - RotateCloudAutonomousVmClusterOrdsCertsRequest request, + public com.oracle.bmc.waiter.Waiter + forRotateVaultKey( + RotateVaultKeyRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -14797,12 +16748,10 @@ public RotateAutonomousVmClusterSslCertsResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable< - RotateCloudAutonomousVmClusterOrdsCertsResponse>() { + new java.util.concurrent.Callable() { @Override - public RotateCloudAutonomousVmClusterOrdsCertsResponse call() throws Exception { - final RotateCloudAutonomousVmClusterOrdsCertsResponse response = - client.rotateCloudAutonomousVmClusterOrdsCerts(request); + public RotateVaultKeyResponse call() throws Exception { + final RotateVaultKeyResponse response = client.rotateVaultKey(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -14832,11 +16781,11 @@ public RotateCloudAutonomousVmClusterOrdsCertsResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - RotateCloudAutonomousVmClusterSslCertsRequest, - RotateCloudAutonomousVmClusterSslCertsResponse> - forRotateCloudAutonomousVmClusterSslCerts( - RotateCloudAutonomousVmClusterSslCertsRequest request) { - return forRotateCloudAutonomousVmClusterSslCerts( + ScanExternalContainerDatabasePluggableDatabasesRequest, + ScanExternalContainerDatabasePluggableDatabasesResponse> + forScanExternalContainerDatabasePluggableDatabases( + ScanExternalContainerDatabasePluggableDatabasesRequest request) { + return forScanExternalContainerDatabasePluggableDatabases( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -14851,10 +16800,10 @@ public RotateCloudAutonomousVmClusterOrdsCertsResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - RotateCloudAutonomousVmClusterSslCertsRequest, - RotateCloudAutonomousVmClusterSslCertsResponse> - forRotateCloudAutonomousVmClusterSslCerts( - RotateCloudAutonomousVmClusterSslCertsRequest request, + ScanExternalContainerDatabasePluggableDatabasesRequest, + ScanExternalContainerDatabasePluggableDatabasesResponse> + forScanExternalContainerDatabasePluggableDatabases( + ScanExternalContainerDatabasePluggableDatabasesRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -14865,11 +16814,12 @@ public RotateCloudAutonomousVmClusterOrdsCertsResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< - RotateCloudAutonomousVmClusterSslCertsResponse>() { + ScanExternalContainerDatabasePluggableDatabasesResponse>() { @Override - public RotateCloudAutonomousVmClusterSslCertsResponse call() throws Exception { - final RotateCloudAutonomousVmClusterSslCertsResponse response = - client.rotateCloudAutonomousVmClusterSslCerts(request); + public ScanExternalContainerDatabasePluggableDatabasesResponse call() + throws Exception { + final ScanExternalContainerDatabasePluggableDatabasesResponse response = + client.scanExternalContainerDatabasePluggableDatabases(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -14898,9 +16848,10 @@ public RotateCloudAutonomousVmClusterSslCertsResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forRotateOrdsCerts(RotateOrdsCertsRequest request) { - return forRotateOrdsCerts( + public com.oracle.bmc.waiter.Waiter< + ShrinkAutonomousDatabaseRequest, ShrinkAutonomousDatabaseResponse> + forShrinkAutonomousDatabase(ShrinkAutonomousDatabaseRequest request) { + return forShrinkAutonomousDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -14914,9 +16865,10 @@ public RotateCloudAutonomousVmClusterSslCertsResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forRotateOrdsCerts( - RotateOrdsCertsRequest request, + public com.oracle.bmc.waiter.Waiter< + ShrinkAutonomousDatabaseRequest, ShrinkAutonomousDatabaseResponse> + forShrinkAutonomousDatabase( + ShrinkAutonomousDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -14926,10 +16878,11 @@ public RotateCloudAutonomousVmClusterSslCertsResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public RotateOrdsCertsResponse call() throws Exception { - final RotateOrdsCertsResponse response = client.rotateOrdsCerts(request); + public ShrinkAutonomousDatabaseResponse call() throws Exception { + final ShrinkAutonomousDatabaseResponse response = + client.shrinkAutonomousDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -14959,11 +16912,9 @@ public RotateOrdsCertsResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - RotatePluggableDatabaseEncryptionKeyRequest, - RotatePluggableDatabaseEncryptionKeyResponse> - forRotatePluggableDatabaseEncryptionKey( - RotatePluggableDatabaseEncryptionKeyRequest request) { - return forRotatePluggableDatabaseEncryptionKey( + StartAutonomousDatabaseRequest, StartAutonomousDatabaseResponse> + forStartAutonomousDatabase(StartAutonomousDatabaseRequest request) { + return forStartAutonomousDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -14978,10 +16929,9 @@ public RotateOrdsCertsResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - RotatePluggableDatabaseEncryptionKeyRequest, - RotatePluggableDatabaseEncryptionKeyResponse> - forRotatePluggableDatabaseEncryptionKey( - RotatePluggableDatabaseEncryptionKeyRequest request, + StartAutonomousDatabaseRequest, StartAutonomousDatabaseResponse> + forStartAutonomousDatabase( + StartAutonomousDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -14991,11 +16941,11 @@ public RotateOrdsCertsResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public RotatePluggableDatabaseEncryptionKeyResponse call() throws Exception { - final RotatePluggableDatabaseEncryptionKeyResponse response = - client.rotatePluggableDatabaseEncryptionKey(request); + public StartAutonomousDatabaseResponse call() throws Exception { + final StartAutonomousDatabaseResponse response = + client.startAutonomousDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -15024,9 +16974,10 @@ public RotatePluggableDatabaseEncryptionKeyResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forRotateSslCerts(RotateSslCertsRequest request) { - return forRotateSslCerts( + public com.oracle.bmc.waiter.Waiter< + StartPluggableDatabaseRequest, StartPluggableDatabaseResponse> + forStartPluggableDatabase(StartPluggableDatabaseRequest request) { + return forStartPluggableDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -15040,9 +16991,10 @@ public RotatePluggableDatabaseEncryptionKeyResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forRotateSslCerts( - RotateSslCertsRequest request, + public com.oracle.bmc.waiter.Waiter< + StartPluggableDatabaseRequest, StartPluggableDatabaseResponse> + forStartPluggableDatabase( + StartPluggableDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -15052,10 +17004,11 @@ public RotatePluggableDatabaseEncryptionKeyResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public RotateSslCertsResponse call() throws Exception { - final RotateSslCertsResponse response = client.rotateSslCerts(request); + public StartPluggableDatabaseResponse call() throws Exception { + final StartPluggableDatabaseResponse response = + client.startPluggableDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -15084,9 +17037,10 @@ public RotateSslCertsResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forRotateVaultKey(RotateVaultKeyRequest request) { - return forRotateVaultKey( + public com.oracle.bmc.waiter.Waiter< + StopAutonomousDatabaseRequest, StopAutonomousDatabaseResponse> + forStopAutonomousDatabase(StopAutonomousDatabaseRequest request) { + return forStopAutonomousDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -15100,9 +17054,10 @@ public RotateSslCertsResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forRotateVaultKey( - RotateVaultKeyRequest request, + public com.oracle.bmc.waiter.Waiter< + StopAutonomousDatabaseRequest, StopAutonomousDatabaseResponse> + forStopAutonomousDatabase( + StopAutonomousDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -15112,10 +17067,11 @@ public RotateSslCertsResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public RotateVaultKeyResponse call() throws Exception { - final RotateVaultKeyResponse response = client.rotateVaultKey(request); + public StopAutonomousDatabaseResponse call() throws Exception { + final StopAutonomousDatabaseResponse response = + client.stopAutonomousDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -15144,12 +17100,9 @@ public RotateVaultKeyResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - ScanExternalContainerDatabasePluggableDatabasesRequest, - ScanExternalContainerDatabasePluggableDatabasesResponse> - forScanExternalContainerDatabasePluggableDatabases( - ScanExternalContainerDatabasePluggableDatabasesRequest request) { - return forScanExternalContainerDatabasePluggableDatabases( + public com.oracle.bmc.waiter.Waiter + forStopPluggableDatabase(StopPluggableDatabaseRequest request) { + return forStopPluggableDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -15163,11 +17116,9 @@ public RotateVaultKeyResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - ScanExternalContainerDatabasePluggableDatabasesRequest, - ScanExternalContainerDatabasePluggableDatabasesResponse> - forScanExternalContainerDatabasePluggableDatabases( - ScanExternalContainerDatabasePluggableDatabasesRequest request, + public com.oracle.bmc.waiter.Waiter + forStopPluggableDatabase( + StopPluggableDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -15177,13 +17128,11 @@ public RotateVaultKeyResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable< - ScanExternalContainerDatabasePluggableDatabasesResponse>() { + new java.util.concurrent.Callable() { @Override - public ScanExternalContainerDatabasePluggableDatabasesResponse call() - throws Exception { - final ScanExternalContainerDatabasePluggableDatabasesResponse response = - client.scanExternalContainerDatabasePluggableDatabases(request); + public StopPluggableDatabaseResponse call() throws Exception { + final StopPluggableDatabaseResponse response = + client.stopPluggableDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -15213,9 +17162,11 @@ public ScanExternalContainerDatabasePluggableDatabasesResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - ShrinkAutonomousDatabaseRequest, ShrinkAutonomousDatabaseResponse> - forShrinkAutonomousDatabase(ShrinkAutonomousDatabaseRequest request) { - return forShrinkAutonomousDatabase( + SwitchoverAutonomousContainerDatabaseDataguardAssociationRequest, + SwitchoverAutonomousContainerDatabaseDataguardAssociationResponse> + forSwitchoverAutonomousContainerDatabaseDataguardAssociation( + SwitchoverAutonomousContainerDatabaseDataguardAssociationRequest request) { + return forSwitchoverAutonomousContainerDatabaseDataguardAssociation( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -15230,9 +17181,10 @@ public ScanExternalContainerDatabasePluggableDatabasesResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - ShrinkAutonomousDatabaseRequest, ShrinkAutonomousDatabaseResponse> - forShrinkAutonomousDatabase( - ShrinkAutonomousDatabaseRequest request, + SwitchoverAutonomousContainerDatabaseDataguardAssociationRequest, + SwitchoverAutonomousContainerDatabaseDataguardAssociationResponse> + forSwitchoverAutonomousContainerDatabaseDataguardAssociation( + SwitchoverAutonomousContainerDatabaseDataguardAssociationRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -15242,11 +17194,16 @@ public ScanExternalContainerDatabasePluggableDatabasesResponse call() return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable< + SwitchoverAutonomousContainerDatabaseDataguardAssociationResponse>() { @Override - public ShrinkAutonomousDatabaseResponse call() throws Exception { - final ShrinkAutonomousDatabaseResponse response = - client.shrinkAutonomousDatabase(request); + public SwitchoverAutonomousContainerDatabaseDataguardAssociationResponse call() + throws Exception { + final SwitchoverAutonomousContainerDatabaseDataguardAssociationResponse + response = + client + .switchoverAutonomousContainerDatabaseDataguardAssociation( + request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -15276,9 +17233,9 @@ public ShrinkAutonomousDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - StartAutonomousDatabaseRequest, StartAutonomousDatabaseResponse> - forStartAutonomousDatabase(StartAutonomousDatabaseRequest request) { - return forStartAutonomousDatabase( + SwitchoverAutonomousDatabaseRequest, SwitchoverAutonomousDatabaseResponse> + forSwitchoverAutonomousDatabase(SwitchoverAutonomousDatabaseRequest request) { + return forSwitchoverAutonomousDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -15293,9 +17250,9 @@ public ShrinkAutonomousDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - StartAutonomousDatabaseRequest, StartAutonomousDatabaseResponse> - forStartAutonomousDatabase( - StartAutonomousDatabaseRequest request, + SwitchoverAutonomousDatabaseRequest, SwitchoverAutonomousDatabaseResponse> + forSwitchoverAutonomousDatabase( + SwitchoverAutonomousDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -15305,11 +17262,11 @@ public ShrinkAutonomousDatabaseResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public StartAutonomousDatabaseResponse call() throws Exception { - final StartAutonomousDatabaseResponse response = - client.startAutonomousDatabase(request); + public SwitchoverAutonomousDatabaseResponse call() throws Exception { + final SwitchoverAutonomousDatabaseResponse response = + client.switchoverAutonomousDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -15339,9 +17296,9 @@ public StartAutonomousDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - StartPluggableDatabaseRequest, StartPluggableDatabaseResponse> - forStartPluggableDatabase(StartPluggableDatabaseRequest request) { - return forStartPluggableDatabase( + SwitchoverDataGuardAssociationRequest, SwitchoverDataGuardAssociationResponse> + forSwitchoverDataGuardAssociation(SwitchoverDataGuardAssociationRequest request) { + return forSwitchoverDataGuardAssociation( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -15356,9 +17313,9 @@ public StartAutonomousDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - StartPluggableDatabaseRequest, StartPluggableDatabaseResponse> - forStartPluggableDatabase( - StartPluggableDatabaseRequest request, + SwitchoverDataGuardAssociationRequest, SwitchoverDataGuardAssociationResponse> + forSwitchoverDataGuardAssociation( + SwitchoverDataGuardAssociationRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -15368,11 +17325,11 @@ public StartAutonomousDatabaseResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public StartPluggableDatabaseResponse call() throws Exception { - final StartPluggableDatabaseResponse response = - client.startPluggableDatabase(request); + public SwitchoverDataGuardAssociationResponse call() throws Exception { + final SwitchoverDataGuardAssociationResponse response = + client.switchoverDataGuardAssociation(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -15402,9 +17359,11 @@ public StartPluggableDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - StopAutonomousDatabaseRequest, StopAutonomousDatabaseResponse> - forStopAutonomousDatabase(StopAutonomousDatabaseRequest request) { - return forStopAutonomousDatabase( + TerminateAutonomousContainerDatabaseRequest, + TerminateAutonomousContainerDatabaseResponse> + forTerminateAutonomousContainerDatabase( + TerminateAutonomousContainerDatabaseRequest request) { + return forTerminateAutonomousContainerDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -15419,9 +17378,10 @@ public StartPluggableDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - StopAutonomousDatabaseRequest, StopAutonomousDatabaseResponse> - forStopAutonomousDatabase( - StopAutonomousDatabaseRequest request, + TerminateAutonomousContainerDatabaseRequest, + TerminateAutonomousContainerDatabaseResponse> + forTerminateAutonomousContainerDatabase( + TerminateAutonomousContainerDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -15431,11 +17391,11 @@ public StartPluggableDatabaseResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public StopAutonomousDatabaseResponse call() throws Exception { - final StopAutonomousDatabaseResponse response = - client.stopAutonomousDatabase(request); + public TerminateAutonomousContainerDatabaseResponse call() throws Exception { + final TerminateAutonomousContainerDatabaseResponse response = + client.terminateAutonomousContainerDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -15464,9 +17424,12 @@ public StopAutonomousDatabaseResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forStopPluggableDatabase(StopPluggableDatabaseRequest request) { - return forStopPluggableDatabase( + public com.oracle.bmc.waiter.Waiter< + TerminateAutonomousExadataInfrastructureRequest, + TerminateAutonomousExadataInfrastructureResponse> + forTerminateAutonomousExadataInfrastructure( + TerminateAutonomousExadataInfrastructureRequest request) { + return forTerminateAutonomousExadataInfrastructure( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -15480,9 +17443,11 @@ public StopAutonomousDatabaseResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forStopPluggableDatabase( - StopPluggableDatabaseRequest request, + public com.oracle.bmc.waiter.Waiter< + TerminateAutonomousExadataInfrastructureRequest, + TerminateAutonomousExadataInfrastructureResponse> + forTerminateAutonomousExadataInfrastructure( + TerminateAutonomousExadataInfrastructureRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -15492,11 +17457,13 @@ public StopAutonomousDatabaseResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable< + TerminateAutonomousExadataInfrastructureResponse>() { @Override - public StopPluggableDatabaseResponse call() throws Exception { - final StopPluggableDatabaseResponse response = - client.stopPluggableDatabase(request); + public TerminateAutonomousExadataInfrastructureResponse call() + throws Exception { + final TerminateAutonomousExadataInfrastructureResponse response = + client.terminateAutonomousExadataInfrastructure(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -15525,12 +17492,9 @@ public StopPluggableDatabaseResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - SwitchoverAutonomousContainerDatabaseDataguardAssociationRequest, - SwitchoverAutonomousContainerDatabaseDataguardAssociationResponse> - forSwitchoverAutonomousContainerDatabaseDataguardAssociation( - SwitchoverAutonomousContainerDatabaseDataguardAssociationRequest request) { - return forSwitchoverAutonomousContainerDatabaseDataguardAssociation( + public com.oracle.bmc.waiter.Waiter + forTerminateDbSystem(TerminateDbSystemRequest request) { + return forTerminateDbSystem( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -15544,11 +17508,9 @@ public StopPluggableDatabaseResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - SwitchoverAutonomousContainerDatabaseDataguardAssociationRequest, - SwitchoverAutonomousContainerDatabaseDataguardAssociationResponse> - forSwitchoverAutonomousContainerDatabaseDataguardAssociation( - SwitchoverAutonomousContainerDatabaseDataguardAssociationRequest request, + public com.oracle.bmc.waiter.Waiter + forTerminateDbSystem( + TerminateDbSystemRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -15558,16 +17520,11 @@ public StopPluggableDatabaseResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable< - SwitchoverAutonomousContainerDatabaseDataguardAssociationResponse>() { + new java.util.concurrent.Callable() { @Override - public SwitchoverAutonomousContainerDatabaseDataguardAssociationResponse call() - throws Exception { - final SwitchoverAutonomousContainerDatabaseDataguardAssociationResponse - response = - client - .switchoverAutonomousContainerDatabaseDataguardAssociation( - request); + public TerminateDbSystemResponse call() throws Exception { + final TerminateDbSystemResponse response = + client.terminateDbSystem(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -15597,9 +17554,10 @@ public SwitchoverAutonomousContainerDatabaseDataguardAssociationResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - SwitchoverAutonomousDatabaseRequest, SwitchoverAutonomousDatabaseResponse> - forSwitchoverAutonomousDatabase(SwitchoverAutonomousDatabaseRequest request) { - return forSwitchoverAutonomousDatabase( + UpdateAutonomousContainerDatabaseRequest, + UpdateAutonomousContainerDatabaseResponse> + forUpdateAutonomousContainerDatabase(UpdateAutonomousContainerDatabaseRequest request) { + return forUpdateAutonomousContainerDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -15614,9 +17572,10 @@ public SwitchoverAutonomousContainerDatabaseDataguardAssociationResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - SwitchoverAutonomousDatabaseRequest, SwitchoverAutonomousDatabaseResponse> - forSwitchoverAutonomousDatabase( - SwitchoverAutonomousDatabaseRequest request, + UpdateAutonomousContainerDatabaseRequest, + UpdateAutonomousContainerDatabaseResponse> + forUpdateAutonomousContainerDatabase( + UpdateAutonomousContainerDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -15626,11 +17585,11 @@ public SwitchoverAutonomousContainerDatabaseDataguardAssociationResponse call() return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public SwitchoverAutonomousDatabaseResponse call() throws Exception { - final SwitchoverAutonomousDatabaseResponse response = - client.switchoverAutonomousDatabase(request); + public UpdateAutonomousContainerDatabaseResponse call() throws Exception { + final UpdateAutonomousContainerDatabaseResponse response = + client.updateAutonomousContainerDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -15660,9 +17619,11 @@ public SwitchoverAutonomousDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - SwitchoverDataGuardAssociationRequest, SwitchoverDataGuardAssociationResponse> - forSwitchoverDataGuardAssociation(SwitchoverDataGuardAssociationRequest request) { - return forSwitchoverDataGuardAssociation( + UpdateAutonomousContainerDatabaseDataguardAssociationRequest, + UpdateAutonomousContainerDatabaseDataguardAssociationResponse> + forUpdateAutonomousContainerDatabaseDataguardAssociation( + UpdateAutonomousContainerDatabaseDataguardAssociationRequest request) { + return forUpdateAutonomousContainerDatabaseDataguardAssociation( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -15677,9 +17638,10 @@ public SwitchoverAutonomousDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - SwitchoverDataGuardAssociationRequest, SwitchoverDataGuardAssociationResponse> - forSwitchoverDataGuardAssociation( - SwitchoverDataGuardAssociationRequest request, + UpdateAutonomousContainerDatabaseDataguardAssociationRequest, + UpdateAutonomousContainerDatabaseDataguardAssociationResponse> + forUpdateAutonomousContainerDatabaseDataguardAssociation( + UpdateAutonomousContainerDatabaseDataguardAssociationRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -15689,11 +17651,16 @@ public SwitchoverAutonomousDatabaseResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable< + UpdateAutonomousContainerDatabaseDataguardAssociationResponse>() { @Override - public SwitchoverDataGuardAssociationResponse call() throws Exception { - final SwitchoverDataGuardAssociationResponse response = - client.switchoverDataGuardAssociation(request); + public UpdateAutonomousContainerDatabaseDataguardAssociationResponse call() + throws Exception { + final UpdateAutonomousContainerDatabaseDataguardAssociationResponse + response = + client + .updateAutonomousContainerDatabaseDataguardAssociation( + request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -15723,11 +17690,9 @@ public SwitchoverDataGuardAssociationResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - TerminateAutonomousContainerDatabaseRequest, - TerminateAutonomousContainerDatabaseResponse> - forTerminateAutonomousContainerDatabase( - TerminateAutonomousContainerDatabaseRequest request) { - return forTerminateAutonomousContainerDatabase( + UpdateAutonomousDatabaseRequest, UpdateAutonomousDatabaseResponse> + forUpdateAutonomousDatabase(UpdateAutonomousDatabaseRequest request) { + return forUpdateAutonomousDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -15742,10 +17707,9 @@ public SwitchoverDataGuardAssociationResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - TerminateAutonomousContainerDatabaseRequest, - TerminateAutonomousContainerDatabaseResponse> - forTerminateAutonomousContainerDatabase( - TerminateAutonomousContainerDatabaseRequest request, + UpdateAutonomousDatabaseRequest, UpdateAutonomousDatabaseResponse> + forUpdateAutonomousDatabase( + UpdateAutonomousDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -15755,11 +17719,11 @@ public SwitchoverDataGuardAssociationResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public TerminateAutonomousContainerDatabaseResponse call() throws Exception { - final TerminateAutonomousContainerDatabaseResponse response = - client.terminateAutonomousContainerDatabase(request); + public UpdateAutonomousDatabaseResponse call() throws Exception { + final UpdateAutonomousDatabaseResponse response = + client.updateAutonomousDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -15789,11 +17753,9 @@ public TerminateAutonomousContainerDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - TerminateAutonomousExadataInfrastructureRequest, - TerminateAutonomousExadataInfrastructureResponse> - forTerminateAutonomousExadataInfrastructure( - TerminateAutonomousExadataInfrastructureRequest request) { - return forTerminateAutonomousExadataInfrastructure( + UpdateAutonomousDatabaseBackupRequest, UpdateAutonomousDatabaseBackupResponse> + forUpdateAutonomousDatabaseBackup(UpdateAutonomousDatabaseBackupRequest request) { + return forUpdateAutonomousDatabaseBackup( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -15808,10 +17770,9 @@ public TerminateAutonomousContainerDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - TerminateAutonomousExadataInfrastructureRequest, - TerminateAutonomousExadataInfrastructureResponse> - forTerminateAutonomousExadataInfrastructure( - TerminateAutonomousExadataInfrastructureRequest request, + UpdateAutonomousDatabaseBackupRequest, UpdateAutonomousDatabaseBackupResponse> + forUpdateAutonomousDatabaseBackup( + UpdateAutonomousDatabaseBackupRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -15821,13 +17782,11 @@ public TerminateAutonomousContainerDatabaseResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable< - TerminateAutonomousExadataInfrastructureResponse>() { + new java.util.concurrent.Callable() { @Override - public TerminateAutonomousExadataInfrastructureResponse call() - throws Exception { - final TerminateAutonomousExadataInfrastructureResponse response = - client.terminateAutonomousExadataInfrastructure(request); + public UpdateAutonomousDatabaseBackupResponse call() throws Exception { + final UpdateAutonomousDatabaseBackupResponse response = + client.updateAutonomousDatabaseBackup(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -15856,9 +17815,12 @@ public TerminateAutonomousExadataInfrastructureResponse call() * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forTerminateDbSystem(TerminateDbSystemRequest request) { - return forTerminateDbSystem( + public com.oracle.bmc.waiter.Waiter< + UpdateAutonomousDatabaseRegionalWalletRequest, + UpdateAutonomousDatabaseRegionalWalletResponse> + forUpdateAutonomousDatabaseRegionalWallet( + UpdateAutonomousDatabaseRegionalWalletRequest request) { + return forUpdateAutonomousDatabaseRegionalWallet( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -15872,9 +17834,11 @@ public TerminateAutonomousExadataInfrastructureResponse call() * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forTerminateDbSystem( - TerminateDbSystemRequest request, + public com.oracle.bmc.waiter.Waiter< + UpdateAutonomousDatabaseRegionalWalletRequest, + UpdateAutonomousDatabaseRegionalWalletResponse> + forUpdateAutonomousDatabaseRegionalWallet( + UpdateAutonomousDatabaseRegionalWalletRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -15884,11 +17848,12 @@ public TerminateAutonomousExadataInfrastructureResponse call() return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable< + UpdateAutonomousDatabaseRegionalWalletResponse>() { @Override - public TerminateDbSystemResponse call() throws Exception { - final TerminateDbSystemResponse response = - client.terminateDbSystem(request); + public UpdateAutonomousDatabaseRegionalWalletResponse call() throws Exception { + final UpdateAutonomousDatabaseRegionalWalletResponse response = + client.updateAutonomousDatabaseRegionalWallet(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -15918,10 +17883,9 @@ public TerminateDbSystemResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - UpdateAutonomousContainerDatabaseRequest, - UpdateAutonomousContainerDatabaseResponse> - forUpdateAutonomousContainerDatabase(UpdateAutonomousContainerDatabaseRequest request) { - return forUpdateAutonomousContainerDatabase( + UpdateAutonomousDatabaseWalletRequest, UpdateAutonomousDatabaseWalletResponse> + forUpdateAutonomousDatabaseWallet(UpdateAutonomousDatabaseWalletRequest request) { + return forUpdateAutonomousDatabaseWallet( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -15936,10 +17900,9 @@ public TerminateDbSystemResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - UpdateAutonomousContainerDatabaseRequest, - UpdateAutonomousContainerDatabaseResponse> - forUpdateAutonomousContainerDatabase( - UpdateAutonomousContainerDatabaseRequest request, + UpdateAutonomousDatabaseWalletRequest, UpdateAutonomousDatabaseWalletResponse> + forUpdateAutonomousDatabaseWallet( + UpdateAutonomousDatabaseWalletRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -15949,11 +17912,11 @@ public TerminateDbSystemResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public UpdateAutonomousContainerDatabaseResponse call() throws Exception { - final UpdateAutonomousContainerDatabaseResponse response = - client.updateAutonomousContainerDatabase(request); + public UpdateAutonomousDatabaseWalletResponse call() throws Exception { + final UpdateAutonomousDatabaseWalletResponse response = + client.updateAutonomousDatabaseWallet(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -15983,11 +17946,11 @@ public UpdateAutonomousContainerDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - UpdateAutonomousContainerDatabaseDataguardAssociationRequest, - UpdateAutonomousContainerDatabaseDataguardAssociationResponse> - forUpdateAutonomousContainerDatabaseDataguardAssociation( - UpdateAutonomousContainerDatabaseDataguardAssociationRequest request) { - return forUpdateAutonomousContainerDatabaseDataguardAssociation( + UpdateAutonomousExadataInfrastructureRequest, + UpdateAutonomousExadataInfrastructureResponse> + forUpdateAutonomousExadataInfrastructure( + UpdateAutonomousExadataInfrastructureRequest request) { + return forUpdateAutonomousExadataInfrastructure( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -16002,10 +17965,10 @@ public UpdateAutonomousContainerDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - UpdateAutonomousContainerDatabaseDataguardAssociationRequest, - UpdateAutonomousContainerDatabaseDataguardAssociationResponse> - forUpdateAutonomousContainerDatabaseDataguardAssociation( - UpdateAutonomousContainerDatabaseDataguardAssociationRequest request, + UpdateAutonomousExadataInfrastructureRequest, + UpdateAutonomousExadataInfrastructureResponse> + forUpdateAutonomousExadataInfrastructure( + UpdateAutonomousExadataInfrastructureRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -16015,16 +17978,11 @@ public UpdateAutonomousContainerDatabaseResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable< - UpdateAutonomousContainerDatabaseDataguardAssociationResponse>() { + new java.util.concurrent.Callable() { @Override - public UpdateAutonomousContainerDatabaseDataguardAssociationResponse call() - throws Exception { - final UpdateAutonomousContainerDatabaseDataguardAssociationResponse - response = - client - .updateAutonomousContainerDatabaseDataguardAssociation( - request); + public UpdateAutonomousExadataInfrastructureResponse call() throws Exception { + final UpdateAutonomousExadataInfrastructureResponse response = + client.updateAutonomousExadataInfrastructure(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -16054,9 +18012,9 @@ public UpdateAutonomousContainerDatabaseDataguardAssociationResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - UpdateAutonomousDatabaseRequest, UpdateAutonomousDatabaseResponse> - forUpdateAutonomousDatabase(UpdateAutonomousDatabaseRequest request) { - return forUpdateAutonomousDatabase( + UpdateAutonomousVmClusterRequest, UpdateAutonomousVmClusterResponse> + forUpdateAutonomousVmCluster(UpdateAutonomousVmClusterRequest request) { + return forUpdateAutonomousVmCluster( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -16071,9 +18029,9 @@ public UpdateAutonomousContainerDatabaseDataguardAssociationResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - UpdateAutonomousDatabaseRequest, UpdateAutonomousDatabaseResponse> - forUpdateAutonomousDatabase( - UpdateAutonomousDatabaseRequest request, + UpdateAutonomousVmClusterRequest, UpdateAutonomousVmClusterResponse> + forUpdateAutonomousVmCluster( + UpdateAutonomousVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -16083,11 +18041,11 @@ public UpdateAutonomousContainerDatabaseDataguardAssociationResponse call() return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public UpdateAutonomousDatabaseResponse call() throws Exception { - final UpdateAutonomousDatabaseResponse response = - client.updateAutonomousDatabase(request); + public UpdateAutonomousVmClusterResponse call() throws Exception { + final UpdateAutonomousVmClusterResponse response = + client.updateAutonomousVmCluster(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -16117,9 +18075,9 @@ public UpdateAutonomousDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - UpdateAutonomousDatabaseBackupRequest, UpdateAutonomousDatabaseBackupResponse> - forUpdateAutonomousDatabaseBackup(UpdateAutonomousDatabaseBackupRequest request) { - return forUpdateAutonomousDatabaseBackup( + UpdateCloudAutonomousVmClusterRequest, UpdateCloudAutonomousVmClusterResponse> + forUpdateCloudAutonomousVmCluster(UpdateCloudAutonomousVmClusterRequest request) { + return forUpdateCloudAutonomousVmCluster( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -16134,9 +18092,9 @@ public UpdateAutonomousDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - UpdateAutonomousDatabaseBackupRequest, UpdateAutonomousDatabaseBackupResponse> - forUpdateAutonomousDatabaseBackup( - UpdateAutonomousDatabaseBackupRequest request, + UpdateCloudAutonomousVmClusterRequest, UpdateCloudAutonomousVmClusterResponse> + forUpdateCloudAutonomousVmCluster( + UpdateCloudAutonomousVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -16146,11 +18104,11 @@ public UpdateAutonomousDatabaseResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public UpdateAutonomousDatabaseBackupResponse call() throws Exception { - final UpdateAutonomousDatabaseBackupResponse response = - client.updateAutonomousDatabaseBackup(request); + public UpdateCloudAutonomousVmClusterResponse call() throws Exception { + final UpdateCloudAutonomousVmClusterResponse response = + client.updateCloudAutonomousVmCluster(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -16180,11 +18138,10 @@ public UpdateAutonomousDatabaseBackupResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - UpdateAutonomousDatabaseRegionalWalletRequest, - UpdateAutonomousDatabaseRegionalWalletResponse> - forUpdateAutonomousDatabaseRegionalWallet( - UpdateAutonomousDatabaseRegionalWalletRequest request) { - return forUpdateAutonomousDatabaseRegionalWallet( + UpdateCloudExadataInfrastructureRequest, + UpdateCloudExadataInfrastructureResponse> + forUpdateCloudExadataInfrastructure(UpdateCloudExadataInfrastructureRequest request) { + return forUpdateCloudExadataInfrastructure( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -16199,10 +18156,10 @@ public UpdateAutonomousDatabaseBackupResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - UpdateAutonomousDatabaseRegionalWalletRequest, - UpdateAutonomousDatabaseRegionalWalletResponse> - forUpdateAutonomousDatabaseRegionalWallet( - UpdateAutonomousDatabaseRegionalWalletRequest request, + UpdateCloudExadataInfrastructureRequest, + UpdateCloudExadataInfrastructureResponse> + forUpdateCloudExadataInfrastructure( + UpdateCloudExadataInfrastructureRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -16212,12 +18169,11 @@ public UpdateAutonomousDatabaseBackupResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable< - UpdateAutonomousDatabaseRegionalWalletResponse>() { + new java.util.concurrent.Callable() { @Override - public UpdateAutonomousDatabaseRegionalWalletResponse call() throws Exception { - final UpdateAutonomousDatabaseRegionalWalletResponse response = - client.updateAutonomousDatabaseRegionalWallet(request); + public UpdateCloudExadataInfrastructureResponse call() throws Exception { + final UpdateCloudExadataInfrastructureResponse response = + client.updateCloudExadataInfrastructure(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -16246,10 +18202,9 @@ public UpdateAutonomousDatabaseRegionalWalletResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - UpdateAutonomousDatabaseWalletRequest, UpdateAutonomousDatabaseWalletResponse> - forUpdateAutonomousDatabaseWallet(UpdateAutonomousDatabaseWalletRequest request) { - return forUpdateAutonomousDatabaseWallet( + public com.oracle.bmc.waiter.Waiter + forUpdateCloudVmCluster(UpdateCloudVmClusterRequest request) { + return forUpdateCloudVmCluster( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -16263,10 +18218,9 @@ public UpdateAutonomousDatabaseRegionalWalletResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - UpdateAutonomousDatabaseWalletRequest, UpdateAutonomousDatabaseWalletResponse> - forUpdateAutonomousDatabaseWallet( - UpdateAutonomousDatabaseWalletRequest request, + public com.oracle.bmc.waiter.Waiter + forUpdateCloudVmCluster( + UpdateCloudVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -16276,11 +18230,11 @@ public UpdateAutonomousDatabaseRegionalWalletResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public UpdateAutonomousDatabaseWalletResponse call() throws Exception { - final UpdateAutonomousDatabaseWalletResponse response = - client.updateAutonomousDatabaseWallet(request); + public UpdateCloudVmClusterResponse call() throws Exception { + final UpdateCloudVmClusterResponse response = + client.updateCloudVmCluster(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -16310,11 +18264,9 @@ public UpdateAutonomousDatabaseWalletResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - UpdateAutonomousExadataInfrastructureRequest, - UpdateAutonomousExadataInfrastructureResponse> - forUpdateAutonomousExadataInfrastructure( - UpdateAutonomousExadataInfrastructureRequest request) { - return forUpdateAutonomousExadataInfrastructure( + UpdateCloudVmClusterIormConfigRequest, UpdateCloudVmClusterIormConfigResponse> + forUpdateCloudVmClusterIormConfig(UpdateCloudVmClusterIormConfigRequest request) { + return forUpdateCloudVmClusterIormConfig( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -16329,10 +18281,9 @@ public UpdateAutonomousDatabaseWalletResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - UpdateAutonomousExadataInfrastructureRequest, - UpdateAutonomousExadataInfrastructureResponse> - forUpdateAutonomousExadataInfrastructure( - UpdateAutonomousExadataInfrastructureRequest request, + UpdateCloudVmClusterIormConfigRequest, UpdateCloudVmClusterIormConfigResponse> + forUpdateCloudVmClusterIormConfig( + UpdateCloudVmClusterIormConfigRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -16342,11 +18293,11 @@ public UpdateAutonomousDatabaseWalletResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public UpdateAutonomousExadataInfrastructureResponse call() throws Exception { - final UpdateAutonomousExadataInfrastructureResponse response = - client.updateAutonomousExadataInfrastructure(request); + public UpdateCloudVmClusterIormConfigResponse call() throws Exception { + final UpdateCloudVmClusterIormConfigResponse response = + client.updateCloudVmClusterIormConfig(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -16376,9 +18327,9 @@ public UpdateAutonomousExadataInfrastructureResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - UpdateAutonomousVmClusterRequest, UpdateAutonomousVmClusterResponse> - forUpdateAutonomousVmCluster(UpdateAutonomousVmClusterRequest request) { - return forUpdateAutonomousVmCluster( + UpdateConsoleConnectionRequest, UpdateConsoleConnectionResponse> + forUpdateConsoleConnection(UpdateConsoleConnectionRequest request) { + return forUpdateConsoleConnection( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -16393,9 +18344,9 @@ public UpdateAutonomousExadataInfrastructureResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - UpdateAutonomousVmClusterRequest, UpdateAutonomousVmClusterResponse> - forUpdateAutonomousVmCluster( - UpdateAutonomousVmClusterRequest request, + UpdateConsoleConnectionRequest, UpdateConsoleConnectionResponse> + forUpdateConsoleConnection( + UpdateConsoleConnectionRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -16405,11 +18356,11 @@ public UpdateAutonomousExadataInfrastructureResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public UpdateAutonomousVmClusterResponse call() throws Exception { - final UpdateAutonomousVmClusterResponse response = - client.updateAutonomousVmCluster(request); + public UpdateConsoleConnectionResponse call() throws Exception { + final UpdateConsoleConnectionResponse response = + client.updateConsoleConnection(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -16438,10 +18389,9 @@ public UpdateAutonomousVmClusterResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - UpdateCloudAutonomousVmClusterRequest, UpdateCloudAutonomousVmClusterResponse> - forUpdateCloudAutonomousVmCluster(UpdateCloudAutonomousVmClusterRequest request) { - return forUpdateCloudAutonomousVmCluster( + public com.oracle.bmc.waiter.Waiter + forUpdateConsoleHistory(UpdateConsoleHistoryRequest request) { + return forUpdateConsoleHistory( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -16455,10 +18405,9 @@ public UpdateAutonomousVmClusterResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - UpdateCloudAutonomousVmClusterRequest, UpdateCloudAutonomousVmClusterResponse> - forUpdateCloudAutonomousVmCluster( - UpdateCloudAutonomousVmClusterRequest request, + public com.oracle.bmc.waiter.Waiter + forUpdateConsoleHistory( + UpdateConsoleHistoryRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -16468,11 +18417,11 @@ public UpdateAutonomousVmClusterResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public UpdateCloudAutonomousVmClusterResponse call() throws Exception { - final UpdateCloudAutonomousVmClusterResponse response = - client.updateCloudAutonomousVmCluster(request); + public UpdateConsoleHistoryResponse call() throws Exception { + final UpdateConsoleHistoryResponse response = + client.updateConsoleHistory(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -16502,10 +18451,9 @@ public UpdateCloudAutonomousVmClusterResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - UpdateCloudExadataInfrastructureRequest, - UpdateCloudExadataInfrastructureResponse> - forUpdateCloudExadataInfrastructure(UpdateCloudExadataInfrastructureRequest request) { - return forUpdateCloudExadataInfrastructure( + UpdateDataGuardAssociationRequest, UpdateDataGuardAssociationResponse> + forUpdateDataGuardAssociation(UpdateDataGuardAssociationRequest request) { + return forUpdateDataGuardAssociation( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -16520,10 +18468,9 @@ public UpdateCloudAutonomousVmClusterResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - UpdateCloudExadataInfrastructureRequest, - UpdateCloudExadataInfrastructureResponse> - forUpdateCloudExadataInfrastructure( - UpdateCloudExadataInfrastructureRequest request, + UpdateDataGuardAssociationRequest, UpdateDataGuardAssociationResponse> + forUpdateDataGuardAssociation( + UpdateDataGuardAssociationRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -16533,11 +18480,11 @@ public UpdateCloudAutonomousVmClusterResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public UpdateCloudExadataInfrastructureResponse call() throws Exception { - final UpdateCloudExadataInfrastructureResponse response = - client.updateCloudExadataInfrastructure(request); + public UpdateDataGuardAssociationResponse call() throws Exception { + final UpdateDataGuardAssociationResponse response = + client.updateDataGuardAssociation(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -16566,9 +18513,9 @@ public UpdateCloudExadataInfrastructureResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forUpdateCloudVmCluster(UpdateCloudVmClusterRequest request) { - return forUpdateCloudVmCluster( + public com.oracle.bmc.waiter.Waiter + forUpdateDatabase(UpdateDatabaseRequest request) { + return forUpdateDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -16582,9 +18529,9 @@ public UpdateCloudExadataInfrastructureResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forUpdateCloudVmCluster( - UpdateCloudVmClusterRequest request, + public com.oracle.bmc.waiter.Waiter + forUpdateDatabase( + UpdateDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -16594,11 +18541,10 @@ public UpdateCloudExadataInfrastructureResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public UpdateCloudVmClusterResponse call() throws Exception { - final UpdateCloudVmClusterResponse response = - client.updateCloudVmCluster(request); + public UpdateDatabaseResponse call() throws Exception { + final UpdateDatabaseResponse response = client.updateDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -16627,10 +18573,9 @@ public UpdateCloudVmClusterResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - UpdateCloudVmClusterIormConfigRequest, UpdateCloudVmClusterIormConfigResponse> - forUpdateCloudVmClusterIormConfig(UpdateCloudVmClusterIormConfigRequest request) { - return forUpdateCloudVmClusterIormConfig( + public com.oracle.bmc.waiter.Waiter forUpdateDbHome( + UpdateDbHomeRequest request) { + return forUpdateDbHome( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -16644,12 +18589,10 @@ public UpdateCloudVmClusterResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - UpdateCloudVmClusterIormConfigRequest, UpdateCloudVmClusterIormConfigResponse> - forUpdateCloudVmClusterIormConfig( - UpdateCloudVmClusterIormConfigRequest request, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + public com.oracle.bmc.waiter.Waiter forUpdateDbHome( + UpdateDbHomeRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); @@ -16657,11 +18600,10 @@ public UpdateCloudVmClusterResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public UpdateCloudVmClusterIormConfigResponse call() throws Exception { - final UpdateCloudVmClusterIormConfigResponse response = - client.updateCloudVmClusterIormConfig(request); + public UpdateDbHomeResponse call() throws Exception { + final UpdateDbHomeResponse response = client.updateDbHome(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -16690,10 +18632,9 @@ public UpdateCloudVmClusterIormConfigResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - UpdateConsoleConnectionRequest, UpdateConsoleConnectionResponse> - forUpdateConsoleConnection(UpdateConsoleConnectionRequest request) { - return forUpdateConsoleConnection( + public com.oracle.bmc.waiter.Waiter forUpdateDbNode( + UpdateDbNodeRequest request) { + return forUpdateDbNode( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -16707,12 +18648,10 @@ public UpdateCloudVmClusterIormConfigResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - UpdateConsoleConnectionRequest, UpdateConsoleConnectionResponse> - forUpdateConsoleConnection( - UpdateConsoleConnectionRequest request, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + public com.oracle.bmc.waiter.Waiter forUpdateDbNode( + UpdateDbNodeRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); @@ -16720,11 +18659,10 @@ public UpdateCloudVmClusterIormConfigResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public UpdateConsoleConnectionResponse call() throws Exception { - final UpdateConsoleConnectionResponse response = - client.updateConsoleConnection(request); + public UpdateDbNodeResponse call() throws Exception { + final UpdateDbNodeResponse response = client.updateDbNode(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -16753,9 +18691,9 @@ public UpdateConsoleConnectionResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forUpdateConsoleHistory(UpdateConsoleHistoryRequest request) { - return forUpdateConsoleHistory( + public com.oracle.bmc.waiter.Waiter + forUpdateDbSystem(UpdateDbSystemRequest request) { + return forUpdateDbSystem( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -16769,9 +18707,9 @@ public UpdateConsoleConnectionResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forUpdateConsoleHistory( - UpdateConsoleHistoryRequest request, + public com.oracle.bmc.waiter.Waiter + forUpdateDbSystem( + UpdateDbSystemRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -16781,11 +18719,10 @@ public UpdateConsoleConnectionResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public UpdateConsoleHistoryResponse call() throws Exception { - final UpdateConsoleHistoryResponse response = - client.updateConsoleHistory(request); + public UpdateDbSystemResponse call() throws Exception { + final UpdateDbSystemResponse response = client.updateDbSystem(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -16815,9 +18752,9 @@ public UpdateConsoleHistoryResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - UpdateDataGuardAssociationRequest, UpdateDataGuardAssociationResponse> - forUpdateDataGuardAssociation(UpdateDataGuardAssociationRequest request) { - return forUpdateDataGuardAssociation( + UpdateExadataInfrastructureRequest, UpdateExadataInfrastructureResponse> + forUpdateExadataInfrastructure(UpdateExadataInfrastructureRequest request) { + return forUpdateExadataInfrastructure( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -16832,9 +18769,9 @@ public UpdateConsoleHistoryResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - UpdateDataGuardAssociationRequest, UpdateDataGuardAssociationResponse> - forUpdateDataGuardAssociation( - UpdateDataGuardAssociationRequest request, + UpdateExadataInfrastructureRequest, UpdateExadataInfrastructureResponse> + forUpdateExadataInfrastructure( + UpdateExadataInfrastructureRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -16844,11 +18781,11 @@ public UpdateConsoleHistoryResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public UpdateDataGuardAssociationResponse call() throws Exception { - final UpdateDataGuardAssociationResponse response = - client.updateDataGuardAssociation(request); + public UpdateExadataInfrastructureResponse call() throws Exception { + final UpdateExadataInfrastructureResponse response = + client.updateExadataInfrastructure(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -16877,9 +18814,10 @@ public UpdateDataGuardAssociationResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forUpdateDatabase(UpdateDatabaseRequest request) { - return forUpdateDatabase( + public com.oracle.bmc.waiter.Waiter< + UpdateExadataIormConfigRequest, UpdateExadataIormConfigResponse> + forUpdateExadataIormConfig(UpdateExadataIormConfigRequest request) { + return forUpdateExadataIormConfig( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -16893,9 +18831,10 @@ public UpdateDataGuardAssociationResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forUpdateDatabase( - UpdateDatabaseRequest request, + public com.oracle.bmc.waiter.Waiter< + UpdateExadataIormConfigRequest, UpdateExadataIormConfigResponse> + forUpdateExadataIormConfig( + UpdateExadataIormConfigRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -16905,10 +18844,11 @@ public UpdateDataGuardAssociationResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public UpdateDatabaseResponse call() throws Exception { - final UpdateDatabaseResponse response = client.updateDatabase(request); + public UpdateExadataIormConfigResponse call() throws Exception { + final UpdateExadataIormConfigResponse response = + client.updateExadataIormConfig(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -16937,9 +18877,9 @@ public UpdateDatabaseResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forUpdateDbHome( - UpdateDbHomeRequest request) { - return forUpdateDbHome( + public com.oracle.bmc.waiter.Waiter + forUpdateExadbVmCluster(UpdateExadbVmClusterRequest request) { + return forUpdateExadbVmCluster( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -16953,10 +18893,11 @@ public com.oracle.bmc.waiter.Waiter f * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forUpdateDbHome( - UpdateDbHomeRequest request, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + public com.oracle.bmc.waiter.Waiter + forUpdateExadbVmCluster( + UpdateExadbVmClusterRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); @@ -16964,10 +18905,11 @@ public com.oracle.bmc.waiter.Waiter f return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public UpdateDbHomeResponse call() throws Exception { - final UpdateDbHomeResponse response = client.updateDbHome(request); + public UpdateExadbVmClusterResponse call() throws Exception { + final UpdateExadbVmClusterResponse response = + client.updateExadbVmCluster(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -16996,9 +18938,10 @@ public UpdateDbHomeResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forUpdateDbNode( - UpdateDbNodeRequest request) { - return forUpdateDbNode( + public com.oracle.bmc.waiter.Waiter< + UpdateExascaleDbStorageVaultRequest, UpdateExascaleDbStorageVaultResponse> + forUpdateExascaleDbStorageVault(UpdateExascaleDbStorageVaultRequest request) { + return forUpdateExascaleDbStorageVault( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -17012,10 +18955,12 @@ public com.oracle.bmc.waiter.Waiter f * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forUpdateDbNode( - UpdateDbNodeRequest request, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + public com.oracle.bmc.waiter.Waiter< + UpdateExascaleDbStorageVaultRequest, UpdateExascaleDbStorageVaultResponse> + forUpdateExascaleDbStorageVault( + UpdateExascaleDbStorageVaultRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); @@ -17023,10 +18968,11 @@ public com.oracle.bmc.waiter.Waiter f return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public UpdateDbNodeResponse call() throws Exception { - final UpdateDbNodeResponse response = client.updateDbNode(request); + public UpdateExascaleDbStorageVaultResponse call() throws Exception { + final UpdateExascaleDbStorageVaultResponse response = + client.updateExascaleDbStorageVault(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -17055,9 +19001,9 @@ public UpdateDbNodeResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forUpdateDbSystem(UpdateDbSystemRequest request) { - return forUpdateDbSystem( + public com.oracle.bmc.waiter.Waiter + forUpdateExecutionAction(UpdateExecutionActionRequest request) { + return forUpdateExecutionAction( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -17071,9 +19017,9 @@ public UpdateDbNodeResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forUpdateDbSystem( - UpdateDbSystemRequest request, + public com.oracle.bmc.waiter.Waiter + forUpdateExecutionAction( + UpdateExecutionActionRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -17083,10 +19029,11 @@ public UpdateDbNodeResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public UpdateDbSystemResponse call() throws Exception { - final UpdateDbSystemResponse response = client.updateDbSystem(request); + public UpdateExecutionActionResponse call() throws Exception { + final UpdateExecutionActionResponse response = + client.updateExecutionAction(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -17115,10 +19062,9 @@ public UpdateDbSystemResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - UpdateExadataInfrastructureRequest, UpdateExadataInfrastructureResponse> - forUpdateExadataInfrastructure(UpdateExadataInfrastructureRequest request) { - return forUpdateExadataInfrastructure( + public com.oracle.bmc.waiter.Waiter + forUpdateExecutionWindow(UpdateExecutionWindowRequest request) { + return forUpdateExecutionWindow( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -17132,10 +19078,9 @@ public UpdateDbSystemResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - UpdateExadataInfrastructureRequest, UpdateExadataInfrastructureResponse> - forUpdateExadataInfrastructure( - UpdateExadataInfrastructureRequest request, + public com.oracle.bmc.waiter.Waiter + forUpdateExecutionWindow( + UpdateExecutionWindowRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -17145,11 +19090,11 @@ public UpdateDbSystemResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public UpdateExadataInfrastructureResponse call() throws Exception { - final UpdateExadataInfrastructureResponse response = - client.updateExadataInfrastructure(request); + public UpdateExecutionWindowResponse call() throws Exception { + final UpdateExecutionWindowResponse response = + client.updateExecutionWindow(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -17179,9 +19124,9 @@ public UpdateExadataInfrastructureResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - UpdateExadataIormConfigRequest, UpdateExadataIormConfigResponse> - forUpdateExadataIormConfig(UpdateExadataIormConfigRequest request) { - return forUpdateExadataIormConfig( + UpdateExternalContainerDatabaseRequest, UpdateExternalContainerDatabaseResponse> + forUpdateExternalContainerDatabase(UpdateExternalContainerDatabaseRequest request) { + return forUpdateExternalContainerDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -17196,9 +19141,9 @@ public UpdateExadataInfrastructureResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - UpdateExadataIormConfigRequest, UpdateExadataIormConfigResponse> - forUpdateExadataIormConfig( - UpdateExadataIormConfigRequest request, + UpdateExternalContainerDatabaseRequest, UpdateExternalContainerDatabaseResponse> + forUpdateExternalContainerDatabase( + UpdateExternalContainerDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -17208,11 +19153,11 @@ public UpdateExadataInfrastructureResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public UpdateExadataIormConfigResponse call() throws Exception { - final UpdateExadataIormConfigResponse response = - client.updateExadataIormConfig(request); + public UpdateExternalContainerDatabaseResponse call() throws Exception { + final UpdateExternalContainerDatabaseResponse response = + client.updateExternalContainerDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -17241,9 +19186,10 @@ public UpdateExadataIormConfigResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forUpdateExadbVmCluster(UpdateExadbVmClusterRequest request) { - return forUpdateExadbVmCluster( + public com.oracle.bmc.waiter.Waiter< + UpdateExternalDatabaseConnectorRequest, UpdateExternalDatabaseConnectorResponse> + forUpdateExternalDatabaseConnector(UpdateExternalDatabaseConnectorRequest request) { + return forUpdateExternalDatabaseConnector( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -17257,9 +19203,10 @@ public UpdateExadataIormConfigResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forUpdateExadbVmCluster( - UpdateExadbVmClusterRequest request, + public com.oracle.bmc.waiter.Waiter< + UpdateExternalDatabaseConnectorRequest, UpdateExternalDatabaseConnectorResponse> + forUpdateExternalDatabaseConnector( + UpdateExternalDatabaseConnectorRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -17269,11 +19216,11 @@ public UpdateExadataIormConfigResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public UpdateExadbVmClusterResponse call() throws Exception { - final UpdateExadbVmClusterResponse response = - client.updateExadbVmCluster(request); + public UpdateExternalDatabaseConnectorResponse call() throws Exception { + final UpdateExternalDatabaseConnectorResponse response = + client.updateExternalDatabaseConnector(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -17303,9 +19250,11 @@ public UpdateExadbVmClusterResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - UpdateExascaleDbStorageVaultRequest, UpdateExascaleDbStorageVaultResponse> - forUpdateExascaleDbStorageVault(UpdateExascaleDbStorageVaultRequest request) { - return forUpdateExascaleDbStorageVault( + UpdateExternalNonContainerDatabaseRequest, + UpdateExternalNonContainerDatabaseResponse> + forUpdateExternalNonContainerDatabase( + UpdateExternalNonContainerDatabaseRequest request) { + return forUpdateExternalNonContainerDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -17320,9 +19269,10 @@ public UpdateExadbVmClusterResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - UpdateExascaleDbStorageVaultRequest, UpdateExascaleDbStorageVaultResponse> - forUpdateExascaleDbStorageVault( - UpdateExascaleDbStorageVaultRequest request, + UpdateExternalNonContainerDatabaseRequest, + UpdateExternalNonContainerDatabaseResponse> + forUpdateExternalNonContainerDatabase( + UpdateExternalNonContainerDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -17332,11 +19282,11 @@ public UpdateExadbVmClusterResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public UpdateExascaleDbStorageVaultResponse call() throws Exception { - final UpdateExascaleDbStorageVaultResponse response = - client.updateExascaleDbStorageVault(request); + public UpdateExternalNonContainerDatabaseResponse call() throws Exception { + final UpdateExternalNonContainerDatabaseResponse response = + client.updateExternalNonContainerDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -17366,9 +19316,9 @@ public UpdateExascaleDbStorageVaultResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - UpdateExternalContainerDatabaseRequest, UpdateExternalContainerDatabaseResponse> - forUpdateExternalContainerDatabase(UpdateExternalContainerDatabaseRequest request) { - return forUpdateExternalContainerDatabase( + UpdateExternalPluggableDatabaseRequest, UpdateExternalPluggableDatabaseResponse> + forUpdateExternalPluggableDatabase(UpdateExternalPluggableDatabaseRequest request) { + return forUpdateExternalPluggableDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -17383,9 +19333,9 @@ public UpdateExascaleDbStorageVaultResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - UpdateExternalContainerDatabaseRequest, UpdateExternalContainerDatabaseResponse> - forUpdateExternalContainerDatabase( - UpdateExternalContainerDatabaseRequest request, + UpdateExternalPluggableDatabaseRequest, UpdateExternalPluggableDatabaseResponse> + forUpdateExternalPluggableDatabase( + UpdateExternalPluggableDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -17395,11 +19345,11 @@ public UpdateExascaleDbStorageVaultResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public UpdateExternalContainerDatabaseResponse call() throws Exception { - final UpdateExternalContainerDatabaseResponse response = - client.updateExternalContainerDatabase(request); + public UpdateExternalPluggableDatabaseResponse call() throws Exception { + final UpdateExternalPluggableDatabaseResponse response = + client.updateExternalPluggableDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -17429,9 +19379,9 @@ public UpdateExternalContainerDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - UpdateExternalDatabaseConnectorRequest, UpdateExternalDatabaseConnectorResponse> - forUpdateExternalDatabaseConnector(UpdateExternalDatabaseConnectorRequest request) { - return forUpdateExternalDatabaseConnector( + UpdatePluggableDatabaseRequest, UpdatePluggableDatabaseResponse> + forUpdatePluggableDatabase(UpdatePluggableDatabaseRequest request) { + return forUpdatePluggableDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -17446,9 +19396,9 @@ public UpdateExternalContainerDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - UpdateExternalDatabaseConnectorRequest, UpdateExternalDatabaseConnectorResponse> - forUpdateExternalDatabaseConnector( - UpdateExternalDatabaseConnectorRequest request, + UpdatePluggableDatabaseRequest, UpdatePluggableDatabaseResponse> + forUpdatePluggableDatabase( + UpdatePluggableDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -17458,11 +19408,11 @@ public UpdateExternalContainerDatabaseResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public UpdateExternalDatabaseConnectorResponse call() throws Exception { - final UpdateExternalDatabaseConnectorResponse response = - client.updateExternalDatabaseConnector(request); + public UpdatePluggableDatabaseResponse call() throws Exception { + final UpdatePluggableDatabaseResponse response = + client.updatePluggableDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -17491,12 +19441,9 @@ public UpdateExternalDatabaseConnectorResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - UpdateExternalNonContainerDatabaseRequest, - UpdateExternalNonContainerDatabaseResponse> - forUpdateExternalNonContainerDatabase( - UpdateExternalNonContainerDatabaseRequest request) { - return forUpdateExternalNonContainerDatabase( + public com.oracle.bmc.waiter.Waiter + forUpdateScheduledAction(UpdateScheduledActionRequest request) { + return forUpdateScheduledAction( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -17510,11 +19457,9 @@ public UpdateExternalDatabaseConnectorResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - UpdateExternalNonContainerDatabaseRequest, - UpdateExternalNonContainerDatabaseResponse> - forUpdateExternalNonContainerDatabase( - UpdateExternalNonContainerDatabaseRequest request, + public com.oracle.bmc.waiter.Waiter + forUpdateScheduledAction( + UpdateScheduledActionRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -17524,11 +19469,11 @@ public UpdateExternalDatabaseConnectorResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public UpdateExternalNonContainerDatabaseResponse call() throws Exception { - final UpdateExternalNonContainerDatabaseResponse response = - client.updateExternalNonContainerDatabase(request); + public UpdateScheduledActionResponse call() throws Exception { + final UpdateScheduledActionResponse response = + client.updateScheduledAction(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -17558,9 +19503,9 @@ public UpdateExternalNonContainerDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - UpdateExternalPluggableDatabaseRequest, UpdateExternalPluggableDatabaseResponse> - forUpdateExternalPluggableDatabase(UpdateExternalPluggableDatabaseRequest request) { - return forUpdateExternalPluggableDatabase( + UpdateSchedulingPolicyRequest, UpdateSchedulingPolicyResponse> + forUpdateSchedulingPolicy(UpdateSchedulingPolicyRequest request) { + return forUpdateSchedulingPolicy( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -17575,9 +19520,9 @@ public UpdateExternalNonContainerDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - UpdateExternalPluggableDatabaseRequest, UpdateExternalPluggableDatabaseResponse> - forUpdateExternalPluggableDatabase( - UpdateExternalPluggableDatabaseRequest request, + UpdateSchedulingPolicyRequest, UpdateSchedulingPolicyResponse> + forUpdateSchedulingPolicy( + UpdateSchedulingPolicyRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -17587,11 +19532,11 @@ public UpdateExternalNonContainerDatabaseResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public UpdateExternalPluggableDatabaseResponse call() throws Exception { - final UpdateExternalPluggableDatabaseResponse response = - client.updateExternalPluggableDatabase(request); + public UpdateSchedulingPolicyResponse call() throws Exception { + final UpdateSchedulingPolicyResponse response = + client.updateSchedulingPolicy(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest @@ -17621,9 +19566,9 @@ public UpdateExternalPluggableDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - UpdatePluggableDatabaseRequest, UpdatePluggableDatabaseResponse> - forUpdatePluggableDatabase(UpdatePluggableDatabaseRequest request) { - return forUpdatePluggableDatabase( + UpdateSchedulingWindowRequest, UpdateSchedulingWindowResponse> + forUpdateSchedulingWindow(UpdateSchedulingWindowRequest request) { + return forUpdateSchedulingWindow( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -17638,9 +19583,9 @@ public UpdateExternalPluggableDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - UpdatePluggableDatabaseRequest, UpdatePluggableDatabaseResponse> - forUpdatePluggableDatabase( - UpdatePluggableDatabaseRequest request, + UpdateSchedulingWindowRequest, UpdateSchedulingWindowResponse> + forUpdateSchedulingWindow( + UpdateSchedulingWindowRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -17650,11 +19595,11 @@ public UpdateExternalPluggableDatabaseResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public UpdatePluggableDatabaseResponse call() throws Exception { - final UpdatePluggableDatabaseResponse response = - client.updatePluggableDatabase(request); + public UpdateSchedulingWindowResponse call() throws Exception { + final UpdateSchedulingWindowResponse response = + client.updateSchedulingWindow(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ActionMember.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ActionMember.java new file mode 100644 index 00000000000..4c7d1ccc7a9 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ActionMember.java @@ -0,0 +1,207 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * The details of an action member.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ActionMember.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ActionMember extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"memberOrder", "memberId", "estimatedTimeInMins"}) + public ActionMember(Integer memberOrder, String memberId, Integer estimatedTimeInMins) { + super(); + this.memberOrder = memberOrder; + this.memberId = memberId; + this.estimatedTimeInMins = estimatedTimeInMins; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The order of the action member in a scheduled action. */ + @com.fasterxml.jackson.annotation.JsonProperty("memberOrder") + private Integer memberOrder; + + /** + * The order of the action member in a scheduled action. + * + * @param memberOrder the value to set + * @return this builder + */ + public Builder memberOrder(Integer memberOrder) { + this.memberOrder = memberOrder; + this.__explicitlySet__.add("memberOrder"); + return this; + } + /** The ocid of the action member. */ + @com.fasterxml.jackson.annotation.JsonProperty("memberId") + private String memberId; + + /** + * The ocid of the action member. + * + * @param memberId the value to set + * @return this builder + */ + public Builder memberId(String memberId) { + this.memberId = memberId; + this.__explicitlySet__.add("memberId"); + return this; + } + /** The estimated time for the intended action member. */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedTimeInMins") + private Integer estimatedTimeInMins; + + /** + * The estimated time for the intended action member. + * + * @param estimatedTimeInMins the value to set + * @return this builder + */ + public Builder estimatedTimeInMins(Integer estimatedTimeInMins) { + this.estimatedTimeInMins = estimatedTimeInMins; + this.__explicitlySet__.add("estimatedTimeInMins"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ActionMember build() { + ActionMember model = + new ActionMember(this.memberOrder, this.memberId, this.estimatedTimeInMins); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ActionMember model) { + if (model.wasPropertyExplicitlySet("memberOrder")) { + this.memberOrder(model.getMemberOrder()); + } + if (model.wasPropertyExplicitlySet("memberId")) { + this.memberId(model.getMemberId()); + } + if (model.wasPropertyExplicitlySet("estimatedTimeInMins")) { + this.estimatedTimeInMins(model.getEstimatedTimeInMins()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The order of the action member in a scheduled action. */ + @com.fasterxml.jackson.annotation.JsonProperty("memberOrder") + private final Integer memberOrder; + + /** + * The order of the action member in a scheduled action. + * + * @return the value + */ + public Integer getMemberOrder() { + return memberOrder; + } + + /** The ocid of the action member. */ + @com.fasterxml.jackson.annotation.JsonProperty("memberId") + private final String memberId; + + /** + * The ocid of the action member. + * + * @return the value + */ + public String getMemberId() { + return memberId; + } + + /** The estimated time for the intended action member. */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedTimeInMins") + private final Integer estimatedTimeInMins; + + /** + * The estimated time for the intended action member. + * + * @return the value + */ + public Integer getEstimatedTimeInMins() { + return estimatedTimeInMins; + } + + @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("ActionMember("); + sb.append("super=").append(super.toString()); + sb.append("memberOrder=").append(String.valueOf(this.memberOrder)); + sb.append(", memberId=").append(String.valueOf(this.memberId)); + sb.append(", estimatedTimeInMins=").append(String.valueOf(this.estimatedTimeInMins)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ActionMember)) { + return false; + } + + ActionMember other = (ActionMember) o; + return java.util.Objects.equals(this.memberOrder, other.memberOrder) + && java.util.Objects.equals(this.memberId, other.memberId) + && java.util.Objects.equals(this.estimatedTimeInMins, other.estimatedTimeInMins) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.memberOrder == null ? 43 : this.memberOrder.hashCode()); + result = (result * PRIME) + (this.memberId == null ? 43 : this.memberId.hashCode()); + result = + (result * PRIME) + + (this.estimatedTimeInMins == null + ? 43 + : this.estimatedTimeInMins.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ActionOrderDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ActionOrderDetails.java new file mode 100644 index 00000000000..f12f688f89a --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ActionOrderDetails.java @@ -0,0 +1,180 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Describes the ordering list of action resources.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ActionOrderDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ActionOrderDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"actionOrder", "actionResourceId"}) + public ActionOrderDetails(Integer actionOrder, String actionResourceId) { + super(); + this.actionOrder = actionOrder; + this.actionResourceId = actionResourceId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The priority order of the action resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionOrder") + private Integer actionOrder; + + /** + * The priority order of the action resource. + * + * @param actionOrder the value to set + * @return this builder + */ + public Builder actionOrder(Integer actionOrder) { + this.actionOrder = actionOrder; + this.__explicitlySet__.add("actionOrder"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * action resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("actionResourceId") + private String actionResourceId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * action resource. + * + * @param actionResourceId the value to set + * @return this builder + */ + public Builder actionResourceId(String actionResourceId) { + this.actionResourceId = actionResourceId; + this.__explicitlySet__.add("actionResourceId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ActionOrderDetails build() { + ActionOrderDetails model = + new ActionOrderDetails(this.actionOrder, this.actionResourceId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ActionOrderDetails model) { + if (model.wasPropertyExplicitlySet("actionOrder")) { + this.actionOrder(model.getActionOrder()); + } + if (model.wasPropertyExplicitlySet("actionResourceId")) { + this.actionResourceId(model.getActionResourceId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The priority order of the action resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionOrder") + private final Integer actionOrder; + + /** + * The priority order of the action resource. + * + * @return the value + */ + public Integer getActionOrder() { + return actionOrder; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * action resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("actionResourceId") + private final String actionResourceId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * action resource. + * + * @return the value + */ + public String getActionResourceId() { + return actionResourceId; + } + + @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("ActionOrderDetails("); + sb.append("super=").append(super.toString()); + sb.append("actionOrder=").append(String.valueOf(this.actionOrder)); + sb.append(", actionResourceId=").append(String.valueOf(this.actionResourceId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ActionOrderDetails)) { + return false; + } + + ActionOrderDetails other = (ActionOrderDetails) o; + return java.util.Objects.equals(this.actionOrder, other.actionOrder) + && java.util.Objects.equals(this.actionResourceId, other.actionResourceId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.actionOrder == null ? 43 : this.actionOrder.hashCode()); + result = + (result * PRIME) + + (this.actionResourceId == null ? 43 : this.actionResourceId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ActionParamValuesCollection.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ActionParamValuesCollection.java new file mode 100644 index 00000000000..02195ba2f51 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ActionParamValuesCollection.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.database.model; + +/** + * A list of Action Parameters. Contains ActionParamValues items.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ActionParamValuesCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ActionParamValuesCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public ActionParamValuesCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of Action Parameters and their possible values. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of Action Parameters and their possible values. + * + * @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 ActionParamValuesCollection build() { + ActionParamValuesCollection model = new ActionParamValuesCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ActionParamValuesCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of Action Parameters and their possible values. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of Action Parameters and their possible values. + * + * @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("ActionParamValuesCollection("); + 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 ActionParamValuesCollection)) { + return false; + } + + ActionParamValuesCollection other = (ActionParamValuesCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ActionParamValuesSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ActionParamValuesSummary.java new file mode 100644 index 00000000000..59950853775 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ActionParamValuesSummary.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.database.model; + +/** + * Details of the action parameter and its possible values that is used in listParamsForActionType. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ActionParamValuesSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ActionParamValuesSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "parameterName", + "parameterType", + "parameterValues", + "defaultValue", + "isRequired" + }) + public ActionParamValuesSummary( + String parameterName, + ParameterType parameterType, + java.util.List parameterValues, + String defaultValue, + Boolean isRequired) { + super(); + this.parameterName = parameterName; + this.parameterType = parameterType; + this.parameterValues = parameterValues; + this.defaultValue = defaultValue; + this.isRequired = isRequired; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The name of this parameter. */ + @com.fasterxml.jackson.annotation.JsonProperty("parameterName") + private String parameterName; + + /** + * The name of this parameter. + * + * @param parameterName the value to set + * @return this builder + */ + public Builder parameterName(String parameterName) { + this.parameterName = parameterName; + this.__explicitlySet__.add("parameterName"); + return this; + } + /** The type of the parameter. */ + @com.fasterxml.jackson.annotation.JsonProperty("parameterType") + private ParameterType parameterType; + + /** + * The type of the parameter. + * + * @param parameterType the value to set + * @return this builder + */ + public Builder parameterType(ParameterType parameterType) { + this.parameterType = parameterType; + this.__explicitlySet__.add("parameterType"); + return this; + } + /** Possible values for this parameter. In case of integer it's min and max values. */ + @com.fasterxml.jackson.annotation.JsonProperty("parameterValues") + private java.util.List parameterValues; + + /** + * Possible values for this parameter. In case of integer it's min and max values. + * + * @param parameterValues the value to set + * @return this builder + */ + public Builder parameterValues(java.util.List parameterValues) { + this.parameterValues = parameterValues; + this.__explicitlySet__.add("parameterValues"); + return this; + } + /** The default value for this parameter. */ + @com.fasterxml.jackson.annotation.JsonProperty("defaultValue") + private String defaultValue; + + /** + * The default value for this parameter. + * + * @param defaultValue the value to set + * @return this builder + */ + public Builder defaultValue(String defaultValue) { + this.defaultValue = defaultValue; + this.__explicitlySet__.add("defaultValue"); + return this; + } + /** Whether this parameter is required or not for this action type.\u3001 */ + @com.fasterxml.jackson.annotation.JsonProperty("isRequired") + private Boolean isRequired; + + /** + * Whether this parameter is required or not for this action type.\u3001 + * + * @param isRequired the value to set + * @return this builder + */ + public Builder isRequired(Boolean isRequired) { + this.isRequired = isRequired; + this.__explicitlySet__.add("isRequired"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ActionParamValuesSummary build() { + ActionParamValuesSummary model = + new ActionParamValuesSummary( + this.parameterName, + this.parameterType, + this.parameterValues, + this.defaultValue, + this.isRequired); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ActionParamValuesSummary model) { + if (model.wasPropertyExplicitlySet("parameterName")) { + this.parameterName(model.getParameterName()); + } + if (model.wasPropertyExplicitlySet("parameterType")) { + this.parameterType(model.getParameterType()); + } + if (model.wasPropertyExplicitlySet("parameterValues")) { + this.parameterValues(model.getParameterValues()); + } + if (model.wasPropertyExplicitlySet("defaultValue")) { + this.defaultValue(model.getDefaultValue()); + } + if (model.wasPropertyExplicitlySet("isRequired")) { + this.isRequired(model.getIsRequired()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The name of this parameter. */ + @com.fasterxml.jackson.annotation.JsonProperty("parameterName") + private final String parameterName; + + /** + * The name of this parameter. + * + * @return the value + */ + public String getParameterName() { + return parameterName; + } + + /** The type of the parameter. */ + public enum ParameterType implements com.oracle.bmc.http.internal.BmcEnum { + Boolean("BOOLEAN"), + String("STRING"), + Integer("INTEGER"), + + /** + * 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(ParameterType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ParameterType v : ParameterType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ParameterType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ParameterType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ParameterType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The type of the parameter. */ + @com.fasterxml.jackson.annotation.JsonProperty("parameterType") + private final ParameterType parameterType; + + /** + * The type of the parameter. + * + * @return the value + */ + public ParameterType getParameterType() { + return parameterType; + } + + /** Possible values for this parameter. In case of integer it's min and max values. */ + @com.fasterxml.jackson.annotation.JsonProperty("parameterValues") + private final java.util.List parameterValues; + + /** + * Possible values for this parameter. In case of integer it's min and max values. + * + * @return the value + */ + public java.util.List getParameterValues() { + return parameterValues; + } + + /** The default value for this parameter. */ + @com.fasterxml.jackson.annotation.JsonProperty("defaultValue") + private final String defaultValue; + + /** + * The default value for this parameter. + * + * @return the value + */ + public String getDefaultValue() { + return defaultValue; + } + + /** Whether this parameter is required or not for this action type.\u3001 */ + @com.fasterxml.jackson.annotation.JsonProperty("isRequired") + private final Boolean isRequired; + + /** + * Whether this parameter is required or not for this action type.\u3001 + * + * @return the value + */ + public Boolean getIsRequired() { + return isRequired; + } + + @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("ActionParamValuesSummary("); + sb.append("super=").append(super.toString()); + sb.append("parameterName=").append(String.valueOf(this.parameterName)); + sb.append(", parameterType=").append(String.valueOf(this.parameterType)); + sb.append(", parameterValues=").append(String.valueOf(this.parameterValues)); + sb.append(", defaultValue=").append(String.valueOf(this.defaultValue)); + sb.append(", isRequired=").append(String.valueOf(this.isRequired)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ActionParamValuesSummary)) { + return false; + } + + ActionParamValuesSummary other = (ActionParamValuesSummary) o; + return java.util.Objects.equals(this.parameterName, other.parameterName) + && java.util.Objects.equals(this.parameterType, other.parameterType) + && java.util.Objects.equals(this.parameterValues, other.parameterValues) + && java.util.Objects.equals(this.defaultValue, other.defaultValue) + && java.util.Objects.equals(this.isRequired, other.isRequired) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.parameterName == null ? 43 : this.parameterName.hashCode()); + result = + (result * PRIME) + + (this.parameterType == null ? 43 : this.parameterType.hashCode()); + result = + (result * PRIME) + + (this.parameterValues == null ? 43 : this.parameterValues.hashCode()); + result = (result * PRIME) + (this.defaultValue == null ? 43 : this.defaultValue.hashCode()); + result = (result * PRIME) + (this.isRequired == null ? 43 : this.isRequired.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabase.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabase.java index e14c28ffa46..304a044c5af 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabase.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabase.java @@ -141,6 +141,7 @@ public final class AutonomousDatabase "timeDisasterRecoveryRoleChanged", "remoteDisasterRecoveryConfiguration", "netServicesArchitecture", + "availabilityDomain", "clusterPlacementGroupId" }) public AutonomousDatabase( @@ -261,6 +262,7 @@ public AutonomousDatabase( java.util.Date timeDisasterRecoveryRoleChanged, DisasterRecoveryConfiguration remoteDisasterRecoveryConfiguration, NetServicesArchitecture netServicesArchitecture, + String availabilityDomain, String clusterPlacementGroupId) { super(); this.id = id; @@ -380,6 +382,7 @@ public AutonomousDatabase( this.timeDisasterRecoveryRoleChanged = timeDisasterRecoveryRoleChanged; this.remoteDisasterRecoveryConfiguration = remoteDisasterRecoveryConfiguration; this.netServicesArchitecture = netServicesArchitecture; + this.availabilityDomain = availabilityDomain; this.clusterPlacementGroupId = clusterPlacementGroupId; } @@ -1619,29 +1622,23 @@ public Builder dbWorkload(DbWorkload dbWorkload) { return this; } /** - * Autonomous Database for Developers are free Autonomous Databases that developers can use - * to build and test new applications.With Autonomous these database instancess instances, - * you can try new Autonomous Database features for free and apply them to ongoing or new - * development projects. Developer database comes with limited resources and is, therefore, - * not suitable for large-scale testing and production deployments. When you need more - * compute or storage resources, you can transition to a paid database licensing by cloning - * your developer database into a regular Autonomous Database. See [Autonomous Database - * documentation](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/eddjo/index.html) - * for more details. + * Autonomous Database for Developers are fixed-shape Autonomous Databases that developers + * can use to build and test new applications. On Serverless, these are low-cost and billed + * per instance, on Dedicated and Cloud@Customer there is no additional cost to create + * Developer databases. Developer databases come with limited resources and is not intended + * for large-scale testing and production deployments. When you need more compute or storage + * resources, you may upgrade to a full paid production database. */ @com.fasterxml.jackson.annotation.JsonProperty("isDevTier") private Boolean isDevTier; /** - * Autonomous Database for Developers are free Autonomous Databases that developers can use - * to build and test new applications.With Autonomous these database instancess instances, - * you can try new Autonomous Database features for free and apply them to ongoing or new - * development projects. Developer database comes with limited resources and is, therefore, - * not suitable for large-scale testing and production deployments. When you need more - * compute or storage resources, you can transition to a paid database licensing by cloning - * your developer database into a regular Autonomous Database. See [Autonomous Database - * documentation](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/eddjo/index.html) - * for more details. + * Autonomous Database for Developers are fixed-shape Autonomous Databases that developers + * can use to build and test new applications. On Serverless, these are low-cost and billed + * per instance, on Dedicated and Cloud@Customer there is no additional cost to create + * Developer databases. Developer databases come with limited resources and is not intended + * for large-scale testing and production deployments. When you need more compute or storage + * resources, you may upgrade to a full paid production database. * * @param isDevTier the value to set * @return this builder @@ -2945,6 +2942,21 @@ public Builder netServicesArchitecture(NetServicesArchitecture netServicesArchit this.__explicitlySet__.add("netServicesArchitecture"); return this; } + /** The availability domain where the Autonomous Database Serverless instance is located. */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private String availabilityDomain; + + /** + * The availability domain where the Autonomous Database Serverless instance is located. + * + * @param availabilityDomain the value to set + * @return this builder + */ + public Builder availabilityDomain(String availabilityDomain) { + this.availabilityDomain = availabilityDomain; + this.__explicitlySet__.add("availabilityDomain"); + return this; + } /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * cluster placement group of the Autonomous Serverless Database. @@ -3088,6 +3100,7 @@ public AutonomousDatabase build() { this.timeDisasterRecoveryRoleChanged, this.remoteDisasterRecoveryConfiguration, this.netServicesArchitecture, + this.availabilityDomain, this.clusterPlacementGroupId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -3453,6 +3466,9 @@ public Builder copy(AutonomousDatabase model) { if (model.wasPropertyExplicitlySet("netServicesArchitecture")) { this.netServicesArchitecture(model.getNetServicesArchitecture()); } + if (model.wasPropertyExplicitlySet("availabilityDomain")) { + this.availabilityDomain(model.getAvailabilityDomain()); + } if (model.wasPropertyExplicitlySet("clusterPlacementGroupId")) { this.clusterPlacementGroupId(model.getClusterPlacementGroupId()); } @@ -4845,29 +4861,23 @@ public DbWorkload getDbWorkload() { } /** - * Autonomous Database for Developers are free Autonomous Databases that developers can use to - * build and test new applications.With Autonomous these database instancess instances, you can - * try new Autonomous Database features for free and apply them to ongoing or new development - * projects. Developer database comes with limited resources and is, therefore, not suitable for + * Autonomous Database for Developers are fixed-shape Autonomous Databases that developers can + * use to build and test new applications. On Serverless, these are low-cost and billed per + * instance, on Dedicated and Cloud@Customer there is no additional cost to create Developer + * databases. Developer databases come with limited resources and is not intended for * large-scale testing and production deployments. When you need more compute or storage - * resources, you can transition to a paid database licensing by cloning your developer database - * into a regular Autonomous Database. See [Autonomous Database - * documentation](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/eddjo/index.html) - * for more details. + * resources, you may upgrade to a full paid production database. */ @com.fasterxml.jackson.annotation.JsonProperty("isDevTier") private final Boolean isDevTier; /** - * Autonomous Database for Developers are free Autonomous Databases that developers can use to - * build and test new applications.With Autonomous these database instancess instances, you can - * try new Autonomous Database features for free and apply them to ongoing or new development - * projects. Developer database comes with limited resources and is, therefore, not suitable for + * Autonomous Database for Developers are fixed-shape Autonomous Databases that developers can + * use to build and test new applications. On Serverless, these are low-cost and billed per + * instance, on Dedicated and Cloud@Customer there is no additional cost to create Developer + * databases. Developer databases come with limited resources and is not intended for * large-scale testing and production deployments. When you need more compute or storage - * resources, you can transition to a paid database licensing by cloning your developer database - * into a regular Autonomous Database. See [Autonomous Database - * documentation](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/eddjo/index.html) - * for more details. + * resources, you may upgrade to a full paid production database. * * @return the value */ @@ -6680,6 +6690,19 @@ public NetServicesArchitecture getNetServicesArchitecture() { return netServicesArchitecture; } + /** The availability domain where the Autonomous Database Serverless instance is located. */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private final String availabilityDomain; + + /** + * The availability domain where the Autonomous Database Serverless instance is located. + * + * @return the value + */ + public String getAvailabilityDomain() { + return availabilityDomain; + } + /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * cluster placement group of the Autonomous Serverless Database. @@ -6864,6 +6887,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.remoteDisasterRecoveryConfiguration)); sb.append(", netServicesArchitecture=") .append(String.valueOf(this.netServicesArchitecture)); + sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); sb.append(", clusterPlacementGroupId=") .append(String.valueOf(this.clusterPlacementGroupId)); sb.append(")"); @@ -7042,6 +7066,7 @@ public boolean equals(Object o) { other.remoteDisasterRecoveryConfiguration) && java.util.Objects.equals( this.netServicesArchitecture, other.netServicesArchitecture) + && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) && java.util.Objects.equals( this.clusterPlacementGroupId, other.clusterPlacementGroupId) && super.equals(other); @@ -7460,6 +7485,11 @@ public int hashCode() { + (this.netServicesArchitecture == null ? 43 : this.netServicesArchitecture.hashCode()); + result = + (result * PRIME) + + (this.availabilityDomain == null + ? 43 + : this.availabilityDomain.hashCode()); result = (result * PRIME) + (this.clusterPlacementGroupId == null diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseStandbySummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseStandbySummary.java index 2ef2980166b..81200198c34 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseStandbySummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseStandbySummary.java @@ -28,20 +28,23 @@ public final class AutonomousDatabaseStandbySummary "lifecycleState", "lifecycleDetails", "timeDataGuardRoleChanged", - "timeDisasterRecoveryRoleChanged" + "timeDisasterRecoveryRoleChanged", + "availabilityDomain" }) public AutonomousDatabaseStandbySummary( Integer lagTimeInSeconds, LifecycleState lifecycleState, String lifecycleDetails, java.util.Date timeDataGuardRoleChanged, - java.util.Date timeDisasterRecoveryRoleChanged) { + java.util.Date timeDisasterRecoveryRoleChanged, + String availabilityDomain) { super(); this.lagTimeInSeconds = lagTimeInSeconds; this.lifecycleState = lifecycleState; this.lifecycleDetails = lifecycleDetails; this.timeDataGuardRoleChanged = timeDataGuardRoleChanged; this.timeDisasterRecoveryRoleChanged = timeDisasterRecoveryRoleChanged; + this.availabilityDomain = availabilityDomain; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -136,6 +139,25 @@ public Builder timeDisasterRecoveryRoleChanged( this.__explicitlySet__.add("timeDisasterRecoveryRoleChanged"); return this; } + /** + * The availability domain of a local Autonomous Data Guard standby database of an + * Autonomous Database Serverless instance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private String availabilityDomain; + + /** + * The availability domain of a local Autonomous Data Guard standby database of an + * Autonomous Database Serverless instance. + * + * @param availabilityDomain the value to set + * @return this builder + */ + public Builder availabilityDomain(String availabilityDomain) { + this.availabilityDomain = availabilityDomain; + this.__explicitlySet__.add("availabilityDomain"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -147,7 +169,8 @@ public AutonomousDatabaseStandbySummary build() { this.lifecycleState, this.lifecycleDetails, this.timeDataGuardRoleChanged, - this.timeDisasterRecoveryRoleChanged); + this.timeDisasterRecoveryRoleChanged, + this.availabilityDomain); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -171,6 +194,9 @@ public Builder copy(AutonomousDatabaseStandbySummary model) { if (model.wasPropertyExplicitlySet("timeDisasterRecoveryRoleChanged")) { this.timeDisasterRecoveryRoleChanged(model.getTimeDisasterRecoveryRoleChanged()); } + if (model.wasPropertyExplicitlySet("availabilityDomain")) { + this.availabilityDomain(model.getAvailabilityDomain()); + } return this; } } @@ -328,6 +354,23 @@ public java.util.Date getTimeDisasterRecoveryRoleChanged() { return timeDisasterRecoveryRoleChanged; } + /** + * The availability domain of a local Autonomous Data Guard standby database of an Autonomous + * Database Serverless instance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private final String availabilityDomain; + + /** + * The availability domain of a local Autonomous Data Guard standby database of an Autonomous + * Database Serverless instance. + * + * @return the value + */ + public String getAvailabilityDomain() { + return availabilityDomain; + } + @Override public String toString() { return this.toString(true); @@ -350,6 +393,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.timeDataGuardRoleChanged)); sb.append(", timeDisasterRecoveryRoleChanged=") .append(String.valueOf(this.timeDisasterRecoveryRoleChanged)); + sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); sb.append(")"); return sb.toString(); } @@ -371,6 +415,7 @@ public boolean equals(Object o) { this.timeDataGuardRoleChanged, other.timeDataGuardRoleChanged) && java.util.Objects.equals( this.timeDisasterRecoveryRoleChanged, other.timeDisasterRecoveryRoleChanged) + && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) && super.equals(other); } @@ -397,6 +442,11 @@ public int hashCode() { + (this.timeDisasterRecoveryRoleChanged == null ? 43 : this.timeDisasterRecoveryRoleChanged.hashCode()); + result = + (result * PRIME) + + (this.availabilityDomain == null + ? 43 + : this.availabilityDomain.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSummary.java index bbfdcb2452e..bbc79379c3e 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSummary.java @@ -144,6 +144,7 @@ public final class AutonomousDatabaseSummary "timeDisasterRecoveryRoleChanged", "remoteDisasterRecoveryConfiguration", "netServicesArchitecture", + "availabilityDomain", "clusterPlacementGroupId" }) public AutonomousDatabaseSummary( @@ -264,6 +265,7 @@ public AutonomousDatabaseSummary( java.util.Date timeDisasterRecoveryRoleChanged, DisasterRecoveryConfiguration remoteDisasterRecoveryConfiguration, NetServicesArchitecture netServicesArchitecture, + String availabilityDomain, String clusterPlacementGroupId) { super(); this.id = id; @@ -383,6 +385,7 @@ public AutonomousDatabaseSummary( this.timeDisasterRecoveryRoleChanged = timeDisasterRecoveryRoleChanged; this.remoteDisasterRecoveryConfiguration = remoteDisasterRecoveryConfiguration; this.netServicesArchitecture = netServicesArchitecture; + this.availabilityDomain = availabilityDomain; this.clusterPlacementGroupId = clusterPlacementGroupId; } @@ -1622,29 +1625,23 @@ public Builder dbWorkload(DbWorkload dbWorkload) { return this; } /** - * Autonomous Database for Developers are free Autonomous Databases that developers can use - * to build and test new applications.With Autonomous these database instancess instances, - * you can try new Autonomous Database features for free and apply them to ongoing or new - * development projects. Developer database comes with limited resources and is, therefore, - * not suitable for large-scale testing and production deployments. When you need more - * compute or storage resources, you can transition to a paid database licensing by cloning - * your developer database into a regular Autonomous Database. See [Autonomous Database - * documentation](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/eddjo/index.html) - * for more details. + * Autonomous Database for Developers are fixed-shape Autonomous Databases that developers + * can use to build and test new applications. On Serverless, these are low-cost and billed + * per instance, on Dedicated and Cloud@Customer there is no additional cost to create + * Developer databases. Developer databases come with limited resources and is not intended + * for large-scale testing and production deployments. When you need more compute or storage + * resources, you may upgrade to a full paid production database. */ @com.fasterxml.jackson.annotation.JsonProperty("isDevTier") private Boolean isDevTier; /** - * Autonomous Database for Developers are free Autonomous Databases that developers can use - * to build and test new applications.With Autonomous these database instancess instances, - * you can try new Autonomous Database features for free and apply them to ongoing or new - * development projects. Developer database comes with limited resources and is, therefore, - * not suitable for large-scale testing and production deployments. When you need more - * compute or storage resources, you can transition to a paid database licensing by cloning - * your developer database into a regular Autonomous Database. See [Autonomous Database - * documentation](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/eddjo/index.html) - * for more details. + * Autonomous Database for Developers are fixed-shape Autonomous Databases that developers + * can use to build and test new applications. On Serverless, these are low-cost and billed + * per instance, on Dedicated and Cloud@Customer there is no additional cost to create + * Developer databases. Developer databases come with limited resources and is not intended + * for large-scale testing and production deployments. When you need more compute or storage + * resources, you may upgrade to a full paid production database. * * @param isDevTier the value to set * @return this builder @@ -2948,6 +2945,21 @@ public Builder netServicesArchitecture(NetServicesArchitecture netServicesArchit this.__explicitlySet__.add("netServicesArchitecture"); return this; } + /** The availability domain where the Autonomous Database Serverless instance is located. */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private String availabilityDomain; + + /** + * The availability domain where the Autonomous Database Serverless instance is located. + * + * @param availabilityDomain the value to set + * @return this builder + */ + public Builder availabilityDomain(String availabilityDomain) { + this.availabilityDomain = availabilityDomain; + this.__explicitlySet__.add("availabilityDomain"); + return this; + } /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * cluster placement group of the Autonomous Serverless Database. @@ -3091,6 +3103,7 @@ public AutonomousDatabaseSummary build() { this.timeDisasterRecoveryRoleChanged, this.remoteDisasterRecoveryConfiguration, this.netServicesArchitecture, + this.availabilityDomain, this.clusterPlacementGroupId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -3456,6 +3469,9 @@ public Builder copy(AutonomousDatabaseSummary model) { if (model.wasPropertyExplicitlySet("netServicesArchitecture")) { this.netServicesArchitecture(model.getNetServicesArchitecture()); } + if (model.wasPropertyExplicitlySet("availabilityDomain")) { + this.availabilityDomain(model.getAvailabilityDomain()); + } if (model.wasPropertyExplicitlySet("clusterPlacementGroupId")) { this.clusterPlacementGroupId(model.getClusterPlacementGroupId()); } @@ -4848,29 +4864,23 @@ public DbWorkload getDbWorkload() { } /** - * Autonomous Database for Developers are free Autonomous Databases that developers can use to - * build and test new applications.With Autonomous these database instancess instances, you can - * try new Autonomous Database features for free and apply them to ongoing or new development - * projects. Developer database comes with limited resources and is, therefore, not suitable for + * Autonomous Database for Developers are fixed-shape Autonomous Databases that developers can + * use to build and test new applications. On Serverless, these are low-cost and billed per + * instance, on Dedicated and Cloud@Customer there is no additional cost to create Developer + * databases. Developer databases come with limited resources and is not intended for * large-scale testing and production deployments. When you need more compute or storage - * resources, you can transition to a paid database licensing by cloning your developer database - * into a regular Autonomous Database. See [Autonomous Database - * documentation](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/eddjo/index.html) - * for more details. + * resources, you may upgrade to a full paid production database. */ @com.fasterxml.jackson.annotation.JsonProperty("isDevTier") private final Boolean isDevTier; /** - * Autonomous Database for Developers are free Autonomous Databases that developers can use to - * build and test new applications.With Autonomous these database instancess instances, you can - * try new Autonomous Database features for free and apply them to ongoing or new development - * projects. Developer database comes with limited resources and is, therefore, not suitable for + * Autonomous Database for Developers are fixed-shape Autonomous Databases that developers can + * use to build and test new applications. On Serverless, these are low-cost and billed per + * instance, on Dedicated and Cloud@Customer there is no additional cost to create Developer + * databases. Developer databases come with limited resources and is not intended for * large-scale testing and production deployments. When you need more compute or storage - * resources, you can transition to a paid database licensing by cloning your developer database - * into a regular Autonomous Database. See [Autonomous Database - * documentation](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/eddjo/index.html) - * for more details. + * resources, you may upgrade to a full paid production database. * * @return the value */ @@ -6683,6 +6693,19 @@ public NetServicesArchitecture getNetServicesArchitecture() { return netServicesArchitecture; } + /** The availability domain where the Autonomous Database Serverless instance is located. */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private final String availabilityDomain; + + /** + * The availability domain where the Autonomous Database Serverless instance is located. + * + * @return the value + */ + public String getAvailabilityDomain() { + return availabilityDomain; + } + /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * cluster placement group of the Autonomous Serverless Database. @@ -6867,6 +6890,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.remoteDisasterRecoveryConfiguration)); sb.append(", netServicesArchitecture=") .append(String.valueOf(this.netServicesArchitecture)); + sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); sb.append(", clusterPlacementGroupId=") .append(String.valueOf(this.clusterPlacementGroupId)); sb.append(")"); @@ -7045,6 +7069,7 @@ public boolean equals(Object o) { other.remoteDisasterRecoveryConfiguration) && java.util.Objects.equals( this.netServicesArchitecture, other.netServicesArchitecture) + && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) && java.util.Objects.equals( this.clusterPlacementGroupId, other.clusterPlacementGroupId) && super.equals(other); @@ -7463,6 +7488,11 @@ public int hashCode() { + (this.netServicesArchitecture == null ? 43 : this.netServicesArchitecture.hashCode()); + result = + (result * PRIME) + + (this.availabilityDomain == null + ? 43 + : this.availabilityDomain.hashCode()); result = (result * PRIME) + (this.clusterPlacementGroupId == null diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CancelExecutionWindowDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CancelExecutionWindowDetails.java new file mode 100644 index 00000000000..7fba89ec013 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CancelExecutionWindowDetails.java @@ -0,0 +1,250 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Describe the parameters to create a new execution window after this execution window is canceled. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CancelExecutionWindowDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CancelExecutionWindowDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "timeScheduledOfNewWindow", + "windowDurationInMinsOfNewWindow", + "isEnforcedDurationOfNewWindow" + }) + public CancelExecutionWindowDetails( + java.util.Date timeScheduledOfNewWindow, + Integer windowDurationInMinsOfNewWindow, + Boolean isEnforcedDurationOfNewWindow) { + super(); + this.timeScheduledOfNewWindow = timeScheduledOfNewWindow; + this.windowDurationInMinsOfNewWindow = windowDurationInMinsOfNewWindow; + this.isEnforcedDurationOfNewWindow = isEnforcedDurationOfNewWindow; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** New scheduled date and time of the execution window. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduledOfNewWindow") + private java.util.Date timeScheduledOfNewWindow; + + /** + * New scheduled date and time of the execution window. + * + * @param timeScheduledOfNewWindow the value to set + * @return this builder + */ + public Builder timeScheduledOfNewWindow(java.util.Date timeScheduledOfNewWindow) { + this.timeScheduledOfNewWindow = timeScheduledOfNewWindow; + this.__explicitlySet__.add("timeScheduledOfNewWindow"); + return this; + } + /** + * Duration window allows user to set a duration they plan to allocate for Scheduling + * window. The duration is in minutes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("windowDurationInMinsOfNewWindow") + private Integer windowDurationInMinsOfNewWindow; + + /** + * Duration window allows user to set a duration they plan to allocate for Scheduling + * window. The duration is in minutes. + * + * @param windowDurationInMinsOfNewWindow the value to set + * @return this builder + */ + public Builder windowDurationInMinsOfNewWindow(Integer windowDurationInMinsOfNewWindow) { + this.windowDurationInMinsOfNewWindow = windowDurationInMinsOfNewWindow; + this.__explicitlySet__.add("windowDurationInMinsOfNewWindow"); + return this; + } + /** + * Indicates if duration the user plans to allocate for scheduling window is strictly + * enforced. The default value is {@code FALSE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnforcedDurationOfNewWindow") + private Boolean isEnforcedDurationOfNewWindow; + + /** + * Indicates if duration the user plans to allocate for scheduling window is strictly + * enforced. The default value is {@code FALSE}. + * + * @param isEnforcedDurationOfNewWindow the value to set + * @return this builder + */ + public Builder isEnforcedDurationOfNewWindow(Boolean isEnforcedDurationOfNewWindow) { + this.isEnforcedDurationOfNewWindow = isEnforcedDurationOfNewWindow; + this.__explicitlySet__.add("isEnforcedDurationOfNewWindow"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CancelExecutionWindowDetails build() { + CancelExecutionWindowDetails model = + new CancelExecutionWindowDetails( + this.timeScheduledOfNewWindow, + this.windowDurationInMinsOfNewWindow, + this.isEnforcedDurationOfNewWindow); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CancelExecutionWindowDetails model) { + if (model.wasPropertyExplicitlySet("timeScheduledOfNewWindow")) { + this.timeScheduledOfNewWindow(model.getTimeScheduledOfNewWindow()); + } + if (model.wasPropertyExplicitlySet("windowDurationInMinsOfNewWindow")) { + this.windowDurationInMinsOfNewWindow(model.getWindowDurationInMinsOfNewWindow()); + } + if (model.wasPropertyExplicitlySet("isEnforcedDurationOfNewWindow")) { + this.isEnforcedDurationOfNewWindow(model.getIsEnforcedDurationOfNewWindow()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** New scheduled date and time of the execution window. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduledOfNewWindow") + private final java.util.Date timeScheduledOfNewWindow; + + /** + * New scheduled date and time of the execution window. + * + * @return the value + */ + public java.util.Date getTimeScheduledOfNewWindow() { + return timeScheduledOfNewWindow; + } + + /** + * Duration window allows user to set a duration they plan to allocate for Scheduling window. + * The duration is in minutes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("windowDurationInMinsOfNewWindow") + private final Integer windowDurationInMinsOfNewWindow; + + /** + * Duration window allows user to set a duration they plan to allocate for Scheduling window. + * The duration is in minutes. + * + * @return the value + */ + public Integer getWindowDurationInMinsOfNewWindow() { + return windowDurationInMinsOfNewWindow; + } + + /** + * Indicates if duration the user plans to allocate for scheduling window is strictly enforced. + * The default value is {@code FALSE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnforcedDurationOfNewWindow") + private final Boolean isEnforcedDurationOfNewWindow; + + /** + * Indicates if duration the user plans to allocate for scheduling window is strictly enforced. + * The default value is {@code FALSE}. + * + * @return the value + */ + public Boolean getIsEnforcedDurationOfNewWindow() { + return isEnforcedDurationOfNewWindow; + } + + @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("CancelExecutionWindowDetails("); + sb.append("super=").append(super.toString()); + sb.append("timeScheduledOfNewWindow=") + .append(String.valueOf(this.timeScheduledOfNewWindow)); + sb.append(", windowDurationInMinsOfNewWindow=") + .append(String.valueOf(this.windowDurationInMinsOfNewWindow)); + sb.append(", isEnforcedDurationOfNewWindow=") + .append(String.valueOf(this.isEnforcedDurationOfNewWindow)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CancelExecutionWindowDetails)) { + return false; + } + + CancelExecutionWindowDetails other = (CancelExecutionWindowDetails) o; + return java.util.Objects.equals( + this.timeScheduledOfNewWindow, other.timeScheduledOfNewWindow) + && java.util.Objects.equals( + this.windowDurationInMinsOfNewWindow, other.windowDurationInMinsOfNewWindow) + && java.util.Objects.equals( + this.isEnforcedDurationOfNewWindow, other.isEnforcedDurationOfNewWindow) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.timeScheduledOfNewWindow == null + ? 43 + : this.timeScheduledOfNewWindow.hashCode()); + result = + (result * PRIME) + + (this.windowDurationInMinsOfNewWindow == null + ? 43 + : this.windowDurationInMinsOfNewWindow.hashCode()); + result = + (result * PRIME) + + (this.isEnforcedDurationOfNewWindow == null + ? 43 + : this.isEnforcedDurationOfNewWindow.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ChangeSchedulingPlanCompartmentDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ChangeSchedulingPlanCompartmentDetails.java new file mode 100644 index 00000000000..3bb5273b88e --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ChangeSchedulingPlanCompartmentDetails.java @@ -0,0 +1,145 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * The configuration details for moving the Scheduling Plan.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeSchedulingPlanCompartmentDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ChangeSchedulingPlanCompartmentDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId"}) + public ChangeSchedulingPlanCompartmentDetails(String compartmentId) { + super(); + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChangeSchedulingPlanCompartmentDetails build() { + ChangeSchedulingPlanCompartmentDetails model = + new ChangeSchedulingPlanCompartmentDetails(this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeSchedulingPlanCompartmentDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + @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("ChangeSchedulingPlanCompartmentDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeSchedulingPlanCompartmentDetails)) { + return false; + } + + ChangeSchedulingPlanCompartmentDetails other = (ChangeSchedulingPlanCompartmentDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ChangeSchedulingPolicyCompartmentDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ChangeSchedulingPolicyCompartmentDetails.java new file mode 100644 index 00000000000..9a273b26f19 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ChangeSchedulingPolicyCompartmentDetails.java @@ -0,0 +1,146 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * The configuration details for moving the Scheduling Policy.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeSchedulingPolicyCompartmentDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ChangeSchedulingPolicyCompartmentDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId"}) + public ChangeSchedulingPolicyCompartmentDetails(String compartmentId) { + super(); + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChangeSchedulingPolicyCompartmentDetails build() { + ChangeSchedulingPolicyCompartmentDetails model = + new ChangeSchedulingPolicyCompartmentDetails(this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeSchedulingPolicyCompartmentDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + @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("ChangeSchedulingPolicyCompartmentDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeSchedulingPolicyCompartmentDetails)) { + return false; + } + + ChangeSchedulingPolicyCompartmentDetails other = + (ChangeSchedulingPolicyCompartmentDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudExadataInfrastructure.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudExadataInfrastructure.java index 14f223e3eb4..28df1cf56ca 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudExadataInfrastructure.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudExadataInfrastructure.java @@ -60,7 +60,8 @@ public final class CloudExadataInfrastructure "dbServerVersion", "monthlyStorageServerVersion", "monthlyDbServerVersion", - "definedFileSystemConfigurations" + "definedFileSystemConfigurations", + "isSchedulingPolicyAssociated" }) public CloudExadataInfrastructure( String id, @@ -98,7 +99,8 @@ public CloudExadataInfrastructure( String dbServerVersion, String monthlyStorageServerVersion, String monthlyDbServerVersion, - java.util.List definedFileSystemConfigurations) { + java.util.List definedFileSystemConfigurations, + Boolean isSchedulingPolicyAssociated) { super(); this.id = id; this.compartmentId = compartmentId; @@ -136,6 +138,7 @@ public CloudExadataInfrastructure( this.monthlyStorageServerVersion = monthlyStorageServerVersion; this.monthlyDbServerVersion = monthlyDbServerVersion; this.definedFileSystemConfigurations = definedFileSystemConfigurations; + this.isSchedulingPolicyAssociated = isSchedulingPolicyAssociated; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -768,6 +771,21 @@ public Builder definedFileSystemConfigurations( this.__explicitlySet__.add("definedFileSystemConfigurations"); return this; } + /** If true, the infrastructure is using granular maintenance scheduling preference. */ + @com.fasterxml.jackson.annotation.JsonProperty("isSchedulingPolicyAssociated") + private Boolean isSchedulingPolicyAssociated; + + /** + * If true, the infrastructure is using granular maintenance scheduling preference. + * + * @param isSchedulingPolicyAssociated the value to set + * @return this builder + */ + public Builder isSchedulingPolicyAssociated(Boolean isSchedulingPolicyAssociated) { + this.isSchedulingPolicyAssociated = isSchedulingPolicyAssociated; + this.__explicitlySet__.add("isSchedulingPolicyAssociated"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -810,7 +828,8 @@ public CloudExadataInfrastructure build() { this.dbServerVersion, this.monthlyStorageServerVersion, this.monthlyDbServerVersion, - this.definedFileSystemConfigurations); + this.definedFileSystemConfigurations, + this.isSchedulingPolicyAssociated); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -927,6 +946,9 @@ public Builder copy(CloudExadataInfrastructure model) { if (model.wasPropertyExplicitlySet("definedFileSystemConfigurations")) { this.definedFileSystemConfigurations(model.getDefinedFileSystemConfigurations()); } + if (model.wasPropertyExplicitlySet("isSchedulingPolicyAssociated")) { + this.isSchedulingPolicyAssociated(model.getIsSchedulingPolicyAssociated()); + } return this; } } @@ -1541,6 +1563,19 @@ public java.util.List getDefinedFileSystemConfig return definedFileSystemConfigurations; } + /** If true, the infrastructure is using granular maintenance scheduling preference. */ + @com.fasterxml.jackson.annotation.JsonProperty("isSchedulingPolicyAssociated") + private final Boolean isSchedulingPolicyAssociated; + + /** + * If true, the infrastructure is using granular maintenance scheduling preference. + * + * @return the value + */ + public Boolean getIsSchedulingPolicyAssociated() { + return isSchedulingPolicyAssociated; + } + @Override public String toString() { return this.toString(true); @@ -1596,6 +1631,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", monthlyDbServerVersion=").append(String.valueOf(this.monthlyDbServerVersion)); sb.append(", definedFileSystemConfigurations=") .append(String.valueOf(this.definedFileSystemConfigurations)); + sb.append(", isSchedulingPolicyAssociated=") + .append(String.valueOf(this.isSchedulingPolicyAssociated)); sb.append(")"); return sb.toString(); } @@ -1653,6 +1690,8 @@ public boolean equals(Object o) { this.monthlyDbServerVersion, other.monthlyDbServerVersion) && java.util.Objects.equals( this.definedFileSystemConfigurations, other.definedFileSystemConfigurations) + && java.util.Objects.equals( + this.isSchedulingPolicyAssociated, other.isSchedulingPolicyAssociated) && super.equals(other); } @@ -1778,6 +1817,11 @@ public int hashCode() { + (this.definedFileSystemConfigurations == null ? 43 : this.definedFileSystemConfigurations.hashCode()); + result = + (result * PRIME) + + (this.isSchedulingPolicyAssociated == null + ? 43 + : this.isSchedulingPolicyAssociated.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudExadataInfrastructureSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudExadataInfrastructureSummary.java index bc4cb1c4fb8..a37c977c769 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudExadataInfrastructureSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudExadataInfrastructureSummary.java @@ -60,7 +60,8 @@ public final class CloudExadataInfrastructureSummary "dbServerVersion", "monthlyStorageServerVersion", "monthlyDbServerVersion", - "definedFileSystemConfigurations" + "definedFileSystemConfigurations", + "isSchedulingPolicyAssociated" }) public CloudExadataInfrastructureSummary( String id, @@ -98,7 +99,8 @@ public CloudExadataInfrastructureSummary( String dbServerVersion, String monthlyStorageServerVersion, String monthlyDbServerVersion, - java.util.List definedFileSystemConfigurations) { + java.util.List definedFileSystemConfigurations, + Boolean isSchedulingPolicyAssociated) { super(); this.id = id; this.compartmentId = compartmentId; @@ -136,6 +138,7 @@ public CloudExadataInfrastructureSummary( this.monthlyStorageServerVersion = monthlyStorageServerVersion; this.monthlyDbServerVersion = monthlyDbServerVersion; this.definedFileSystemConfigurations = definedFileSystemConfigurations; + this.isSchedulingPolicyAssociated = isSchedulingPolicyAssociated; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -768,6 +771,21 @@ public Builder definedFileSystemConfigurations( this.__explicitlySet__.add("definedFileSystemConfigurations"); return this; } + /** If true, the infrastructure is using granular maintenance scheduling preference. */ + @com.fasterxml.jackson.annotation.JsonProperty("isSchedulingPolicyAssociated") + private Boolean isSchedulingPolicyAssociated; + + /** + * If true, the infrastructure is using granular maintenance scheduling preference. + * + * @param isSchedulingPolicyAssociated the value to set + * @return this builder + */ + public Builder isSchedulingPolicyAssociated(Boolean isSchedulingPolicyAssociated) { + this.isSchedulingPolicyAssociated = isSchedulingPolicyAssociated; + this.__explicitlySet__.add("isSchedulingPolicyAssociated"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -810,7 +828,8 @@ public CloudExadataInfrastructureSummary build() { this.dbServerVersion, this.monthlyStorageServerVersion, this.monthlyDbServerVersion, - this.definedFileSystemConfigurations); + this.definedFileSystemConfigurations, + this.isSchedulingPolicyAssociated); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -927,6 +946,9 @@ public Builder copy(CloudExadataInfrastructureSummary model) { if (model.wasPropertyExplicitlySet("definedFileSystemConfigurations")) { this.definedFileSystemConfigurations(model.getDefinedFileSystemConfigurations()); } + if (model.wasPropertyExplicitlySet("isSchedulingPolicyAssociated")) { + this.isSchedulingPolicyAssociated(model.getIsSchedulingPolicyAssociated()); + } return this; } } @@ -1541,6 +1563,19 @@ public java.util.List getDefinedFileSystemConfig return definedFileSystemConfigurations; } + /** If true, the infrastructure is using granular maintenance scheduling preference. */ + @com.fasterxml.jackson.annotation.JsonProperty("isSchedulingPolicyAssociated") + private final Boolean isSchedulingPolicyAssociated; + + /** + * If true, the infrastructure is using granular maintenance scheduling preference. + * + * @return the value + */ + public Boolean getIsSchedulingPolicyAssociated() { + return isSchedulingPolicyAssociated; + } + @Override public String toString() { return this.toString(true); @@ -1596,6 +1631,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", monthlyDbServerVersion=").append(String.valueOf(this.monthlyDbServerVersion)); sb.append(", definedFileSystemConfigurations=") .append(String.valueOf(this.definedFileSystemConfigurations)); + sb.append(", isSchedulingPolicyAssociated=") + .append(String.valueOf(this.isSchedulingPolicyAssociated)); sb.append(")"); return sb.toString(); } @@ -1653,6 +1690,8 @@ public boolean equals(Object o) { this.monthlyDbServerVersion, other.monthlyDbServerVersion) && java.util.Objects.equals( this.definedFileSystemConfigurations, other.definedFileSystemConfigurations) + && java.util.Objects.equals( + this.isSchedulingPolicyAssociated, other.isSchedulingPolicyAssociated) && super.equals(other); } @@ -1778,6 +1817,11 @@ public int hashCode() { + (this.definedFileSystemConfigurations == null ? 43 : this.definedFileSystemConfigurations.hashCode()); + result = + (result * PRIME) + + (this.isSchedulingPolicyAssociated == null + ? 43 + : this.isSchedulingPolicyAssociated.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseBase.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseBase.java index 84eeedc7ad4..20a445d2658 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseBase.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseBase.java @@ -924,29 +924,23 @@ public Boolean getIsAutoScalingEnabled() { } /** - * Autonomous Database for Developers are free Autonomous Databases that developers can use to - * build and test new applications.With Autonomous these database instancess instances, you can - * try new Autonomous Database features for free and apply them to ongoing or new development - * projects. Developer database comes with limited resources and is, therefore, not suitable for + * Autonomous Database for Developers are fixed-shape Autonomous Databases that developers can + * use to build and test new applications. On Serverless, these are low-cost and billed per + * instance, on Dedicated and Cloud@Customer there is no additional cost to create Developer + * databases. Developer databases come with limited resources and is not intended for * large-scale testing and production deployments. When you need more compute or storage - * resources, you can transition to a paid database licensing by cloning your developer database - * into a regular Autonomous Database. See [Autonomous Database - * documentation](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/eddjo/index.html) - * for more details. + * resources, you may upgrade to a full paid production database. */ @com.fasterxml.jackson.annotation.JsonProperty("isDevTier") private final Boolean isDevTier; /** - * Autonomous Database for Developers are free Autonomous Databases that developers can use to - * build and test new applications.With Autonomous these database instancess instances, you can - * try new Autonomous Database features for free and apply them to ongoing or new development - * projects. Developer database comes with limited resources and is, therefore, not suitable for + * Autonomous Database for Developers are fixed-shape Autonomous Databases that developers can + * use to build and test new applications. On Serverless, these are low-cost and billed per + * instance, on Dedicated and Cloud@Customer there is no additional cost to create Developer + * databases. Developer databases come with limited resources and is not intended for * large-scale testing and production deployments. When you need more compute or storage - * resources, you can transition to a paid database licensing by cloning your developer database - * into a regular Autonomous Database. See [Autonomous Database - * documentation](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/eddjo/index.html) - * for more details. + * resources, you may upgrade to a full paid production database. * * @return the value */ diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDataGuardAssociationWithNewDbSystemDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDataGuardAssociationWithNewDbSystemDetails.java index d028cf69763..3cfadad1de4 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDataGuardAssociationWithNewDbSystemDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDataGuardAssociationWithNewDbSystemDetails.java @@ -324,6 +324,27 @@ public Builder hostname(String hostname) { this.__explicitlySet__.add("hostname"); return this; } + /** + * A domain name used for the DB system. If the Oracle-provided Internet and VCN Resolver is + * enabled for the specified subnet, the domain name for the subnet is used (do not provide + * one). Otherwise, provide a valid DNS domain name. Hyphens (-) are not permitted. + */ + @com.fasterxml.jackson.annotation.JsonProperty("domain") + private String domain; + + /** + * A domain name used for the DB system. If the Oracle-provided Internet and VCN Resolver is + * enabled for the specified subnet, the domain name for the subnet is used (do not provide + * one). Otherwise, provide a valid DNS domain name. Hyphens (-) are not permitted. + * + * @param domain the value to set + * @return this builder + */ + public Builder domain(String domain) { + this.domain = domain; + this.__explicitlySet__.add("domain"); + return this; + } /** * The time zone of the dataguard standby DB system. For details, see [DB System Time * Zones](https://docs.cloud.oracle.com/Content/Database/References/timezones.htm). @@ -561,6 +582,7 @@ public CreateDataGuardAssociationWithNewDbSystemDetails build() { this.nsgIds, this.backupNetworkNsgIds, this.hostname, + this.domain, this.timeZone, this.faultDomains, this.privateIp, @@ -629,6 +651,9 @@ public Builder copy(CreateDataGuardAssociationWithNewDbSystemDetails model) { if (model.wasPropertyExplicitlySet("hostname")) { this.hostname(model.getHostname()); } + if (model.wasPropertyExplicitlySet("domain")) { + this.domain(model.getDomain()); + } if (model.wasPropertyExplicitlySet("timeZone")) { this.timeZone(model.getTimeZone()); } @@ -688,6 +713,7 @@ public CreateDataGuardAssociationWithNewDbSystemDetails( java.util.List nsgIds, java.util.List backupNetworkNsgIds, String hostname, + String domain, String timeZone, java.util.List faultDomains, String privateIp, @@ -715,6 +741,7 @@ public CreateDataGuardAssociationWithNewDbSystemDetails( this.nsgIds = nsgIds; this.backupNetworkNsgIds = backupNetworkNsgIds; this.hostname = hostname; + this.domain = domain; this.timeZone = timeZone; this.faultDomains = faultDomains; this.privateIp = privateIp; @@ -966,6 +993,25 @@ public String getHostname() { return hostname; } + /** + * A domain name used for the DB system. If the Oracle-provided Internet and VCN Resolver is + * enabled for the specified subnet, the domain name for the subnet is used (do not provide + * one). Otherwise, provide a valid DNS domain name. Hyphens (-) are not permitted. + */ + @com.fasterxml.jackson.annotation.JsonProperty("domain") + private final String domain; + + /** + * A domain name used for the DB system. If the Oracle-provided Internet and VCN Resolver is + * enabled for the specified subnet, the domain name for the subnet is used (do not provide + * one). Otherwise, provide a valid DNS domain name. Hyphens (-) are not permitted. + * + * @return the value + */ + public String getDomain() { + return domain; + } + /** * The time zone of the dataguard standby DB system. For details, see [DB System Time * Zones](https://docs.cloud.oracle.com/Content/Database/References/timezones.htm). @@ -1220,6 +1266,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", backupNetworkNsgIds=").append(String.valueOf(this.backupNetworkNsgIds)); sb.append(", hostname=").append(String.valueOf(this.hostname)); + sb.append(", domain=").append(String.valueOf(this.domain)); sb.append(", timeZone=").append(String.valueOf(this.timeZone)); sb.append(", faultDomains=").append(String.valueOf(this.faultDomains)); sb.append(", privateIp=").append(String.valueOf(this.privateIp)); @@ -1255,6 +1302,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.backupNetworkNsgIds, other.backupNetworkNsgIds) && java.util.Objects.equals(this.hostname, other.hostname) + && java.util.Objects.equals(this.domain, other.domain) && java.util.Objects.equals(this.timeZone, other.timeZone) && java.util.Objects.equals(this.faultDomains, other.faultDomains) && java.util.Objects.equals(this.privateIp, other.privateIp) @@ -1293,6 +1341,7 @@ public int hashCode() { ? 43 : this.backupNetworkNsgIds.hashCode()); result = (result * PRIME) + (this.hostname == null ? 43 : this.hostname.hashCode()); + result = (result * PRIME) + (this.domain == null ? 43 : this.domain.hashCode()); result = (result * PRIME) + (this.timeZone == null ? 43 : this.timeZone.hashCode()); result = (result * PRIME) + (this.faultDomains == null ? 43 : this.faultDomains.hashCode()); result = (result * PRIME) + (this.privateIp == null ? 43 : this.privateIp.hashCode()); diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExadbVmClusterDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExadbVmClusterDetails.java index 61cdb07a0fd..ac01fe0aba2 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExadbVmClusterDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExadbVmClusterDetails.java @@ -541,12 +541,30 @@ public Builder backupNetworkNsgIds(java.util.List backupNetworkNsgIds) { this.__explicitlySet__.add("backupNetworkNsgIds"); return this; } - /** Grid Setup will be done using this grid image id */ + /** + * Grid Setup will be done using this grid image id. + * + *

The grid image id can be extracted from 1. Obtain the supported major versions using + * API + * /20160918/giVersions?compartmentId=&shape=EXADB_XS&availabilityDomain= 2. Replace {version} with one of the supported major versions and obtain the + * supported minor versions using API + * /20160918/giVersions/{version}/minorVersions?compartmentId=&shapeFamily=EXADB_XS&availabilityDomain= + */ @com.fasterxml.jackson.annotation.JsonProperty("gridImageId") private String gridImageId; /** - * Grid Setup will be done using this grid image id + * Grid Setup will be done using this grid image id. + * + *

The grid image id can be extracted from 1. Obtain the supported major versions using + * API + * /20160918/giVersions?compartmentId=&shape=EXADB_XS&availabilityDomain= 2. Replace {version} with one of the supported major versions and obtain the + * supported minor versions using API + * /20160918/giVersions/{version}/minorVersions?compartmentId=&shapeFamily=EXADB_XS&availabilityDomain= * * @param gridImageId the value to set * @return this builder @@ -1175,12 +1193,28 @@ public java.util.List getBackupNetworkNsgIds() { return backupNetworkNsgIds; } - /** Grid Setup will be done using this grid image id */ + /** + * Grid Setup will be done using this grid image id. + * + *

The grid image id can be extracted from 1. Obtain the supported major versions using API + * /20160918/giVersions?compartmentId=&shape=EXADB_XS&availabilityDomain= 2. Replace {version} with one of the supported major versions and obtain the supported + * minor versions using API + * /20160918/giVersions/{version}/minorVersions?compartmentId=&shapeFamily=EXADB_XS&availabilityDomain= + */ @com.fasterxml.jackson.annotation.JsonProperty("gridImageId") private final String gridImageId; /** - * Grid Setup will be done using this grid image id + * Grid Setup will be done using this grid image id. + * + *

The grid image id can be extracted from 1. Obtain the supported major versions using API + * /20160918/giVersions?compartmentId=&shape=EXADB_XS&availabilityDomain= 2. Replace {version} with one of the supported major versions and obtain the supported + * minor versions using API + * /20160918/giVersions/{version}/minorVersions?compartmentId=&shapeFamily=EXADB_XS&availabilityDomain= * * @return the value */ diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExecutionActionDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExecutionActionDetails.java new file mode 100644 index 00000000000..e233e3b1cfa --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExecutionActionDetails.java @@ -0,0 +1,464 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Request to create execution action resource.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateExecutionActionDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateExecutionActionDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "executionWindowId", + "actionType", + "actionParams", + "actionMembers", + "freeformTags", + "definedTags" + }) + public CreateExecutionActionDetails( + String compartmentId, + String executionWindowId, + ActionType actionType, + java.util.Map actionParams, + java.util.List actionMembers, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.compartmentId = compartmentId; + this.executionWindowId = executionWindowId; + this.actionType = actionType; + this.actionParams = actionParams; + this.actionMembers = actionMembers; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution window resource the execution action belongs to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("executionWindowId") + private String executionWindowId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution window resource the execution action belongs to. + * + * @param executionWindowId the value to set + * @return this builder + */ + public Builder executionWindowId(String executionWindowId) { + this.executionWindowId = executionWindowId; + this.__explicitlySet__.add("executionWindowId"); + return this; + } + /** The action type of the execution action being performed */ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private ActionType actionType; + + /** + * The action type of the execution action being performed + * + * @param actionType the value to set + * @return this builder + */ + public Builder actionType(ActionType actionType) { + this.actionType = actionType; + this.__explicitlySet__.add("actionType"); + return this; + } + /** + * Map where a key value pair describes the specific action + * parameter. Example: {@code {"count": "3"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("actionParams") + private java.util.Map actionParams; + + /** + * Map where a key value pair describes the specific action + * parameter. Example: {@code {"count": "3"}} + * + * @param actionParams the value to set + * @return this builder + */ + public Builder actionParams(java.util.Map actionParams) { + this.actionParams = actionParams; + this.__explicitlySet__.add("actionParams"); + return this; + } + /** List of action members of this execution action. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionMembers") + private java.util.List actionMembers; + + /** + * List of action members of this execution action. + * + * @param actionMembers the value to set + * @return this builder + */ + public Builder actionMembers(java.util.List actionMembers) { + this.actionMembers = actionMembers; + this.__explicitlySet__.add("actionMembers"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @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 CreateExecutionActionDetails build() { + CreateExecutionActionDetails model = + new CreateExecutionActionDetails( + this.compartmentId, + this.executionWindowId, + this.actionType, + this.actionParams, + this.actionMembers, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateExecutionActionDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("executionWindowId")) { + this.executionWindowId(model.getExecutionWindowId()); + } + if (model.wasPropertyExplicitlySet("actionType")) { + this.actionType(model.getActionType()); + } + if (model.wasPropertyExplicitlySet("actionParams")) { + this.actionParams(model.getActionParams()); + } + if (model.wasPropertyExplicitlySet("actionMembers")) { + this.actionMembers(model.getActionMembers()); + } + 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/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution window resource the execution action belongs to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("executionWindowId") + private final String executionWindowId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution window resource the execution action belongs to. + * + * @return the value + */ + public String getExecutionWindowId() { + return executionWindowId; + } + + /** The action type of the execution action being performed */ + public enum ActionType implements com.oracle.bmc.http.internal.BmcEnum { + DbServerFullSoftwareUpdate("DB_SERVER_FULL_SOFTWARE_UPDATE"), + StorageServerFullSoftwareUpdate("STORAGE_SERVER_FULL_SOFTWARE_UPDATE"), + NetworkSwitchFullSoftwareUpdate("NETWORK_SWITCH_FULL_SOFTWARE_UPDATE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ActionType v : ActionType.values()) { + 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); + } + throw new IllegalArgumentException("Invalid ActionType: " + key); + } + }; + /** The action type of the execution action being performed */ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private final ActionType actionType; + + /** + * The action type of the execution action being performed + * + * @return the value + */ + public ActionType getActionType() { + return actionType; + } + + /** + * Map where a key value pair describes the specific action parameter. + * Example: {@code {"count": "3"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("actionParams") + private final java.util.Map actionParams; + + /** + * Map where a key value pair describes the specific action parameter. + * Example: {@code {"count": "3"}} + * + * @return the value + */ + public java.util.Map getActionParams() { + return actionParams; + } + + /** List of action members of this execution action. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionMembers") + private final java.util.List actionMembers; + + /** + * List of action members of this execution action. + * + * @return the value + */ + public java.util.List getActionMembers() { + return actionMembers; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @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("CreateExecutionActionDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", executionWindowId=").append(String.valueOf(this.executionWindowId)); + sb.append(", actionType=").append(String.valueOf(this.actionType)); + sb.append(", actionParams=").append(String.valueOf(this.actionParams)); + sb.append(", actionMembers=").append(String.valueOf(this.actionMembers)); + 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 CreateExecutionActionDetails)) { + return false; + } + + CreateExecutionActionDetails other = (CreateExecutionActionDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.executionWindowId, other.executionWindowId) + && java.util.Objects.equals(this.actionType, other.actionType) + && java.util.Objects.equals(this.actionParams, other.actionParams) + && java.util.Objects.equals(this.actionMembers, other.actionMembers) + && 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.executionWindowId == null ? 43 : this.executionWindowId.hashCode()); + result = (result * PRIME) + (this.actionType == null ? 43 : this.actionType.hashCode()); + result = (result * PRIME) + (this.actionParams == null ? 43 : this.actionParams.hashCode()); + result = + (result * PRIME) + + (this.actionMembers == null ? 43 : this.actionMembers.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExecutionWindowDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExecutionWindowDetails.java new file mode 100644 index 00000000000..16553c5e3a6 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExecutionWindowDetails.java @@ -0,0 +1,448 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Request to create an execution window resource under an execution resource.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateExecutionWindowDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateExecutionWindowDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "executionResourceId", + "timeScheduled", + "windowDurationInMins", + "isEnforcedDuration", + "freeformTags", + "definedTags" + }) + public CreateExecutionWindowDetails( + String compartmentId, + String executionResourceId, + java.util.Date timeScheduled, + Integer windowDurationInMins, + Boolean isEnforcedDuration, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.compartmentId = compartmentId; + this.executionResourceId = executionResourceId; + this.timeScheduled = timeScheduled; + this.windowDurationInMins = windowDurationInMins; + this.isEnforcedDuration = isEnforcedDuration; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution resource the execution window belongs to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("executionResourceId") + private String executionResourceId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution resource the execution window belongs to. + * + * @param executionResourceId the value to set + * @return this builder + */ + public Builder executionResourceId(String executionResourceId) { + this.executionResourceId = executionResourceId; + this.__explicitlySet__.add("executionResourceId"); + return this; + } + /** The scheduled start date and time of the execution window. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduled") + private java.util.Date timeScheduled; + + /** + * The scheduled start date and time of the execution window. + * + * @param timeScheduled the value to set + * @return this builder + */ + public Builder timeScheduled(java.util.Date timeScheduled) { + this.timeScheduled = timeScheduled; + this.__explicitlySet__.add("timeScheduled"); + return this; + } + /** + * Duration window allows user to set a duration they plan to allocate for Scheduling + * window. The duration is in minutes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("windowDurationInMins") + private Integer windowDurationInMins; + + /** + * Duration window allows user to set a duration they plan to allocate for Scheduling + * window. The duration is in minutes. + * + * @param windowDurationInMins the value to set + * @return this builder + */ + public Builder windowDurationInMins(Integer windowDurationInMins) { + this.windowDurationInMins = windowDurationInMins; + this.__explicitlySet__.add("windowDurationInMins"); + return this; + } + /** + * Indicates if duration the user plans to allocate for scheduling window is strictly + * enforced. The default value is {@code FALSE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnforcedDuration") + private Boolean isEnforcedDuration; + + /** + * Indicates if duration the user plans to allocate for scheduling window is strictly + * enforced. The default value is {@code FALSE}. + * + * @param isEnforcedDuration the value to set + * @return this builder + */ + public Builder isEnforcedDuration(Boolean isEnforcedDuration) { + this.isEnforcedDuration = isEnforcedDuration; + this.__explicitlySet__.add("isEnforcedDuration"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @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 CreateExecutionWindowDetails build() { + CreateExecutionWindowDetails model = + new CreateExecutionWindowDetails( + this.compartmentId, + this.executionResourceId, + this.timeScheduled, + this.windowDurationInMins, + this.isEnforcedDuration, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateExecutionWindowDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("executionResourceId")) { + this.executionResourceId(model.getExecutionResourceId()); + } + if (model.wasPropertyExplicitlySet("timeScheduled")) { + this.timeScheduled(model.getTimeScheduled()); + } + if (model.wasPropertyExplicitlySet("windowDurationInMins")) { + this.windowDurationInMins(model.getWindowDurationInMins()); + } + if (model.wasPropertyExplicitlySet("isEnforcedDuration")) { + this.isEnforcedDuration(model.getIsEnforcedDuration()); + } + 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/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution resource the execution window belongs to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("executionResourceId") + private final String executionResourceId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution resource the execution window belongs to. + * + * @return the value + */ + public String getExecutionResourceId() { + return executionResourceId; + } + + /** The scheduled start date and time of the execution window. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduled") + private final java.util.Date timeScheduled; + + /** + * The scheduled start date and time of the execution window. + * + * @return the value + */ + public java.util.Date getTimeScheduled() { + return timeScheduled; + } + + /** + * Duration window allows user to set a duration they plan to allocate for Scheduling window. + * The duration is in minutes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("windowDurationInMins") + private final Integer windowDurationInMins; + + /** + * Duration window allows user to set a duration they plan to allocate for Scheduling window. + * The duration is in minutes. + * + * @return the value + */ + public Integer getWindowDurationInMins() { + return windowDurationInMins; + } + + /** + * Indicates if duration the user plans to allocate for scheduling window is strictly enforced. + * The default value is {@code FALSE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnforcedDuration") + private final Boolean isEnforcedDuration; + + /** + * Indicates if duration the user plans to allocate for scheduling window is strictly enforced. + * The default value is {@code FALSE}. + * + * @return the value + */ + public Boolean getIsEnforcedDuration() { + return isEnforcedDuration; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @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("CreateExecutionWindowDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", executionResourceId=").append(String.valueOf(this.executionResourceId)); + sb.append(", timeScheduled=").append(String.valueOf(this.timeScheduled)); + sb.append(", windowDurationInMins=").append(String.valueOf(this.windowDurationInMins)); + sb.append(", isEnforcedDuration=").append(String.valueOf(this.isEnforcedDuration)); + 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 CreateExecutionWindowDetails)) { + return false; + } + + CreateExecutionWindowDetails other = (CreateExecutionWindowDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.executionResourceId, other.executionResourceId) + && java.util.Objects.equals(this.timeScheduled, other.timeScheduled) + && java.util.Objects.equals(this.windowDurationInMins, other.windowDurationInMins) + && java.util.Objects.equals(this.isEnforcedDuration, other.isEnforcedDuration) + && 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.executionResourceId == null + ? 43 + : this.executionResourceId.hashCode()); + result = + (result * PRIME) + + (this.timeScheduled == null ? 43 : this.timeScheduled.hashCode()); + result = + (result * PRIME) + + (this.windowDurationInMins == null + ? 43 + : this.windowDurationInMins.hashCode()); + result = + (result * PRIME) + + (this.isEnforcedDuration == null + ? 43 + : this.isEnforcedDuration.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreatePluggableDatabaseCreationTypeDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreatePluggableDatabaseCreationTypeDetails.java index 9a541c10f34..555579e0965 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreatePluggableDatabaseCreationTypeDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreatePluggableDatabaseCreationTypeDetails.java @@ -8,20 +8,17 @@ * The Pluggable Database creation type. Use {@code LOCAL_CLONE_PDB} for creating a new PDB using * Local Clone on Source Pluggable Database. This will Clone and starts a pluggable database (PDB) * in the same database (CDB) as the source PDB. The source PDB must be in the {@code READ_WRITE} - * openMode to perform the clone operation. sourcePluggableDatabaseSnapshotId and isThinClone - * options are supported only for Exadata VM cluster on Exascale Infrastructure. isThinClone options - * are supported only for Exadata VM cluster on Exascale Infrastructure. Use {@code - * REMOTE_CLONE_PDB} for creating a new PDB using Remote Clone on Source Pluggable Database. This - * will Clone a pluggable database (PDB) to a different database from the source PDB. The cloned PDB - * will be started upon completion of the clone operation. The source PDB must be in the {@code - * READ_WRITE} openMode when performing the clone. For Exadata Cloud@Customer instances, the source - * pluggable database (PDB) must be on the same Exadata Infrastructure as the target container - * database (CDB) to create a remote clone. sourcePluggableDatabaseSnapshotId and isThinClone - * options are supported only for Exadata VM cluster on Exascale Infrastructure. isThinClone options - * are supported only for Exadata VM cluster on Exascale Infrastructure. Use {@code RELOCATE_PDB} - * for relocating the Pluggable Database from Source CDB and creating it in target CDB. This will - * relocate a pluggable database (PDB) to a different database from the source PDB. The source PDB - * must be in the {@code READ_WRITE} openMode when performing the relocate.
+ * openMode to perform the clone operation. isThinClone options are supported only for Exadata VM + * cluster on Exascale Infrastructure. Use {@code REMOTE_CLONE_PDB} for creating a new PDB using + * Remote Clone on Source Pluggable Database. This will Clone a pluggable database (PDB) to a + * different database from the source PDB. The cloned PDB will be started upon completion of the + * clone operation. The source PDB must be in the {@code READ_WRITE} openMode when performing the + * clone. For Exadata Cloud@Customer instances, the source pluggable database (PDB) must be on the + * same Exadata Infrastructure as the target container database (CDB) to create a remote clone. + * isThinClone options are supported only for Exadata VM cluster on Exascale Infrastructure. Use + * {@code RELOCATE_PDB} for relocating the Pluggable Database from Source CDB and creating it in + * target CDB. This will relocate a pluggable database (PDB) to a different database from the source + * PDB. The source PDB must be in the {@code READ_WRITE} openMode when performing the relocate.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateScheduledActionDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateScheduledActionDetails.java new file mode 100644 index 00000000000..ac6c399f6f9 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateScheduledActionDetails.java @@ -0,0 +1,514 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Request to create Scheduled Action resource.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateScheduledActionDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateScheduledActionDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "actionType", + "actionParams", + "actionMembers", + "schedulingPlanId", + "schedulingWindowId", + "freeformTags", + "definedTags", + "compartmentId" + }) + public CreateScheduledActionDetails( + ActionType actionType, + java.util.Map actionParams, + java.util.List actionMembers, + String schedulingPlanId, + String schedulingWindowId, + java.util.Map freeformTags, + java.util.Map> definedTags, + String compartmentId) { + super(); + this.actionType = actionType; + this.actionParams = actionParams; + this.actionMembers = actionMembers; + this.schedulingPlanId = schedulingPlanId; + this.schedulingWindowId = schedulingWindowId; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The type of the scheduled action being performed */ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private ActionType actionType; + + /** + * The type of the scheduled action being performed + * + * @param actionType the value to set + * @return this builder + */ + public Builder actionType(ActionType actionType) { + this.actionType = actionType; + this.__explicitlySet__.add("actionType"); + return this; + } + /** + * Map where a key value pair describes the specific action + * parameter. Example: {@code {"count": "3"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("actionParams") + private java.util.Map actionParams; + + /** + * Map where a key value pair describes the specific action + * parameter. Example: {@code {"count": "3"}} + * + * @param actionParams the value to set + * @return this builder + */ + public Builder actionParams(java.util.Map actionParams) { + this.actionParams = actionParams; + this.__explicitlySet__.add("actionParams"); + return this; + } + /** The list of action members in a scheduled action. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionMembers") + private java.util.List actionMembers; + + /** + * The list of action members in a scheduled action. + * + * @param actionMembers the value to set + * @return this builder + */ + public Builder actionMembers(java.util.List actionMembers) { + this.actionMembers = actionMembers; + this.__explicitlySet__.add("actionMembers"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Plan. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schedulingPlanId") + private String schedulingPlanId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Plan. + * + * @param schedulingPlanId the value to set + * @return this builder + */ + public Builder schedulingPlanId(String schedulingPlanId) { + this.schedulingPlanId = schedulingPlanId; + this.__explicitlySet__.add("schedulingPlanId"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Window. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schedulingWindowId") + private String schedulingWindowId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Window. + * + * @param schedulingWindowId the value to set + * @return this builder + */ + public Builder schedulingWindowId(String schedulingWindowId) { + this.schedulingWindowId = schedulingWindowId; + this.__explicitlySet__.add("schedulingWindowId"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateScheduledActionDetails build() { + CreateScheduledActionDetails model = + new CreateScheduledActionDetails( + this.actionType, + this.actionParams, + this.actionMembers, + this.schedulingPlanId, + this.schedulingWindowId, + this.freeformTags, + this.definedTags, + this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateScheduledActionDetails model) { + if (model.wasPropertyExplicitlySet("actionType")) { + this.actionType(model.getActionType()); + } + if (model.wasPropertyExplicitlySet("actionParams")) { + this.actionParams(model.getActionParams()); + } + if (model.wasPropertyExplicitlySet("actionMembers")) { + this.actionMembers(model.getActionMembers()); + } + if (model.wasPropertyExplicitlySet("schedulingPlanId")) { + this.schedulingPlanId(model.getSchedulingPlanId()); + } + if (model.wasPropertyExplicitlySet("schedulingWindowId")) { + this.schedulingWindowId(model.getSchedulingWindowId()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The type of the scheduled action being performed */ + public enum ActionType implements com.oracle.bmc.http.internal.BmcEnum { + DbServerFullSoftwareUpdate("DB_SERVER_FULL_SOFTWARE_UPDATE"), + StorageServerFullSoftwareUpdate("STORAGE_SERVER_FULL_SOFTWARE_UPDATE"), + NetworkSwitchFullSoftwareUpdate("NETWORK_SWITCH_FULL_SOFTWARE_UPDATE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ActionType v : ActionType.values()) { + 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); + } + throw new IllegalArgumentException("Invalid ActionType: " + key); + } + }; + /** The type of the scheduled action being performed */ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private final ActionType actionType; + + /** + * The type of the scheduled action being performed + * + * @return the value + */ + public ActionType getActionType() { + return actionType; + } + + /** + * Map where a key value pair describes the specific action parameter. + * Example: {@code {"count": "3"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("actionParams") + private final java.util.Map actionParams; + + /** + * Map where a key value pair describes the specific action parameter. + * Example: {@code {"count": "3"}} + * + * @return the value + */ + public java.util.Map getActionParams() { + return actionParams; + } + + /** The list of action members in a scheduled action. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionMembers") + private final java.util.List actionMembers; + + /** + * The list of action members in a scheduled action. + * + * @return the value + */ + public java.util.List getActionMembers() { + return actionMembers; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Plan. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schedulingPlanId") + private final String schedulingPlanId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Plan. + * + * @return the value + */ + public String getSchedulingPlanId() { + return schedulingPlanId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Window. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schedulingWindowId") + private final String schedulingWindowId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Window. + * + * @return the value + */ + public String getSchedulingWindowId() { + return schedulingWindowId; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + @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("CreateScheduledActionDetails("); + sb.append("super=").append(super.toString()); + sb.append("actionType=").append(String.valueOf(this.actionType)); + sb.append(", actionParams=").append(String.valueOf(this.actionParams)); + sb.append(", actionMembers=").append(String.valueOf(this.actionMembers)); + sb.append(", schedulingPlanId=").append(String.valueOf(this.schedulingPlanId)); + sb.append(", schedulingWindowId=").append(String.valueOf(this.schedulingWindowId)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateScheduledActionDetails)) { + return false; + } + + CreateScheduledActionDetails other = (CreateScheduledActionDetails) o; + return java.util.Objects.equals(this.actionType, other.actionType) + && java.util.Objects.equals(this.actionParams, other.actionParams) + && java.util.Objects.equals(this.actionMembers, other.actionMembers) + && java.util.Objects.equals(this.schedulingPlanId, other.schedulingPlanId) + && java.util.Objects.equals(this.schedulingWindowId, other.schedulingWindowId) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.actionType == null ? 43 : this.actionType.hashCode()); + result = (result * PRIME) + (this.actionParams == null ? 43 : this.actionParams.hashCode()); + result = + (result * PRIME) + + (this.actionMembers == null ? 43 : this.actionMembers.hashCode()); + result = + (result * PRIME) + + (this.schedulingPlanId == null ? 43 : this.schedulingPlanId.hashCode()); + result = + (result * PRIME) + + (this.schedulingWindowId == null + ? 43 + : this.schedulingWindowId.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.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateSchedulingPlanDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateSchedulingPlanDetails.java new file mode 100644 index 00000000000..162f49d6733 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateSchedulingPlanDetails.java @@ -0,0 +1,473 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Request to create Scheduling Plan.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateSchedulingPlanDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateSchedulingPlanDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "schedulingPolicyId", + "resourceId", + "serviceType", + "isUsingRecommendedScheduledActions", + "freeformTags", + "definedTags" + }) + public CreateSchedulingPlanDetails( + String compartmentId, + String schedulingPolicyId, + String resourceId, + ServiceType serviceType, + Boolean isUsingRecommendedScheduledActions, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.compartmentId = compartmentId; + this.schedulingPolicyId = schedulingPolicyId; + this.resourceId = resourceId; + this.serviceType = serviceType; + this.isUsingRecommendedScheduledActions = isUsingRecommendedScheduledActions; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Policy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schedulingPolicyId") + private String schedulingPolicyId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Policy. + * + * @param schedulingPolicyId the value to set + * @return this builder + */ + public Builder schedulingPolicyId(String schedulingPolicyId) { + this.schedulingPolicyId = schedulingPolicyId; + this.__explicitlySet__.add("schedulingPolicyId"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private String resourceId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * resource. + * + * @param resourceId the value to set + * @return this builder + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + this.__explicitlySet__.add("resourceId"); + return this; + } + /** The service type of the Scheduling Plan. */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceType") + private ServiceType serviceType; + + /** + * The service type of the Scheduling Plan. + * + * @param serviceType the value to set + * @return this builder + */ + public Builder serviceType(ServiceType serviceType) { + this.serviceType = serviceType; + this.__explicitlySet__.add("serviceType"); + return this; + } + /** If true, recommended scheduled actions will be generated for the scheduling plan. */ + @com.fasterxml.jackson.annotation.JsonProperty("isUsingRecommendedScheduledActions") + private Boolean isUsingRecommendedScheduledActions; + + /** + * If true, recommended scheduled actions will be generated for the scheduling plan. + * + * @param isUsingRecommendedScheduledActions the value to set + * @return this builder + */ + public Builder isUsingRecommendedScheduledActions( + Boolean isUsingRecommendedScheduledActions) { + this.isUsingRecommendedScheduledActions = isUsingRecommendedScheduledActions; + this.__explicitlySet__.add("isUsingRecommendedScheduledActions"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @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 CreateSchedulingPlanDetails build() { + CreateSchedulingPlanDetails model = + new CreateSchedulingPlanDetails( + this.compartmentId, + this.schedulingPolicyId, + this.resourceId, + this.serviceType, + this.isUsingRecommendedScheduledActions, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateSchedulingPlanDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("schedulingPolicyId")) { + this.schedulingPolicyId(model.getSchedulingPolicyId()); + } + if (model.wasPropertyExplicitlySet("resourceId")) { + this.resourceId(model.getResourceId()); + } + if (model.wasPropertyExplicitlySet("serviceType")) { + this.serviceType(model.getServiceType()); + } + if (model.wasPropertyExplicitlySet("isUsingRecommendedScheduledActions")) { + this.isUsingRecommendedScheduledActions( + model.getIsUsingRecommendedScheduledActions()); + } + 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/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Policy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schedulingPolicyId") + private final String schedulingPolicyId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Policy. + * + * @return the value + */ + public String getSchedulingPolicyId() { + return schedulingPolicyId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private final String resourceId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * resource. + * + * @return the value + */ + public String getResourceId() { + return resourceId; + } + + /** The service type of the Scheduling Plan. */ + public enum ServiceType implements com.oracle.bmc.http.internal.BmcEnum { + Exacc("EXACC"), + Exacs("EXACS"), + Fpppcs("FPPPCS"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ServiceType v : ServiceType.values()) { + map.put(v.getValue(), v); + } + } + + ServiceType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ServiceType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid ServiceType: " + key); + } + }; + /** The service type of the Scheduling Plan. */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceType") + private final ServiceType serviceType; + + /** + * The service type of the Scheduling Plan. + * + * @return the value + */ + public ServiceType getServiceType() { + return serviceType; + } + + /** If true, recommended scheduled actions will be generated for the scheduling plan. */ + @com.fasterxml.jackson.annotation.JsonProperty("isUsingRecommendedScheduledActions") + private final Boolean isUsingRecommendedScheduledActions; + + /** + * If true, recommended scheduled actions will be generated for the scheduling plan. + * + * @return the value + */ + public Boolean getIsUsingRecommendedScheduledActions() { + return isUsingRecommendedScheduledActions; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @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("CreateSchedulingPlanDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", schedulingPolicyId=").append(String.valueOf(this.schedulingPolicyId)); + sb.append(", resourceId=").append(String.valueOf(this.resourceId)); + sb.append(", serviceType=").append(String.valueOf(this.serviceType)); + sb.append(", isUsingRecommendedScheduledActions=") + .append(String.valueOf(this.isUsingRecommendedScheduledActions)); + 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 CreateSchedulingPlanDetails)) { + return false; + } + + CreateSchedulingPlanDetails other = (CreateSchedulingPlanDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.schedulingPolicyId, other.schedulingPolicyId) + && java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.serviceType, other.serviceType) + && java.util.Objects.equals( + this.isUsingRecommendedScheduledActions, + other.isUsingRecommendedScheduledActions) + && 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.schedulingPolicyId == null + ? 43 + : this.schedulingPolicyId.hashCode()); + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); + result = (result * PRIME) + (this.serviceType == null ? 43 : this.serviceType.hashCode()); + result = + (result * PRIME) + + (this.isUsingRecommendedScheduledActions == null + ? 43 + : this.isUsingRecommendedScheduledActions.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateSchedulingPolicyDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateSchedulingPolicyDetails.java new file mode 100644 index 00000000000..aabf805c035 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateSchedulingPolicyDetails.java @@ -0,0 +1,410 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Request to create Scheduling Policy resource with Maintenance windows per cadence.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateSchedulingPolicyDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateSchedulingPolicyDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "displayName", + "cadence", + "cadenceStartMonth", + "freeformTags", + "definedTags" + }) + public CreateSchedulingPolicyDetails( + String compartmentId, + String displayName, + Cadence cadence, + Month cadenceStartMonth, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.compartmentId = compartmentId; + this.displayName = displayName; + this.cadence = cadence; + this.cadenceStartMonth = cadenceStartMonth; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The user-friendly name for the Scheduling Policy. The name does not need to be unique. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the Scheduling Policy. The name does not need to be unique. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The cadence period. */ + @com.fasterxml.jackson.annotation.JsonProperty("cadence") + private Cadence cadence; + + /** + * The cadence period. + * + * @param cadence the value to set + * @return this builder + */ + public Builder cadence(Cadence cadence) { + this.cadence = cadence; + this.__explicitlySet__.add("cadence"); + return this; + } + /** Start of the month to be followed during the cadence period. */ + @com.fasterxml.jackson.annotation.JsonProperty("cadenceStartMonth") + private Month cadenceStartMonth; + + /** + * Start of the month to be followed during the cadence period. + * + * @param cadenceStartMonth the value to set + * @return this builder + */ + public Builder cadenceStartMonth(Month cadenceStartMonth) { + this.cadenceStartMonth = cadenceStartMonth; + this.__explicitlySet__.add("cadenceStartMonth"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @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 CreateSchedulingPolicyDetails build() { + CreateSchedulingPolicyDetails model = + new CreateSchedulingPolicyDetails( + this.compartmentId, + this.displayName, + this.cadence, + this.cadenceStartMonth, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateSchedulingPolicyDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("cadence")) { + this.cadence(model.getCadence()); + } + if (model.wasPropertyExplicitlySet("cadenceStartMonth")) { + this.cadenceStartMonth(model.getCadenceStartMonth()); + } + 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/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The user-friendly name for the Scheduling Policy. The name does not need to be unique. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the Scheduling Policy. The name does not need to be unique. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The cadence period. */ + public enum Cadence implements com.oracle.bmc.http.internal.BmcEnum { + Halfyearly("HALFYEARLY"), + Quarterly("QUARTERLY"), + Monthly("MONTHLY"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Cadence v : Cadence.values()) { + map.put(v.getValue(), v); + } + } + + Cadence(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Cadence create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Cadence: " + key); + } + }; + /** The cadence period. */ + @com.fasterxml.jackson.annotation.JsonProperty("cadence") + private final Cadence cadence; + + /** + * The cadence period. + * + * @return the value + */ + public Cadence getCadence() { + return cadence; + } + + /** Start of the month to be followed during the cadence period. */ + @com.fasterxml.jackson.annotation.JsonProperty("cadenceStartMonth") + private final Month cadenceStartMonth; + + /** + * Start of the month to be followed during the cadence period. + * + * @return the value + */ + public Month getCadenceStartMonth() { + return cadenceStartMonth; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @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("CreateSchedulingPolicyDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", cadence=").append(String.valueOf(this.cadence)); + sb.append(", cadenceStartMonth=").append(String.valueOf(this.cadenceStartMonth)); + 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 CreateSchedulingPolicyDetails)) { + return false; + } + + CreateSchedulingPolicyDetails other = (CreateSchedulingPolicyDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.cadence, other.cadence) + && java.util.Objects.equals(this.cadenceStartMonth, other.cadenceStartMonth) + && 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.cadence == null ? 43 : this.cadence.hashCode()); + result = + (result * PRIME) + + (this.cadenceStartMonth == null ? 43 : this.cadenceStartMonth.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateSchedulingWindowDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateSchedulingWindowDetails.java new file mode 100644 index 00000000000..4bbeb46f96c --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateSchedulingWindowDetails.java @@ -0,0 +1,286 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Request to create Scheduling Window resource.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateSchedulingWindowDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateSchedulingWindowDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "windowPreference", + "freeformTags", + "definedTags" + }) + public CreateSchedulingWindowDetails( + String compartmentId, + WindowPreferenceDetail windowPreference, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.compartmentId = compartmentId; + this.windowPreference = windowPreference; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("windowPreference") + private WindowPreferenceDetail windowPreference; + + public Builder windowPreference(WindowPreferenceDetail windowPreference) { + this.windowPreference = windowPreference; + this.__explicitlySet__.add("windowPreference"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @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 CreateSchedulingWindowDetails build() { + CreateSchedulingWindowDetails model = + new CreateSchedulingWindowDetails( + this.compartmentId, + this.windowPreference, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateSchedulingWindowDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("windowPreference")) { + this.windowPreference(model.getWindowPreference()); + } + 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/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("windowPreference") + private final WindowPreferenceDetail windowPreference; + + public WindowPreferenceDetail getWindowPreference() { + return windowPreference; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @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("CreateSchedulingWindowDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", windowPreference=").append(String.valueOf(this.windowPreference)); + 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 CreateSchedulingWindowDetails)) { + return false; + } + + CreateSchedulingWindowDetails other = (CreateSchedulingWindowDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.windowPreference, other.windowPreference) + && 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.windowPreference == null ? 43 : this.windowPreference.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructure.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructure.java index 261c8d7070d..2d83a5380de 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructure.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructure.java @@ -72,7 +72,8 @@ public final class ExadataInfrastructure "availabilityDomain", "definedFileSystemConfigurations", "freeformTags", - "definedTags" + "definedTags", + "isSchedulingPolicyAssociated" }) public ExadataInfrastructure( String id, @@ -123,7 +124,8 @@ public ExadataInfrastructure( String availabilityDomain, java.util.List definedFileSystemConfigurations, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + Boolean isSchedulingPolicyAssociated) { super(); this.id = id; this.compartmentId = compartmentId; @@ -174,6 +176,7 @@ public ExadataInfrastructure( this.definedFileSystemConfigurations = definedFileSystemConfigurations; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.isSchedulingPolicyAssociated = isSchedulingPolicyAssociated; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -983,6 +986,21 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** If true, the infrastructure is using granular maintenance scheduling preference. */ + @com.fasterxml.jackson.annotation.JsonProperty("isSchedulingPolicyAssociated") + private Boolean isSchedulingPolicyAssociated; + + /** + * If true, the infrastructure is using granular maintenance scheduling preference. + * + * @param isSchedulingPolicyAssociated the value to set + * @return this builder + */ + public Builder isSchedulingPolicyAssociated(Boolean isSchedulingPolicyAssociated) { + this.isSchedulingPolicyAssociated = isSchedulingPolicyAssociated; + this.__explicitlySet__.add("isSchedulingPolicyAssociated"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -1038,7 +1056,8 @@ public ExadataInfrastructure build() { this.availabilityDomain, this.definedFileSystemConfigurations, this.freeformTags, - this.definedTags); + this.definedTags, + this.isSchedulingPolicyAssociated); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -1194,6 +1213,9 @@ public Builder copy(ExadataInfrastructure model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("isSchedulingPolicyAssociated")) { + this.isSchedulingPolicyAssociated(model.getIsSchedulingPolicyAssociated()); + } return this; } } @@ -2066,6 +2088,19 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** If true, the infrastructure is using granular maintenance scheduling preference. */ + @com.fasterxml.jackson.annotation.JsonProperty("isSchedulingPolicyAssociated") + private final Boolean isSchedulingPolicyAssociated; + + /** + * If true, the infrastructure is using granular maintenance scheduling preference. + * + * @return the value + */ + public Boolean getIsSchedulingPolicyAssociated() { + return isSchedulingPolicyAssociated; + } + @Override public String toString() { return this.toString(true); @@ -2145,6 +2180,8 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.definedFileSystemConfigurations)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", isSchedulingPolicyAssociated=") + .append(String.valueOf(this.isSchedulingPolicyAssociated)); sb.append(")"); return sb.toString(); } @@ -2219,6 +2256,8 @@ public boolean equals(Object o) { this.definedFileSystemConfigurations, other.definedFileSystemConfigurations) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals( + this.isSchedulingPolicyAssociated, other.isSchedulingPolicyAssociated) && super.equals(other); } @@ -2379,6 +2418,11 @@ public int hashCode() { : this.definedFileSystemConfigurations.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = + (result * PRIME) + + (this.isSchedulingPolicyAssociated == null + ? 43 + : this.isSchedulingPolicyAssociated.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructureSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructureSummary.java index 203895d5b73..5b806091220 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructureSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructureSummary.java @@ -75,7 +75,8 @@ public final class ExadataInfrastructureSummary "availabilityDomain", "definedFileSystemConfigurations", "freeformTags", - "definedTags" + "definedTags", + "isSchedulingPolicyAssociated" }) public ExadataInfrastructureSummary( String id, @@ -126,7 +127,8 @@ public ExadataInfrastructureSummary( String availabilityDomain, java.util.List definedFileSystemConfigurations, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + Boolean isSchedulingPolicyAssociated) { super(); this.id = id; this.compartmentId = compartmentId; @@ -177,6 +179,7 @@ public ExadataInfrastructureSummary( this.definedFileSystemConfigurations = definedFileSystemConfigurations; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.isSchedulingPolicyAssociated = isSchedulingPolicyAssociated; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -986,6 +989,21 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** If true, the infrastructure is using granular maintenance scheduling preference. */ + @com.fasterxml.jackson.annotation.JsonProperty("isSchedulingPolicyAssociated") + private Boolean isSchedulingPolicyAssociated; + + /** + * If true, the infrastructure is using granular maintenance scheduling preference. + * + * @param isSchedulingPolicyAssociated the value to set + * @return this builder + */ + public Builder isSchedulingPolicyAssociated(Boolean isSchedulingPolicyAssociated) { + this.isSchedulingPolicyAssociated = isSchedulingPolicyAssociated; + this.__explicitlySet__.add("isSchedulingPolicyAssociated"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -1041,7 +1059,8 @@ public ExadataInfrastructureSummary build() { this.availabilityDomain, this.definedFileSystemConfigurations, this.freeformTags, - this.definedTags); + this.definedTags, + this.isSchedulingPolicyAssociated); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -1197,6 +1216,9 @@ public Builder copy(ExadataInfrastructureSummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("isSchedulingPolicyAssociated")) { + this.isSchedulingPolicyAssociated(model.getIsSchedulingPolicyAssociated()); + } return this; } } @@ -2069,6 +2091,19 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** If true, the infrastructure is using granular maintenance scheduling preference. */ + @com.fasterxml.jackson.annotation.JsonProperty("isSchedulingPolicyAssociated") + private final Boolean isSchedulingPolicyAssociated; + + /** + * If true, the infrastructure is using granular maintenance scheduling preference. + * + * @return the value + */ + public Boolean getIsSchedulingPolicyAssociated() { + return isSchedulingPolicyAssociated; + } + @Override public String toString() { return this.toString(true); @@ -2148,6 +2183,8 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.definedFileSystemConfigurations)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", isSchedulingPolicyAssociated=") + .append(String.valueOf(this.isSchedulingPolicyAssociated)); sb.append(")"); return sb.toString(); } @@ -2222,6 +2259,8 @@ public boolean equals(Object o) { this.definedFileSystemConfigurations, other.definedFileSystemConfigurations) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals( + this.isSchedulingPolicyAssociated, other.isSchedulingPolicyAssociated) && super.equals(other); } @@ -2382,6 +2421,11 @@ public int hashCode() { : this.definedFileSystemConfigurations.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = + (result * PRIME) + + (this.isSchedulingPolicyAssociated == null + ? 43 + : this.isSchedulingPolicyAssociated.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadbVmCluster.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadbVmCluster.java index 5b9ddca9c5b..f561f3397ac 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadbVmCluster.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadbVmCluster.java @@ -577,12 +577,30 @@ public Builder giVersion(String giVersion) { this.__explicitlySet__.add("giVersion"); return this; } - /** Grid Setup will be done using this grid image id */ + /** + * Grid Setup will be done using this grid image id. + * + *

The grid image id can be extracted from 1. Obtain the supported major versions using + * API + * /20160918/giVersions?compartmentId=&shape=EXADB_XS&availabilityDomain= 2. Replace {version} with one of the supported major versions and obtain the + * supported minor versions using API + * /20160918/giVersions/{version}/minorVersions?compartmentId=&shapeFamily=EXADB_XS&availabilityDomain= + */ @com.fasterxml.jackson.annotation.JsonProperty("gridImageId") private String gridImageId; /** - * Grid Setup will be done using this grid image id + * Grid Setup will be done using this grid image id. + * + *

The grid image id can be extracted from 1. Obtain the supported major versions using + * API + * /20160918/giVersions?compartmentId=&shape=EXADB_XS&availabilityDomain= 2. Replace {version} with one of the supported major versions and obtain the + * supported minor versions using API + * /20160918/giVersions/{version}/minorVersions?compartmentId=&shapeFamily=EXADB_XS&availabilityDomain= * * @param gridImageId the value to set * @return this builder @@ -1615,12 +1633,28 @@ public String getGiVersion() { return giVersion; } - /** Grid Setup will be done using this grid image id */ + /** + * Grid Setup will be done using this grid image id. + * + *

The grid image id can be extracted from 1. Obtain the supported major versions using API + * /20160918/giVersions?compartmentId=&shape=EXADB_XS&availabilityDomain= 2. Replace {version} with one of the supported major versions and obtain the supported + * minor versions using API + * /20160918/giVersions/{version}/minorVersions?compartmentId=&shapeFamily=EXADB_XS&availabilityDomain= + */ @com.fasterxml.jackson.annotation.JsonProperty("gridImageId") private final String gridImageId; /** - * Grid Setup will be done using this grid image id + * Grid Setup will be done using this grid image id. + * + *

The grid image id can be extracted from 1. Obtain the supported major versions using API + * /20160918/giVersions?compartmentId=&shape=EXADB_XS&availabilityDomain= 2. Replace {version} with one of the supported major versions and obtain the supported + * minor versions using API + * /20160918/giVersions/{version}/minorVersions?compartmentId=&shapeFamily=EXADB_XS&availabilityDomain= * * @return the value */ diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadbVmClusterSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadbVmClusterSummary.java index 7f8096b1d33..1ab18ffe866 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadbVmClusterSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadbVmClusterSummary.java @@ -566,12 +566,30 @@ public Builder giVersion(String giVersion) { this.__explicitlySet__.add("giVersion"); return this; } - /** Grid Setup will be done using this grid image id */ + /** + * Grid Setup will be done using this grid image id. + * + *

The grid image id can be extracted from 1. Obtain the supported major versions using + * API + * /20160918/giVersions?compartmentId=&shape=EXADB_XS&availabilityDomain= 2. Replace {version} with one of the supported major versions and obtain the + * supported minor versions using API + * /20160918/giVersions/{version}/minorVersions?compartmentId=&shapeFamily=EXADB_XS&availabilityDomain= + */ @com.fasterxml.jackson.annotation.JsonProperty("gridImageId") private String gridImageId; /** - * Grid Setup will be done using this grid image id + * Grid Setup will be done using this grid image id. + * + *

The grid image id can be extracted from 1. Obtain the supported major versions using + * API + * /20160918/giVersions?compartmentId=&shape=EXADB_XS&availabilityDomain= 2. Replace {version} with one of the supported major versions and obtain the + * supported minor versions using API + * /20160918/giVersions/{version}/minorVersions?compartmentId=&shapeFamily=EXADB_XS&availabilityDomain= * * @param gridImageId the value to set * @return this builder @@ -1593,12 +1611,28 @@ public String getGiVersion() { return giVersion; } - /** Grid Setup will be done using this grid image id */ + /** + * Grid Setup will be done using this grid image id. + * + *

The grid image id can be extracted from 1. Obtain the supported major versions using API + * /20160918/giVersions?compartmentId=&shape=EXADB_XS&availabilityDomain= 2. Replace {version} with one of the supported major versions and obtain the supported + * minor versions using API + * /20160918/giVersions/{version}/minorVersions?compartmentId=&shapeFamily=EXADB_XS&availabilityDomain= + */ @com.fasterxml.jackson.annotation.JsonProperty("gridImageId") private final String gridImageId; /** - * Grid Setup will be done using this grid image id + * Grid Setup will be done using this grid image id. + * + *

The grid image id can be extracted from 1. Obtain the supported major versions using API + * /20160918/giVersions?compartmentId=&shape=EXADB_XS&availabilityDomain= 2. Replace {version} with one of the supported major versions and obtain the supported + * minor versions using API + * /20160918/giVersions/{version}/minorVersions?compartmentId=&shapeFamily=EXADB_XS&availabilityDomain= * * @return the value */ diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExecutionAction.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExecutionAction.java new file mode 100644 index 00000000000..381d9072c11 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExecutionAction.java @@ -0,0 +1,1042 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Details of an execution action.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ExecutionAction.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExecutionAction + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "executionWindowId", + "compartmentId", + "displayName", + "description", + "lifecycleState", + "lifecycleSubstate", + "lifecycleDetails", + "timeCreated", + "timeUpdated", + "estimatedTimeInMins", + "totalTimeTakenInMins", + "executionActionOrder", + "actionType", + "actionParams", + "actionMembers", + "freeformTags", + "definedTags" + }) + public ExecutionAction( + String id, + String executionWindowId, + String compartmentId, + String displayName, + String description, + LifecycleState lifecycleState, + LifecycleSubstate lifecycleSubstate, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + Integer estimatedTimeInMins, + Integer totalTimeTakenInMins, + Integer executionActionOrder, + ActionType actionType, + java.util.Map actionParams, + java.util.List actionMembers, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.id = id; + this.executionWindowId = executionWindowId; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.description = description; + this.lifecycleState = lifecycleState; + this.lifecycleSubstate = lifecycleSubstate; + this.lifecycleDetails = lifecycleDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.estimatedTimeInMins = estimatedTimeInMins; + this.totalTimeTakenInMins = totalTimeTakenInMins; + this.executionActionOrder = executionActionOrder; + this.actionType = actionType; + this.actionParams = actionParams; + this.actionMembers = actionMembers; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution action. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution action. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution window resource the execution action belongs to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("executionWindowId") + private String executionWindowId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution window resource the execution action belongs to. + * + * @param executionWindowId the value to set + * @return this builder + */ + public Builder executionWindowId(String executionWindowId) { + this.executionWindowId = executionWindowId; + this.__explicitlySet__.add("executionWindowId"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The user-friendly name for the execution action. The name does not need to be unique. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the execution action. The name does not need to be unique. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Description of the execution action. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Description of the execution action. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The current state of the execution action. Valid states are SCHEDULED, IN_PROGRESS, + * FAILED, CANCELED, UPDATING, DELETED, SUCCEEDED and PARTIAL_SUCCESS. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the execution action. Valid states are SCHEDULED, IN_PROGRESS, + * FAILED, CANCELED, UPDATING, DELETED, SUCCEEDED and PARTIAL_SUCCESS. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The current sub-state of the execution action. Valid states are DURATION_EXCEEDED, + * MAINTENANCE_IN_PROGRESS and WAITING. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleSubstate") + private LifecycleSubstate lifecycleSubstate; + + /** + * The current sub-state of the execution action. Valid states are DURATION_EXCEEDED, + * MAINTENANCE_IN_PROGRESS and WAITING. + * + * @param lifecycleSubstate the value to set + * @return this builder + */ + public Builder lifecycleSubstate(LifecycleSubstate lifecycleSubstate) { + this.lifecycleSubstate = lifecycleSubstate; + this.__explicitlySet__.add("lifecycleSubstate"); + return this; + } + /** Additional information about the current lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Additional information about the current lifecycle state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** The date and time the execution action was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the execution action was created. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The last date and time that the execution action was updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The last date and time that the execution action was updated. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** The estimated time of the execution action in minutes. */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedTimeInMins") + private Integer estimatedTimeInMins; + + /** + * The estimated time of the execution action in minutes. + * + * @param estimatedTimeInMins the value to set + * @return this builder + */ + public Builder estimatedTimeInMins(Integer estimatedTimeInMins) { + this.estimatedTimeInMins = estimatedTimeInMins; + this.__explicitlySet__.add("estimatedTimeInMins"); + return this; + } + /** The total time taken by corresponding resource activity in minutes. */ + @com.fasterxml.jackson.annotation.JsonProperty("totalTimeTakenInMins") + private Integer totalTimeTakenInMins; + + /** + * The total time taken by corresponding resource activity in minutes. + * + * @param totalTimeTakenInMins the value to set + * @return this builder + */ + public Builder totalTimeTakenInMins(Integer totalTimeTakenInMins) { + this.totalTimeTakenInMins = totalTimeTakenInMins; + this.__explicitlySet__.add("totalTimeTakenInMins"); + return this; + } + /** The priority order of the execution action. */ + @com.fasterxml.jackson.annotation.JsonProperty("executionActionOrder") + private Integer executionActionOrder; + + /** + * The priority order of the execution action. + * + * @param executionActionOrder the value to set + * @return this builder + */ + public Builder executionActionOrder(Integer executionActionOrder) { + this.executionActionOrder = executionActionOrder; + this.__explicitlySet__.add("executionActionOrder"); + return this; + } + /** The action type of the execution action being performed */ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private ActionType actionType; + + /** + * The action type of the execution action being performed + * + * @param actionType the value to set + * @return this builder + */ + public Builder actionType(ActionType actionType) { + this.actionType = actionType; + this.__explicitlySet__.add("actionType"); + return this; + } + /** + * Map where a key value pair describes the specific action + * parameter. Example: {@code {"count": "3"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("actionParams") + private java.util.Map actionParams; + + /** + * Map where a key value pair describes the specific action + * parameter. Example: {@code {"count": "3"}} + * + * @param actionParams the value to set + * @return this builder + */ + public Builder actionParams(java.util.Map actionParams) { + this.actionParams = actionParams; + this.__explicitlySet__.add("actionParams"); + return this; + } + /** List of action members of this execution action. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionMembers") + private java.util.List actionMembers; + + /** + * List of action members of this execution action. + * + * @param actionMembers the value to set + * @return this builder + */ + public Builder actionMembers(java.util.List actionMembers) { + this.actionMembers = actionMembers; + this.__explicitlySet__.add("actionMembers"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @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 ExecutionAction build() { + ExecutionAction model = + new ExecutionAction( + this.id, + this.executionWindowId, + this.compartmentId, + this.displayName, + this.description, + this.lifecycleState, + this.lifecycleSubstate, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.estimatedTimeInMins, + this.totalTimeTakenInMins, + this.executionActionOrder, + this.actionType, + this.actionParams, + this.actionMembers, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExecutionAction model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("executionWindowId")) { + this.executionWindowId(model.getExecutionWindowId()); + } + 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("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleSubstate")) { + this.lifecycleSubstate(model.getLifecycleSubstate()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("estimatedTimeInMins")) { + this.estimatedTimeInMins(model.getEstimatedTimeInMins()); + } + if (model.wasPropertyExplicitlySet("totalTimeTakenInMins")) { + this.totalTimeTakenInMins(model.getTotalTimeTakenInMins()); + } + if (model.wasPropertyExplicitlySet("executionActionOrder")) { + this.executionActionOrder(model.getExecutionActionOrder()); + } + if (model.wasPropertyExplicitlySet("actionType")) { + this.actionType(model.getActionType()); + } + if (model.wasPropertyExplicitlySet("actionParams")) { + this.actionParams(model.getActionParams()); + } + if (model.wasPropertyExplicitlySet("actionMembers")) { + this.actionMembers(model.getActionMembers()); + } + 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/Content/General/Concepts/identifiers.htm) of the + * execution action. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution action. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution window resource the execution action belongs to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("executionWindowId") + private final String executionWindowId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution window resource the execution action belongs to. + * + * @return the value + */ + public String getExecutionWindowId() { + return executionWindowId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The user-friendly name for the execution action. The name does not need to be unique. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the execution action. The name does not need to be unique. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Description of the execution action. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the execution action. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** + * The current state of the execution action. Valid states are SCHEDULED, IN_PROGRESS, FAILED, + * CANCELED, UPDATING, DELETED, SUCCEEDED and PARTIAL_SUCCESS. + */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Scheduled("SCHEDULED"), + InProgress("IN_PROGRESS"), + Failed("FAILED"), + Canceled("CANCELED"), + Updating("UPDATING"), + Deleted("DELETED"), + Succeeded("SUCCEEDED"), + PartialSuccess("PARTIAL_SUCCESS"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current state of the execution action. Valid states are SCHEDULED, IN_PROGRESS, FAILED, + * CANCELED, UPDATING, DELETED, SUCCEEDED and PARTIAL_SUCCESS. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the execution action. Valid states are SCHEDULED, IN_PROGRESS, FAILED, + * CANCELED, UPDATING, DELETED, SUCCEEDED and PARTIAL_SUCCESS. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The current sub-state of the execution action. Valid states are DURATION_EXCEEDED, + * MAINTENANCE_IN_PROGRESS and WAITING. + */ + public enum LifecycleSubstate implements com.oracle.bmc.http.internal.BmcEnum { + DurationExceeded("DURATION_EXCEEDED"), + MaintenanceInProgress("MAINTENANCE_IN_PROGRESS"), + Waiting("WAITING"), + Rescheduled("RESCHEDULED"), + + /** + * 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(LifecycleSubstate.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleSubstate v : LifecycleSubstate.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleSubstate(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleSubstate create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleSubstate', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current sub-state of the execution action. Valid states are DURATION_EXCEEDED, + * MAINTENANCE_IN_PROGRESS and WAITING. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleSubstate") + private final LifecycleSubstate lifecycleSubstate; + + /** + * The current sub-state of the execution action. Valid states are DURATION_EXCEEDED, + * MAINTENANCE_IN_PROGRESS and WAITING. + * + * @return the value + */ + public LifecycleSubstate getLifecycleSubstate() { + return lifecycleSubstate; + } + + /** Additional information about the current lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Additional information about the current lifecycle state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** The date and time the execution action was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the execution action was created. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The last date and time that the execution action was updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The last date and time that the execution action was updated. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** The estimated time of the execution action in minutes. */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedTimeInMins") + private final Integer estimatedTimeInMins; + + /** + * The estimated time of the execution action in minutes. + * + * @return the value + */ + public Integer getEstimatedTimeInMins() { + return estimatedTimeInMins; + } + + /** The total time taken by corresponding resource activity in minutes. */ + @com.fasterxml.jackson.annotation.JsonProperty("totalTimeTakenInMins") + private final Integer totalTimeTakenInMins; + + /** + * The total time taken by corresponding resource activity in minutes. + * + * @return the value + */ + public Integer getTotalTimeTakenInMins() { + return totalTimeTakenInMins; + } + + /** The priority order of the execution action. */ + @com.fasterxml.jackson.annotation.JsonProperty("executionActionOrder") + private final Integer executionActionOrder; + + /** + * The priority order of the execution action. + * + * @return the value + */ + public Integer getExecutionActionOrder() { + return executionActionOrder; + } + + /** The action type of the execution action being performed */ + public enum ActionType implements com.oracle.bmc.http.internal.BmcEnum { + DbServerFullSoftwareUpdate("DB_SERVER_FULL_SOFTWARE_UPDATE"), + StorageServerFullSoftwareUpdate("STORAGE_SERVER_FULL_SOFTWARE_UPDATE"), + NetworkSwitchFullSoftwareUpdate("NETWORK_SWITCH_FULL_SOFTWARE_UPDATE"), + + /** + * 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; + } + }; + /** The action type of the execution action being performed */ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private final ActionType actionType; + + /** + * The action type of the execution action being performed + * + * @return the value + */ + public ActionType getActionType() { + return actionType; + } + + /** + * Map where a key value pair describes the specific action parameter. + * Example: {@code {"count": "3"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("actionParams") + private final java.util.Map actionParams; + + /** + * Map where a key value pair describes the specific action parameter. + * Example: {@code {"count": "3"}} + * + * @return the value + */ + public java.util.Map getActionParams() { + return actionParams; + } + + /** List of action members of this execution action. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionMembers") + private final java.util.List actionMembers; + + /** + * List of action members of this execution action. + * + * @return the value + */ + public java.util.List getActionMembers() { + return actionMembers; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @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("ExecutionAction("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", executionWindowId=").append(String.valueOf(this.executionWindowId)); + 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(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleSubstate=").append(String.valueOf(this.lifecycleSubstate)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", estimatedTimeInMins=").append(String.valueOf(this.estimatedTimeInMins)); + sb.append(", totalTimeTakenInMins=").append(String.valueOf(this.totalTimeTakenInMins)); + sb.append(", executionActionOrder=").append(String.valueOf(this.executionActionOrder)); + sb.append(", actionType=").append(String.valueOf(this.actionType)); + sb.append(", actionParams=").append(String.valueOf(this.actionParams)); + sb.append(", actionMembers=").append(String.valueOf(this.actionMembers)); + 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 ExecutionAction)) { + return false; + } + + ExecutionAction other = (ExecutionAction) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.executionWindowId, other.executionWindowId) + && 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.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleSubstate, other.lifecycleSubstate) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.estimatedTimeInMins, other.estimatedTimeInMins) + && java.util.Objects.equals(this.totalTimeTakenInMins, other.totalTimeTakenInMins) + && java.util.Objects.equals(this.executionActionOrder, other.executionActionOrder) + && java.util.Objects.equals(this.actionType, other.actionType) + && java.util.Objects.equals(this.actionParams, other.actionParams) + && java.util.Objects.equals(this.actionMembers, other.actionMembers) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.executionWindowId == null ? 43 : this.executionWindowId.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.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleSubstate == null ? 43 : this.lifecycleSubstate.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.estimatedTimeInMins == null + ? 43 + : this.estimatedTimeInMins.hashCode()); + result = + (result * PRIME) + + (this.totalTimeTakenInMins == null + ? 43 + : this.totalTimeTakenInMins.hashCode()); + result = + (result * PRIME) + + (this.executionActionOrder == null + ? 43 + : this.executionActionOrder.hashCode()); + result = (result * PRIME) + (this.actionType == null ? 43 : this.actionType.hashCode()); + result = (result * PRIME) + (this.actionParams == null ? 43 : this.actionParams.hashCode()); + result = + (result * PRIME) + + (this.actionMembers == null ? 43 : this.actionMembers.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExecutionActionMember.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExecutionActionMember.java new file mode 100644 index 00000000000..855151991d7 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExecutionActionMember.java @@ -0,0 +1,319 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * The action member details.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecutionActionMember.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExecutionActionMember + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "memberOrder", + "memberId", + "status", + "estimatedTimeInMins", + "totalTimeTakenInMins" + }) + public ExecutionActionMember( + Integer memberOrder, + String memberId, + String status, + Integer estimatedTimeInMins, + Integer totalTimeTakenInMins) { + super(); + this.memberOrder = memberOrder; + this.memberId = memberId; + this.status = status; + this.estimatedTimeInMins = estimatedTimeInMins; + this.totalTimeTakenInMins = totalTimeTakenInMins; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The priority order of the execution action member. */ + @com.fasterxml.jackson.annotation.JsonProperty("memberOrder") + private Integer memberOrder; + + /** + * The priority order of the execution action member. + * + * @param memberOrder the value to set + * @return this builder + */ + public Builder memberOrder(Integer memberOrder) { + this.memberOrder = memberOrder; + this.__explicitlySet__.add("memberOrder"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * parent resource the execution action belongs to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("memberId") + private String memberId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * parent resource the execution action belongs to. + * + * @param memberId the value to set + * @return this builder + */ + public Builder memberId(String memberId) { + this.memberId = memberId; + this.__explicitlySet__.add("memberId"); + return this; + } + /** + * The current status of the execution action member. Valid states are SCHEDULED, + * IN_PROGRESS, FAILED, CANCELED, DURATION_EXCEEDED, RESCHEDULED and COMPLETED. enum: - + * SCHEDULED - IN_PROGRESS - FAILED - CANCELED - DURATION_EXCEEDED - RESCHEDULED - SUCCEEDED + */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private String status; + + /** + * The current status of the execution action member. Valid states are SCHEDULED, + * IN_PROGRESS, FAILED, CANCELED, DURATION_EXCEEDED, RESCHEDULED and COMPLETED. enum: - + * SCHEDULED - IN_PROGRESS - FAILED - CANCELED - DURATION_EXCEEDED - RESCHEDULED - SUCCEEDED + * + * @param status the value to set + * @return this builder + */ + public Builder status(String status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** The estimated time of the execution action member in minutes. */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedTimeInMins") + private Integer estimatedTimeInMins; + + /** + * The estimated time of the execution action member in minutes. + * + * @param estimatedTimeInMins the value to set + * @return this builder + */ + public Builder estimatedTimeInMins(Integer estimatedTimeInMins) { + this.estimatedTimeInMins = estimatedTimeInMins; + this.__explicitlySet__.add("estimatedTimeInMins"); + return this; + } + /** The total time taken by corresponding resource activity in minutes. */ + @com.fasterxml.jackson.annotation.JsonProperty("totalTimeTakenInMins") + private Integer totalTimeTakenInMins; + + /** + * The total time taken by corresponding resource activity in minutes. + * + * @param totalTimeTakenInMins the value to set + * @return this builder + */ + public Builder totalTimeTakenInMins(Integer totalTimeTakenInMins) { + this.totalTimeTakenInMins = totalTimeTakenInMins; + this.__explicitlySet__.add("totalTimeTakenInMins"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExecutionActionMember build() { + ExecutionActionMember model = + new ExecutionActionMember( + this.memberOrder, + this.memberId, + this.status, + this.estimatedTimeInMins, + this.totalTimeTakenInMins); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExecutionActionMember model) { + if (model.wasPropertyExplicitlySet("memberOrder")) { + this.memberOrder(model.getMemberOrder()); + } + if (model.wasPropertyExplicitlySet("memberId")) { + this.memberId(model.getMemberId()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("estimatedTimeInMins")) { + this.estimatedTimeInMins(model.getEstimatedTimeInMins()); + } + if (model.wasPropertyExplicitlySet("totalTimeTakenInMins")) { + this.totalTimeTakenInMins(model.getTotalTimeTakenInMins()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The priority order of the execution action member. */ + @com.fasterxml.jackson.annotation.JsonProperty("memberOrder") + private final Integer memberOrder; + + /** + * The priority order of the execution action member. + * + * @return the value + */ + public Integer getMemberOrder() { + return memberOrder; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * parent resource the execution action belongs to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("memberId") + private final String memberId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * parent resource the execution action belongs to. + * + * @return the value + */ + public String getMemberId() { + return memberId; + } + + /** + * The current status of the execution action member. Valid states are SCHEDULED, IN_PROGRESS, + * FAILED, CANCELED, DURATION_EXCEEDED, RESCHEDULED and COMPLETED. enum: - SCHEDULED - + * IN_PROGRESS - FAILED - CANCELED - DURATION_EXCEEDED - RESCHEDULED - SUCCEEDED + */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final String status; + + /** + * The current status of the execution action member. Valid states are SCHEDULED, IN_PROGRESS, + * FAILED, CANCELED, DURATION_EXCEEDED, RESCHEDULED and COMPLETED. enum: - SCHEDULED - + * IN_PROGRESS - FAILED - CANCELED - DURATION_EXCEEDED - RESCHEDULED - SUCCEEDED + * + * @return the value + */ + public String getStatus() { + return status; + } + + /** The estimated time of the execution action member in minutes. */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedTimeInMins") + private final Integer estimatedTimeInMins; + + /** + * The estimated time of the execution action member in minutes. + * + * @return the value + */ + public Integer getEstimatedTimeInMins() { + return estimatedTimeInMins; + } + + /** The total time taken by corresponding resource activity in minutes. */ + @com.fasterxml.jackson.annotation.JsonProperty("totalTimeTakenInMins") + private final Integer totalTimeTakenInMins; + + /** + * The total time taken by corresponding resource activity in minutes. + * + * @return the value + */ + public Integer getTotalTimeTakenInMins() { + return totalTimeTakenInMins; + } + + @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("ExecutionActionMember("); + sb.append("super=").append(super.toString()); + sb.append("memberOrder=").append(String.valueOf(this.memberOrder)); + sb.append(", memberId=").append(String.valueOf(this.memberId)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", estimatedTimeInMins=").append(String.valueOf(this.estimatedTimeInMins)); + sb.append(", totalTimeTakenInMins=").append(String.valueOf(this.totalTimeTakenInMins)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExecutionActionMember)) { + return false; + } + + ExecutionActionMember other = (ExecutionActionMember) o; + return java.util.Objects.equals(this.memberOrder, other.memberOrder) + && java.util.Objects.equals(this.memberId, other.memberId) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.estimatedTimeInMins, other.estimatedTimeInMins) + && java.util.Objects.equals(this.totalTimeTakenInMins, other.totalTimeTakenInMins) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.memberOrder == null ? 43 : this.memberOrder.hashCode()); + result = (result * PRIME) + (this.memberId == null ? 43 : this.memberId.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = + (result * PRIME) + + (this.estimatedTimeInMins == null + ? 43 + : this.estimatedTimeInMins.hashCode()); + result = + (result * PRIME) + + (this.totalTimeTakenInMins == null + ? 43 + : this.totalTimeTakenInMins.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExecutionActionSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExecutionActionSummary.java new file mode 100644 index 00000000000..4a5cc859648 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExecutionActionSummary.java @@ -0,0 +1,1043 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Details of an execution action.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecutionActionSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExecutionActionSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "executionWindowId", + "compartmentId", + "displayName", + "description", + "lifecycleState", + "lifecycleSubstate", + "lifecycleDetails", + "timeCreated", + "timeUpdated", + "estimatedTimeInMins", + "totalTimeTakenInMins", + "executionActionOrder", + "actionType", + "actionParams", + "actionMembers", + "freeformTags", + "definedTags" + }) + public ExecutionActionSummary( + String id, + String executionWindowId, + String compartmentId, + String displayName, + String description, + LifecycleState lifecycleState, + LifecycleSubstate lifecycleSubstate, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + Integer estimatedTimeInMins, + Integer totalTimeTakenInMins, + Integer executionActionOrder, + ActionType actionType, + java.util.Map actionParams, + java.util.List actionMembers, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.id = id; + this.executionWindowId = executionWindowId; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.description = description; + this.lifecycleState = lifecycleState; + this.lifecycleSubstate = lifecycleSubstate; + this.lifecycleDetails = lifecycleDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.estimatedTimeInMins = estimatedTimeInMins; + this.totalTimeTakenInMins = totalTimeTakenInMins; + this.executionActionOrder = executionActionOrder; + this.actionType = actionType; + this.actionParams = actionParams; + this.actionMembers = actionMembers; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution action. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution action. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution window resource the execution action belongs to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("executionWindowId") + private String executionWindowId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution window resource the execution action belongs to. + * + * @param executionWindowId the value to set + * @return this builder + */ + public Builder executionWindowId(String executionWindowId) { + this.executionWindowId = executionWindowId; + this.__explicitlySet__.add("executionWindowId"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The user-friendly name for the execution action. The name does not need to be unique. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the execution action. The name does not need to be unique. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Description of the execution action. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Description of the execution action. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The current state of the execution action. Valid states are SCHEDULED, IN_PROGRESS, + * FAILED, CANCELED, UPDATING, DELETED, SUCCEEDED and PARTIAL_SUCCESS. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the execution action. Valid states are SCHEDULED, IN_PROGRESS, + * FAILED, CANCELED, UPDATING, DELETED, SUCCEEDED and PARTIAL_SUCCESS. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The current sub-state of the execution action. Valid states are DURATION_EXCEEDED, + * MAINTENANCE_IN_PROGRESS and WAITING. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleSubstate") + private LifecycleSubstate lifecycleSubstate; + + /** + * The current sub-state of the execution action. Valid states are DURATION_EXCEEDED, + * MAINTENANCE_IN_PROGRESS and WAITING. + * + * @param lifecycleSubstate the value to set + * @return this builder + */ + public Builder lifecycleSubstate(LifecycleSubstate lifecycleSubstate) { + this.lifecycleSubstate = lifecycleSubstate; + this.__explicitlySet__.add("lifecycleSubstate"); + return this; + } + /** Additional information about the current lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Additional information about the current lifecycle state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** The date and time the execution action was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the execution action was created. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The last date and time that the execution action was updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The last date and time that the execution action was updated. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** The estimated time of the execution action in minutes. */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedTimeInMins") + private Integer estimatedTimeInMins; + + /** + * The estimated time of the execution action in minutes. + * + * @param estimatedTimeInMins the value to set + * @return this builder + */ + public Builder estimatedTimeInMins(Integer estimatedTimeInMins) { + this.estimatedTimeInMins = estimatedTimeInMins; + this.__explicitlySet__.add("estimatedTimeInMins"); + return this; + } + /** The total time taken by corresponding resource activity in minutes. */ + @com.fasterxml.jackson.annotation.JsonProperty("totalTimeTakenInMins") + private Integer totalTimeTakenInMins; + + /** + * The total time taken by corresponding resource activity in minutes. + * + * @param totalTimeTakenInMins the value to set + * @return this builder + */ + public Builder totalTimeTakenInMins(Integer totalTimeTakenInMins) { + this.totalTimeTakenInMins = totalTimeTakenInMins; + this.__explicitlySet__.add("totalTimeTakenInMins"); + return this; + } + /** The priority order of the execution action. */ + @com.fasterxml.jackson.annotation.JsonProperty("executionActionOrder") + private Integer executionActionOrder; + + /** + * The priority order of the execution action. + * + * @param executionActionOrder the value to set + * @return this builder + */ + public Builder executionActionOrder(Integer executionActionOrder) { + this.executionActionOrder = executionActionOrder; + this.__explicitlySet__.add("executionActionOrder"); + return this; + } + /** The action type of the execution action being performed */ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private ActionType actionType; + + /** + * The action type of the execution action being performed + * + * @param actionType the value to set + * @return this builder + */ + public Builder actionType(ActionType actionType) { + this.actionType = actionType; + this.__explicitlySet__.add("actionType"); + return this; + } + /** + * Map where a key value pair describes the specific action + * parameter. Example: {@code {"count": "3"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("actionParams") + private java.util.Map actionParams; + + /** + * Map where a key value pair describes the specific action + * parameter. Example: {@code {"count": "3"}} + * + * @param actionParams the value to set + * @return this builder + */ + public Builder actionParams(java.util.Map actionParams) { + this.actionParams = actionParams; + this.__explicitlySet__.add("actionParams"); + return this; + } + /** List of action members of this execution action. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionMembers") + private java.util.List actionMembers; + + /** + * List of action members of this execution action. + * + * @param actionMembers the value to set + * @return this builder + */ + public Builder actionMembers(java.util.List actionMembers) { + this.actionMembers = actionMembers; + this.__explicitlySet__.add("actionMembers"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @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 ExecutionActionSummary build() { + ExecutionActionSummary model = + new ExecutionActionSummary( + this.id, + this.executionWindowId, + this.compartmentId, + this.displayName, + this.description, + this.lifecycleState, + this.lifecycleSubstate, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.estimatedTimeInMins, + this.totalTimeTakenInMins, + this.executionActionOrder, + this.actionType, + this.actionParams, + this.actionMembers, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExecutionActionSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("executionWindowId")) { + this.executionWindowId(model.getExecutionWindowId()); + } + 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("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleSubstate")) { + this.lifecycleSubstate(model.getLifecycleSubstate()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("estimatedTimeInMins")) { + this.estimatedTimeInMins(model.getEstimatedTimeInMins()); + } + if (model.wasPropertyExplicitlySet("totalTimeTakenInMins")) { + this.totalTimeTakenInMins(model.getTotalTimeTakenInMins()); + } + if (model.wasPropertyExplicitlySet("executionActionOrder")) { + this.executionActionOrder(model.getExecutionActionOrder()); + } + if (model.wasPropertyExplicitlySet("actionType")) { + this.actionType(model.getActionType()); + } + if (model.wasPropertyExplicitlySet("actionParams")) { + this.actionParams(model.getActionParams()); + } + if (model.wasPropertyExplicitlySet("actionMembers")) { + this.actionMembers(model.getActionMembers()); + } + 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/Content/General/Concepts/identifiers.htm) of the + * execution action. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution action. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution window resource the execution action belongs to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("executionWindowId") + private final String executionWindowId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution window resource the execution action belongs to. + * + * @return the value + */ + public String getExecutionWindowId() { + return executionWindowId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The user-friendly name for the execution action. The name does not need to be unique. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the execution action. The name does not need to be unique. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Description of the execution action. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the execution action. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** + * The current state of the execution action. Valid states are SCHEDULED, IN_PROGRESS, FAILED, + * CANCELED, UPDATING, DELETED, SUCCEEDED and PARTIAL_SUCCESS. + */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Scheduled("SCHEDULED"), + InProgress("IN_PROGRESS"), + Failed("FAILED"), + Canceled("CANCELED"), + Updating("UPDATING"), + Deleted("DELETED"), + Succeeded("SUCCEEDED"), + PartialSuccess("PARTIAL_SUCCESS"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current state of the execution action. Valid states are SCHEDULED, IN_PROGRESS, FAILED, + * CANCELED, UPDATING, DELETED, SUCCEEDED and PARTIAL_SUCCESS. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the execution action. Valid states are SCHEDULED, IN_PROGRESS, FAILED, + * CANCELED, UPDATING, DELETED, SUCCEEDED and PARTIAL_SUCCESS. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The current sub-state of the execution action. Valid states are DURATION_EXCEEDED, + * MAINTENANCE_IN_PROGRESS and WAITING. + */ + public enum LifecycleSubstate implements com.oracle.bmc.http.internal.BmcEnum { + DurationExceeded("DURATION_EXCEEDED"), + MaintenanceInProgress("MAINTENANCE_IN_PROGRESS"), + Waiting("WAITING"), + Rescheduled("RESCHEDULED"), + + /** + * 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(LifecycleSubstate.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleSubstate v : LifecycleSubstate.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleSubstate(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleSubstate create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleSubstate', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current sub-state of the execution action. Valid states are DURATION_EXCEEDED, + * MAINTENANCE_IN_PROGRESS and WAITING. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleSubstate") + private final LifecycleSubstate lifecycleSubstate; + + /** + * The current sub-state of the execution action. Valid states are DURATION_EXCEEDED, + * MAINTENANCE_IN_PROGRESS and WAITING. + * + * @return the value + */ + public LifecycleSubstate getLifecycleSubstate() { + return lifecycleSubstate; + } + + /** Additional information about the current lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Additional information about the current lifecycle state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** The date and time the execution action was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the execution action was created. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The last date and time that the execution action was updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The last date and time that the execution action was updated. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** The estimated time of the execution action in minutes. */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedTimeInMins") + private final Integer estimatedTimeInMins; + + /** + * The estimated time of the execution action in minutes. + * + * @return the value + */ + public Integer getEstimatedTimeInMins() { + return estimatedTimeInMins; + } + + /** The total time taken by corresponding resource activity in minutes. */ + @com.fasterxml.jackson.annotation.JsonProperty("totalTimeTakenInMins") + private final Integer totalTimeTakenInMins; + + /** + * The total time taken by corresponding resource activity in minutes. + * + * @return the value + */ + public Integer getTotalTimeTakenInMins() { + return totalTimeTakenInMins; + } + + /** The priority order of the execution action. */ + @com.fasterxml.jackson.annotation.JsonProperty("executionActionOrder") + private final Integer executionActionOrder; + + /** + * The priority order of the execution action. + * + * @return the value + */ + public Integer getExecutionActionOrder() { + return executionActionOrder; + } + + /** The action type of the execution action being performed */ + public enum ActionType implements com.oracle.bmc.http.internal.BmcEnum { + DbServerFullSoftwareUpdate("DB_SERVER_FULL_SOFTWARE_UPDATE"), + StorageServerFullSoftwareUpdate("STORAGE_SERVER_FULL_SOFTWARE_UPDATE"), + NetworkSwitchFullSoftwareUpdate("NETWORK_SWITCH_FULL_SOFTWARE_UPDATE"), + + /** + * 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; + } + }; + /** The action type of the execution action being performed */ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private final ActionType actionType; + + /** + * The action type of the execution action being performed + * + * @return the value + */ + public ActionType getActionType() { + return actionType; + } + + /** + * Map where a key value pair describes the specific action parameter. + * Example: {@code {"count": "3"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("actionParams") + private final java.util.Map actionParams; + + /** + * Map where a key value pair describes the specific action parameter. + * Example: {@code {"count": "3"}} + * + * @return the value + */ + public java.util.Map getActionParams() { + return actionParams; + } + + /** List of action members of this execution action. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionMembers") + private final java.util.List actionMembers; + + /** + * List of action members of this execution action. + * + * @return the value + */ + public java.util.List getActionMembers() { + return actionMembers; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @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("ExecutionActionSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", executionWindowId=").append(String.valueOf(this.executionWindowId)); + 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(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleSubstate=").append(String.valueOf(this.lifecycleSubstate)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", estimatedTimeInMins=").append(String.valueOf(this.estimatedTimeInMins)); + sb.append(", totalTimeTakenInMins=").append(String.valueOf(this.totalTimeTakenInMins)); + sb.append(", executionActionOrder=").append(String.valueOf(this.executionActionOrder)); + sb.append(", actionType=").append(String.valueOf(this.actionType)); + sb.append(", actionParams=").append(String.valueOf(this.actionParams)); + sb.append(", actionMembers=").append(String.valueOf(this.actionMembers)); + 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 ExecutionActionSummary)) { + return false; + } + + ExecutionActionSummary other = (ExecutionActionSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.executionWindowId, other.executionWindowId) + && 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.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleSubstate, other.lifecycleSubstate) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.estimatedTimeInMins, other.estimatedTimeInMins) + && java.util.Objects.equals(this.totalTimeTakenInMins, other.totalTimeTakenInMins) + && java.util.Objects.equals(this.executionActionOrder, other.executionActionOrder) + && java.util.Objects.equals(this.actionType, other.actionType) + && java.util.Objects.equals(this.actionParams, other.actionParams) + && java.util.Objects.equals(this.actionMembers, other.actionMembers) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.executionWindowId == null ? 43 : this.executionWindowId.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.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleSubstate == null ? 43 : this.lifecycleSubstate.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.estimatedTimeInMins == null + ? 43 + : this.estimatedTimeInMins.hashCode()); + result = + (result * PRIME) + + (this.totalTimeTakenInMins == null + ? 43 + : this.totalTimeTakenInMins.hashCode()); + result = + (result * PRIME) + + (this.executionActionOrder == null + ? 43 + : this.executionActionOrder.hashCode()); + result = (result * PRIME) + (this.actionType == null ? 43 : this.actionType.hashCode()); + result = (result * PRIME) + (this.actionParams == null ? 43 : this.actionParams.hashCode()); + result = + (result * PRIME) + + (this.actionMembers == null ? 43 : this.actionMembers.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExecutionWindow.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExecutionWindow.java new file mode 100644 index 00000000000..b257e25980b --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExecutionWindow.java @@ -0,0 +1,1134 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Details of an execution window.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ExecutionWindow.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExecutionWindow + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "executionResourceId", + "compartmentId", + "displayName", + "description", + "lifecycleState", + "lifecycleSubstate", + "lifecycleDetails", + "timeCreated", + "timeUpdated", + "timeStarted", + "timeEnded", + "timeScheduled", + "windowDurationInMins", + "isEnforcedDuration", + "estimatedTimeInMins", + "totalTimeTakenInMins", + "windowType", + "freeformTags", + "definedTags" + }) + public ExecutionWindow( + String id, + String executionResourceId, + String compartmentId, + String displayName, + String description, + LifecycleState lifecycleState, + LifecycleSubstate lifecycleSubstate, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Date timeStarted, + java.util.Date timeEnded, + java.util.Date timeScheduled, + Integer windowDurationInMins, + Boolean isEnforcedDuration, + Integer estimatedTimeInMins, + Integer totalTimeTakenInMins, + WindowType windowType, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.id = id; + this.executionResourceId = executionResourceId; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.description = description; + this.lifecycleState = lifecycleState; + this.lifecycleSubstate = lifecycleSubstate; + this.lifecycleDetails = lifecycleDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.timeStarted = timeStarted; + this.timeEnded = timeEnded; + this.timeScheduled = timeScheduled; + this.windowDurationInMins = windowDurationInMins; + this.isEnforcedDuration = isEnforcedDuration; + this.estimatedTimeInMins = estimatedTimeInMins; + this.totalTimeTakenInMins = totalTimeTakenInMins; + this.windowType = windowType; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution window. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution window. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution resource the execution window belongs to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("executionResourceId") + private String executionResourceId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution resource the execution window belongs to. + * + * @param executionResourceId the value to set + * @return this builder + */ + public Builder executionResourceId(String executionResourceId) { + this.executionResourceId = executionResourceId; + this.__explicitlySet__.add("executionResourceId"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The user-friendly name for the execution window. The name does not need to be unique. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the execution window. The name does not need to be unique. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Description of the execution window. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Description of the execution window. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The current state of the Schedule Policy. Valid states are CREATED, SCHEDULED, + * IN_PROGRESS, FAILED, CANCELED, UPDATING, DELETED, SUCCEEDED and PARTIAL_SUCCESS. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the Schedule Policy. Valid states are CREATED, SCHEDULED, + * IN_PROGRESS, FAILED, CANCELED, UPDATING, DELETED, SUCCEEDED and PARTIAL_SUCCESS. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The current sub-state of the execution window. Valid states are DURATION_EXCEEDED, + * MAINTENANCE_IN_PROGRESS and WAITING. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleSubstate") + private LifecycleSubstate lifecycleSubstate; + + /** + * The current sub-state of the execution window. Valid states are DURATION_EXCEEDED, + * MAINTENANCE_IN_PROGRESS and WAITING. + * + * @param lifecycleSubstate the value to set + * @return this builder + */ + public Builder lifecycleSubstate(LifecycleSubstate lifecycleSubstate) { + this.lifecycleSubstate = lifecycleSubstate; + this.__explicitlySet__.add("lifecycleSubstate"); + return this; + } + /** Additional information about the current lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Additional information about the current lifecycle state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** The date and time the execution window was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the execution window was created. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The last date and time that the execution window was updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The last date and time that the execution window was updated. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** The date and time that the execution window was started. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * The date and time that the execution window was started. + * + * @param timeStarted the value to set + * @return this builder + */ + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + /** The date and time that the execution window ended. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnded") + private java.util.Date timeEnded; + + /** + * The date and time that the execution window ended. + * + * @param timeEnded the value to set + * @return this builder + */ + public Builder timeEnded(java.util.Date timeEnded) { + this.timeEnded = timeEnded; + this.__explicitlySet__.add("timeEnded"); + return this; + } + /** The scheduled start date and time of the execution window. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduled") + private java.util.Date timeScheduled; + + /** + * The scheduled start date and time of the execution window. + * + * @param timeScheduled the value to set + * @return this builder + */ + public Builder timeScheduled(java.util.Date timeScheduled) { + this.timeScheduled = timeScheduled; + this.__explicitlySet__.add("timeScheduled"); + return this; + } + /** + * Duration window allows user to set a duration they plan to allocate for Scheduling + * window. The duration is in minutes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("windowDurationInMins") + private Integer windowDurationInMins; + + /** + * Duration window allows user to set a duration they plan to allocate for Scheduling + * window. The duration is in minutes. + * + * @param windowDurationInMins the value to set + * @return this builder + */ + public Builder windowDurationInMins(Integer windowDurationInMins) { + this.windowDurationInMins = windowDurationInMins; + this.__explicitlySet__.add("windowDurationInMins"); + return this; + } + /** + * Indicates if duration the user plans to allocate for scheduling window is strictly + * enforced. The default value is {@code FALSE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnforcedDuration") + private Boolean isEnforcedDuration; + + /** + * Indicates if duration the user plans to allocate for scheduling window is strictly + * enforced. The default value is {@code FALSE}. + * + * @param isEnforcedDuration the value to set + * @return this builder + */ + public Builder isEnforcedDuration(Boolean isEnforcedDuration) { + this.isEnforcedDuration = isEnforcedDuration; + this.__explicitlySet__.add("isEnforcedDuration"); + return this; + } + /** The estimated time of the execution window in minutes. */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedTimeInMins") + private Integer estimatedTimeInMins; + + /** + * The estimated time of the execution window in minutes. + * + * @param estimatedTimeInMins the value to set + * @return this builder + */ + public Builder estimatedTimeInMins(Integer estimatedTimeInMins) { + this.estimatedTimeInMins = estimatedTimeInMins; + this.__explicitlySet__.add("estimatedTimeInMins"); + return this; + } + /** The total time taken by corresponding resource activity in minutes. */ + @com.fasterxml.jackson.annotation.JsonProperty("totalTimeTakenInMins") + private Integer totalTimeTakenInMins; + + /** + * The total time taken by corresponding resource activity in minutes. + * + * @param totalTimeTakenInMins the value to set + * @return this builder + */ + public Builder totalTimeTakenInMins(Integer totalTimeTakenInMins) { + this.totalTimeTakenInMins = totalTimeTakenInMins; + this.__explicitlySet__.add("totalTimeTakenInMins"); + return this; + } + /** The execution window is of PLANNED or UNPLANNED type. */ + @com.fasterxml.jackson.annotation.JsonProperty("windowType") + private WindowType windowType; + + /** + * The execution window is of PLANNED or UNPLANNED type. + * + * @param windowType the value to set + * @return this builder + */ + public Builder windowType(WindowType windowType) { + this.windowType = windowType; + this.__explicitlySet__.add("windowType"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @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 ExecutionWindow build() { + ExecutionWindow model = + new ExecutionWindow( + this.id, + this.executionResourceId, + this.compartmentId, + this.displayName, + this.description, + this.lifecycleState, + this.lifecycleSubstate, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.timeStarted, + this.timeEnded, + this.timeScheduled, + this.windowDurationInMins, + this.isEnforcedDuration, + this.estimatedTimeInMins, + this.totalTimeTakenInMins, + this.windowType, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExecutionWindow model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("executionResourceId")) { + this.executionResourceId(model.getExecutionResourceId()); + } + 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("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleSubstate")) { + this.lifecycleSubstate(model.getLifecycleSubstate()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeEnded")) { + this.timeEnded(model.getTimeEnded()); + } + if (model.wasPropertyExplicitlySet("timeScheduled")) { + this.timeScheduled(model.getTimeScheduled()); + } + if (model.wasPropertyExplicitlySet("windowDurationInMins")) { + this.windowDurationInMins(model.getWindowDurationInMins()); + } + if (model.wasPropertyExplicitlySet("isEnforcedDuration")) { + this.isEnforcedDuration(model.getIsEnforcedDuration()); + } + if (model.wasPropertyExplicitlySet("estimatedTimeInMins")) { + this.estimatedTimeInMins(model.getEstimatedTimeInMins()); + } + if (model.wasPropertyExplicitlySet("totalTimeTakenInMins")) { + this.totalTimeTakenInMins(model.getTotalTimeTakenInMins()); + } + if (model.wasPropertyExplicitlySet("windowType")) { + this.windowType(model.getWindowType()); + } + 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/Content/General/Concepts/identifiers.htm) of the + * execution window. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution window. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution resource the execution window belongs to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("executionResourceId") + private final String executionResourceId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution resource the execution window belongs to. + * + * @return the value + */ + public String getExecutionResourceId() { + return executionResourceId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The user-friendly name for the execution window. The name does not need to be unique. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the execution window. The name does not need to be unique. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Description of the execution window. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the execution window. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** + * The current state of the Schedule Policy. Valid states are CREATED, SCHEDULED, IN_PROGRESS, + * FAILED, CANCELED, UPDATING, DELETED, SUCCEEDED and PARTIAL_SUCCESS. + */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Created("CREATED"), + Scheduled("SCHEDULED"), + InProgress("IN_PROGRESS"), + Failed("FAILED"), + Canceled("CANCELED"), + Updating("UPDATING"), + Deleted("DELETED"), + Succeeded("SUCCEEDED"), + PartialSuccess("PARTIAL_SUCCESS"), + Creating("CREATING"), + Deleting("DELETING"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current state of the Schedule Policy. Valid states are CREATED, SCHEDULED, IN_PROGRESS, + * FAILED, CANCELED, UPDATING, DELETED, SUCCEEDED and PARTIAL_SUCCESS. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the Schedule Policy. Valid states are CREATED, SCHEDULED, IN_PROGRESS, + * FAILED, CANCELED, UPDATING, DELETED, SUCCEEDED and PARTIAL_SUCCESS. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The current sub-state of the execution window. Valid states are DURATION_EXCEEDED, + * MAINTENANCE_IN_PROGRESS and WAITING. + */ + public enum LifecycleSubstate implements com.oracle.bmc.http.internal.BmcEnum { + DurationExceeded("DURATION_EXCEEDED"), + MaintenanceInProgress("MAINTENANCE_IN_PROGRESS"), + Waiting("WAITING"), + Rescheduled("RESCHEDULED"), + + /** + * 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(LifecycleSubstate.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleSubstate v : LifecycleSubstate.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleSubstate(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleSubstate create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleSubstate', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current sub-state of the execution window. Valid states are DURATION_EXCEEDED, + * MAINTENANCE_IN_PROGRESS and WAITING. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleSubstate") + private final LifecycleSubstate lifecycleSubstate; + + /** + * The current sub-state of the execution window. Valid states are DURATION_EXCEEDED, + * MAINTENANCE_IN_PROGRESS and WAITING. + * + * @return the value + */ + public LifecycleSubstate getLifecycleSubstate() { + return lifecycleSubstate; + } + + /** Additional information about the current lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Additional information about the current lifecycle state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** The date and time the execution window was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the execution window was created. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The last date and time that the execution window was updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The last date and time that the execution window was updated. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** The date and time that the execution window was started. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * The date and time that the execution window was started. + * + * @return the value + */ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** The date and time that the execution window ended. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnded") + private final java.util.Date timeEnded; + + /** + * The date and time that the execution window ended. + * + * @return the value + */ + public java.util.Date getTimeEnded() { + return timeEnded; + } + + /** The scheduled start date and time of the execution window. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduled") + private final java.util.Date timeScheduled; + + /** + * The scheduled start date and time of the execution window. + * + * @return the value + */ + public java.util.Date getTimeScheduled() { + return timeScheduled; + } + + /** + * Duration window allows user to set a duration they plan to allocate for Scheduling window. + * The duration is in minutes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("windowDurationInMins") + private final Integer windowDurationInMins; + + /** + * Duration window allows user to set a duration they plan to allocate for Scheduling window. + * The duration is in minutes. + * + * @return the value + */ + public Integer getWindowDurationInMins() { + return windowDurationInMins; + } + + /** + * Indicates if duration the user plans to allocate for scheduling window is strictly enforced. + * The default value is {@code FALSE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnforcedDuration") + private final Boolean isEnforcedDuration; + + /** + * Indicates if duration the user plans to allocate for scheduling window is strictly enforced. + * The default value is {@code FALSE}. + * + * @return the value + */ + public Boolean getIsEnforcedDuration() { + return isEnforcedDuration; + } + + /** The estimated time of the execution window in minutes. */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedTimeInMins") + private final Integer estimatedTimeInMins; + + /** + * The estimated time of the execution window in minutes. + * + * @return the value + */ + public Integer getEstimatedTimeInMins() { + return estimatedTimeInMins; + } + + /** The total time taken by corresponding resource activity in minutes. */ + @com.fasterxml.jackson.annotation.JsonProperty("totalTimeTakenInMins") + private final Integer totalTimeTakenInMins; + + /** + * The total time taken by corresponding resource activity in minutes. + * + * @return the value + */ + public Integer getTotalTimeTakenInMins() { + return totalTimeTakenInMins; + } + + /** The execution window is of PLANNED or UNPLANNED type. */ + public enum WindowType implements com.oracle.bmc.http.internal.BmcEnum { + Planned("PLANNED"), + Unplanned("UNPLANNED"), + + /** + * 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(WindowType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (WindowType v : WindowType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + WindowType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static WindowType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'WindowType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The execution window is of PLANNED or UNPLANNED type. */ + @com.fasterxml.jackson.annotation.JsonProperty("windowType") + private final WindowType windowType; + + /** + * The execution window is of PLANNED or UNPLANNED type. + * + * @return the value + */ + public WindowType getWindowType() { + return windowType; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @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("ExecutionWindow("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", executionResourceId=").append(String.valueOf(this.executionResourceId)); + 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(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleSubstate=").append(String.valueOf(this.lifecycleSubstate)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append(", timeEnded=").append(String.valueOf(this.timeEnded)); + sb.append(", timeScheduled=").append(String.valueOf(this.timeScheduled)); + sb.append(", windowDurationInMins=").append(String.valueOf(this.windowDurationInMins)); + sb.append(", isEnforcedDuration=").append(String.valueOf(this.isEnforcedDuration)); + sb.append(", estimatedTimeInMins=").append(String.valueOf(this.estimatedTimeInMins)); + sb.append(", totalTimeTakenInMins=").append(String.valueOf(this.totalTimeTakenInMins)); + sb.append(", windowType=").append(String.valueOf(this.windowType)); + 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 ExecutionWindow)) { + return false; + } + + ExecutionWindow other = (ExecutionWindow) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.executionResourceId, other.executionResourceId) + && 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.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleSubstate, other.lifecycleSubstate) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeEnded, other.timeEnded) + && java.util.Objects.equals(this.timeScheduled, other.timeScheduled) + && java.util.Objects.equals(this.windowDurationInMins, other.windowDurationInMins) + && java.util.Objects.equals(this.isEnforcedDuration, other.isEnforcedDuration) + && java.util.Objects.equals(this.estimatedTimeInMins, other.estimatedTimeInMins) + && java.util.Objects.equals(this.totalTimeTakenInMins, other.totalTimeTakenInMins) + && java.util.Objects.equals(this.windowType, other.windowType) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.executionResourceId == null + ? 43 + : this.executionResourceId.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.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleSubstate == null ? 43 : this.lifecycleSubstate.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); + result = (result * PRIME) + (this.timeEnded == null ? 43 : this.timeEnded.hashCode()); + result = + (result * PRIME) + + (this.timeScheduled == null ? 43 : this.timeScheduled.hashCode()); + result = + (result * PRIME) + + (this.windowDurationInMins == null + ? 43 + : this.windowDurationInMins.hashCode()); + result = + (result * PRIME) + + (this.isEnforcedDuration == null + ? 43 + : this.isEnforcedDuration.hashCode()); + result = + (result * PRIME) + + (this.estimatedTimeInMins == null + ? 43 + : this.estimatedTimeInMins.hashCode()); + result = + (result * PRIME) + + (this.totalTimeTakenInMins == null + ? 43 + : this.totalTimeTakenInMins.hashCode()); + result = (result * PRIME) + (this.windowType == null ? 43 : this.windowType.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExecutionWindowSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExecutionWindowSummary.java new file mode 100644 index 00000000000..9bfbc4708aa --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExecutionWindowSummary.java @@ -0,0 +1,1135 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Details of an execution window.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecutionWindowSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExecutionWindowSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "executionResourceId", + "compartmentId", + "displayName", + "description", + "lifecycleState", + "lifecycleSubstate", + "lifecycleDetails", + "timeCreated", + "timeUpdated", + "timeStarted", + "timeEnded", + "timeScheduled", + "windowDurationInMins", + "isEnforcedDuration", + "estimatedTimeInMins", + "totalTimeTakenInMins", + "windowType", + "freeformTags", + "definedTags" + }) + public ExecutionWindowSummary( + String id, + String executionResourceId, + String compartmentId, + String displayName, + String description, + LifecycleState lifecycleState, + LifecycleSubstate lifecycleSubstate, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Date timeStarted, + java.util.Date timeEnded, + java.util.Date timeScheduled, + Integer windowDurationInMins, + Boolean isEnforcedDuration, + Integer estimatedTimeInMins, + Integer totalTimeTakenInMins, + WindowType windowType, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.id = id; + this.executionResourceId = executionResourceId; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.description = description; + this.lifecycleState = lifecycleState; + this.lifecycleSubstate = lifecycleSubstate; + this.lifecycleDetails = lifecycleDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.timeStarted = timeStarted; + this.timeEnded = timeEnded; + this.timeScheduled = timeScheduled; + this.windowDurationInMins = windowDurationInMins; + this.isEnforcedDuration = isEnforcedDuration; + this.estimatedTimeInMins = estimatedTimeInMins; + this.totalTimeTakenInMins = totalTimeTakenInMins; + this.windowType = windowType; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution window. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution window. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution resource the execution window belongs to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("executionResourceId") + private String executionResourceId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution resource the execution window belongs to. + * + * @param executionResourceId the value to set + * @return this builder + */ + public Builder executionResourceId(String executionResourceId) { + this.executionResourceId = executionResourceId; + this.__explicitlySet__.add("executionResourceId"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The user-friendly name for the execution window. The name does not need to be unique. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the execution window. The name does not need to be unique. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Description of the execution window. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Description of the execution window. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The current state of the Schedule Policy. Valid states are CREATED, SCHEDULED, + * IN_PROGRESS, FAILED, CANCELED, UPDATING, DELETED, SUCCEEDED and PARTIAL_SUCCESS. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the Schedule Policy. Valid states are CREATED, SCHEDULED, + * IN_PROGRESS, FAILED, CANCELED, UPDATING, DELETED, SUCCEEDED and PARTIAL_SUCCESS. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The current sub-state of the execution window. Valid states are DURATION_EXCEEDED, + * MAINTENANCE_IN_PROGRESS and WAITING. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleSubstate") + private LifecycleSubstate lifecycleSubstate; + + /** + * The current sub-state of the execution window. Valid states are DURATION_EXCEEDED, + * MAINTENANCE_IN_PROGRESS and WAITING. + * + * @param lifecycleSubstate the value to set + * @return this builder + */ + public Builder lifecycleSubstate(LifecycleSubstate lifecycleSubstate) { + this.lifecycleSubstate = lifecycleSubstate; + this.__explicitlySet__.add("lifecycleSubstate"); + return this; + } + /** Additional information about the current lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Additional information about the current lifecycle state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** The date and time the execution window was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the execution window was created. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The last date and time that the execution window was updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The last date and time that the execution window was updated. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** The date and time that the execution window was started. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * The date and time that the execution window was started. + * + * @param timeStarted the value to set + * @return this builder + */ + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + /** The date and time that the execution window ended. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnded") + private java.util.Date timeEnded; + + /** + * The date and time that the execution window ended. + * + * @param timeEnded the value to set + * @return this builder + */ + public Builder timeEnded(java.util.Date timeEnded) { + this.timeEnded = timeEnded; + this.__explicitlySet__.add("timeEnded"); + return this; + } + /** The scheduled start date and time of the execution window. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduled") + private java.util.Date timeScheduled; + + /** + * The scheduled start date and time of the execution window. + * + * @param timeScheduled the value to set + * @return this builder + */ + public Builder timeScheduled(java.util.Date timeScheduled) { + this.timeScheduled = timeScheduled; + this.__explicitlySet__.add("timeScheduled"); + return this; + } + /** + * Duration window allows user to set a duration they plan to allocate for Scheduling + * window. The duration is in minutes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("windowDurationInMins") + private Integer windowDurationInMins; + + /** + * Duration window allows user to set a duration they plan to allocate for Scheduling + * window. The duration is in minutes. + * + * @param windowDurationInMins the value to set + * @return this builder + */ + public Builder windowDurationInMins(Integer windowDurationInMins) { + this.windowDurationInMins = windowDurationInMins; + this.__explicitlySet__.add("windowDurationInMins"); + return this; + } + /** + * Indicates if duration the user plans to allocate for scheduling window is strictly + * enforced. The default value is {@code FALSE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnforcedDuration") + private Boolean isEnforcedDuration; + + /** + * Indicates if duration the user plans to allocate for scheduling window is strictly + * enforced. The default value is {@code FALSE}. + * + * @param isEnforcedDuration the value to set + * @return this builder + */ + public Builder isEnforcedDuration(Boolean isEnforcedDuration) { + this.isEnforcedDuration = isEnforcedDuration; + this.__explicitlySet__.add("isEnforcedDuration"); + return this; + } + /** The estimated time of the execution window in minutes. */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedTimeInMins") + private Integer estimatedTimeInMins; + + /** + * The estimated time of the execution window in minutes. + * + * @param estimatedTimeInMins the value to set + * @return this builder + */ + public Builder estimatedTimeInMins(Integer estimatedTimeInMins) { + this.estimatedTimeInMins = estimatedTimeInMins; + this.__explicitlySet__.add("estimatedTimeInMins"); + return this; + } + /** The total time taken by corresponding resource activity in minutes. */ + @com.fasterxml.jackson.annotation.JsonProperty("totalTimeTakenInMins") + private Integer totalTimeTakenInMins; + + /** + * The total time taken by corresponding resource activity in minutes. + * + * @param totalTimeTakenInMins the value to set + * @return this builder + */ + public Builder totalTimeTakenInMins(Integer totalTimeTakenInMins) { + this.totalTimeTakenInMins = totalTimeTakenInMins; + this.__explicitlySet__.add("totalTimeTakenInMins"); + return this; + } + /** The execution window is of PLANNED or UNPLANNED type. */ + @com.fasterxml.jackson.annotation.JsonProperty("windowType") + private WindowType windowType; + + /** + * The execution window is of PLANNED or UNPLANNED type. + * + * @param windowType the value to set + * @return this builder + */ + public Builder windowType(WindowType windowType) { + this.windowType = windowType; + this.__explicitlySet__.add("windowType"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @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 ExecutionWindowSummary build() { + ExecutionWindowSummary model = + new ExecutionWindowSummary( + this.id, + this.executionResourceId, + this.compartmentId, + this.displayName, + this.description, + this.lifecycleState, + this.lifecycleSubstate, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.timeStarted, + this.timeEnded, + this.timeScheduled, + this.windowDurationInMins, + this.isEnforcedDuration, + this.estimatedTimeInMins, + this.totalTimeTakenInMins, + this.windowType, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExecutionWindowSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("executionResourceId")) { + this.executionResourceId(model.getExecutionResourceId()); + } + 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("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleSubstate")) { + this.lifecycleSubstate(model.getLifecycleSubstate()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeEnded")) { + this.timeEnded(model.getTimeEnded()); + } + if (model.wasPropertyExplicitlySet("timeScheduled")) { + this.timeScheduled(model.getTimeScheduled()); + } + if (model.wasPropertyExplicitlySet("windowDurationInMins")) { + this.windowDurationInMins(model.getWindowDurationInMins()); + } + if (model.wasPropertyExplicitlySet("isEnforcedDuration")) { + this.isEnforcedDuration(model.getIsEnforcedDuration()); + } + if (model.wasPropertyExplicitlySet("estimatedTimeInMins")) { + this.estimatedTimeInMins(model.getEstimatedTimeInMins()); + } + if (model.wasPropertyExplicitlySet("totalTimeTakenInMins")) { + this.totalTimeTakenInMins(model.getTotalTimeTakenInMins()); + } + if (model.wasPropertyExplicitlySet("windowType")) { + this.windowType(model.getWindowType()); + } + 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/Content/General/Concepts/identifiers.htm) of the + * execution window. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution window. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution resource the execution window belongs to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("executionResourceId") + private final String executionResourceId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution resource the execution window belongs to. + * + * @return the value + */ + public String getExecutionResourceId() { + return executionResourceId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The user-friendly name for the execution window. The name does not need to be unique. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the execution window. The name does not need to be unique. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Description of the execution window. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the execution window. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** + * The current state of the Schedule Policy. Valid states are CREATED, SCHEDULED, IN_PROGRESS, + * FAILED, CANCELED, UPDATING, DELETED, SUCCEEDED and PARTIAL_SUCCESS. + */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Created("CREATED"), + Scheduled("SCHEDULED"), + InProgress("IN_PROGRESS"), + Failed("FAILED"), + Canceled("CANCELED"), + Updating("UPDATING"), + Deleted("DELETED"), + Succeeded("SUCCEEDED"), + PartialSuccess("PARTIAL_SUCCESS"), + Creating("CREATING"), + Deleting("DELETING"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current state of the Schedule Policy. Valid states are CREATED, SCHEDULED, IN_PROGRESS, + * FAILED, CANCELED, UPDATING, DELETED, SUCCEEDED and PARTIAL_SUCCESS. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the Schedule Policy. Valid states are CREATED, SCHEDULED, IN_PROGRESS, + * FAILED, CANCELED, UPDATING, DELETED, SUCCEEDED and PARTIAL_SUCCESS. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The current sub-state of the execution window. Valid states are DURATION_EXCEEDED, + * MAINTENANCE_IN_PROGRESS and WAITING. + */ + public enum LifecycleSubstate implements com.oracle.bmc.http.internal.BmcEnum { + DurationExceeded("DURATION_EXCEEDED"), + MaintenanceInProgress("MAINTENANCE_IN_PROGRESS"), + Waiting("WAITING"), + Rescheduled("RESCHEDULED"), + + /** + * 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(LifecycleSubstate.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleSubstate v : LifecycleSubstate.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleSubstate(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleSubstate create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleSubstate', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current sub-state of the execution window. Valid states are DURATION_EXCEEDED, + * MAINTENANCE_IN_PROGRESS and WAITING. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleSubstate") + private final LifecycleSubstate lifecycleSubstate; + + /** + * The current sub-state of the execution window. Valid states are DURATION_EXCEEDED, + * MAINTENANCE_IN_PROGRESS and WAITING. + * + * @return the value + */ + public LifecycleSubstate getLifecycleSubstate() { + return lifecycleSubstate; + } + + /** Additional information about the current lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Additional information about the current lifecycle state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** The date and time the execution window was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the execution window was created. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The last date and time that the execution window was updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The last date and time that the execution window was updated. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** The date and time that the execution window was started. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * The date and time that the execution window was started. + * + * @return the value + */ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** The date and time that the execution window ended. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnded") + private final java.util.Date timeEnded; + + /** + * The date and time that the execution window ended. + * + * @return the value + */ + public java.util.Date getTimeEnded() { + return timeEnded; + } + + /** The scheduled start date and time of the execution window. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduled") + private final java.util.Date timeScheduled; + + /** + * The scheduled start date and time of the execution window. + * + * @return the value + */ + public java.util.Date getTimeScheduled() { + return timeScheduled; + } + + /** + * Duration window allows user to set a duration they plan to allocate for Scheduling window. + * The duration is in minutes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("windowDurationInMins") + private final Integer windowDurationInMins; + + /** + * Duration window allows user to set a duration they plan to allocate for Scheduling window. + * The duration is in minutes. + * + * @return the value + */ + public Integer getWindowDurationInMins() { + return windowDurationInMins; + } + + /** + * Indicates if duration the user plans to allocate for scheduling window is strictly enforced. + * The default value is {@code FALSE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnforcedDuration") + private final Boolean isEnforcedDuration; + + /** + * Indicates if duration the user plans to allocate for scheduling window is strictly enforced. + * The default value is {@code FALSE}. + * + * @return the value + */ + public Boolean getIsEnforcedDuration() { + return isEnforcedDuration; + } + + /** The estimated time of the execution window in minutes. */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedTimeInMins") + private final Integer estimatedTimeInMins; + + /** + * The estimated time of the execution window in minutes. + * + * @return the value + */ + public Integer getEstimatedTimeInMins() { + return estimatedTimeInMins; + } + + /** The total time taken by corresponding resource activity in minutes. */ + @com.fasterxml.jackson.annotation.JsonProperty("totalTimeTakenInMins") + private final Integer totalTimeTakenInMins; + + /** + * The total time taken by corresponding resource activity in minutes. + * + * @return the value + */ + public Integer getTotalTimeTakenInMins() { + return totalTimeTakenInMins; + } + + /** The execution window is of PLANNED or UNPLANNED type. */ + public enum WindowType implements com.oracle.bmc.http.internal.BmcEnum { + Planned("PLANNED"), + Unplanned("UNPLANNED"), + + /** + * 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(WindowType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (WindowType v : WindowType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + WindowType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static WindowType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'WindowType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The execution window is of PLANNED or UNPLANNED type. */ + @com.fasterxml.jackson.annotation.JsonProperty("windowType") + private final WindowType windowType; + + /** + * The execution window is of PLANNED or UNPLANNED type. + * + * @return the value + */ + public WindowType getWindowType() { + return windowType; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @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("ExecutionWindowSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", executionResourceId=").append(String.valueOf(this.executionResourceId)); + 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(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleSubstate=").append(String.valueOf(this.lifecycleSubstate)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append(", timeEnded=").append(String.valueOf(this.timeEnded)); + sb.append(", timeScheduled=").append(String.valueOf(this.timeScheduled)); + sb.append(", windowDurationInMins=").append(String.valueOf(this.windowDurationInMins)); + sb.append(", isEnforcedDuration=").append(String.valueOf(this.isEnforcedDuration)); + sb.append(", estimatedTimeInMins=").append(String.valueOf(this.estimatedTimeInMins)); + sb.append(", totalTimeTakenInMins=").append(String.valueOf(this.totalTimeTakenInMins)); + sb.append(", windowType=").append(String.valueOf(this.windowType)); + 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 ExecutionWindowSummary)) { + return false; + } + + ExecutionWindowSummary other = (ExecutionWindowSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.executionResourceId, other.executionResourceId) + && 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.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleSubstate, other.lifecycleSubstate) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeEnded, other.timeEnded) + && java.util.Objects.equals(this.timeScheduled, other.timeScheduled) + && java.util.Objects.equals(this.windowDurationInMins, other.windowDurationInMins) + && java.util.Objects.equals(this.isEnforcedDuration, other.isEnforcedDuration) + && java.util.Objects.equals(this.estimatedTimeInMins, other.estimatedTimeInMins) + && java.util.Objects.equals(this.totalTimeTakenInMins, other.totalTimeTakenInMins) + && java.util.Objects.equals(this.windowType, other.windowType) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.executionResourceId == null + ? 43 + : this.executionResourceId.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.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleSubstate == null ? 43 : this.lifecycleSubstate.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); + result = (result * PRIME) + (this.timeEnded == null ? 43 : this.timeEnded.hashCode()); + result = + (result * PRIME) + + (this.timeScheduled == null ? 43 : this.timeScheduled.hashCode()); + result = + (result * PRIME) + + (this.windowDurationInMins == null + ? 43 + : this.windowDurationInMins.hashCode()); + result = + (result * PRIME) + + (this.isEnforcedDuration == null + ? 43 + : this.isEnforcedDuration.hashCode()); + result = + (result * PRIME) + + (this.estimatedTimeInMins == null + ? 43 + : this.estimatedTimeInMins.hashCode()); + result = + (result * PRIME) + + (this.totalTimeTakenInMins == null + ? 43 + : this.totalTimeTakenInMins.hashCode()); + result = (result * PRIME) + (this.windowType == null ? 43 : this.windowType.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/GranularMaintenanceHistoryDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/GranularMaintenanceHistoryDetails.java new file mode 100644 index 00000000000..f3e30fff8d6 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/GranularMaintenanceHistoryDetails.java @@ -0,0 +1,164 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Details of a granular maintenance history.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = GranularMaintenanceHistoryDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class GranularMaintenanceHistoryDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"executionWindow", "executionActions"}) + public GranularMaintenanceHistoryDetails( + ExecutionWindow executionWindow, java.util.List executionActions) { + super(); + this.executionWindow = executionWindow; + this.executionActions = executionActions; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("executionWindow") + private ExecutionWindow executionWindow; + + public Builder executionWindow(ExecutionWindow executionWindow) { + this.executionWindow = executionWindow; + this.__explicitlySet__.add("executionWindow"); + return this; + } + /** The list of execution actions for this granular maintenance history. */ + @com.fasterxml.jackson.annotation.JsonProperty("executionActions") + private java.util.List executionActions; + + /** + * The list of execution actions for this granular maintenance history. + * + * @param executionActions the value to set + * @return this builder + */ + public Builder executionActions(java.util.List executionActions) { + this.executionActions = executionActions; + this.__explicitlySet__.add("executionActions"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public GranularMaintenanceHistoryDetails build() { + GranularMaintenanceHistoryDetails model = + new GranularMaintenanceHistoryDetails( + this.executionWindow, this.executionActions); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GranularMaintenanceHistoryDetails model) { + if (model.wasPropertyExplicitlySet("executionWindow")) { + this.executionWindow(model.getExecutionWindow()); + } + if (model.wasPropertyExplicitlySet("executionActions")) { + this.executionActions(model.getExecutionActions()); + } + 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("executionWindow") + private final ExecutionWindow executionWindow; + + public ExecutionWindow getExecutionWindow() { + return executionWindow; + } + + /** The list of execution actions for this granular maintenance history. */ + @com.fasterxml.jackson.annotation.JsonProperty("executionActions") + private final java.util.List executionActions; + + /** + * The list of execution actions for this granular maintenance history. + * + * @return the value + */ + public java.util.List getExecutionActions() { + return executionActions; + } + + @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("GranularMaintenanceHistoryDetails("); + sb.append("super=").append(super.toString()); + sb.append("executionWindow=").append(String.valueOf(this.executionWindow)); + sb.append(", executionActions=").append(String.valueOf(this.executionActions)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GranularMaintenanceHistoryDetails)) { + return false; + } + + GranularMaintenanceHistoryDetails other = (GranularMaintenanceHistoryDetails) o; + return java.util.Objects.equals(this.executionWindow, other.executionWindow) + && java.util.Objects.equals(this.executionActions, other.executionActions) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.executionWindow == null ? 43 : this.executionWindow.hashCode()); + result = + (result * PRIME) + + (this.executionActions == null ? 43 : this.executionActions.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRun.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRun.java index 928388ac2e1..adb09220fd1 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRun.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRun.java @@ -52,6 +52,8 @@ public final class MaintenanceRun "estimatedPatchingTime", "currentPatchingComponent", "estimatedComponentPatchingStartTime", + "isMaintenanceRunGranular", + "totalTimeTakenInMins", "databaseSoftwareImageId" }) public MaintenanceRun( @@ -84,6 +86,8 @@ public MaintenanceRun( EstimatedPatchingTime estimatedPatchingTime, String currentPatchingComponent, java.util.Date estimatedComponentPatchingStartTime, + Boolean isMaintenanceRunGranular, + Integer totalTimeTakenInMins, String databaseSoftwareImageId) { super(); this.id = id; @@ -115,6 +119,8 @@ public MaintenanceRun( this.estimatedPatchingTime = estimatedPatchingTime; this.currentPatchingComponent = currentPatchingComponent; this.estimatedComponentPatchingStartTime = estimatedComponentPatchingStartTime; + this.isMaintenanceRunGranular = isMaintenanceRunGranular; + this.totalTimeTakenInMins = totalTimeTakenInMins; this.databaseSoftwareImageId = databaseSoftwareImageId; } @@ -598,6 +604,36 @@ public Builder estimatedComponentPatchingStartTime( this.__explicitlySet__.add("estimatedComponentPatchingStartTime"); return this; } + /** If {@code FALSE}, the maintenance run doesn't support granular maintenance. */ + @com.fasterxml.jackson.annotation.JsonProperty("isMaintenanceRunGranular") + private Boolean isMaintenanceRunGranular; + + /** + * If {@code FALSE}, the maintenance run doesn't support granular maintenance. + * + * @param isMaintenanceRunGranular the value to set + * @return this builder + */ + public Builder isMaintenanceRunGranular(Boolean isMaintenanceRunGranular) { + this.isMaintenanceRunGranular = isMaintenanceRunGranular; + this.__explicitlySet__.add("isMaintenanceRunGranular"); + return this; + } + /** The total time taken by corresponding resource activity in minutes. */ + @com.fasterxml.jackson.annotation.JsonProperty("totalTimeTakenInMins") + private Integer totalTimeTakenInMins; + + /** + * The total time taken by corresponding resource activity in minutes. + * + * @param totalTimeTakenInMins the value to set + * @return this builder + */ + public Builder totalTimeTakenInMins(Integer totalTimeTakenInMins) { + this.totalTimeTakenInMins = totalTimeTakenInMins; + this.__explicitlySet__.add("totalTimeTakenInMins"); + return this; + } /** * The Autonomous Database Software Image * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) @@ -653,6 +689,8 @@ public MaintenanceRun build() { this.estimatedPatchingTime, this.currentPatchingComponent, this.estimatedComponentPatchingStartTime, + this.isMaintenanceRunGranular, + this.totalTimeTakenInMins, this.databaseSoftwareImageId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -750,6 +788,12 @@ public Builder copy(MaintenanceRun model) { this.estimatedComponentPatchingStartTime( model.getEstimatedComponentPatchingStartTime()); } + if (model.wasPropertyExplicitlySet("isMaintenanceRunGranular")) { + this.isMaintenanceRunGranular(model.getIsMaintenanceRunGranular()); + } + if (model.wasPropertyExplicitlySet("totalTimeTakenInMins")) { + this.totalTimeTakenInMins(model.getTotalTimeTakenInMins()); + } if (model.wasPropertyExplicitlySet("databaseSoftwareImageId")) { this.databaseSoftwareImageId(model.getDatabaseSoftwareImageId()); } @@ -1493,6 +1537,32 @@ public java.util.Date getEstimatedComponentPatchingStartTime() { return estimatedComponentPatchingStartTime; } + /** If {@code FALSE}, the maintenance run doesn't support granular maintenance. */ + @com.fasterxml.jackson.annotation.JsonProperty("isMaintenanceRunGranular") + private final Boolean isMaintenanceRunGranular; + + /** + * If {@code FALSE}, the maintenance run doesn't support granular maintenance. + * + * @return the value + */ + public Boolean getIsMaintenanceRunGranular() { + return isMaintenanceRunGranular; + } + + /** The total time taken by corresponding resource activity in minutes. */ + @com.fasterxml.jackson.annotation.JsonProperty("totalTimeTakenInMins") + private final Integer totalTimeTakenInMins; + + /** + * The total time taken by corresponding resource activity in minutes. + * + * @return the value + */ + public Integer getTotalTimeTakenInMins() { + return totalTimeTakenInMins; + } + /** * The Autonomous Database Software Image * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) @@ -1560,6 +1630,9 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.currentPatchingComponent)); sb.append(", estimatedComponentPatchingStartTime=") .append(String.valueOf(this.estimatedComponentPatchingStartTime)); + sb.append(", isMaintenanceRunGranular=") + .append(String.valueOf(this.isMaintenanceRunGranular)); + sb.append(", totalTimeTakenInMins=").append(String.valueOf(this.totalTimeTakenInMins)); sb.append(", databaseSoftwareImageId=") .append(String.valueOf(this.databaseSoftwareImageId)); sb.append(")"); @@ -1614,6 +1687,9 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.estimatedComponentPatchingStartTime, other.estimatedComponentPatchingStartTime) + && java.util.Objects.equals( + this.isMaintenanceRunGranular, other.isMaintenanceRunGranular) + && java.util.Objects.equals(this.totalTimeTakenInMins, other.totalTimeTakenInMins) && java.util.Objects.equals( this.databaseSoftwareImageId, other.databaseSoftwareImageId) && super.equals(other); @@ -1720,6 +1796,16 @@ public int hashCode() { + (this.estimatedComponentPatchingStartTime == null ? 43 : this.estimatedComponentPatchingStartTime.hashCode()); + result = + (result * PRIME) + + (this.isMaintenanceRunGranular == null + ? 43 + : this.isMaintenanceRunGranular.hashCode()); + result = + (result * PRIME) + + (this.totalTimeTakenInMins == null + ? 43 + : this.totalTimeTakenInMins.hashCode()); result = (result * PRIME) + (this.databaseSoftwareImageId == null diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRunHistory.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRunHistory.java index da0280227cc..3c67a86809d 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRunHistory.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRunHistory.java @@ -23,15 +23,25 @@ public final class MaintenanceRunHistory extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"id", "maintenanceRunDetails", "dbServersHistoryDetails"}) + @java.beans.ConstructorProperties({ + "id", + "maintenanceRunDetails", + "dbServersHistoryDetails", + "currentExecutionWindow", + "granularMaintenanceHistory" + }) public MaintenanceRunHistory( String id, MaintenanceRunSummary maintenanceRunDetails, - java.util.List dbServersHistoryDetails) { + java.util.List dbServersHistoryDetails, + String currentExecutionWindow, + java.util.List granularMaintenanceHistory) { super(); this.id = id; this.maintenanceRunDetails = maintenanceRunDetails; this.dbServersHistoryDetails = dbServersHistoryDetails; + this.currentExecutionWindow = currentExecutionWindow; + this.granularMaintenanceHistory = granularMaintenanceHistory; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -76,6 +86,37 @@ public Builder dbServersHistoryDetails( this.__explicitlySet__.add("dbServersHistoryDetails"); return this; } + /** The OCID of the current execution window. */ + @com.fasterxml.jackson.annotation.JsonProperty("currentExecutionWindow") + private String currentExecutionWindow; + + /** + * The OCID of the current execution window. + * + * @param currentExecutionWindow the value to set + * @return this builder + */ + public Builder currentExecutionWindow(String currentExecutionWindow) { + this.currentExecutionWindow = currentExecutionWindow; + this.__explicitlySet__.add("currentExecutionWindow"); + return this; + } + /** The list of granular maintenance history details. */ + @com.fasterxml.jackson.annotation.JsonProperty("granularMaintenanceHistory") + private java.util.List granularMaintenanceHistory; + + /** + * The list of granular maintenance history details. + * + * @param granularMaintenanceHistory the value to set + * @return this builder + */ + public Builder granularMaintenanceHistory( + java.util.List granularMaintenanceHistory) { + this.granularMaintenanceHistory = granularMaintenanceHistory; + this.__explicitlySet__.add("granularMaintenanceHistory"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -83,7 +124,11 @@ public Builder dbServersHistoryDetails( public MaintenanceRunHistory build() { MaintenanceRunHistory model = new MaintenanceRunHistory( - this.id, this.maintenanceRunDetails, this.dbServersHistoryDetails); + this.id, + this.maintenanceRunDetails, + this.dbServersHistoryDetails, + this.currentExecutionWindow, + this.granularMaintenanceHistory); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -101,6 +146,12 @@ public Builder copy(MaintenanceRunHistory model) { if (model.wasPropertyExplicitlySet("dbServersHistoryDetails")) { this.dbServersHistoryDetails(model.getDbServersHistoryDetails()); } + if (model.wasPropertyExplicitlySet("currentExecutionWindow")) { + this.currentExecutionWindow(model.getCurrentExecutionWindow()); + } + if (model.wasPropertyExplicitlySet("granularMaintenanceHistory")) { + this.granularMaintenanceHistory(model.getGranularMaintenanceHistory()); + } return this; } } @@ -147,6 +198,32 @@ public java.util.List getDbServersHistoryDetails() { return dbServersHistoryDetails; } + /** The OCID of the current execution window. */ + @com.fasterxml.jackson.annotation.JsonProperty("currentExecutionWindow") + private final String currentExecutionWindow; + + /** + * The OCID of the current execution window. + * + * @return the value + */ + public String getCurrentExecutionWindow() { + return currentExecutionWindow; + } + + /** The list of granular maintenance history details. */ + @com.fasterxml.jackson.annotation.JsonProperty("granularMaintenanceHistory") + private final java.util.List granularMaintenanceHistory; + + /** + * The list of granular maintenance history details. + * + * @return the value + */ + public java.util.List getGranularMaintenanceHistory() { + return granularMaintenanceHistory; + } + @Override public String toString() { return this.toString(true); @@ -166,6 +243,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", maintenanceRunDetails=").append(String.valueOf(this.maintenanceRunDetails)); sb.append(", dbServersHistoryDetails=") .append(String.valueOf(this.dbServersHistoryDetails)); + sb.append(", currentExecutionWindow=").append(String.valueOf(this.currentExecutionWindow)); + sb.append(", granularMaintenanceHistory=") + .append(String.valueOf(this.granularMaintenanceHistory)); sb.append(")"); return sb.toString(); } @@ -184,6 +264,10 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.maintenanceRunDetails, other.maintenanceRunDetails) && java.util.Objects.equals( this.dbServersHistoryDetails, other.dbServersHistoryDetails) + && java.util.Objects.equals( + this.currentExecutionWindow, other.currentExecutionWindow) + && java.util.Objects.equals( + this.granularMaintenanceHistory, other.granularMaintenanceHistory) && super.equals(other); } @@ -202,6 +286,16 @@ public int hashCode() { + (this.dbServersHistoryDetails == null ? 43 : this.dbServersHistoryDetails.hashCode()); + result = + (result * PRIME) + + (this.currentExecutionWindow == null + ? 43 + : this.currentExecutionWindow.hashCode()); + result = + (result * PRIME) + + (this.granularMaintenanceHistory == null + ? 43 + : this.granularMaintenanceHistory.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRunHistorySummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRunHistorySummary.java index 2f54e116950..a1338c40161 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRunHistorySummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRunHistorySummary.java @@ -23,15 +23,25 @@ public final class MaintenanceRunHistorySummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"id", "maintenanceRunDetails", "dbServersHistoryDetails"}) + @java.beans.ConstructorProperties({ + "id", + "maintenanceRunDetails", + "dbServersHistoryDetails", + "currentExecutionWindow", + "granularMaintenanceHistory" + }) public MaintenanceRunHistorySummary( String id, MaintenanceRunSummary maintenanceRunDetails, - java.util.List dbServersHistoryDetails) { + java.util.List dbServersHistoryDetails, + String currentExecutionWindow, + java.util.List granularMaintenanceHistory) { super(); this.id = id; this.maintenanceRunDetails = maintenanceRunDetails; this.dbServersHistoryDetails = dbServersHistoryDetails; + this.currentExecutionWindow = currentExecutionWindow; + this.granularMaintenanceHistory = granularMaintenanceHistory; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -76,6 +86,37 @@ public Builder dbServersHistoryDetails( this.__explicitlySet__.add("dbServersHistoryDetails"); return this; } + /** The OCID of the current execution window. */ + @com.fasterxml.jackson.annotation.JsonProperty("currentExecutionWindow") + private String currentExecutionWindow; + + /** + * The OCID of the current execution window. + * + * @param currentExecutionWindow the value to set + * @return this builder + */ + public Builder currentExecutionWindow(String currentExecutionWindow) { + this.currentExecutionWindow = currentExecutionWindow; + this.__explicitlySet__.add("currentExecutionWindow"); + return this; + } + /** The list of granular maintenance history details. */ + @com.fasterxml.jackson.annotation.JsonProperty("granularMaintenanceHistory") + private java.util.List granularMaintenanceHistory; + + /** + * The list of granular maintenance history details. + * + * @param granularMaintenanceHistory the value to set + * @return this builder + */ + public Builder granularMaintenanceHistory( + java.util.List granularMaintenanceHistory) { + this.granularMaintenanceHistory = granularMaintenanceHistory; + this.__explicitlySet__.add("granularMaintenanceHistory"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -83,7 +124,11 @@ public Builder dbServersHistoryDetails( public MaintenanceRunHistorySummary build() { MaintenanceRunHistorySummary model = new MaintenanceRunHistorySummary( - this.id, this.maintenanceRunDetails, this.dbServersHistoryDetails); + this.id, + this.maintenanceRunDetails, + this.dbServersHistoryDetails, + this.currentExecutionWindow, + this.granularMaintenanceHistory); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -101,6 +146,12 @@ public Builder copy(MaintenanceRunHistorySummary model) { if (model.wasPropertyExplicitlySet("dbServersHistoryDetails")) { this.dbServersHistoryDetails(model.getDbServersHistoryDetails()); } + if (model.wasPropertyExplicitlySet("currentExecutionWindow")) { + this.currentExecutionWindow(model.getCurrentExecutionWindow()); + } + if (model.wasPropertyExplicitlySet("granularMaintenanceHistory")) { + this.granularMaintenanceHistory(model.getGranularMaintenanceHistory()); + } return this; } } @@ -147,6 +198,32 @@ public java.util.List getDbServersHistoryDetails() { return dbServersHistoryDetails; } + /** The OCID of the current execution window. */ + @com.fasterxml.jackson.annotation.JsonProperty("currentExecutionWindow") + private final String currentExecutionWindow; + + /** + * The OCID of the current execution window. + * + * @return the value + */ + public String getCurrentExecutionWindow() { + return currentExecutionWindow; + } + + /** The list of granular maintenance history details. */ + @com.fasterxml.jackson.annotation.JsonProperty("granularMaintenanceHistory") + private final java.util.List granularMaintenanceHistory; + + /** + * The list of granular maintenance history details. + * + * @return the value + */ + public java.util.List getGranularMaintenanceHistory() { + return granularMaintenanceHistory; + } + @Override public String toString() { return this.toString(true); @@ -166,6 +243,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", maintenanceRunDetails=").append(String.valueOf(this.maintenanceRunDetails)); sb.append(", dbServersHistoryDetails=") .append(String.valueOf(this.dbServersHistoryDetails)); + sb.append(", currentExecutionWindow=").append(String.valueOf(this.currentExecutionWindow)); + sb.append(", granularMaintenanceHistory=") + .append(String.valueOf(this.granularMaintenanceHistory)); sb.append(")"); return sb.toString(); } @@ -184,6 +264,10 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.maintenanceRunDetails, other.maintenanceRunDetails) && java.util.Objects.equals( this.dbServersHistoryDetails, other.dbServersHistoryDetails) + && java.util.Objects.equals( + this.currentExecutionWindow, other.currentExecutionWindow) + && java.util.Objects.equals( + this.granularMaintenanceHistory, other.granularMaintenanceHistory) && super.equals(other); } @@ -202,6 +286,16 @@ public int hashCode() { + (this.dbServersHistoryDetails == null ? 43 : this.dbServersHistoryDetails.hashCode()); + result = + (result * PRIME) + + (this.currentExecutionWindow == null + ? 43 + : this.currentExecutionWindow.hashCode()); + result = + (result * PRIME) + + (this.granularMaintenanceHistory == null + ? 43 + : this.granularMaintenanceHistory.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRunSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRunSummary.java index f07e0b5cc50..c857ea60c8e 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRunSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRunSummary.java @@ -53,6 +53,8 @@ public final class MaintenanceRunSummary "estimatedPatchingTime", "currentPatchingComponent", "estimatedComponentPatchingStartTime", + "isMaintenanceRunGranular", + "totalTimeTakenInMins", "databaseSoftwareImageId" }) public MaintenanceRunSummary( @@ -85,6 +87,8 @@ public MaintenanceRunSummary( EstimatedPatchingTime estimatedPatchingTime, String currentPatchingComponent, java.util.Date estimatedComponentPatchingStartTime, + Boolean isMaintenanceRunGranular, + Integer totalTimeTakenInMins, String databaseSoftwareImageId) { super(); this.id = id; @@ -116,6 +120,8 @@ public MaintenanceRunSummary( this.estimatedPatchingTime = estimatedPatchingTime; this.currentPatchingComponent = currentPatchingComponent; this.estimatedComponentPatchingStartTime = estimatedComponentPatchingStartTime; + this.isMaintenanceRunGranular = isMaintenanceRunGranular; + this.totalTimeTakenInMins = totalTimeTakenInMins; this.databaseSoftwareImageId = databaseSoftwareImageId; } @@ -599,6 +605,36 @@ public Builder estimatedComponentPatchingStartTime( this.__explicitlySet__.add("estimatedComponentPatchingStartTime"); return this; } + /** If {@code FALSE}, the maintenance run doesn't support granular maintenance. */ + @com.fasterxml.jackson.annotation.JsonProperty("isMaintenanceRunGranular") + private Boolean isMaintenanceRunGranular; + + /** + * If {@code FALSE}, the maintenance run doesn't support granular maintenance. + * + * @param isMaintenanceRunGranular the value to set + * @return this builder + */ + public Builder isMaintenanceRunGranular(Boolean isMaintenanceRunGranular) { + this.isMaintenanceRunGranular = isMaintenanceRunGranular; + this.__explicitlySet__.add("isMaintenanceRunGranular"); + return this; + } + /** The total time taken by corresponding resource activity in minutes. */ + @com.fasterxml.jackson.annotation.JsonProperty("totalTimeTakenInMins") + private Integer totalTimeTakenInMins; + + /** + * The total time taken by corresponding resource activity in minutes. + * + * @param totalTimeTakenInMins the value to set + * @return this builder + */ + public Builder totalTimeTakenInMins(Integer totalTimeTakenInMins) { + this.totalTimeTakenInMins = totalTimeTakenInMins; + this.__explicitlySet__.add("totalTimeTakenInMins"); + return this; + } /** * The Autonomous Database Software Image * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) @@ -654,6 +690,8 @@ public MaintenanceRunSummary build() { this.estimatedPatchingTime, this.currentPatchingComponent, this.estimatedComponentPatchingStartTime, + this.isMaintenanceRunGranular, + this.totalTimeTakenInMins, this.databaseSoftwareImageId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -751,6 +789,12 @@ public Builder copy(MaintenanceRunSummary model) { this.estimatedComponentPatchingStartTime( model.getEstimatedComponentPatchingStartTime()); } + if (model.wasPropertyExplicitlySet("isMaintenanceRunGranular")) { + this.isMaintenanceRunGranular(model.getIsMaintenanceRunGranular()); + } + if (model.wasPropertyExplicitlySet("totalTimeTakenInMins")) { + this.totalTimeTakenInMins(model.getTotalTimeTakenInMins()); + } if (model.wasPropertyExplicitlySet("databaseSoftwareImageId")) { this.databaseSoftwareImageId(model.getDatabaseSoftwareImageId()); } @@ -1494,6 +1538,32 @@ public java.util.Date getEstimatedComponentPatchingStartTime() { return estimatedComponentPatchingStartTime; } + /** If {@code FALSE}, the maintenance run doesn't support granular maintenance. */ + @com.fasterxml.jackson.annotation.JsonProperty("isMaintenanceRunGranular") + private final Boolean isMaintenanceRunGranular; + + /** + * If {@code FALSE}, the maintenance run doesn't support granular maintenance. + * + * @return the value + */ + public Boolean getIsMaintenanceRunGranular() { + return isMaintenanceRunGranular; + } + + /** The total time taken by corresponding resource activity in minutes. */ + @com.fasterxml.jackson.annotation.JsonProperty("totalTimeTakenInMins") + private final Integer totalTimeTakenInMins; + + /** + * The total time taken by corresponding resource activity in minutes. + * + * @return the value + */ + public Integer getTotalTimeTakenInMins() { + return totalTimeTakenInMins; + } + /** * The Autonomous Database Software Image * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) @@ -1561,6 +1631,9 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.currentPatchingComponent)); sb.append(", estimatedComponentPatchingStartTime=") .append(String.valueOf(this.estimatedComponentPatchingStartTime)); + sb.append(", isMaintenanceRunGranular=") + .append(String.valueOf(this.isMaintenanceRunGranular)); + sb.append(", totalTimeTakenInMins=").append(String.valueOf(this.totalTimeTakenInMins)); sb.append(", databaseSoftwareImageId=") .append(String.valueOf(this.databaseSoftwareImageId)); sb.append(")"); @@ -1615,6 +1688,9 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.estimatedComponentPatchingStartTime, other.estimatedComponentPatchingStartTime) + && java.util.Objects.equals( + this.isMaintenanceRunGranular, other.isMaintenanceRunGranular) + && java.util.Objects.equals(this.totalTimeTakenInMins, other.totalTimeTakenInMins) && java.util.Objects.equals( this.databaseSoftwareImageId, other.databaseSoftwareImageId) && super.equals(other); @@ -1721,6 +1797,16 @@ public int hashCode() { + (this.estimatedComponentPatchingStartTime == null ? 43 : this.estimatedComponentPatchingStartTime.hashCode()); + result = + (result * PRIME) + + (this.isMaintenanceRunGranular == null + ? 43 + : this.isMaintenanceRunGranular.hashCode()); + result = + (result * PRIME) + + (this.totalTimeTakenInMins == null + ? 43 + : this.totalTimeTakenInMins.hashCode()); result = (result * PRIME) + (this.databaseSoftwareImageId == null diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/MoveExecutionActionMemberDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/MoveExecutionActionMemberDetails.java new file mode 100644 index 00000000000..fc0b52601e4 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/MoveExecutionActionMemberDetails.java @@ -0,0 +1,356 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Request to move an execution action member to an execution action resource from another.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MoveExecutionActionMemberDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class MoveExecutionActionMemberDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "sourceExecutionActionId", + "executionActionMemberId", + "executionActionMemberCount", + "freeformTags", + "definedTags" + }) + public MoveExecutionActionMemberDetails( + String sourceExecutionActionId, + String executionActionMemberId, + Integer executionActionMemberCount, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.sourceExecutionActionId = sourceExecutionActionId; + this.executionActionMemberId = executionActionMemberId; + this.executionActionMemberCount = executionActionMemberCount; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * source execution action resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceExecutionActionId") + private String sourceExecutionActionId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * source execution action resource. + * + * @param sourceExecutionActionId the value to set + * @return this builder + */ + public Builder sourceExecutionActionId(String sourceExecutionActionId) { + this.sourceExecutionActionId = sourceExecutionActionId; + this.__explicitlySet__.add("sourceExecutionActionId"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution action member to be moved. + */ + @com.fasterxml.jackson.annotation.JsonProperty("executionActionMemberId") + private String executionActionMemberId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution action member to be moved. + * + * @param executionActionMemberId the value to set + * @return this builder + */ + public Builder executionActionMemberId(String executionActionMemberId) { + this.executionActionMemberId = executionActionMemberId; + this.__explicitlySet__.add("executionActionMemberId"); + return this; + } + /** The number of execution action member without ocids to be moved. */ + @com.fasterxml.jackson.annotation.JsonProperty("executionActionMemberCount") + private Integer executionActionMemberCount; + + /** + * The number of execution action member without ocids to be moved. + * + * @param executionActionMemberCount the value to set + * @return this builder + */ + public Builder executionActionMemberCount(Integer executionActionMemberCount) { + this.executionActionMemberCount = executionActionMemberCount; + this.__explicitlySet__.add("executionActionMemberCount"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @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 MoveExecutionActionMemberDetails build() { + MoveExecutionActionMemberDetails model = + new MoveExecutionActionMemberDetails( + this.sourceExecutionActionId, + this.executionActionMemberId, + this.executionActionMemberCount, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MoveExecutionActionMemberDetails model) { + if (model.wasPropertyExplicitlySet("sourceExecutionActionId")) { + this.sourceExecutionActionId(model.getSourceExecutionActionId()); + } + if (model.wasPropertyExplicitlySet("executionActionMemberId")) { + this.executionActionMemberId(model.getExecutionActionMemberId()); + } + if (model.wasPropertyExplicitlySet("executionActionMemberCount")) { + this.executionActionMemberCount(model.getExecutionActionMemberCount()); + } + 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/Content/General/Concepts/identifiers.htm) of the + * source execution action resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceExecutionActionId") + private final String sourceExecutionActionId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * source execution action resource. + * + * @return the value + */ + public String getSourceExecutionActionId() { + return sourceExecutionActionId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution action member to be moved. + */ + @com.fasterxml.jackson.annotation.JsonProperty("executionActionMemberId") + private final String executionActionMemberId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution action member to be moved. + * + * @return the value + */ + public String getExecutionActionMemberId() { + return executionActionMemberId; + } + + /** The number of execution action member without ocids to be moved. */ + @com.fasterxml.jackson.annotation.JsonProperty("executionActionMemberCount") + private final Integer executionActionMemberCount; + + /** + * The number of execution action member without ocids to be moved. + * + * @return the value + */ + public Integer getExecutionActionMemberCount() { + return executionActionMemberCount; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @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("MoveExecutionActionMemberDetails("); + sb.append("super=").append(super.toString()); + sb.append("sourceExecutionActionId=").append(String.valueOf(this.sourceExecutionActionId)); + sb.append(", executionActionMemberId=") + .append(String.valueOf(this.executionActionMemberId)); + sb.append(", executionActionMemberCount=") + .append(String.valueOf(this.executionActionMemberCount)); + 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 MoveExecutionActionMemberDetails)) { + return false; + } + + MoveExecutionActionMemberDetails other = (MoveExecutionActionMemberDetails) o; + return java.util.Objects.equals(this.sourceExecutionActionId, other.sourceExecutionActionId) + && java.util.Objects.equals( + this.executionActionMemberId, other.executionActionMemberId) + && java.util.Objects.equals( + this.executionActionMemberCount, other.executionActionMemberCount) + && 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.sourceExecutionActionId == null + ? 43 + : this.sourceExecutionActionId.hashCode()); + result = + (result * PRIME) + + (this.executionActionMemberId == null + ? 43 + : this.executionActionMemberId.hashCode()); + result = + (result * PRIME) + + (this.executionActionMemberCount == null + ? 43 + : this.executionActionMemberCount.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/RecommendedScheduledActionSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/RecommendedScheduledActionSummary.java new file mode 100644 index 00000000000..af9b5043cc3 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/RecommendedScheduledActionSummary.java @@ -0,0 +1,440 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Details of the scheduled action that is used in getRecommendedScheduledActions.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RecommendedScheduledActionSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RecommendedScheduledActionSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "actionOrder", + "actionType", + "displayName", + "schedulingWindowId", + "estimatedTimeInMins", + "actionMembers", + "actionParams" + }) + public RecommendedScheduledActionSummary( + Integer actionOrder, + ActionType actionType, + String displayName, + String schedulingWindowId, + Integer estimatedTimeInMins, + java.util.List actionMembers, + java.util.Map actionParams) { + super(); + this.actionOrder = actionOrder; + this.actionType = actionType; + this.displayName = displayName; + this.schedulingWindowId = schedulingWindowId; + this.estimatedTimeInMins = estimatedTimeInMins; + this.actionMembers = actionMembers; + this.actionParams = actionParams; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The order of the scheduled action. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionOrder") + private Integer actionOrder; + + /** + * The order of the scheduled action. + * + * @param actionOrder the value to set + * @return this builder + */ + public Builder actionOrder(Integer actionOrder) { + this.actionOrder = actionOrder; + this.__explicitlySet__.add("actionOrder"); + return this; + } + /** The type of the scheduled action being performed */ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private ActionType actionType; + + /** + * The type of the scheduled action being performed + * + * @param actionType the value to set + * @return this builder + */ + public Builder actionType(ActionType actionType) { + this.actionType = actionType; + this.__explicitlySet__.add("actionType"); + return this; + } + /** + * Description of the scheduled action being performed, i.e. apply full update to DB Servers + * 1,2,3,4. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Description of the scheduled action being performed, i.e. apply full update to DB Servers + * 1,2,3,4. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The id of the scheduling window this scheduled action belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("schedulingWindowId") + private String schedulingWindowId; + + /** + * The id of the scheduling window this scheduled action belongs to. + * + * @param schedulingWindowId the value to set + * @return this builder + */ + public Builder schedulingWindowId(String schedulingWindowId) { + this.schedulingWindowId = schedulingWindowId; + this.__explicitlySet__.add("schedulingWindowId"); + return this; + } + /** The estimated patching time in minutes for the entire scheduled action. */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedTimeInMins") + private Integer estimatedTimeInMins; + + /** + * The estimated patching time in minutes for the entire scheduled action. + * + * @param estimatedTimeInMins the value to set + * @return this builder + */ + public Builder estimatedTimeInMins(Integer estimatedTimeInMins) { + this.estimatedTimeInMins = estimatedTimeInMins; + this.__explicitlySet__.add("estimatedTimeInMins"); + return this; + } + /** The list of action members in a scheduled action. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionMembers") + private java.util.List actionMembers; + + /** + * The list of action members in a scheduled action. + * + * @param actionMembers the value to set + * @return this builder + */ + public Builder actionMembers(java.util.List actionMembers) { + this.actionMembers = actionMembers; + this.__explicitlySet__.add("actionMembers"); + return this; + } + /** + * Map where a key value pair describes the specific action + * parameter. Example: {@code {"count": "3"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("actionParams") + private java.util.Map actionParams; + + /** + * Map where a key value pair describes the specific action + * parameter. Example: {@code {"count": "3"}} + * + * @param actionParams the value to set + * @return this builder + */ + public Builder actionParams(java.util.Map actionParams) { + this.actionParams = actionParams; + this.__explicitlySet__.add("actionParams"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RecommendedScheduledActionSummary build() { + RecommendedScheduledActionSummary model = + new RecommendedScheduledActionSummary( + this.actionOrder, + this.actionType, + this.displayName, + this.schedulingWindowId, + this.estimatedTimeInMins, + this.actionMembers, + this.actionParams); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RecommendedScheduledActionSummary model) { + if (model.wasPropertyExplicitlySet("actionOrder")) { + this.actionOrder(model.getActionOrder()); + } + if (model.wasPropertyExplicitlySet("actionType")) { + this.actionType(model.getActionType()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("schedulingWindowId")) { + this.schedulingWindowId(model.getSchedulingWindowId()); + } + if (model.wasPropertyExplicitlySet("estimatedTimeInMins")) { + this.estimatedTimeInMins(model.getEstimatedTimeInMins()); + } + if (model.wasPropertyExplicitlySet("actionMembers")) { + this.actionMembers(model.getActionMembers()); + } + if (model.wasPropertyExplicitlySet("actionParams")) { + this.actionParams(model.getActionParams()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The order of the scheduled action. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionOrder") + private final Integer actionOrder; + + /** + * The order of the scheduled action. + * + * @return the value + */ + public Integer getActionOrder() { + return actionOrder; + } + + /** The type of the scheduled action being performed */ + public enum ActionType implements com.oracle.bmc.http.internal.BmcEnum { + DbServerFullSoftwareUpdate("DB_SERVER_FULL_SOFTWARE_UPDATE"), + StorageServerFullSoftwareUpdate("STORAGE_SERVER_FULL_SOFTWARE_UPDATE"), + NetworkSwitchFullSoftwareUpdate("NETWORK_SWITCH_FULL_SOFTWARE_UPDATE"), + + /** + * 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; + } + }; + /** The type of the scheduled action being performed */ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private final ActionType actionType; + + /** + * The type of the scheduled action being performed + * + * @return the value + */ + public ActionType getActionType() { + return actionType; + } + + /** + * Description of the scheduled action being performed, i.e. apply full update to DB Servers + * 1,2,3,4. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Description of the scheduled action being performed, i.e. apply full update to DB Servers + * 1,2,3,4. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The id of the scheduling window this scheduled action belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("schedulingWindowId") + private final String schedulingWindowId; + + /** + * The id of the scheduling window this scheduled action belongs to. + * + * @return the value + */ + public String getSchedulingWindowId() { + return schedulingWindowId; + } + + /** The estimated patching time in minutes for the entire scheduled action. */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedTimeInMins") + private final Integer estimatedTimeInMins; + + /** + * The estimated patching time in minutes for the entire scheduled action. + * + * @return the value + */ + public Integer getEstimatedTimeInMins() { + return estimatedTimeInMins; + } + + /** The list of action members in a scheduled action. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionMembers") + private final java.util.List actionMembers; + + /** + * The list of action members in a scheduled action. + * + * @return the value + */ + public java.util.List getActionMembers() { + return actionMembers; + } + + /** + * Map where a key value pair describes the specific action parameter. + * Example: {@code {"count": "3"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("actionParams") + private final java.util.Map actionParams; + + /** + * Map where a key value pair describes the specific action parameter. + * Example: {@code {"count": "3"}} + * + * @return the value + */ + public java.util.Map getActionParams() { + return actionParams; + } + + @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("RecommendedScheduledActionSummary("); + sb.append("super=").append(super.toString()); + sb.append("actionOrder=").append(String.valueOf(this.actionOrder)); + sb.append(", actionType=").append(String.valueOf(this.actionType)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", schedulingWindowId=").append(String.valueOf(this.schedulingWindowId)); + sb.append(", estimatedTimeInMins=").append(String.valueOf(this.estimatedTimeInMins)); + sb.append(", actionMembers=").append(String.valueOf(this.actionMembers)); + sb.append(", actionParams=").append(String.valueOf(this.actionParams)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RecommendedScheduledActionSummary)) { + return false; + } + + RecommendedScheduledActionSummary other = (RecommendedScheduledActionSummary) o; + return java.util.Objects.equals(this.actionOrder, other.actionOrder) + && java.util.Objects.equals(this.actionType, other.actionType) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.schedulingWindowId, other.schedulingWindowId) + && java.util.Objects.equals(this.estimatedTimeInMins, other.estimatedTimeInMins) + && java.util.Objects.equals(this.actionMembers, other.actionMembers) + && java.util.Objects.equals(this.actionParams, other.actionParams) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.actionOrder == null ? 43 : this.actionOrder.hashCode()); + result = (result * PRIME) + (this.actionType == null ? 43 : this.actionType.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.schedulingWindowId == null + ? 43 + : this.schedulingWindowId.hashCode()); + result = + (result * PRIME) + + (this.estimatedTimeInMins == null + ? 43 + : this.estimatedTimeInMins.hashCode()); + result = + (result * PRIME) + + (this.actionMembers == null ? 43 : this.actionMembers.hashCode()); + result = (result * PRIME) + (this.actionParams == null ? 43 : this.actionParams.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/RecommendedScheduledActionsCollection.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/RecommendedScheduledActionsCollection.java new file mode 100644 index 00000000000..8c443655096 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/RecommendedScheduledActionsCollection.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.database.model; + +/** + * A list of scheduled actions. Contains RecommendedScheduledAction items.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RecommendedScheduledActionsCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RecommendedScheduledActionsCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public RecommendedScheduledActionsCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of scheduled actions. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of scheduled actions. + * + * @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 RecommendedScheduledActionsCollection build() { + RecommendedScheduledActionsCollection model = + new RecommendedScheduledActionsCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RecommendedScheduledActionsCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of scheduled actions. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of scheduled actions. + * + * @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("RecommendedScheduledActionsCollection("); + 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 RecommendedScheduledActionsCollection)) { + return false; + } + + RecommendedScheduledActionsCollection other = (RecommendedScheduledActionsCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ReorderExecutionActionDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ReorderExecutionActionDetails.java new file mode 100644 index 00000000000..533cb3ab6e6 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ReorderExecutionActionDetails.java @@ -0,0 +1,257 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Describes the ordering list of execution actions for the execution window.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ReorderExecutionActionDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ReorderExecutionActionDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"executionActionOrderList", "freeformTags", "definedTags"}) + public ReorderExecutionActionDetails( + java.util.List executionActionOrderList, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.executionActionOrderList = executionActionOrderList; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * List of action resources in a specific order. Example: [{actionOrder: 1, + * actionResourceId: "resourceId1"}, {actionOrder: 2, actionResourceId: "resourceId2"}] + */ + @com.fasterxml.jackson.annotation.JsonProperty("executionActionOrderList") + private java.util.List executionActionOrderList; + + /** + * List of action resources in a specific order. Example: [{actionOrder: 1, + * actionResourceId: "resourceId1"}, {actionOrder: 2, actionResourceId: "resourceId2"}] + * + * @param executionActionOrderList the value to set + * @return this builder + */ + public Builder executionActionOrderList( + java.util.List executionActionOrderList) { + this.executionActionOrderList = executionActionOrderList; + this.__explicitlySet__.add("executionActionOrderList"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @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 ReorderExecutionActionDetails build() { + ReorderExecutionActionDetails model = + new ReorderExecutionActionDetails( + this.executionActionOrderList, this.freeformTags, this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ReorderExecutionActionDetails model) { + if (model.wasPropertyExplicitlySet("executionActionOrderList")) { + this.executionActionOrderList(model.getExecutionActionOrderList()); + } + 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); + } + + /** + * List of action resources in a specific order. Example: [{actionOrder: 1, actionResourceId: + * "resourceId1"}, {actionOrder: 2, actionResourceId: "resourceId2"}] + */ + @com.fasterxml.jackson.annotation.JsonProperty("executionActionOrderList") + private final java.util.List executionActionOrderList; + + /** + * List of action resources in a specific order. Example: [{actionOrder: 1, actionResourceId: + * "resourceId1"}, {actionOrder: 2, actionResourceId: "resourceId2"}] + * + * @return the value + */ + public java.util.List getExecutionActionOrderList() { + return executionActionOrderList; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @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("ReorderExecutionActionDetails("); + sb.append("super=").append(super.toString()); + sb.append("executionActionOrderList=") + .append(String.valueOf(this.executionActionOrderList)); + 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 ReorderExecutionActionDetails)) { + return false; + } + + ReorderExecutionActionDetails other = (ReorderExecutionActionDetails) o; + return java.util.Objects.equals( + this.executionActionOrderList, other.executionActionOrderList) + && 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.executionActionOrderList == null + ? 43 + : this.executionActionOrderList.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ReorderScheduledActionsDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ReorderScheduledActionsDetails.java new file mode 100644 index 00000000000..efe5ac52dc5 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ReorderScheduledActionsDetails.java @@ -0,0 +1,199 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Describes the re-order parameters for the Scheduled Action resources.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ReorderScheduledActionsDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ReorderScheduledActionsDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"schedulingWindowId", "scheduledActionIdOrders"}) + public ReorderScheduledActionsDetails( + String schedulingWindowId, java.util.List scheduledActionIdOrders) { + super(); + this.schedulingWindowId = schedulingWindowId; + this.scheduledActionIdOrders = scheduledActionIdOrders; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Window. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schedulingWindowId") + private String schedulingWindowId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Window. + * + * @param schedulingWindowId the value to set + * @return this builder + */ + public Builder schedulingWindowId(String schedulingWindowId) { + this.schedulingWindowId = schedulingWindowId; + this.__explicitlySet__.add("schedulingWindowId"); + return this; + } + /** + * List of action resources in a specific order. Example: [{actionOrder: 1, + * actionResourceId: "resourceId1"}, {actionOrder: 2, actionResourceId: "resourceId2"}] + */ + @com.fasterxml.jackson.annotation.JsonProperty("scheduledActionIdOrders") + private java.util.List scheduledActionIdOrders; + + /** + * List of action resources in a specific order. Example: [{actionOrder: 1, + * actionResourceId: "resourceId1"}, {actionOrder: 2, actionResourceId: "resourceId2"}] + * + * @param scheduledActionIdOrders the value to set + * @return this builder + */ + public Builder scheduledActionIdOrders( + java.util.List scheduledActionIdOrders) { + this.scheduledActionIdOrders = scheduledActionIdOrders; + this.__explicitlySet__.add("scheduledActionIdOrders"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ReorderScheduledActionsDetails build() { + ReorderScheduledActionsDetails model = + new ReorderScheduledActionsDetails( + this.schedulingWindowId, this.scheduledActionIdOrders); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ReorderScheduledActionsDetails model) { + if (model.wasPropertyExplicitlySet("schedulingWindowId")) { + this.schedulingWindowId(model.getSchedulingWindowId()); + } + if (model.wasPropertyExplicitlySet("scheduledActionIdOrders")) { + this.scheduledActionIdOrders(model.getScheduledActionIdOrders()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Window. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schedulingWindowId") + private final String schedulingWindowId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Window. + * + * @return the value + */ + public String getSchedulingWindowId() { + return schedulingWindowId; + } + + /** + * List of action resources in a specific order. Example: [{actionOrder: 1, actionResourceId: + * "resourceId1"}, {actionOrder: 2, actionResourceId: "resourceId2"}] + */ + @com.fasterxml.jackson.annotation.JsonProperty("scheduledActionIdOrders") + private final java.util.List scheduledActionIdOrders; + + /** + * List of action resources in a specific order. Example: [{actionOrder: 1, actionResourceId: + * "resourceId1"}, {actionOrder: 2, actionResourceId: "resourceId2"}] + * + * @return the value + */ + public java.util.List getScheduledActionIdOrders() { + return scheduledActionIdOrders; + } + + @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("ReorderScheduledActionsDetails("); + sb.append("super=").append(super.toString()); + sb.append("schedulingWindowId=").append(String.valueOf(this.schedulingWindowId)); + sb.append(", scheduledActionIdOrders=") + .append(String.valueOf(this.scheduledActionIdOrders)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ReorderScheduledActionsDetails)) { + return false; + } + + ReorderScheduledActionsDetails other = (ReorderScheduledActionsDetails) o; + return java.util.Objects.equals(this.schedulingWindowId, other.schedulingWindowId) + && java.util.Objects.equals( + this.scheduledActionIdOrders, other.scheduledActionIdOrders) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.schedulingWindowId == null + ? 43 + : this.schedulingWindowId.hashCode()); + result = + (result * PRIME) + + (this.scheduledActionIdOrders == null + ? 43 + : this.scheduledActionIdOrders.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ScheduledAction.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ScheduledAction.java new file mode 100644 index 00000000000..68dd908c45a --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ScheduledAction.java @@ -0,0 +1,918 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Details of a Scheduled Action.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ScheduledAction.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ScheduledAction + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "schedulingPlanId", + "compartmentId", + "schedulingWindowId", + "displayName", + "actionOrder", + "actionType", + "lifecycleState", + "estimatedTimeInMins", + "actionParams", + "actionMembers", + "freeformTags", + "definedTags", + "systemTags", + "timeCreated", + "timeUpdated" + }) + public ScheduledAction( + String id, + String schedulingPlanId, + String compartmentId, + String schedulingWindowId, + String displayName, + Integer actionOrder, + ActionType actionType, + LifecycleState lifecycleState, + Integer estimatedTimeInMins, + java.util.Map actionParams, + java.util.List actionMembers, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(); + this.id = id; + this.schedulingPlanId = schedulingPlanId; + this.compartmentId = compartmentId; + this.schedulingWindowId = schedulingWindowId; + this.displayName = displayName; + this.actionOrder = actionOrder; + this.actionType = actionType; + this.lifecycleState = lifecycleState; + this.estimatedTimeInMins = estimatedTimeInMins; + this.actionParams = actionParams; + this.actionMembers = actionMembers; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduled Action. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduled Action. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Plan. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schedulingPlanId") + private String schedulingPlanId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Plan. + * + * @param schedulingPlanId the value to set + * @return this builder + */ + public Builder schedulingPlanId(String schedulingPlanId) { + this.schedulingPlanId = schedulingPlanId; + this.__explicitlySet__.add("schedulingPlanId"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Window. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schedulingWindowId") + private String schedulingWindowId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Window. + * + * @param schedulingWindowId the value to set + * @return this builder + */ + public Builder schedulingWindowId(String schedulingWindowId) { + this.schedulingWindowId = schedulingWindowId; + this.__explicitlySet__.add("schedulingWindowId"); + return this; + } + /** The display name of the Scheduled Action. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the Scheduled Action. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The order of the scheduled action. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionOrder") + private Integer actionOrder; + + /** + * The order of the scheduled action. + * + * @param actionOrder the value to set + * @return this builder + */ + public Builder actionOrder(Integer actionOrder) { + this.actionOrder = actionOrder; + this.__explicitlySet__.add("actionOrder"); + return this; + } + /** The type of the scheduled action being performed */ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private ActionType actionType; + + /** + * The type of the scheduled action being performed + * + * @param actionType the value to set + * @return this builder + */ + public Builder actionType(ActionType actionType) { + this.actionType = actionType; + this.__explicitlySet__.add("actionType"); + return this; + } + /** + * The current state of the Scheduled Action. Valid states are CREATING, NEEDS_ATTENTION, + * AVAILABLE, UPDATING, FAILED, DELETING and DELETED. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the Scheduled Action. Valid states are CREATING, NEEDS_ATTENTION, + * AVAILABLE, UPDATING, FAILED, DELETING and DELETED. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** The estimated patching time for the scheduled action. */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedTimeInMins") + private Integer estimatedTimeInMins; + + /** + * The estimated patching time for the scheduled action. + * + * @param estimatedTimeInMins the value to set + * @return this builder + */ + public Builder estimatedTimeInMins(Integer estimatedTimeInMins) { + this.estimatedTimeInMins = estimatedTimeInMins; + this.__explicitlySet__.add("estimatedTimeInMins"); + return this; + } + /** + * Map where a key value pair describes the specific action + * parameter. Example: {@code {"count": "3"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("actionParams") + private java.util.Map actionParams; + + /** + * Map where a key value pair describes the specific action + * parameter. Example: {@code {"count": "3"}} + * + * @param actionParams the value to set + * @return this builder + */ + public Builder actionParams(java.util.Map actionParams) { + this.actionParams = actionParams; + this.__explicitlySet__.add("actionParams"); + return this; + } + /** The list of action members in a scheduled action. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionMembers") + private java.util.List actionMembers; + + /** + * The list of action members in a scheduled action. + * + * @param actionMembers the value to set + * @return this builder + */ + public Builder actionMembers(java.util.List actionMembers) { + this.actionMembers = actionMembers; + this.__explicitlySet__.add("actionMembers"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + /** The date and time the Scheduled Action Resource was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the Scheduled Action Resource was created. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The date and time the Scheduled Action Resource was updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the Scheduled Action Resource was updated. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ScheduledAction build() { + ScheduledAction model = + new ScheduledAction( + this.id, + this.schedulingPlanId, + this.compartmentId, + this.schedulingWindowId, + this.displayName, + this.actionOrder, + this.actionType, + this.lifecycleState, + this.estimatedTimeInMins, + this.actionParams, + this.actionMembers, + this.freeformTags, + this.definedTags, + this.systemTags, + this.timeCreated, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ScheduledAction model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("schedulingPlanId")) { + this.schedulingPlanId(model.getSchedulingPlanId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("schedulingWindowId")) { + this.schedulingWindowId(model.getSchedulingWindowId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("actionOrder")) { + this.actionOrder(model.getActionOrder()); + } + if (model.wasPropertyExplicitlySet("actionType")) { + this.actionType(model.getActionType()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("estimatedTimeInMins")) { + this.estimatedTimeInMins(model.getEstimatedTimeInMins()); + } + if (model.wasPropertyExplicitlySet("actionParams")) { + this.actionParams(model.getActionParams()); + } + if (model.wasPropertyExplicitlySet("actionMembers")) { + this.actionMembers(model.getActionMembers()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduled Action. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduled Action. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Plan. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schedulingPlanId") + private final String schedulingPlanId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Plan. + * + * @return the value + */ + public String getSchedulingPlanId() { + return schedulingPlanId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Window. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schedulingWindowId") + private final String schedulingWindowId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Window. + * + * @return the value + */ + public String getSchedulingWindowId() { + return schedulingWindowId; + } + + /** The display name of the Scheduled Action. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the Scheduled Action. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The order of the scheduled action. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionOrder") + private final Integer actionOrder; + + /** + * The order of the scheduled action. + * + * @return the value + */ + public Integer getActionOrder() { + return actionOrder; + } + + /** The type of the scheduled action being performed */ + public enum ActionType implements com.oracle.bmc.http.internal.BmcEnum { + DbServerFullSoftwareUpdate("DB_SERVER_FULL_SOFTWARE_UPDATE"), + StorageServerFullSoftwareUpdate("STORAGE_SERVER_FULL_SOFTWARE_UPDATE"), + NetworkSwitchFullSoftwareUpdate("NETWORK_SWITCH_FULL_SOFTWARE_UPDATE"), + + /** + * 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; + } + }; + /** The type of the scheduled action being performed */ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private final ActionType actionType; + + /** + * The type of the scheduled action being performed + * + * @return the value + */ + public ActionType getActionType() { + return actionType; + } + + /** + * The current state of the Scheduled Action. Valid states are CREATING, NEEDS_ATTENTION, + * AVAILABLE, UPDATING, FAILED, DELETING and DELETED. + */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + NeedsAttention("NEEDS_ATTENTION"), + Available("AVAILABLE"), + Updating("UPDATING"), + Failed("FAILED"), + Deleting("DELETING"), + Deleted("DELETED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current state of the Scheduled Action. Valid states are CREATING, NEEDS_ATTENTION, + * AVAILABLE, UPDATING, FAILED, DELETING and DELETED. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the Scheduled Action. Valid states are CREATING, NEEDS_ATTENTION, + * AVAILABLE, UPDATING, FAILED, DELETING and DELETED. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** The estimated patching time for the scheduled action. */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedTimeInMins") + private final Integer estimatedTimeInMins; + + /** + * The estimated patching time for the scheduled action. + * + * @return the value + */ + public Integer getEstimatedTimeInMins() { + return estimatedTimeInMins; + } + + /** + * Map where a key value pair describes the specific action parameter. + * Example: {@code {"count": "3"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("actionParams") + private final java.util.Map actionParams; + + /** + * Map where a key value pair describes the specific action parameter. + * Example: {@code {"count": "3"}} + * + * @return the value + */ + public java.util.Map getActionParams() { + return actionParams; + } + + /** The list of action members in a scheduled action. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionMembers") + private final java.util.List actionMembers; + + /** + * The list of action members in a scheduled action. + * + * @return the value + */ + public java.util.List getActionMembers() { + return actionMembers; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + /** The date and time the Scheduled Action Resource was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the Scheduled Action Resource was created. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The date and time the Scheduled Action Resource was updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the Scheduled Action Resource was updated. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ScheduledAction("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", schedulingPlanId=").append(String.valueOf(this.schedulingPlanId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", schedulingWindowId=").append(String.valueOf(this.schedulingWindowId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", actionOrder=").append(String.valueOf(this.actionOrder)); + sb.append(", actionType=").append(String.valueOf(this.actionType)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", estimatedTimeInMins=").append(String.valueOf(this.estimatedTimeInMins)); + sb.append(", actionParams=").append(String.valueOf(this.actionParams)); + sb.append(", actionMembers=").append(String.valueOf(this.actionMembers)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ScheduledAction)) { + return false; + } + + ScheduledAction other = (ScheduledAction) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.schedulingPlanId, other.schedulingPlanId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.schedulingWindowId, other.schedulingWindowId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.actionOrder, other.actionOrder) + && java.util.Objects.equals(this.actionType, other.actionType) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.estimatedTimeInMins, other.estimatedTimeInMins) + && java.util.Objects.equals(this.actionParams, other.actionParams) + && java.util.Objects.equals(this.actionMembers, other.actionMembers) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.schedulingPlanId == null ? 43 : this.schedulingPlanId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.schedulingWindowId == null + ? 43 + : this.schedulingWindowId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.actionOrder == null ? 43 : this.actionOrder.hashCode()); + result = (result * PRIME) + (this.actionType == null ? 43 : this.actionType.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.estimatedTimeInMins == null + ? 43 + : this.estimatedTimeInMins.hashCode()); + result = (result * PRIME) + (this.actionParams == null ? 43 : this.actionParams.hashCode()); + result = + (result * PRIME) + + (this.actionMembers == null ? 43 : this.actionMembers.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ScheduledActionCollection.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ScheduledActionCollection.java new file mode 100644 index 00000000000..518168f59e8 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ScheduledActionCollection.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.database.model; + +/** + * Results of Scheduled Action resources lists. Contains ScheduledActionSummary items.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ScheduledActionCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ScheduledActionCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public ScheduledActionCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of Scheduled Action resources. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of Scheduled Action resources. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ScheduledActionCollection build() { + ScheduledActionCollection model = new ScheduledActionCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ScheduledActionCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of Scheduled Action resources. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of Scheduled Action resources. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ScheduledActionCollection("); + 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 ScheduledActionCollection)) { + return false; + } + + ScheduledActionCollection other = (ScheduledActionCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ScheduledActionSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ScheduledActionSummary.java new file mode 100644 index 00000000000..6014292a0e4 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ScheduledActionSummary.java @@ -0,0 +1,919 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Details of a scheduled action.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ScheduledActionSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ScheduledActionSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "schedulingPlanId", + "compartmentId", + "schedulingWindowId", + "displayName", + "actionOrder", + "actionType", + "lifecycleState", + "estimatedTimeInMins", + "actionParams", + "actionMembers", + "freeformTags", + "definedTags", + "systemTags", + "timeCreated", + "timeUpdated" + }) + public ScheduledActionSummary( + String id, + String schedulingPlanId, + String compartmentId, + String schedulingWindowId, + String displayName, + Integer actionOrder, + ActionType actionType, + LifecycleState lifecycleState, + Integer estimatedTimeInMins, + java.util.Map actionParams, + java.util.List actionMembers, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(); + this.id = id; + this.schedulingPlanId = schedulingPlanId; + this.compartmentId = compartmentId; + this.schedulingWindowId = schedulingWindowId; + this.displayName = displayName; + this.actionOrder = actionOrder; + this.actionType = actionType; + this.lifecycleState = lifecycleState; + this.estimatedTimeInMins = estimatedTimeInMins; + this.actionParams = actionParams; + this.actionMembers = actionMembers; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduled Action. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduled Action. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Plan. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schedulingPlanId") + private String schedulingPlanId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Plan. + * + * @param schedulingPlanId the value to set + * @return this builder + */ + public Builder schedulingPlanId(String schedulingPlanId) { + this.schedulingPlanId = schedulingPlanId; + this.__explicitlySet__.add("schedulingPlanId"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Window. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schedulingWindowId") + private String schedulingWindowId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Window. + * + * @param schedulingWindowId the value to set + * @return this builder + */ + public Builder schedulingWindowId(String schedulingWindowId) { + this.schedulingWindowId = schedulingWindowId; + this.__explicitlySet__.add("schedulingWindowId"); + return this; + } + /** The display name of the Scheduled Action. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the Scheduled Action. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The order of the scheduled action. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionOrder") + private Integer actionOrder; + + /** + * The order of the scheduled action. + * + * @param actionOrder the value to set + * @return this builder + */ + public Builder actionOrder(Integer actionOrder) { + this.actionOrder = actionOrder; + this.__explicitlySet__.add("actionOrder"); + return this; + } + /** The type of the scheduled action being performed */ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private ActionType actionType; + + /** + * The type of the scheduled action being performed + * + * @param actionType the value to set + * @return this builder + */ + public Builder actionType(ActionType actionType) { + this.actionType = actionType; + this.__explicitlySet__.add("actionType"); + return this; + } + /** + * The current state of the Scheduled Action. Valid states are CREATING, NEEDS_ATTENTION, + * AVAILABLE, UPDATING, FAILED, DELETING and DELETED. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the Scheduled Action. Valid states are CREATING, NEEDS_ATTENTION, + * AVAILABLE, UPDATING, FAILED, DELETING and DELETED. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** The estimated patching time for the scheduled action. */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedTimeInMins") + private Integer estimatedTimeInMins; + + /** + * The estimated patching time for the scheduled action. + * + * @param estimatedTimeInMins the value to set + * @return this builder + */ + public Builder estimatedTimeInMins(Integer estimatedTimeInMins) { + this.estimatedTimeInMins = estimatedTimeInMins; + this.__explicitlySet__.add("estimatedTimeInMins"); + return this; + } + /** + * Map where a key value pair describes the specific action + * parameter. Example: {@code {"count": "3"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("actionParams") + private java.util.Map actionParams; + + /** + * Map where a key value pair describes the specific action + * parameter. Example: {@code {"count": "3"}} + * + * @param actionParams the value to set + * @return this builder + */ + public Builder actionParams(java.util.Map actionParams) { + this.actionParams = actionParams; + this.__explicitlySet__.add("actionParams"); + return this; + } + /** The list of action members in a scheduled action. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionMembers") + private java.util.List actionMembers; + + /** + * The list of action members in a scheduled action. + * + * @param actionMembers the value to set + * @return this builder + */ + public Builder actionMembers(java.util.List actionMembers) { + this.actionMembers = actionMembers; + this.__explicitlySet__.add("actionMembers"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + /** The date and time the Scheduled Action Resource was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the Scheduled Action Resource was created. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The date and time the Scheduled Action Resource was updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the Scheduled Action Resource was updated. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ScheduledActionSummary build() { + ScheduledActionSummary model = + new ScheduledActionSummary( + this.id, + this.schedulingPlanId, + this.compartmentId, + this.schedulingWindowId, + this.displayName, + this.actionOrder, + this.actionType, + this.lifecycleState, + this.estimatedTimeInMins, + this.actionParams, + this.actionMembers, + this.freeformTags, + this.definedTags, + this.systemTags, + this.timeCreated, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ScheduledActionSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("schedulingPlanId")) { + this.schedulingPlanId(model.getSchedulingPlanId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("schedulingWindowId")) { + this.schedulingWindowId(model.getSchedulingWindowId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("actionOrder")) { + this.actionOrder(model.getActionOrder()); + } + if (model.wasPropertyExplicitlySet("actionType")) { + this.actionType(model.getActionType()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("estimatedTimeInMins")) { + this.estimatedTimeInMins(model.getEstimatedTimeInMins()); + } + if (model.wasPropertyExplicitlySet("actionParams")) { + this.actionParams(model.getActionParams()); + } + if (model.wasPropertyExplicitlySet("actionMembers")) { + this.actionMembers(model.getActionMembers()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduled Action. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduled Action. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Plan. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schedulingPlanId") + private final String schedulingPlanId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Plan. + * + * @return the value + */ + public String getSchedulingPlanId() { + return schedulingPlanId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Window. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schedulingWindowId") + private final String schedulingWindowId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Window. + * + * @return the value + */ + public String getSchedulingWindowId() { + return schedulingWindowId; + } + + /** The display name of the Scheduled Action. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the Scheduled Action. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The order of the scheduled action. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionOrder") + private final Integer actionOrder; + + /** + * The order of the scheduled action. + * + * @return the value + */ + public Integer getActionOrder() { + return actionOrder; + } + + /** The type of the scheduled action being performed */ + public enum ActionType implements com.oracle.bmc.http.internal.BmcEnum { + DbServerFullSoftwareUpdate("DB_SERVER_FULL_SOFTWARE_UPDATE"), + StorageServerFullSoftwareUpdate("STORAGE_SERVER_FULL_SOFTWARE_UPDATE"), + NetworkSwitchFullSoftwareUpdate("NETWORK_SWITCH_FULL_SOFTWARE_UPDATE"), + + /** + * 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; + } + }; + /** The type of the scheduled action being performed */ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private final ActionType actionType; + + /** + * The type of the scheduled action being performed + * + * @return the value + */ + public ActionType getActionType() { + return actionType; + } + + /** + * The current state of the Scheduled Action. Valid states are CREATING, NEEDS_ATTENTION, + * AVAILABLE, UPDATING, FAILED, DELETING and DELETED. + */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + NeedsAttention("NEEDS_ATTENTION"), + Available("AVAILABLE"), + Updating("UPDATING"), + Failed("FAILED"), + Deleting("DELETING"), + Deleted("DELETED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current state of the Scheduled Action. Valid states are CREATING, NEEDS_ATTENTION, + * AVAILABLE, UPDATING, FAILED, DELETING and DELETED. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the Scheduled Action. Valid states are CREATING, NEEDS_ATTENTION, + * AVAILABLE, UPDATING, FAILED, DELETING and DELETED. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** The estimated patching time for the scheduled action. */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedTimeInMins") + private final Integer estimatedTimeInMins; + + /** + * The estimated patching time for the scheduled action. + * + * @return the value + */ + public Integer getEstimatedTimeInMins() { + return estimatedTimeInMins; + } + + /** + * Map where a key value pair describes the specific action parameter. + * Example: {@code {"count": "3"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("actionParams") + private final java.util.Map actionParams; + + /** + * Map where a key value pair describes the specific action parameter. + * Example: {@code {"count": "3"}} + * + * @return the value + */ + public java.util.Map getActionParams() { + return actionParams; + } + + /** The list of action members in a scheduled action. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionMembers") + private final java.util.List actionMembers; + + /** + * The list of action members in a scheduled action. + * + * @return the value + */ + public java.util.List getActionMembers() { + return actionMembers; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + /** The date and time the Scheduled Action Resource was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the Scheduled Action Resource was created. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The date and time the Scheduled Action Resource was updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the Scheduled Action Resource was updated. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ScheduledActionSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", schedulingPlanId=").append(String.valueOf(this.schedulingPlanId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", schedulingWindowId=").append(String.valueOf(this.schedulingWindowId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", actionOrder=").append(String.valueOf(this.actionOrder)); + sb.append(", actionType=").append(String.valueOf(this.actionType)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", estimatedTimeInMins=").append(String.valueOf(this.estimatedTimeInMins)); + sb.append(", actionParams=").append(String.valueOf(this.actionParams)); + sb.append(", actionMembers=").append(String.valueOf(this.actionMembers)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ScheduledActionSummary)) { + return false; + } + + ScheduledActionSummary other = (ScheduledActionSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.schedulingPlanId, other.schedulingPlanId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.schedulingWindowId, other.schedulingWindowId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.actionOrder, other.actionOrder) + && java.util.Objects.equals(this.actionType, other.actionType) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.estimatedTimeInMins, other.estimatedTimeInMins) + && java.util.Objects.equals(this.actionParams, other.actionParams) + && java.util.Objects.equals(this.actionMembers, other.actionMembers) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.schedulingPlanId == null ? 43 : this.schedulingPlanId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.schedulingWindowId == null + ? 43 + : this.schedulingWindowId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.actionOrder == null ? 43 : this.actionOrder.hashCode()); + result = (result * PRIME) + (this.actionType == null ? 43 : this.actionType.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.estimatedTimeInMins == null + ? 43 + : this.estimatedTimeInMins.hashCode()); + result = (result * PRIME) + (this.actionParams == null ? 43 : this.actionParams.hashCode()); + result = + (result * PRIME) + + (this.actionMembers == null ? 43 : this.actionMembers.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/SchedulingPlan.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/SchedulingPlan.java new file mode 100644 index 00000000000..5ba53a179f1 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/SchedulingPlan.java @@ -0,0 +1,973 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Details of a Scheduling Plan.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = SchedulingPlan.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SchedulingPlan + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "schedulingPolicyId", + "resourceId", + "displayName", + "lifecycleState", + "lifecycleDetails", + "isUsingRecommendedScheduledActions", + "planIntent", + "estimatedTimeInMins", + "serviceType", + "timeCreated", + "timeUpdated", + "freeformTags", + "definedTags", + "systemTags" + }) + public SchedulingPlan( + String id, + String compartmentId, + String schedulingPolicyId, + String resourceId, + String displayName, + LifecycleState lifecycleState, + String lifecycleDetails, + Boolean isUsingRecommendedScheduledActions, + PlanIntent planIntent, + Integer estimatedTimeInMins, + ServiceType serviceType, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.schedulingPolicyId = schedulingPolicyId; + this.resourceId = resourceId; + this.displayName = displayName; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.isUsingRecommendedScheduledActions = isUsingRecommendedScheduledActions; + this.planIntent = planIntent; + this.estimatedTimeInMins = estimatedTimeInMins; + this.serviceType = serviceType; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Plan. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Plan. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Policy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schedulingPolicyId") + private String schedulingPolicyId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Policy. + * + * @param schedulingPolicyId the value to set + * @return this builder + */ + public Builder schedulingPolicyId(String schedulingPolicyId) { + this.schedulingPolicyId = schedulingPolicyId; + this.__explicitlySet__.add("schedulingPolicyId"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private String resourceId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * resource. + * + * @param resourceId the value to set + * @return this builder + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + this.__explicitlySet__.add("resourceId"); + return this; + } + /** The display name of the Scheduling Plan. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the Scheduling Plan. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The current state of the Scheduling Plan. Valid states are CREATING, NEEDS_ATTENTION, + * AVAILABLE, UPDATING, FAILED, DELETING and DELETED. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the Scheduling Plan. Valid states are CREATING, NEEDS_ATTENTION, + * AVAILABLE, UPDATING, FAILED, DELETING and DELETED. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** Additional information about the current lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Additional information about the current lifecycle state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** If true, recommended scheduled actions will be generated for the scheduling plan. */ + @com.fasterxml.jackson.annotation.JsonProperty("isUsingRecommendedScheduledActions") + private Boolean isUsingRecommendedScheduledActions; + + /** + * If true, recommended scheduled actions will be generated for the scheduling plan. + * + * @param isUsingRecommendedScheduledActions the value to set + * @return this builder + */ + public Builder isUsingRecommendedScheduledActions( + Boolean isUsingRecommendedScheduledActions) { + this.isUsingRecommendedScheduledActions = isUsingRecommendedScheduledActions; + this.__explicitlySet__.add("isUsingRecommendedScheduledActions"); + return this; + } + /** + * The current intent the Scheduling Plan. Valid states is + * EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE. + */ + @com.fasterxml.jackson.annotation.JsonProperty("planIntent") + private PlanIntent planIntent; + + /** + * The current intent the Scheduling Plan. Valid states is + * EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE. + * + * @param planIntent the value to set + * @return this builder + */ + public Builder planIntent(PlanIntent planIntent) { + this.planIntent = planIntent; + this.__explicitlySet__.add("planIntent"); + return this; + } + /** The estimated time for the Scheduling Plan. */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedTimeInMins") + private Integer estimatedTimeInMins; + + /** + * The estimated time for the Scheduling Plan. + * + * @param estimatedTimeInMins the value to set + * @return this builder + */ + public Builder estimatedTimeInMins(Integer estimatedTimeInMins) { + this.estimatedTimeInMins = estimatedTimeInMins; + this.__explicitlySet__.add("estimatedTimeInMins"); + return this; + } + /** The service type of the Scheduling Plan. */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceType") + private ServiceType serviceType; + + /** + * The service type of the Scheduling Plan. + * + * @param serviceType the value to set + * @return this builder + */ + public Builder serviceType(ServiceType serviceType) { + this.serviceType = serviceType; + this.__explicitlySet__.add("serviceType"); + return this; + } + /** The date and time the Scheduling Plan Resource was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the Scheduling Plan Resource was created. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The date and time the Scheduling Plan Resource was updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the Scheduling Plan Resource was updated. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SchedulingPlan build() { + SchedulingPlan model = + new SchedulingPlan( + this.id, + this.compartmentId, + this.schedulingPolicyId, + this.resourceId, + this.displayName, + this.lifecycleState, + this.lifecycleDetails, + this.isUsingRecommendedScheduledActions, + this.planIntent, + this.estimatedTimeInMins, + this.serviceType, + this.timeCreated, + this.timeUpdated, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SchedulingPlan model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("schedulingPolicyId")) { + this.schedulingPolicyId(model.getSchedulingPolicyId()); + } + if (model.wasPropertyExplicitlySet("resourceId")) { + this.resourceId(model.getResourceId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("isUsingRecommendedScheduledActions")) { + this.isUsingRecommendedScheduledActions( + model.getIsUsingRecommendedScheduledActions()); + } + if (model.wasPropertyExplicitlySet("planIntent")) { + this.planIntent(model.getPlanIntent()); + } + if (model.wasPropertyExplicitlySet("estimatedTimeInMins")) { + this.estimatedTimeInMins(model.getEstimatedTimeInMins()); + } + if (model.wasPropertyExplicitlySet("serviceType")) { + this.serviceType(model.getServiceType()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Plan. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Plan. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Policy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schedulingPolicyId") + private final String schedulingPolicyId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Policy. + * + * @return the value + */ + public String getSchedulingPolicyId() { + return schedulingPolicyId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private final String resourceId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * resource. + * + * @return the value + */ + public String getResourceId() { + return resourceId; + } + + /** The display name of the Scheduling Plan. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the Scheduling Plan. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * The current state of the Scheduling Plan. Valid states are CREATING, NEEDS_ATTENTION, + * AVAILABLE, UPDATING, FAILED, DELETING and DELETED. + */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + NeedsAttention("NEEDS_ATTENTION"), + Available("AVAILABLE"), + Updating("UPDATING"), + Failed("FAILED"), + Deleting("DELETING"), + Deleted("DELETED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current state of the Scheduling Plan. Valid states are CREATING, NEEDS_ATTENTION, + * AVAILABLE, UPDATING, FAILED, DELETING and DELETED. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the Scheduling Plan. Valid states are CREATING, NEEDS_ATTENTION, + * AVAILABLE, UPDATING, FAILED, DELETING and DELETED. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** Additional information about the current lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Additional information about the current lifecycle state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** If true, recommended scheduled actions will be generated for the scheduling plan. */ + @com.fasterxml.jackson.annotation.JsonProperty("isUsingRecommendedScheduledActions") + private final Boolean isUsingRecommendedScheduledActions; + + /** + * If true, recommended scheduled actions will be generated for the scheduling plan. + * + * @return the value + */ + public Boolean getIsUsingRecommendedScheduledActions() { + return isUsingRecommendedScheduledActions; + } + + /** + * The current intent the Scheduling Plan. Valid states is + * EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE. + */ + public enum PlanIntent implements com.oracle.bmc.http.internal.BmcEnum { + ExadataInfrastructureFullSoftwareUpdate("EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE"), + + /** + * 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(PlanIntent.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PlanIntent v : PlanIntent.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + PlanIntent(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PlanIntent create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'PlanIntent', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current intent the Scheduling Plan. Valid states is + * EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE. + */ + @com.fasterxml.jackson.annotation.JsonProperty("planIntent") + private final PlanIntent planIntent; + + /** + * The current intent the Scheduling Plan. Valid states is + * EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE. + * + * @return the value + */ + public PlanIntent getPlanIntent() { + return planIntent; + } + + /** The estimated time for the Scheduling Plan. */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedTimeInMins") + private final Integer estimatedTimeInMins; + + /** + * The estimated time for the Scheduling Plan. + * + * @return the value + */ + public Integer getEstimatedTimeInMins() { + return estimatedTimeInMins; + } + + /** The service type of the Scheduling Plan. */ + public enum ServiceType implements com.oracle.bmc.http.internal.BmcEnum { + Exacc("EXACC"), + Exacs("EXACS"), + Fpppcs("FPPPCS"), + + /** + * 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(ServiceType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ServiceType v : ServiceType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ServiceType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ServiceType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ServiceType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The service type of the Scheduling Plan. */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceType") + private final ServiceType serviceType; + + /** + * The service type of the Scheduling Plan. + * + * @return the value + */ + public ServiceType getServiceType() { + return serviceType; + } + + /** The date and time the Scheduling Plan Resource was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the Scheduling Plan Resource was created. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The date and time the Scheduling Plan Resource was updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the Scheduling Plan Resource was updated. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SchedulingPlan("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", schedulingPolicyId=").append(String.valueOf(this.schedulingPolicyId)); + sb.append(", resourceId=").append(String.valueOf(this.resourceId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", isUsingRecommendedScheduledActions=") + .append(String.valueOf(this.isUsingRecommendedScheduledActions)); + sb.append(", planIntent=").append(String.valueOf(this.planIntent)); + sb.append(", estimatedTimeInMins=").append(String.valueOf(this.estimatedTimeInMins)); + sb.append(", serviceType=").append(String.valueOf(this.serviceType)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SchedulingPlan)) { + return false; + } + + SchedulingPlan other = (SchedulingPlan) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.schedulingPolicyId, other.schedulingPolicyId) + && java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals( + this.isUsingRecommendedScheduledActions, + other.isUsingRecommendedScheduledActions) + && java.util.Objects.equals(this.planIntent, other.planIntent) + && java.util.Objects.equals(this.estimatedTimeInMins, other.estimatedTimeInMins) + && java.util.Objects.equals(this.serviceType, other.serviceType) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.schedulingPolicyId == null + ? 43 + : this.schedulingPolicyId.hashCode()); + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.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.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.isUsingRecommendedScheduledActions == null + ? 43 + : this.isUsingRecommendedScheduledActions.hashCode()); + result = (result * PRIME) + (this.planIntent == null ? 43 : this.planIntent.hashCode()); + result = + (result * PRIME) + + (this.estimatedTimeInMins == null + ? 43 + : this.estimatedTimeInMins.hashCode()); + result = (result * PRIME) + (this.serviceType == null ? 43 : this.serviceType.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/SchedulingPlanCollection.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/SchedulingPlanCollection.java new file mode 100644 index 00000000000..0521d69cd5e --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/SchedulingPlanCollection.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.database.model; + +/** + * Results of Scheduling Plan resources lists. Contains ScheduledActionSummary items.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SchedulingPlanCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SchedulingPlanCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public SchedulingPlanCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of Scheduling Plan resources. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of Scheduling Plan resources. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SchedulingPlanCollection build() { + SchedulingPlanCollection model = new SchedulingPlanCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SchedulingPlanCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of Scheduling Plan resources. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of Scheduling Plan resources. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SchedulingPlanCollection("); + 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 SchedulingPlanCollection)) { + return false; + } + + SchedulingPlanCollection other = (SchedulingPlanCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/SchedulingPlanSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/SchedulingPlanSummary.java new file mode 100644 index 00000000000..4ac9207c4a3 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/SchedulingPlanSummary.java @@ -0,0 +1,974 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Details of a Scheduling Plan.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SchedulingPlanSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SchedulingPlanSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "schedulingPolicyId", + "resourceId", + "displayName", + "lifecycleState", + "lifecycleDetails", + "isUsingRecommendedScheduledActions", + "planIntent", + "estimatedTimeInMins", + "serviceType", + "timeCreated", + "timeUpdated", + "freeformTags", + "definedTags", + "systemTags" + }) + public SchedulingPlanSummary( + String id, + String compartmentId, + String schedulingPolicyId, + String resourceId, + String displayName, + LifecycleState lifecycleState, + String lifecycleDetails, + Boolean isUsingRecommendedScheduledActions, + PlanIntent planIntent, + Integer estimatedTimeInMins, + ServiceType serviceType, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.schedulingPolicyId = schedulingPolicyId; + this.resourceId = resourceId; + this.displayName = displayName; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.isUsingRecommendedScheduledActions = isUsingRecommendedScheduledActions; + this.planIntent = planIntent; + this.estimatedTimeInMins = estimatedTimeInMins; + this.serviceType = serviceType; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Plan. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Plan. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Policy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schedulingPolicyId") + private String schedulingPolicyId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Policy. + * + * @param schedulingPolicyId the value to set + * @return this builder + */ + public Builder schedulingPolicyId(String schedulingPolicyId) { + this.schedulingPolicyId = schedulingPolicyId; + this.__explicitlySet__.add("schedulingPolicyId"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private String resourceId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * resource. + * + * @param resourceId the value to set + * @return this builder + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + this.__explicitlySet__.add("resourceId"); + return this; + } + /** The display name of the Scheduling Plan. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the Scheduling Plan. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The current state of the Scheduling Plan. Valid states are CREATING, NEEDS_ATTENTION, + * AVAILABLE, UPDATING, FAILED, DELETING and DELETED. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the Scheduling Plan. Valid states are CREATING, NEEDS_ATTENTION, + * AVAILABLE, UPDATING, FAILED, DELETING and DELETED. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** Additional information about the current lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Additional information about the current lifecycle state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** If true, recommended scheduled actions will be generated for the scheduling plan. */ + @com.fasterxml.jackson.annotation.JsonProperty("isUsingRecommendedScheduledActions") + private Boolean isUsingRecommendedScheduledActions; + + /** + * If true, recommended scheduled actions will be generated for the scheduling plan. + * + * @param isUsingRecommendedScheduledActions the value to set + * @return this builder + */ + public Builder isUsingRecommendedScheduledActions( + Boolean isUsingRecommendedScheduledActions) { + this.isUsingRecommendedScheduledActions = isUsingRecommendedScheduledActions; + this.__explicitlySet__.add("isUsingRecommendedScheduledActions"); + return this; + } + /** + * The current intent the Scheduling Plan. Valid states is + * EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE. + */ + @com.fasterxml.jackson.annotation.JsonProperty("planIntent") + private PlanIntent planIntent; + + /** + * The current intent the Scheduling Plan. Valid states is + * EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE. + * + * @param planIntent the value to set + * @return this builder + */ + public Builder planIntent(PlanIntent planIntent) { + this.planIntent = planIntent; + this.__explicitlySet__.add("planIntent"); + return this; + } + /** The estimated time for the Scheduling Plan. */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedTimeInMins") + private Integer estimatedTimeInMins; + + /** + * The estimated time for the Scheduling Plan. + * + * @param estimatedTimeInMins the value to set + * @return this builder + */ + public Builder estimatedTimeInMins(Integer estimatedTimeInMins) { + this.estimatedTimeInMins = estimatedTimeInMins; + this.__explicitlySet__.add("estimatedTimeInMins"); + return this; + } + /** The service type of the Scheduling Plan. */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceType") + private ServiceType serviceType; + + /** + * The service type of the Scheduling Plan. + * + * @param serviceType the value to set + * @return this builder + */ + public Builder serviceType(ServiceType serviceType) { + this.serviceType = serviceType; + this.__explicitlySet__.add("serviceType"); + return this; + } + /** The date and time the Scheduling Plan Resource was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the Scheduling Plan Resource was created. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The date and time the Scheduling Plan Resource was updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the Scheduling Plan Resource was updated. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SchedulingPlanSummary build() { + SchedulingPlanSummary model = + new SchedulingPlanSummary( + this.id, + this.compartmentId, + this.schedulingPolicyId, + this.resourceId, + this.displayName, + this.lifecycleState, + this.lifecycleDetails, + this.isUsingRecommendedScheduledActions, + this.planIntent, + this.estimatedTimeInMins, + this.serviceType, + this.timeCreated, + this.timeUpdated, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SchedulingPlanSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("schedulingPolicyId")) { + this.schedulingPolicyId(model.getSchedulingPolicyId()); + } + if (model.wasPropertyExplicitlySet("resourceId")) { + this.resourceId(model.getResourceId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("isUsingRecommendedScheduledActions")) { + this.isUsingRecommendedScheduledActions( + model.getIsUsingRecommendedScheduledActions()); + } + if (model.wasPropertyExplicitlySet("planIntent")) { + this.planIntent(model.getPlanIntent()); + } + if (model.wasPropertyExplicitlySet("estimatedTimeInMins")) { + this.estimatedTimeInMins(model.getEstimatedTimeInMins()); + } + if (model.wasPropertyExplicitlySet("serviceType")) { + this.serviceType(model.getServiceType()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Plan. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Plan. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Policy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schedulingPolicyId") + private final String schedulingPolicyId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Policy. + * + * @return the value + */ + public String getSchedulingPolicyId() { + return schedulingPolicyId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private final String resourceId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * resource. + * + * @return the value + */ + public String getResourceId() { + return resourceId; + } + + /** The display name of the Scheduling Plan. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the Scheduling Plan. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * The current state of the Scheduling Plan. Valid states are CREATING, NEEDS_ATTENTION, + * AVAILABLE, UPDATING, FAILED, DELETING and DELETED. + */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + NeedsAttention("NEEDS_ATTENTION"), + Available("AVAILABLE"), + Updating("UPDATING"), + Failed("FAILED"), + Deleting("DELETING"), + Deleted("DELETED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current state of the Scheduling Plan. Valid states are CREATING, NEEDS_ATTENTION, + * AVAILABLE, UPDATING, FAILED, DELETING and DELETED. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the Scheduling Plan. Valid states are CREATING, NEEDS_ATTENTION, + * AVAILABLE, UPDATING, FAILED, DELETING and DELETED. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** Additional information about the current lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Additional information about the current lifecycle state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** If true, recommended scheduled actions will be generated for the scheduling plan. */ + @com.fasterxml.jackson.annotation.JsonProperty("isUsingRecommendedScheduledActions") + private final Boolean isUsingRecommendedScheduledActions; + + /** + * If true, recommended scheduled actions will be generated for the scheduling plan. + * + * @return the value + */ + public Boolean getIsUsingRecommendedScheduledActions() { + return isUsingRecommendedScheduledActions; + } + + /** + * The current intent the Scheduling Plan. Valid states is + * EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE. + */ + public enum PlanIntent implements com.oracle.bmc.http.internal.BmcEnum { + ExadataInfrastructureFullSoftwareUpdate("EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE"), + + /** + * 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(PlanIntent.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PlanIntent v : PlanIntent.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + PlanIntent(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PlanIntent create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'PlanIntent', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current intent the Scheduling Plan. Valid states is + * EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE. + */ + @com.fasterxml.jackson.annotation.JsonProperty("planIntent") + private final PlanIntent planIntent; + + /** + * The current intent the Scheduling Plan. Valid states is + * EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE. + * + * @return the value + */ + public PlanIntent getPlanIntent() { + return planIntent; + } + + /** The estimated time for the Scheduling Plan. */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedTimeInMins") + private final Integer estimatedTimeInMins; + + /** + * The estimated time for the Scheduling Plan. + * + * @return the value + */ + public Integer getEstimatedTimeInMins() { + return estimatedTimeInMins; + } + + /** The service type of the Scheduling Plan. */ + public enum ServiceType implements com.oracle.bmc.http.internal.BmcEnum { + Exacc("EXACC"), + Exacs("EXACS"), + Fpppcs("FPPPCS"), + + /** + * 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(ServiceType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ServiceType v : ServiceType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ServiceType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ServiceType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ServiceType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The service type of the Scheduling Plan. */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceType") + private final ServiceType serviceType; + + /** + * The service type of the Scheduling Plan. + * + * @return the value + */ + public ServiceType getServiceType() { + return serviceType; + } + + /** The date and time the Scheduling Plan Resource was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the Scheduling Plan Resource was created. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The date and time the Scheduling Plan Resource was updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the Scheduling Plan Resource was updated. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SchedulingPlanSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", schedulingPolicyId=").append(String.valueOf(this.schedulingPolicyId)); + sb.append(", resourceId=").append(String.valueOf(this.resourceId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", isUsingRecommendedScheduledActions=") + .append(String.valueOf(this.isUsingRecommendedScheduledActions)); + sb.append(", planIntent=").append(String.valueOf(this.planIntent)); + sb.append(", estimatedTimeInMins=").append(String.valueOf(this.estimatedTimeInMins)); + sb.append(", serviceType=").append(String.valueOf(this.serviceType)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SchedulingPlanSummary)) { + return false; + } + + SchedulingPlanSummary other = (SchedulingPlanSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.schedulingPolicyId, other.schedulingPolicyId) + && java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals( + this.isUsingRecommendedScheduledActions, + other.isUsingRecommendedScheduledActions) + && java.util.Objects.equals(this.planIntent, other.planIntent) + && java.util.Objects.equals(this.estimatedTimeInMins, other.estimatedTimeInMins) + && java.util.Objects.equals(this.serviceType, other.serviceType) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.schedulingPolicyId == null + ? 43 + : this.schedulingPolicyId.hashCode()); + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.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.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.isUsingRecommendedScheduledActions == null + ? 43 + : this.isUsingRecommendedScheduledActions.hashCode()); + result = (result * PRIME) + (this.planIntent == null ? 43 : this.planIntent.hashCode()); + result = + (result * PRIME) + + (this.estimatedTimeInMins == null + ? 43 + : this.estimatedTimeInMins.hashCode()); + result = (result * PRIME) + (this.serviceType == null ? 43 : this.serviceType.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/SchedulingPolicy.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/SchedulingPolicy.java new file mode 100644 index 00000000000..44f604a1a04 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/SchedulingPolicy.java @@ -0,0 +1,736 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Details of a Scheduling Policy.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = SchedulingPolicy.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SchedulingPolicy + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "lifecycleState", + "lifecycleDetails", + "timeCreated", + "timeUpdated", + "cadence", + "cadenceStartMonth", + "timeNextWindowStarts", + "freeformTags", + "definedTags" + }) + public SchedulingPolicy( + String id, + String compartmentId, + String displayName, + LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + Cadence cadence, + Month cadenceStartMonth, + java.util.Date timeNextWindowStarts, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.cadence = cadence; + this.cadenceStartMonth = cadenceStartMonth; + this.timeNextWindowStarts = timeNextWindowStarts; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Policy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Policy. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The user-friendly name for the Scheduling Policy. The name does not need to be unique. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the Scheduling Policy. The name does not need to be unique. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The current state of the Scheduling Policy. Valid states are CREATING, NEEDS_ATTENTION, + * ACTIVE, UPDATING, FAILED, DELETING and DELETED. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the Scheduling Policy. Valid states are CREATING, NEEDS_ATTENTION, + * ACTIVE, UPDATING, FAILED, DELETING and DELETED. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** Additional information about the current lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Additional information about the current lifecycle state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** The date and time the Scheduling Policy was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the Scheduling Policy was created. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The last date and time that the Scheduling Policy was updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The last date and time that the Scheduling Policy was updated. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** The cadence period. */ + @com.fasterxml.jackson.annotation.JsonProperty("cadence") + private Cadence cadence; + + /** + * The cadence period. + * + * @param cadence the value to set + * @return this builder + */ + public Builder cadence(Cadence cadence) { + this.cadence = cadence; + this.__explicitlySet__.add("cadence"); + return this; + } + /** Start of the month to be followed during the cadence period. */ + @com.fasterxml.jackson.annotation.JsonProperty("cadenceStartMonth") + private Month cadenceStartMonth; + + /** + * Start of the month to be followed during the cadence period. + * + * @param cadenceStartMonth the value to set + * @return this builder + */ + public Builder cadenceStartMonth(Month cadenceStartMonth) { + this.cadenceStartMonth = cadenceStartMonth; + this.__explicitlySet__.add("cadenceStartMonth"); + return this; + } + /** + * The date and time of the next scheduling window associated with the schedulingPolicy is + * planned to start. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeNextWindowStarts") + private java.util.Date timeNextWindowStarts; + + /** + * The date and time of the next scheduling window associated with the schedulingPolicy is + * planned to start. + * + * @param timeNextWindowStarts the value to set + * @return this builder + */ + public Builder timeNextWindowStarts(java.util.Date timeNextWindowStarts) { + this.timeNextWindowStarts = timeNextWindowStarts; + this.__explicitlySet__.add("timeNextWindowStarts"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @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 SchedulingPolicy build() { + SchedulingPolicy model = + new SchedulingPolicy( + this.id, + this.compartmentId, + this.displayName, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.cadence, + this.cadenceStartMonth, + this.timeNextWindowStarts, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SchedulingPolicy model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("cadence")) { + this.cadence(model.getCadence()); + } + if (model.wasPropertyExplicitlySet("cadenceStartMonth")) { + this.cadenceStartMonth(model.getCadenceStartMonth()); + } + if (model.wasPropertyExplicitlySet("timeNextWindowStarts")) { + this.timeNextWindowStarts(model.getTimeNextWindowStarts()); + } + 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/Content/General/Concepts/identifiers.htm) of the + * Scheduling Policy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Policy. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The user-friendly name for the Scheduling Policy. The name does not need to be unique. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the Scheduling Policy. The name does not need to be unique. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * The current state of the Scheduling Policy. Valid states are CREATING, NEEDS_ATTENTION, + * ACTIVE, UPDATING, FAILED, DELETING and DELETED. + */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + NeedsAttention("NEEDS_ATTENTION"), + Available("AVAILABLE"), + Updating("UPDATING"), + Failed("FAILED"), + Deleting("DELETING"), + Deleted("DELETED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current state of the Scheduling Policy. Valid states are CREATING, NEEDS_ATTENTION, + * ACTIVE, UPDATING, FAILED, DELETING and DELETED. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the Scheduling Policy. Valid states are CREATING, NEEDS_ATTENTION, + * ACTIVE, UPDATING, FAILED, DELETING and DELETED. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** Additional information about the current lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Additional information about the current lifecycle state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** The date and time the Scheduling Policy was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the Scheduling Policy was created. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The last date and time that the Scheduling Policy was updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The last date and time that the Scheduling Policy was updated. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** The cadence period. */ + public enum Cadence implements com.oracle.bmc.http.internal.BmcEnum { + Halfyearly("HALFYEARLY"), + Quarterly("QUARTERLY"), + Monthly("MONTHLY"), + + /** + * 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(Cadence.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Cadence v : Cadence.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Cadence(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Cadence create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Cadence', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The cadence period. */ + @com.fasterxml.jackson.annotation.JsonProperty("cadence") + private final Cadence cadence; + + /** + * The cadence period. + * + * @return the value + */ + public Cadence getCadence() { + return cadence; + } + + /** Start of the month to be followed during the cadence period. */ + @com.fasterxml.jackson.annotation.JsonProperty("cadenceStartMonth") + private final Month cadenceStartMonth; + + /** + * Start of the month to be followed during the cadence period. + * + * @return the value + */ + public Month getCadenceStartMonth() { + return cadenceStartMonth; + } + + /** + * The date and time of the next scheduling window associated with the schedulingPolicy is + * planned to start. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeNextWindowStarts") + private final java.util.Date timeNextWindowStarts; + + /** + * The date and time of the next scheduling window associated with the schedulingPolicy is + * planned to start. + * + * @return the value + */ + public java.util.Date getTimeNextWindowStarts() { + return timeNextWindowStarts; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @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("SchedulingPolicy("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", cadence=").append(String.valueOf(this.cadence)); + sb.append(", cadenceStartMonth=").append(String.valueOf(this.cadenceStartMonth)); + sb.append(", timeNextWindowStarts=").append(String.valueOf(this.timeNextWindowStarts)); + 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 SchedulingPolicy)) { + return false; + } + + SchedulingPolicy other = (SchedulingPolicy) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.cadence, other.cadence) + && java.util.Objects.equals(this.cadenceStartMonth, other.cadenceStartMonth) + && java.util.Objects.equals(this.timeNextWindowStarts, other.timeNextWindowStarts) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.cadence == null ? 43 : this.cadence.hashCode()); + result = + (result * PRIME) + + (this.cadenceStartMonth == null ? 43 : this.cadenceStartMonth.hashCode()); + result = + (result * PRIME) + + (this.timeNextWindowStarts == null + ? 43 + : this.timeNextWindowStarts.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/SchedulingPolicySummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/SchedulingPolicySummary.java new file mode 100644 index 00000000000..bf305a46604 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/SchedulingPolicySummary.java @@ -0,0 +1,737 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Details of a Scheduling Policy.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SchedulingPolicySummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SchedulingPolicySummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "lifecycleState", + "lifecycleDetails", + "timeCreated", + "timeUpdated", + "cadence", + "cadenceStartMonth", + "timeNextWindowStarts", + "freeformTags", + "definedTags" + }) + public SchedulingPolicySummary( + String id, + String compartmentId, + String displayName, + LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + Cadence cadence, + Month cadenceStartMonth, + java.util.Date timeNextWindowStarts, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.cadence = cadence; + this.cadenceStartMonth = cadenceStartMonth; + this.timeNextWindowStarts = timeNextWindowStarts; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Policy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Policy. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The user-friendly name for the Scheduling Policy. The name does not need to be unique. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the Scheduling Policy. The name does not need to be unique. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The current state of the Scheduling Policy. Valid states are CREATING, NEEDS_ATTENTION, + * ACTIVE, UPDATING, FAILED, DELETING and DELETED. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the Scheduling Policy. Valid states are CREATING, NEEDS_ATTENTION, + * ACTIVE, UPDATING, FAILED, DELETING and DELETED. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** Additional information about the current lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Additional information about the current lifecycle state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** The date and time the Scheduling Policy was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the Scheduling Policy was created. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The last date and time that the Scheduling Policy was updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The last date and time that the Scheduling Policy was updated. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** The cadence period. */ + @com.fasterxml.jackson.annotation.JsonProperty("cadence") + private Cadence cadence; + + /** + * The cadence period. + * + * @param cadence the value to set + * @return this builder + */ + public Builder cadence(Cadence cadence) { + this.cadence = cadence; + this.__explicitlySet__.add("cadence"); + return this; + } + /** Start of the month to be followed during the cadence period. */ + @com.fasterxml.jackson.annotation.JsonProperty("cadenceStartMonth") + private Month cadenceStartMonth; + + /** + * Start of the month to be followed during the cadence period. + * + * @param cadenceStartMonth the value to set + * @return this builder + */ + public Builder cadenceStartMonth(Month cadenceStartMonth) { + this.cadenceStartMonth = cadenceStartMonth; + this.__explicitlySet__.add("cadenceStartMonth"); + return this; + } + /** + * The date and time of the next scheduling window associated with the schedulingPolicy is + * planned to start. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeNextWindowStarts") + private java.util.Date timeNextWindowStarts; + + /** + * The date and time of the next scheduling window associated with the schedulingPolicy is + * planned to start. + * + * @param timeNextWindowStarts the value to set + * @return this builder + */ + public Builder timeNextWindowStarts(java.util.Date timeNextWindowStarts) { + this.timeNextWindowStarts = timeNextWindowStarts; + this.__explicitlySet__.add("timeNextWindowStarts"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @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 SchedulingPolicySummary build() { + SchedulingPolicySummary model = + new SchedulingPolicySummary( + this.id, + this.compartmentId, + this.displayName, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.cadence, + this.cadenceStartMonth, + this.timeNextWindowStarts, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SchedulingPolicySummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("cadence")) { + this.cadence(model.getCadence()); + } + if (model.wasPropertyExplicitlySet("cadenceStartMonth")) { + this.cadenceStartMonth(model.getCadenceStartMonth()); + } + if (model.wasPropertyExplicitlySet("timeNextWindowStarts")) { + this.timeNextWindowStarts(model.getTimeNextWindowStarts()); + } + 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/Content/General/Concepts/identifiers.htm) of the + * Scheduling Policy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Policy. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The user-friendly name for the Scheduling Policy. The name does not need to be unique. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the Scheduling Policy. The name does not need to be unique. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * The current state of the Scheduling Policy. Valid states are CREATING, NEEDS_ATTENTION, + * ACTIVE, UPDATING, FAILED, DELETING and DELETED. + */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + NeedsAttention("NEEDS_ATTENTION"), + Available("AVAILABLE"), + Updating("UPDATING"), + Failed("FAILED"), + Deleting("DELETING"), + Deleted("DELETED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current state of the Scheduling Policy. Valid states are CREATING, NEEDS_ATTENTION, + * ACTIVE, UPDATING, FAILED, DELETING and DELETED. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the Scheduling Policy. Valid states are CREATING, NEEDS_ATTENTION, + * ACTIVE, UPDATING, FAILED, DELETING and DELETED. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** Additional information about the current lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Additional information about the current lifecycle state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** The date and time the Scheduling Policy was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the Scheduling Policy was created. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The last date and time that the Scheduling Policy was updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The last date and time that the Scheduling Policy was updated. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** The cadence period. */ + public enum Cadence implements com.oracle.bmc.http.internal.BmcEnum { + Halfyearly("HALFYEARLY"), + Quarterly("QUARTERLY"), + Monthly("MONTHLY"), + + /** + * 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(Cadence.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Cadence v : Cadence.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Cadence(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Cadence create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Cadence', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The cadence period. */ + @com.fasterxml.jackson.annotation.JsonProperty("cadence") + private final Cadence cadence; + + /** + * The cadence period. + * + * @return the value + */ + public Cadence getCadence() { + return cadence; + } + + /** Start of the month to be followed during the cadence period. */ + @com.fasterxml.jackson.annotation.JsonProperty("cadenceStartMonth") + private final Month cadenceStartMonth; + + /** + * Start of the month to be followed during the cadence period. + * + * @return the value + */ + public Month getCadenceStartMonth() { + return cadenceStartMonth; + } + + /** + * The date and time of the next scheduling window associated with the schedulingPolicy is + * planned to start. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeNextWindowStarts") + private final java.util.Date timeNextWindowStarts; + + /** + * The date and time of the next scheduling window associated with the schedulingPolicy is + * planned to start. + * + * @return the value + */ + public java.util.Date getTimeNextWindowStarts() { + return timeNextWindowStarts; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @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("SchedulingPolicySummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", cadence=").append(String.valueOf(this.cadence)); + sb.append(", cadenceStartMonth=").append(String.valueOf(this.cadenceStartMonth)); + sb.append(", timeNextWindowStarts=").append(String.valueOf(this.timeNextWindowStarts)); + 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 SchedulingPolicySummary)) { + return false; + } + + SchedulingPolicySummary other = (SchedulingPolicySummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.cadence, other.cadence) + && java.util.Objects.equals(this.cadenceStartMonth, other.cadenceStartMonth) + && java.util.Objects.equals(this.timeNextWindowStarts, other.timeNextWindowStarts) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.cadence == null ? 43 : this.cadence.hashCode()); + result = + (result * PRIME) + + (this.cadenceStartMonth == null ? 43 : this.cadenceStartMonth.hashCode()); + result = + (result * PRIME) + + (this.timeNextWindowStarts == null + ? 43 + : this.timeNextWindowStarts.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/SchedulingWindow.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/SchedulingWindow.java new file mode 100644 index 00000000000..238cfeacab9 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/SchedulingWindow.java @@ -0,0 +1,691 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Details of a Scheduling Window.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = SchedulingWindow.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SchedulingWindow + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "timeNextSchedulingWindowStarts", + "lifecycleState", + "lifecycleDetails", + "timeCreated", + "timeUpdated", + "windowPreference", + "schedulingPolicyId", + "freeformTags", + "definedTags" + }) + public SchedulingWindow( + String id, + String compartmentId, + String displayName, + java.util.Date timeNextSchedulingWindowStarts, + LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + WindowPreferenceDetail windowPreference, + String schedulingPolicyId, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.timeNextSchedulingWindowStarts = timeNextSchedulingWindowStarts; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.windowPreference = windowPreference; + this.schedulingPolicyId = schedulingPolicyId; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Window. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Window. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The user-friendly name for the Scheduling Window. The name does not need to be unique. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the Scheduling Window. The name does not need to be unique. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The date and time of the next upcoming window associated within the schedulingWindow is + * planned to start. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeNextSchedulingWindowStarts") + private java.util.Date timeNextSchedulingWindowStarts; + + /** + * The date and time of the next upcoming window associated within the schedulingWindow is + * planned to start. + * + * @param timeNextSchedulingWindowStarts the value to set + * @return this builder + */ + public Builder timeNextSchedulingWindowStarts( + java.util.Date timeNextSchedulingWindowStarts) { + this.timeNextSchedulingWindowStarts = timeNextSchedulingWindowStarts; + this.__explicitlySet__.add("timeNextSchedulingWindowStarts"); + return this; + } + /** + * The current state of the Scheduling Window. Valid states are CREATING, ACTIVE, UPDATING, + * FAILED, DELETING and DELETED. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the Scheduling Window. Valid states are CREATING, ACTIVE, UPDATING, + * FAILED, DELETING and DELETED. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** Additional information about the current lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Additional information about the current lifecycle state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** The date and time the Scheduling Window was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the Scheduling Window was created. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The last date and time that the Scheduling Window was updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The last date and time that the Scheduling Window was updated. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("windowPreference") + private WindowPreferenceDetail windowPreference; + + public Builder windowPreference(WindowPreferenceDetail windowPreference) { + this.windowPreference = windowPreference; + this.__explicitlySet__.add("windowPreference"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Policy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schedulingPolicyId") + private String schedulingPolicyId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Policy. + * + * @param schedulingPolicyId the value to set + * @return this builder + */ + public Builder schedulingPolicyId(String schedulingPolicyId) { + this.schedulingPolicyId = schedulingPolicyId; + this.__explicitlySet__.add("schedulingPolicyId"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @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 SchedulingWindow build() { + SchedulingWindow model = + new SchedulingWindow( + this.id, + this.compartmentId, + this.displayName, + this.timeNextSchedulingWindowStarts, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.windowPreference, + this.schedulingPolicyId, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SchedulingWindow 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("timeNextSchedulingWindowStarts")) { + this.timeNextSchedulingWindowStarts(model.getTimeNextSchedulingWindowStarts()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("windowPreference")) { + this.windowPreference(model.getWindowPreference()); + } + if (model.wasPropertyExplicitlySet("schedulingPolicyId")) { + this.schedulingPolicyId(model.getSchedulingPolicyId()); + } + 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/Content/General/Concepts/identifiers.htm) of the + * Scheduling Window. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Window. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The user-friendly name for the Scheduling Window. The name does not need to be unique. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the Scheduling Window. The name does not need to be unique. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * The date and time of the next upcoming window associated within the schedulingWindow is + * planned to start. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeNextSchedulingWindowStarts") + private final java.util.Date timeNextSchedulingWindowStarts; + + /** + * The date and time of the next upcoming window associated within the schedulingWindow is + * planned to start. + * + * @return the value + */ + public java.util.Date getTimeNextSchedulingWindowStarts() { + return timeNextSchedulingWindowStarts; + } + + /** + * The current state of the Scheduling Window. Valid states are CREATING, ACTIVE, UPDATING, + * FAILED, DELETING and DELETED. + */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + Available("AVAILABLE"), + Updating("UPDATING"), + Failed("FAILED"), + Deleting("DELETING"), + Deleted("DELETED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current state of the Scheduling Window. Valid states are CREATING, ACTIVE, UPDATING, + * FAILED, DELETING and DELETED. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the Scheduling Window. Valid states are CREATING, ACTIVE, UPDATING, + * FAILED, DELETING and DELETED. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** Additional information about the current lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Additional information about the current lifecycle state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** The date and time the Scheduling Window was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the Scheduling Window was created. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The last date and time that the Scheduling Window was updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The last date and time that the Scheduling Window was updated. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @com.fasterxml.jackson.annotation.JsonProperty("windowPreference") + private final WindowPreferenceDetail windowPreference; + + public WindowPreferenceDetail getWindowPreference() { + return windowPreference; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Policy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schedulingPolicyId") + private final String schedulingPolicyId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Policy. + * + * @return the value + */ + public String getSchedulingPolicyId() { + return schedulingPolicyId; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @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("SchedulingWindow("); + 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(", timeNextSchedulingWindowStarts=") + .append(String.valueOf(this.timeNextSchedulingWindowStarts)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", windowPreference=").append(String.valueOf(this.windowPreference)); + sb.append(", schedulingPolicyId=").append(String.valueOf(this.schedulingPolicyId)); + 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 SchedulingWindow)) { + return false; + } + + SchedulingWindow other = (SchedulingWindow) 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.timeNextSchedulingWindowStarts, other.timeNextSchedulingWindowStarts) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.windowPreference, other.windowPreference) + && java.util.Objects.equals(this.schedulingPolicyId, other.schedulingPolicyId) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.timeNextSchedulingWindowStarts == null + ? 43 + : this.timeNextSchedulingWindowStarts.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.windowPreference == null ? 43 : this.windowPreference.hashCode()); + result = + (result * PRIME) + + (this.schedulingPolicyId == null + ? 43 + : this.schedulingPolicyId.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/SchedulingWindowSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/SchedulingWindowSummary.java new file mode 100644 index 00000000000..309091d7530 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/SchedulingWindowSummary.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.database.model; + +/** + * Details of a Scheduling Window.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SchedulingWindowSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SchedulingWindowSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "timeNextSchedulingWindowStarts", + "lifecycleState", + "lifecycleDetails", + "timeCreated", + "timeUpdated", + "windowPreference", + "schedulingPolicyId", + "freeformTags", + "definedTags" + }) + public SchedulingWindowSummary( + String id, + String compartmentId, + String displayName, + java.util.Date timeNextSchedulingWindowStarts, + LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + WindowPreferenceDetail windowPreference, + String schedulingPolicyId, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.timeNextSchedulingWindowStarts = timeNextSchedulingWindowStarts; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.windowPreference = windowPreference; + this.schedulingPolicyId = schedulingPolicyId; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Window. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Window. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The user-friendly name for the Scheduling Window. The name does not need to be unique. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the Scheduling Window. The name does not need to be unique. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The date and time of the next upcoming window associated within the schedulingWindow is + * planned to start. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeNextSchedulingWindowStarts") + private java.util.Date timeNextSchedulingWindowStarts; + + /** + * The date and time of the next upcoming window associated within the schedulingWindow is + * planned to start. + * + * @param timeNextSchedulingWindowStarts the value to set + * @return this builder + */ + public Builder timeNextSchedulingWindowStarts( + java.util.Date timeNextSchedulingWindowStarts) { + this.timeNextSchedulingWindowStarts = timeNextSchedulingWindowStarts; + this.__explicitlySet__.add("timeNextSchedulingWindowStarts"); + return this; + } + /** + * The current state of the Scheduling Window. Valid states are CREATING, ACTIVE, UPDATING, + * FAILED, DELETING and DELETED. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the Scheduling Window. Valid states are CREATING, ACTIVE, UPDATING, + * FAILED, DELETING and DELETED. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** Additional information about the current lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Additional information about the current lifecycle state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** The date and time the Scheduling Window was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the Scheduling Window was created. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The last date and time that the Scheduling Window was updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The last date and time that the Scheduling Window was updated. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("windowPreference") + private WindowPreferenceDetail windowPreference; + + public Builder windowPreference(WindowPreferenceDetail windowPreference) { + this.windowPreference = windowPreference; + this.__explicitlySet__.add("windowPreference"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Policy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schedulingPolicyId") + private String schedulingPolicyId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Policy. + * + * @param schedulingPolicyId the value to set + * @return this builder + */ + public Builder schedulingPolicyId(String schedulingPolicyId) { + this.schedulingPolicyId = schedulingPolicyId; + this.__explicitlySet__.add("schedulingPolicyId"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @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 SchedulingWindowSummary build() { + SchedulingWindowSummary model = + new SchedulingWindowSummary( + this.id, + this.compartmentId, + this.displayName, + this.timeNextSchedulingWindowStarts, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.windowPreference, + this.schedulingPolicyId, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SchedulingWindowSummary 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("timeNextSchedulingWindowStarts")) { + this.timeNextSchedulingWindowStarts(model.getTimeNextSchedulingWindowStarts()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("windowPreference")) { + this.windowPreference(model.getWindowPreference()); + } + if (model.wasPropertyExplicitlySet("schedulingPolicyId")) { + this.schedulingPolicyId(model.getSchedulingPolicyId()); + } + 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/Content/General/Concepts/identifiers.htm) of the + * Scheduling Window. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Window. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The user-friendly name for the Scheduling Window. The name does not need to be unique. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the Scheduling Window. The name does not need to be unique. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * The date and time of the next upcoming window associated within the schedulingWindow is + * planned to start. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeNextSchedulingWindowStarts") + private final java.util.Date timeNextSchedulingWindowStarts; + + /** + * The date and time of the next upcoming window associated within the schedulingWindow is + * planned to start. + * + * @return the value + */ + public java.util.Date getTimeNextSchedulingWindowStarts() { + return timeNextSchedulingWindowStarts; + } + + /** + * The current state of the Scheduling Window. Valid states are CREATING, ACTIVE, UPDATING, + * FAILED, DELETING and DELETED. + */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + Available("AVAILABLE"), + Updating("UPDATING"), + Failed("FAILED"), + Deleting("DELETING"), + Deleted("DELETED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current state of the Scheduling Window. Valid states are CREATING, ACTIVE, UPDATING, + * FAILED, DELETING and DELETED. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the Scheduling Window. Valid states are CREATING, ACTIVE, UPDATING, + * FAILED, DELETING and DELETED. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** Additional information about the current lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Additional information about the current lifecycle state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** The date and time the Scheduling Window was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the Scheduling Window was created. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The last date and time that the Scheduling Window was updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The last date and time that the Scheduling Window was updated. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @com.fasterxml.jackson.annotation.JsonProperty("windowPreference") + private final WindowPreferenceDetail windowPreference; + + public WindowPreferenceDetail getWindowPreference() { + return windowPreference; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Policy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schedulingPolicyId") + private final String schedulingPolicyId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Policy. + * + * @return the value + */ + public String getSchedulingPolicyId() { + return schedulingPolicyId; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @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("SchedulingWindowSummary("); + 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(", timeNextSchedulingWindowStarts=") + .append(String.valueOf(this.timeNextSchedulingWindowStarts)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", windowPreference=").append(String.valueOf(this.windowPreference)); + sb.append(", schedulingPolicyId=").append(String.valueOf(this.schedulingPolicyId)); + 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 SchedulingWindowSummary)) { + return false; + } + + SchedulingWindowSummary other = (SchedulingWindowSummary) 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.timeNextSchedulingWindowStarts, other.timeNextSchedulingWindowStarts) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.windowPreference, other.windowPreference) + && java.util.Objects.equals(this.schedulingPolicyId, other.schedulingPolicyId) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.timeNextSchedulingWindowStarts == null + ? 43 + : this.timeNextSchedulingWindowStarts.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.windowPreference == null ? 43 : this.windowPreference.hashCode()); + result = + (result * PRIME) + + (this.schedulingPolicyId == null + ? 43 + : this.schedulingPolicyId.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousDatabaseDetails.java index 0d81865c5c7..4113bdac4e5 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousDatabaseDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousDatabaseDetails.java @@ -322,29 +322,23 @@ public Builder longTermBackupSchedule( return this; } /** - * Autonomous Database for Developers are free Autonomous Databases that developers can use - * to build and test new applications.With Autonomous these database instancess instances, - * you can try new Autonomous Database features for free and apply them to ongoing or new - * development projects. Developer database comes with limited resources and is, therefore, - * not suitable for large-scale testing and production deployments. When you need more - * compute or storage resources, you can transition to a paid database licensing by cloning - * your developer database into a regular Autonomous Database. See [Autonomous Database - * documentation](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/eddjo/index.html) - * for more details. + * Autonomous Database for Developers are fixed-shape Autonomous Databases that developers + * can use to build and test new applications. On Serverless, these are low-cost and billed + * per instance, on Dedicated and Cloud@Customer there is no additional cost to create + * Developer databases. Developer databases come with limited resources and is not intended + * for large-scale testing and production deployments. When you need more compute or storage + * resources, you may upgrade to a full paid production database. */ @com.fasterxml.jackson.annotation.JsonProperty("isDevTier") private Boolean isDevTier; /** - * Autonomous Database for Developers are free Autonomous Databases that developers can use - * to build and test new applications.With Autonomous these database instancess instances, - * you can try new Autonomous Database features for free and apply them to ongoing or new - * development projects. Developer database comes with limited resources and is, therefore, - * not suitable for large-scale testing and production deployments. When you need more - * compute or storage resources, you can transition to a paid database licensing by cloning - * your developer database into a regular Autonomous Database. See [Autonomous Database - * documentation](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/eddjo/index.html) - * for more details. + * Autonomous Database for Developers are fixed-shape Autonomous Databases that developers + * can use to build and test new applications. On Serverless, these are low-cost and billed + * per instance, on Dedicated and Cloud@Customer there is no additional cost to create + * Developer databases. Developer databases come with limited resources and is not intended + * for large-scale testing and production deployments. When you need more compute or storage + * resources, you may upgrade to a full paid production database. * * @param isDevTier the value to set * @return this builder @@ -2081,29 +2075,23 @@ public LongTermBackUpScheduleDetails getLongTermBackupSchedule() { } /** - * Autonomous Database for Developers are free Autonomous Databases that developers can use to - * build and test new applications.With Autonomous these database instancess instances, you can - * try new Autonomous Database features for free and apply them to ongoing or new development - * projects. Developer database comes with limited resources and is, therefore, not suitable for + * Autonomous Database for Developers are fixed-shape Autonomous Databases that developers can + * use to build and test new applications. On Serverless, these are low-cost and billed per + * instance, on Dedicated and Cloud@Customer there is no additional cost to create Developer + * databases. Developer databases come with limited resources and is not intended for * large-scale testing and production deployments. When you need more compute or storage - * resources, you can transition to a paid database licensing by cloning your developer database - * into a regular Autonomous Database. See [Autonomous Database - * documentation](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/eddjo/index.html) - * for more details. + * resources, you may upgrade to a full paid production database. */ @com.fasterxml.jackson.annotation.JsonProperty("isDevTier") private final Boolean isDevTier; /** - * Autonomous Database for Developers are free Autonomous Databases that developers can use to - * build and test new applications.With Autonomous these database instancess instances, you can - * try new Autonomous Database features for free and apply them to ongoing or new development - * projects. Developer database comes with limited resources and is, therefore, not suitable for + * Autonomous Database for Developers are fixed-shape Autonomous Databases that developers can + * use to build and test new applications. On Serverless, these are low-cost and billed per + * instance, on Dedicated and Cloud@Customer there is no additional cost to create Developer + * databases. Developer databases come with limited resources and is not intended for * large-scale testing and production deployments. When you need more compute or storage - * resources, you can transition to a paid database licensing by cloning your developer database - * into a regular Autonomous Database. See [Autonomous Database - * documentation](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/eddjo/index.html) - * for more details. + * resources, you may upgrade to a full paid production database. * * @return the value */ diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateExadbVmClusterDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateExadbVmClusterDetails.java index 3568f926ade..e99a75bcabf 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateExadbVmClusterDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateExadbVmClusterDetails.java @@ -317,12 +317,30 @@ public Builder systemVersion(String systemVersion) { this.__explicitlySet__.add("systemVersion"); return this; } - /** Grid Setup will be done using this grid image id */ + /** + * Grid Setup will be done using this grid image id. + * + *

The grid image id can be extracted from 1. Obtain the supported major versions using + * API + * /20160918/giVersions?compartmentId=&shape=EXADB_XS&availabilityDomain= 2. Replace {version} with one of the supported major versions and obtain the + * supported minor versions using API + * /20160918/giVersions/{version}/minorVersions?compartmentId=&shapeFamily=EXADB_XS&availabilityDomain= + */ @com.fasterxml.jackson.annotation.JsonProperty("gridImageId") private String gridImageId; /** - * Grid Setup will be done using this grid image id + * Grid Setup will be done using this grid image id. + * + *

The grid image id can be extracted from 1. Obtain the supported major versions using + * API + * /20160918/giVersions?compartmentId=&shape=EXADB_XS&availabilityDomain= 2. Replace {version} with one of the supported major versions and obtain the + * supported minor versions using API + * /20160918/giVersions/{version}/minorVersions?compartmentId=&shapeFamily=EXADB_XS&availabilityDomain= * * @param gridImageId the value to set * @return this builder @@ -680,12 +698,28 @@ public String getSystemVersion() { return systemVersion; } - /** Grid Setup will be done using this grid image id */ + /** + * Grid Setup will be done using this grid image id. + * + *

The grid image id can be extracted from 1. Obtain the supported major versions using API + * /20160918/giVersions?compartmentId=&shape=EXADB_XS&availabilityDomain= 2. Replace {version} with one of the supported major versions and obtain the supported + * minor versions using API + * /20160918/giVersions/{version}/minorVersions?compartmentId=&shapeFamily=EXADB_XS&availabilityDomain= + */ @com.fasterxml.jackson.annotation.JsonProperty("gridImageId") private final String gridImageId; /** - * Grid Setup will be done using this grid image id + * Grid Setup will be done using this grid image id. + * + *

The grid image id can be extracted from 1. Obtain the supported major versions using API + * /20160918/giVersions?compartmentId=&shape=EXADB_XS&availabilityDomain= 2. Replace {version} with one of the supported major versions and obtain the supported + * minor versions using API + * /20160918/giVersions/{version}/minorVersions?compartmentId=&shapeFamily=EXADB_XS&availabilityDomain= * * @return the value */ diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateExecutionActionDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateExecutionActionDetails.java new file mode 100644 index 00000000000..10becfdebc7 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateExecutionActionDetails.java @@ -0,0 +1,344 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Describes the modification parameters for the execution action.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateExecutionActionDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateExecutionActionDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "executionWindowId", + "actionParams", + "actionMembers", + "freeformTags", + "definedTags" + }) + public UpdateExecutionActionDetails( + String executionWindowId, + java.util.Map actionParams, + java.util.List actionMembers, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.executionWindowId = executionWindowId; + this.actionParams = actionParams; + this.actionMembers = actionMembers; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution window resource the execution action belongs to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("executionWindowId") + private String executionWindowId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution window resource the execution action belongs to. + * + * @param executionWindowId the value to set + * @return this builder + */ + public Builder executionWindowId(String executionWindowId) { + this.executionWindowId = executionWindowId; + this.__explicitlySet__.add("executionWindowId"); + return this; + } + /** + * Map where a key value pair describes the specific action + * parameter. Example: {@code {"count": "3"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("actionParams") + private java.util.Map actionParams; + + /** + * Map where a key value pair describes the specific action + * parameter. Example: {@code {"count": "3"}} + * + * @param actionParams the value to set + * @return this builder + */ + public Builder actionParams(java.util.Map actionParams) { + this.actionParams = actionParams; + this.__explicitlySet__.add("actionParams"); + return this; + } + /** List of action members of this execution action. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionMembers") + private java.util.List actionMembers; + + /** + * List of action members of this execution action. + * + * @param actionMembers the value to set + * @return this builder + */ + public Builder actionMembers(java.util.List actionMembers) { + this.actionMembers = actionMembers; + this.__explicitlySet__.add("actionMembers"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @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 UpdateExecutionActionDetails build() { + UpdateExecutionActionDetails model = + new UpdateExecutionActionDetails( + this.executionWindowId, + this.actionParams, + this.actionMembers, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateExecutionActionDetails model) { + if (model.wasPropertyExplicitlySet("executionWindowId")) { + this.executionWindowId(model.getExecutionWindowId()); + } + if (model.wasPropertyExplicitlySet("actionParams")) { + this.actionParams(model.getActionParams()); + } + if (model.wasPropertyExplicitlySet("actionMembers")) { + this.actionMembers(model.getActionMembers()); + } + 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/Content/General/Concepts/identifiers.htm) of the + * execution window resource the execution action belongs to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("executionWindowId") + private final String executionWindowId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * execution window resource the execution action belongs to. + * + * @return the value + */ + public String getExecutionWindowId() { + return executionWindowId; + } + + /** + * Map where a key value pair describes the specific action parameter. + * Example: {@code {"count": "3"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("actionParams") + private final java.util.Map actionParams; + + /** + * Map where a key value pair describes the specific action parameter. + * Example: {@code {"count": "3"}} + * + * @return the value + */ + public java.util.Map getActionParams() { + return actionParams; + } + + /** List of action members of this execution action. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionMembers") + private final java.util.List actionMembers; + + /** + * List of action members of this execution action. + * + * @return the value + */ + public java.util.List getActionMembers() { + return actionMembers; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @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("UpdateExecutionActionDetails("); + sb.append("super=").append(super.toString()); + sb.append("executionWindowId=").append(String.valueOf(this.executionWindowId)); + sb.append(", actionParams=").append(String.valueOf(this.actionParams)); + sb.append(", actionMembers=").append(String.valueOf(this.actionMembers)); + 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 UpdateExecutionActionDetails)) { + return false; + } + + UpdateExecutionActionDetails other = (UpdateExecutionActionDetails) o; + return java.util.Objects.equals(this.executionWindowId, other.executionWindowId) + && java.util.Objects.equals(this.actionParams, other.actionParams) + && java.util.Objects.equals(this.actionMembers, other.actionMembers) + && 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.executionWindowId == null ? 43 : this.executionWindowId.hashCode()); + result = (result * PRIME) + (this.actionParams == null ? 43 : this.actionParams.hashCode()); + result = + (result * PRIME) + + (this.actionMembers == null ? 43 : this.actionMembers.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateExecutionWindowDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateExecutionWindowDetails.java new file mode 100644 index 00000000000..be94c65b50b --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateExecutionWindowDetails.java @@ -0,0 +1,350 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Describes the modification parameters for the execution window.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateExecutionWindowDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateExecutionWindowDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "timeScheduled", + "windowDurationInMins", + "isEnforcedDuration", + "freeformTags", + "definedTags" + }) + public UpdateExecutionWindowDetails( + java.util.Date timeScheduled, + Integer windowDurationInMins, + Boolean isEnforcedDuration, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.timeScheduled = timeScheduled; + this.windowDurationInMins = windowDurationInMins; + this.isEnforcedDuration = isEnforcedDuration; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The scheduled start date and time of the execution window. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduled") + private java.util.Date timeScheduled; + + /** + * The scheduled start date and time of the execution window. + * + * @param timeScheduled the value to set + * @return this builder + */ + public Builder timeScheduled(java.util.Date timeScheduled) { + this.timeScheduled = timeScheduled; + this.__explicitlySet__.add("timeScheduled"); + return this; + } + /** + * Duration window allows user to set a duration they plan to allocate for Scheduling + * window. The duration is in minutes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("windowDurationInMins") + private Integer windowDurationInMins; + + /** + * Duration window allows user to set a duration they plan to allocate for Scheduling + * window. The duration is in minutes. + * + * @param windowDurationInMins the value to set + * @return this builder + */ + public Builder windowDurationInMins(Integer windowDurationInMins) { + this.windowDurationInMins = windowDurationInMins; + this.__explicitlySet__.add("windowDurationInMins"); + return this; + } + /** + * Indicates if duration the user plans to allocate for scheduling window is strictly + * enforced. The default value is {@code FALSE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnforcedDuration") + private Boolean isEnforcedDuration; + + /** + * Indicates if duration the user plans to allocate for scheduling window is strictly + * enforced. The default value is {@code FALSE}. + * + * @param isEnforcedDuration the value to set + * @return this builder + */ + public Builder isEnforcedDuration(Boolean isEnforcedDuration) { + this.isEnforcedDuration = isEnforcedDuration; + this.__explicitlySet__.add("isEnforcedDuration"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @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 UpdateExecutionWindowDetails build() { + UpdateExecutionWindowDetails model = + new UpdateExecutionWindowDetails( + this.timeScheduled, + this.windowDurationInMins, + this.isEnforcedDuration, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateExecutionWindowDetails model) { + if (model.wasPropertyExplicitlySet("timeScheduled")) { + this.timeScheduled(model.getTimeScheduled()); + } + if (model.wasPropertyExplicitlySet("windowDurationInMins")) { + this.windowDurationInMins(model.getWindowDurationInMins()); + } + if (model.wasPropertyExplicitlySet("isEnforcedDuration")) { + this.isEnforcedDuration(model.getIsEnforcedDuration()); + } + 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 scheduled start date and time of the execution window. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduled") + private final java.util.Date timeScheduled; + + /** + * The scheduled start date and time of the execution window. + * + * @return the value + */ + public java.util.Date getTimeScheduled() { + return timeScheduled; + } + + /** + * Duration window allows user to set a duration they plan to allocate for Scheduling window. + * The duration is in minutes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("windowDurationInMins") + private final Integer windowDurationInMins; + + /** + * Duration window allows user to set a duration they plan to allocate for Scheduling window. + * The duration is in minutes. + * + * @return the value + */ + public Integer getWindowDurationInMins() { + return windowDurationInMins; + } + + /** + * Indicates if duration the user plans to allocate for scheduling window is strictly enforced. + * The default value is {@code FALSE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnforcedDuration") + private final Boolean isEnforcedDuration; + + /** + * Indicates if duration the user plans to allocate for scheduling window is strictly enforced. + * The default value is {@code FALSE}. + * + * @return the value + */ + public Boolean getIsEnforcedDuration() { + return isEnforcedDuration; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @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("UpdateExecutionWindowDetails("); + sb.append("super=").append(super.toString()); + sb.append("timeScheduled=").append(String.valueOf(this.timeScheduled)); + sb.append(", windowDurationInMins=").append(String.valueOf(this.windowDurationInMins)); + sb.append(", isEnforcedDuration=").append(String.valueOf(this.isEnforcedDuration)); + 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 UpdateExecutionWindowDetails)) { + return false; + } + + UpdateExecutionWindowDetails other = (UpdateExecutionWindowDetails) o; + return java.util.Objects.equals(this.timeScheduled, other.timeScheduled) + && java.util.Objects.equals(this.windowDurationInMins, other.windowDurationInMins) + && java.util.Objects.equals(this.isEnforcedDuration, other.isEnforcedDuration) + && 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.timeScheduled == null ? 43 : this.timeScheduled.hashCode()); + result = + (result * PRIME) + + (this.windowDurationInMins == null + ? 43 + : this.windowDurationInMins.hashCode()); + result = + (result * PRIME) + + (this.isEnforcedDuration == null + ? 43 + : this.isEnforcedDuration.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateScheduledActionDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateScheduledActionDetails.java new file mode 100644 index 00000000000..dad15ff649c --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateScheduledActionDetails.java @@ -0,0 +1,231 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Describes the modification parameters for the Scheduled Action.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateScheduledActionDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateScheduledActionDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"actionParams", "actionMembers", "schedulingWindowId"}) + public UpdateScheduledActionDetails( + java.util.Map actionParams, + java.util.List actionMembers, + String schedulingWindowId) { + super(); + this.actionParams = actionParams; + this.actionMembers = actionMembers; + this.schedulingWindowId = schedulingWindowId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Map where a key value pair describes the specific action + * parameter. Example: {@code {"count": "3"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("actionParams") + private java.util.Map actionParams; + + /** + * Map where a key value pair describes the specific action + * parameter. Example: {@code {"count": "3"}} + * + * @param actionParams the value to set + * @return this builder + */ + public Builder actionParams(java.util.Map actionParams) { + this.actionParams = actionParams; + this.__explicitlySet__.add("actionParams"); + return this; + } + /** The list of action members in a scheduled action. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionMembers") + private java.util.List actionMembers; + + /** + * The list of action members in a scheduled action. + * + * @param actionMembers the value to set + * @return this builder + */ + public Builder actionMembers(java.util.List actionMembers) { + this.actionMembers = actionMembers; + this.__explicitlySet__.add("actionMembers"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Window. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schedulingWindowId") + private String schedulingWindowId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Window. + * + * @param schedulingWindowId the value to set + * @return this builder + */ + public Builder schedulingWindowId(String schedulingWindowId) { + this.schedulingWindowId = schedulingWindowId; + this.__explicitlySet__.add("schedulingWindowId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateScheduledActionDetails build() { + UpdateScheduledActionDetails model = + new UpdateScheduledActionDetails( + this.actionParams, this.actionMembers, this.schedulingWindowId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateScheduledActionDetails model) { + if (model.wasPropertyExplicitlySet("actionParams")) { + this.actionParams(model.getActionParams()); + } + if (model.wasPropertyExplicitlySet("actionMembers")) { + this.actionMembers(model.getActionMembers()); + } + if (model.wasPropertyExplicitlySet("schedulingWindowId")) { + this.schedulingWindowId(model.getSchedulingWindowId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Map where a key value pair describes the specific action parameter. + * Example: {@code {"count": "3"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("actionParams") + private final java.util.Map actionParams; + + /** + * Map where a key value pair describes the specific action parameter. + * Example: {@code {"count": "3"}} + * + * @return the value + */ + public java.util.Map getActionParams() { + return actionParams; + } + + /** The list of action members in a scheduled action. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionMembers") + private final java.util.List actionMembers; + + /** + * The list of action members in a scheduled action. + * + * @return the value + */ + public java.util.List getActionMembers() { + return actionMembers; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Window. + */ + @com.fasterxml.jackson.annotation.JsonProperty("schedulingWindowId") + private final String schedulingWindowId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Scheduling Window. + * + * @return the value + */ + public String getSchedulingWindowId() { + return schedulingWindowId; + } + + @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("UpdateScheduledActionDetails("); + sb.append("super=").append(super.toString()); + sb.append("actionParams=").append(String.valueOf(this.actionParams)); + sb.append(", actionMembers=").append(String.valueOf(this.actionMembers)); + sb.append(", schedulingWindowId=").append(String.valueOf(this.schedulingWindowId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateScheduledActionDetails)) { + return false; + } + + UpdateScheduledActionDetails other = (UpdateScheduledActionDetails) o; + return java.util.Objects.equals(this.actionParams, other.actionParams) + && java.util.Objects.equals(this.actionMembers, other.actionMembers) + && java.util.Objects.equals(this.schedulingWindowId, other.schedulingWindowId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.actionParams == null ? 43 : this.actionParams.hashCode()); + result = + (result * PRIME) + + (this.actionMembers == null ? 43 : this.actionMembers.hashCode()); + result = + (result * PRIME) + + (this.schedulingWindowId == null + ? 43 + : this.schedulingWindowId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateSchedulingPolicyDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateSchedulingPolicyDetails.java new file mode 100644 index 00000000000..deb3294b567 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateSchedulingPolicyDetails.java @@ -0,0 +1,362 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Describes the modification parameters for the Scheduling Policy.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateSchedulingPolicyDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateSchedulingPolicyDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "cadence", + "cadenceStartMonth", + "freeformTags", + "definedTags" + }) + public UpdateSchedulingPolicyDetails( + String displayName, + Cadence cadence, + Month cadenceStartMonth, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.cadence = cadence; + this.cadenceStartMonth = cadenceStartMonth; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The user-friendly name for the Scheduling Policy. The name does not need to be unique. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the Scheduling Policy. The name does not need to be unique. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The cadence period. */ + @com.fasterxml.jackson.annotation.JsonProperty("cadence") + private Cadence cadence; + + /** + * The cadence period. + * + * @param cadence the value to set + * @return this builder + */ + public Builder cadence(Cadence cadence) { + this.cadence = cadence; + this.__explicitlySet__.add("cadence"); + return this; + } + /** Start of the month to be followed during the cadence period. */ + @com.fasterxml.jackson.annotation.JsonProperty("cadenceStartMonth") + private Month cadenceStartMonth; + + /** + * Start of the month to be followed during the cadence period. + * + * @param cadenceStartMonth the value to set + * @return this builder + */ + public Builder cadenceStartMonth(Month cadenceStartMonth) { + this.cadenceStartMonth = cadenceStartMonth; + this.__explicitlySet__.add("cadenceStartMonth"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @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 UpdateSchedulingPolicyDetails build() { + UpdateSchedulingPolicyDetails model = + new UpdateSchedulingPolicyDetails( + this.displayName, + this.cadence, + this.cadenceStartMonth, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateSchedulingPolicyDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("cadence")) { + this.cadence(model.getCadence()); + } + if (model.wasPropertyExplicitlySet("cadenceStartMonth")) { + this.cadenceStartMonth(model.getCadenceStartMonth()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The user-friendly name for the Scheduling Policy. The name does not need to be unique. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the Scheduling Policy. The name does not need to be unique. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The cadence period. */ + public enum Cadence implements com.oracle.bmc.http.internal.BmcEnum { + Halfyearly("HALFYEARLY"), + Quarterly("QUARTERLY"), + Monthly("MONTHLY"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Cadence v : Cadence.values()) { + map.put(v.getValue(), v); + } + } + + Cadence(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Cadence create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Cadence: " + key); + } + }; + /** The cadence period. */ + @com.fasterxml.jackson.annotation.JsonProperty("cadence") + private final Cadence cadence; + + /** + * The cadence period. + * + * @return the value + */ + public Cadence getCadence() { + return cadence; + } + + /** Start of the month to be followed during the cadence period. */ + @com.fasterxml.jackson.annotation.JsonProperty("cadenceStartMonth") + private final Month cadenceStartMonth; + + /** + * Start of the month to be followed during the cadence period. + * + * @return the value + */ + public Month getCadenceStartMonth() { + return cadenceStartMonth; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @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("UpdateSchedulingPolicyDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", cadence=").append(String.valueOf(this.cadence)); + sb.append(", cadenceStartMonth=").append(String.valueOf(this.cadenceStartMonth)); + 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 UpdateSchedulingPolicyDetails)) { + return false; + } + + UpdateSchedulingPolicyDetails other = (UpdateSchedulingPolicyDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.cadence, other.cadence) + && java.util.Objects.equals(this.cadenceStartMonth, other.cadenceStartMonth) + && 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.cadence == null ? 43 : this.cadence.hashCode()); + result = + (result * PRIME) + + (this.cadenceStartMonth == null ? 43 : this.cadenceStartMonth.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateSchedulingWindowDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateSchedulingWindowDetails.java new file mode 100644 index 00000000000..363587d3bb1 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateSchedulingWindowDetails.java @@ -0,0 +1,232 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Describes the modification parameters for the Scheduling Window.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateSchedulingWindowDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateSchedulingWindowDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"windowPreference", "freeformTags", "definedTags"}) + public UpdateSchedulingWindowDetails( + WindowPreferenceDetail windowPreference, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.windowPreference = windowPreference; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("windowPreference") + private WindowPreferenceDetail windowPreference; + + public Builder windowPreference(WindowPreferenceDetail windowPreference) { + this.windowPreference = windowPreference; + this.__explicitlySet__.add("windowPreference"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @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 UpdateSchedulingWindowDetails build() { + UpdateSchedulingWindowDetails model = + new UpdateSchedulingWindowDetails( + this.windowPreference, this.freeformTags, this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateSchedulingWindowDetails model) { + if (model.wasPropertyExplicitlySet("windowPreference")) { + this.windowPreference(model.getWindowPreference()); + } + 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); + } + + @com.fasterxml.jackson.annotation.JsonProperty("windowPreference") + private final WindowPreferenceDetail windowPreference; + + public WindowPreferenceDetail getWindowPreference() { + return windowPreference; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + * @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("UpdateSchedulingWindowDetails("); + sb.append("super=").append(super.toString()); + sb.append("windowPreference=").append(String.valueOf(this.windowPreference)); + 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 UpdateSchedulingWindowDetails)) { + return false; + } + + UpdateSchedulingWindowDetails other = (UpdateSchedulingWindowDetails) o; + return java.util.Objects.equals(this.windowPreference, other.windowPreference) + && 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.windowPreference == null ? 43 : this.windowPreference.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/WindowPreferenceDetail.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/WindowPreferenceDetail.java new file mode 100644 index 00000000000..6bf0e2fda2a --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/WindowPreferenceDetail.java @@ -0,0 +1,381 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * The Single Scheduling Window details.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WindowPreferenceDetail.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WindowPreferenceDetail + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "months", + "weeksOfMonth", + "daysOfWeek", + "startTime", + "duration", + "isEnforcedDuration" + }) + public WindowPreferenceDetail( + java.util.List months, + java.util.List weeksOfMonth, + java.util.List daysOfWeek, + String startTime, + Integer duration, + Boolean isEnforcedDuration) { + super(); + this.months = months; + this.weeksOfMonth = weeksOfMonth; + this.daysOfWeek = daysOfWeek; + this.startTime = startTime; + this.duration = duration; + this.isEnforcedDuration = isEnforcedDuration; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Months during the year when scheduled window should be performed. */ + @com.fasterxml.jackson.annotation.JsonProperty("months") + private java.util.List months; + + /** + * Months during the year when scheduled window should be performed. + * + * @param months the value to set + * @return this builder + */ + public Builder months(java.util.List months) { + this.months = months; + this.__explicitlySet__.add("months"); + return this; + } + /** + * Weeks during the month when scheduled window should be performed. Weeks start on the 1st, + * 8th, 15th, and 22nd days of the month, and have a duration of 7 days. Weeks start and end + * based on calendar dates, not days of the week. For example, to allow scheduling window + * during the 2nd week of the month (from the 8th day to the 14th day of the month), use the + * value 2. Scheduling window cannot be scheduled for the fifth week of months that contain + * more than 28 days. Note that this parameter works in conjunction with the daysOfWeek and + * startTime parameters to allow you to specify specific days of the week and hours that + * scheduled window will be performed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("weeksOfMonth") + private java.util.List weeksOfMonth; + + /** + * Weeks during the month when scheduled window should be performed. Weeks start on the 1st, + * 8th, 15th, and 22nd days of the month, and have a duration of 7 days. Weeks start and end + * based on calendar dates, not days of the week. For example, to allow scheduling window + * during the 2nd week of the month (from the 8th day to the 14th day of the month), use the + * value 2. Scheduling window cannot be scheduled for the fifth week of months that contain + * more than 28 days. Note that this parameter works in conjunction with the daysOfWeek and + * startTime parameters to allow you to specify specific days of the week and hours that + * scheduled window will be performed. + * + * @param weeksOfMonth the value to set + * @return this builder + */ + public Builder weeksOfMonth(java.util.List weeksOfMonth) { + this.weeksOfMonth = weeksOfMonth; + this.__explicitlySet__.add("weeksOfMonth"); + return this; + } + /** Days during the week when scheduling window should be performed. */ + @com.fasterxml.jackson.annotation.JsonProperty("daysOfWeek") + private java.util.List daysOfWeek; + + /** + * Days during the week when scheduling window should be performed. + * + * @param daysOfWeek the value to set + * @return this builder + */ + public Builder daysOfWeek(java.util.List daysOfWeek) { + this.daysOfWeek = daysOfWeek; + this.__explicitlySet__.add("daysOfWeek"); + return this; + } + /** The scheduling window start time. The value must use the ISO-8601 format "hh:mm". */ + @com.fasterxml.jackson.annotation.JsonProperty("startTime") + private String startTime; + + /** + * The scheduling window start time. The value must use the ISO-8601 format "hh:mm". + * + * @param startTime the value to set + * @return this builder + */ + public Builder startTime(String startTime) { + this.startTime = startTime; + this.__explicitlySet__.add("startTime"); + return this; + } + /** + * Duration window allows user to set a duration they plan to allocate for Scheduling + * window. The duration is in minutes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("duration") + private Integer duration; + + /** + * Duration window allows user to set a duration they plan to allocate for Scheduling + * window. The duration is in minutes. + * + * @param duration the value to set + * @return this builder + */ + public Builder duration(Integer duration) { + this.duration = duration; + this.__explicitlySet__.add("duration"); + return this; + } + /** + * Indicates if duration the user plans to allocate for scheduling window is strictly + * enforced. The default value is {@code FALSE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnforcedDuration") + private Boolean isEnforcedDuration; + + /** + * Indicates if duration the user plans to allocate for scheduling window is strictly + * enforced. The default value is {@code FALSE}. + * + * @param isEnforcedDuration the value to set + * @return this builder + */ + public Builder isEnforcedDuration(Boolean isEnforcedDuration) { + this.isEnforcedDuration = isEnforcedDuration; + this.__explicitlySet__.add("isEnforcedDuration"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WindowPreferenceDetail build() { + WindowPreferenceDetail model = + new WindowPreferenceDetail( + this.months, + this.weeksOfMonth, + this.daysOfWeek, + this.startTime, + this.duration, + this.isEnforcedDuration); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WindowPreferenceDetail model) { + if (model.wasPropertyExplicitlySet("months")) { + this.months(model.getMonths()); + } + if (model.wasPropertyExplicitlySet("weeksOfMonth")) { + this.weeksOfMonth(model.getWeeksOfMonth()); + } + if (model.wasPropertyExplicitlySet("daysOfWeek")) { + this.daysOfWeek(model.getDaysOfWeek()); + } + if (model.wasPropertyExplicitlySet("startTime")) { + this.startTime(model.getStartTime()); + } + if (model.wasPropertyExplicitlySet("duration")) { + this.duration(model.getDuration()); + } + if (model.wasPropertyExplicitlySet("isEnforcedDuration")) { + this.isEnforcedDuration(model.getIsEnforcedDuration()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Months during the year when scheduled window should be performed. */ + @com.fasterxml.jackson.annotation.JsonProperty("months") + private final java.util.List months; + + /** + * Months during the year when scheduled window should be performed. + * + * @return the value + */ + public java.util.List getMonths() { + return months; + } + + /** + * Weeks during the month when scheduled window should be performed. Weeks start on the 1st, + * 8th, 15th, and 22nd days of the month, and have a duration of 7 days. Weeks start and end + * based on calendar dates, not days of the week. For example, to allow scheduling window during + * the 2nd week of the month (from the 8th day to the 14th day of the month), use the value 2. + * Scheduling window cannot be scheduled for the fifth week of months that contain more than 28 + * days. Note that this parameter works in conjunction with the daysOfWeek and startTime + * parameters to allow you to specify specific days of the week and hours that scheduled window + * will be performed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("weeksOfMonth") + private final java.util.List weeksOfMonth; + + /** + * Weeks during the month when scheduled window should be performed. Weeks start on the 1st, + * 8th, 15th, and 22nd days of the month, and have a duration of 7 days. Weeks start and end + * based on calendar dates, not days of the week. For example, to allow scheduling window during + * the 2nd week of the month (from the 8th day to the 14th day of the month), use the value 2. + * Scheduling window cannot be scheduled for the fifth week of months that contain more than 28 + * days. Note that this parameter works in conjunction with the daysOfWeek and startTime + * parameters to allow you to specify specific days of the week and hours that scheduled window + * will be performed. + * + * @return the value + */ + public java.util.List getWeeksOfMonth() { + return weeksOfMonth; + } + + /** Days during the week when scheduling window should be performed. */ + @com.fasterxml.jackson.annotation.JsonProperty("daysOfWeek") + private final java.util.List daysOfWeek; + + /** + * Days during the week when scheduling window should be performed. + * + * @return the value + */ + public java.util.List getDaysOfWeek() { + return daysOfWeek; + } + + /** The scheduling window start time. The value must use the ISO-8601 format "hh:mm". */ + @com.fasterxml.jackson.annotation.JsonProperty("startTime") + private final String startTime; + + /** + * The scheduling window start time. The value must use the ISO-8601 format "hh:mm". + * + * @return the value + */ + public String getStartTime() { + return startTime; + } + + /** + * Duration window allows user to set a duration they plan to allocate for Scheduling window. + * The duration is in minutes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("duration") + private final Integer duration; + + /** + * Duration window allows user to set a duration they plan to allocate for Scheduling window. + * The duration is in minutes. + * + * @return the value + */ + public Integer getDuration() { + return duration; + } + + /** + * Indicates if duration the user plans to allocate for scheduling window is strictly enforced. + * The default value is {@code FALSE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isEnforcedDuration") + private final Boolean isEnforcedDuration; + + /** + * Indicates if duration the user plans to allocate for scheduling window is strictly enforced. + * The default value is {@code FALSE}. + * + * @return the value + */ + public Boolean getIsEnforcedDuration() { + return isEnforcedDuration; + } + + @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("WindowPreferenceDetail("); + sb.append("super=").append(super.toString()); + sb.append("months=").append(String.valueOf(this.months)); + sb.append(", weeksOfMonth=").append(String.valueOf(this.weeksOfMonth)); + sb.append(", daysOfWeek=").append(String.valueOf(this.daysOfWeek)); + sb.append(", startTime=").append(String.valueOf(this.startTime)); + sb.append(", duration=").append(String.valueOf(this.duration)); + sb.append(", isEnforcedDuration=").append(String.valueOf(this.isEnforcedDuration)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WindowPreferenceDetail)) { + return false; + } + + WindowPreferenceDetail other = (WindowPreferenceDetail) o; + return java.util.Objects.equals(this.months, other.months) + && java.util.Objects.equals(this.weeksOfMonth, other.weeksOfMonth) + && java.util.Objects.equals(this.daysOfWeek, other.daysOfWeek) + && java.util.Objects.equals(this.startTime, other.startTime) + && java.util.Objects.equals(this.duration, other.duration) + && java.util.Objects.equals(this.isEnforcedDuration, other.isEnforcedDuration) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.months == null ? 43 : this.months.hashCode()); + result = (result * PRIME) + (this.weeksOfMonth == null ? 43 : this.weeksOfMonth.hashCode()); + result = (result * PRIME) + (this.daysOfWeek == null ? 43 : this.daysOfWeek.hashCode()); + result = (result * PRIME) + (this.startTime == null ? 43 : this.startTime.hashCode()); + result = (result * PRIME) + (this.duration == null ? 43 : this.duration.hashCode()); + result = + (result * PRIME) + + (this.isEnforcedDuration == null + ? 43 + : this.isEnforcedDuration.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/CancelExecutionWindowRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/CancelExecutionWindowRequest.java new file mode 100644 index 00000000000..85d67ff745f --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/CancelExecutionWindowRequest.java @@ -0,0 +1,365 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use + * CancelExecutionWindowRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class CancelExecutionWindowRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.database.model.CancelExecutionWindowDetails> { + + /** + * The execution window + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String executionWindowId; + + /** + * The execution window + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + public String getExecutionWindowId() { + return executionWindowId; + } + /** Request to cancel the in progress maintenance activity under this execution window. */ + private com.oracle.bmc.database.model.CancelExecutionWindowDetails cancelExecutionWindowDetails; + + /** Request to cancel the in progress maintenance activity under this execution window. */ + public com.oracle.bmc.database.model.CancelExecutionWindowDetails + getCancelExecutionWindowDetails() { + return cancelExecutionWindowDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.database.model.CancelExecutionWindowDetails getBody$() { + return cancelExecutionWindowDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CancelExecutionWindowRequest, + com.oracle.bmc.database.model.CancelExecutionWindowDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The execution window + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String executionWindowId = null; + + /** + * The execution window + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + * + * @param executionWindowId the value to set + * @return this builder instance + */ + public Builder executionWindowId(String executionWindowId) { + this.executionWindowId = executionWindowId; + return this; + } + + /** Request to cancel the in progress maintenance activity under this execution window. */ + private com.oracle.bmc.database.model.CancelExecutionWindowDetails + cancelExecutionWindowDetails = null; + + /** + * Request to cancel the in progress maintenance activity under this execution window. + * + * @param cancelExecutionWindowDetails the value to set + * @return this builder instance + */ + public Builder cancelExecutionWindowDetails( + com.oracle.bmc.database.model.CancelExecutionWindowDetails + cancelExecutionWindowDetails) { + this.cancelExecutionWindowDetails = cancelExecutionWindowDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * 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(CancelExecutionWindowRequest o) { + executionWindowId(o.getExecutionWindowId()); + cancelExecutionWindowDetails(o.getCancelExecutionWindowDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CancelExecutionWindowRequest 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 CancelExecutionWindowRequest + */ + public CancelExecutionWindowRequest build() { + CancelExecutionWindowRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.database.model.CancelExecutionWindowDetails body) { + cancelExecutionWindowDetails(body); + return this; + } + + /** + * Build the instance of CancelExecutionWindowRequest 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 CancelExecutionWindowRequest + */ + public CancelExecutionWindowRequest buildWithoutInvocationCallback() { + CancelExecutionWindowRequest request = new CancelExecutionWindowRequest(); + request.executionWindowId = executionWindowId; + request.cancelExecutionWindowDetails = cancelExecutionWindowDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new CancelExecutionWindowRequest(executionWindowId, cancelExecutionWindowDetails, + // 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() + .executionWindowId(executionWindowId) + .cancelExecutionWindowDetails(cancelExecutionWindowDetails) + .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(",executionWindowId=").append(String.valueOf(this.executionWindowId)); + sb.append(",cancelExecutionWindowDetails=") + .append(String.valueOf(this.cancelExecutionWindowDetails)); + 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 CancelExecutionWindowRequest)) { + return false; + } + + CancelExecutionWindowRequest other = (CancelExecutionWindowRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.executionWindowId, other.executionWindowId) + && java.util.Objects.equals( + this.cancelExecutionWindowDetails, other.cancelExecutionWindowDetails) + && 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.executionWindowId == null ? 43 : this.executionWindowId.hashCode()); + result = + (result * PRIME) + + (this.cancelExecutionWindowDetails == null + ? 43 + : this.cancelExecutionWindowDetails.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-database/src/main/java/com/oracle/bmc/database/requests/CascadingDeleteSchedulingPlanRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/CascadingDeleteSchedulingPlanRequest.java new file mode 100644 index 00000000000..196891b5b7e --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/CascadingDeleteSchedulingPlanRequest.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.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use + * CascadingDeleteSchedulingPlanRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class CascadingDeleteSchedulingPlanRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The Schedule Plan + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String schedulingPlanId; + + /** + * The Schedule Plan + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + public String getSchedulingPlanId() { + return schedulingPlanId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CascadingDeleteSchedulingPlanRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The Schedule Plan + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String schedulingPlanId = null; + + /** + * The Schedule Plan + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + * + * @param schedulingPlanId the value to set + * @return this builder instance + */ + public Builder schedulingPlanId(String schedulingPlanId) { + this.schedulingPlanId = schedulingPlanId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(CascadingDeleteSchedulingPlanRequest o) { + schedulingPlanId(o.getSchedulingPlanId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CascadingDeleteSchedulingPlanRequest 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 CascadingDeleteSchedulingPlanRequest + */ + public CascadingDeleteSchedulingPlanRequest build() { + CascadingDeleteSchedulingPlanRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of CascadingDeleteSchedulingPlanRequest 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 CascadingDeleteSchedulingPlanRequest + */ + public CascadingDeleteSchedulingPlanRequest buildWithoutInvocationCallback() { + CascadingDeleteSchedulingPlanRequest request = + new CascadingDeleteSchedulingPlanRequest(); + request.schedulingPlanId = schedulingPlanId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new CascadingDeleteSchedulingPlanRequest(schedulingPlanId, opcRetryToken, 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() + .schedulingPlanId(schedulingPlanId) + .opcRetryToken(opcRetryToken) + .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(",schedulingPlanId=").append(String.valueOf(this.schedulingPlanId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + 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 CascadingDeleteSchedulingPlanRequest)) { + return false; + } + + CascadingDeleteSchedulingPlanRequest other = (CascadingDeleteSchedulingPlanRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.schedulingPlanId, other.schedulingPlanId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && 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.schedulingPlanId == null ? 43 : this.schedulingPlanId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ChangeSchedulingPlanCompartmentRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ChangeSchedulingPlanCompartmentRequest.java new file mode 100644 index 00000000000..d4258297b97 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ChangeSchedulingPlanCompartmentRequest.java @@ -0,0 +1,371 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use + * ChangeSchedulingPlanCompartmentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ChangeSchedulingPlanCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.database.model.ChangeSchedulingPlanCompartmentDetails> { + + /** Request to move scheduling plan to a different compartment */ + private com.oracle.bmc.database.model.ChangeSchedulingPlanCompartmentDetails + changeSchedulingPlanCompartmentDetails; + + /** Request to move scheduling plan to a different compartment */ + public com.oracle.bmc.database.model.ChangeSchedulingPlanCompartmentDetails + getChangeSchedulingPlanCompartmentDetails() { + return changeSchedulingPlanCompartmentDetails; + } + /** + * The Schedule Plan + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String schedulingPlanId; + + /** + * The Schedule Plan + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + public String getSchedulingPlanId() { + return schedulingPlanId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.database.model.ChangeSchedulingPlanCompartmentDetails getBody$() { + return changeSchedulingPlanCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeSchedulingPlanCompartmentRequest, + com.oracle.bmc.database.model.ChangeSchedulingPlanCompartmentDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Request to move scheduling plan to a different compartment */ + private com.oracle.bmc.database.model.ChangeSchedulingPlanCompartmentDetails + changeSchedulingPlanCompartmentDetails = null; + + /** + * Request to move scheduling plan to a different compartment + * + * @param changeSchedulingPlanCompartmentDetails the value to set + * @return this builder instance + */ + public Builder changeSchedulingPlanCompartmentDetails( + com.oracle.bmc.database.model.ChangeSchedulingPlanCompartmentDetails + changeSchedulingPlanCompartmentDetails) { + this.changeSchedulingPlanCompartmentDetails = changeSchedulingPlanCompartmentDetails; + return this; + } + + /** + * The Schedule Plan + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String schedulingPlanId = null; + + /** + * The Schedule Plan + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + * + * @param schedulingPlanId the value to set + * @return this builder instance + */ + public Builder schedulingPlanId(String schedulingPlanId) { + this.schedulingPlanId = schedulingPlanId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * 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(ChangeSchedulingPlanCompartmentRequest o) { + changeSchedulingPlanCompartmentDetails(o.getChangeSchedulingPlanCompartmentDetails()); + schedulingPlanId(o.getSchedulingPlanId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeSchedulingPlanCompartmentRequest 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 ChangeSchedulingPlanCompartmentRequest + */ + public ChangeSchedulingPlanCompartmentRequest build() { + ChangeSchedulingPlanCompartmentRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.database.model.ChangeSchedulingPlanCompartmentDetails body) { + changeSchedulingPlanCompartmentDetails(body); + return this; + } + + /** + * Build the instance of ChangeSchedulingPlanCompartmentRequest 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 ChangeSchedulingPlanCompartmentRequest + */ + public ChangeSchedulingPlanCompartmentRequest buildWithoutInvocationCallback() { + ChangeSchedulingPlanCompartmentRequest request = + new ChangeSchedulingPlanCompartmentRequest(); + request.changeSchedulingPlanCompartmentDetails = changeSchedulingPlanCompartmentDetails; + request.schedulingPlanId = schedulingPlanId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new ChangeSchedulingPlanCompartmentRequest(changeSchedulingPlanCompartmentDetails, + // schedulingPlanId, 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() + .changeSchedulingPlanCompartmentDetails(changeSchedulingPlanCompartmentDetails) + .schedulingPlanId(schedulingPlanId) + .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(",changeSchedulingPlanCompartmentDetails=") + .append(String.valueOf(this.changeSchedulingPlanCompartmentDetails)); + sb.append(",schedulingPlanId=").append(String.valueOf(this.schedulingPlanId)); + 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 ChangeSchedulingPlanCompartmentRequest)) { + return false; + } + + ChangeSchedulingPlanCompartmentRequest other = (ChangeSchedulingPlanCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.changeSchedulingPlanCompartmentDetails, + other.changeSchedulingPlanCompartmentDetails) + && java.util.Objects.equals(this.schedulingPlanId, other.schedulingPlanId) + && 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.changeSchedulingPlanCompartmentDetails == null + ? 43 + : this.changeSchedulingPlanCompartmentDetails.hashCode()); + result = + (result * PRIME) + + (this.schedulingPlanId == null ? 43 : this.schedulingPlanId.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-database/src/main/java/com/oracle/bmc/database/requests/ChangeSchedulingPolicyCompartmentRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ChangeSchedulingPolicyCompartmentRequest.java new file mode 100644 index 00000000000..04d76e76074 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ChangeSchedulingPolicyCompartmentRequest.java @@ -0,0 +1,378 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use + * ChangeSchedulingPolicyCompartmentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ChangeSchedulingPolicyCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.database.model.ChangeSchedulingPolicyCompartmentDetails> { + + /** Request to move scheduling policy to a different compartment */ + private com.oracle.bmc.database.model.ChangeSchedulingPolicyCompartmentDetails + changeSchedulingPolicyCompartmentDetails; + + /** Request to move scheduling policy to a different compartment */ + public com.oracle.bmc.database.model.ChangeSchedulingPolicyCompartmentDetails + getChangeSchedulingPolicyCompartmentDetails() { + return changeSchedulingPolicyCompartmentDetails; + } + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String schedulingPolicyId; + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + public String getSchedulingPolicyId() { + return schedulingPolicyId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.database.model.ChangeSchedulingPolicyCompartmentDetails getBody$() { + return changeSchedulingPolicyCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeSchedulingPolicyCompartmentRequest, + com.oracle.bmc.database.model.ChangeSchedulingPolicyCompartmentDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Request to move scheduling policy to a different compartment */ + private com.oracle.bmc.database.model.ChangeSchedulingPolicyCompartmentDetails + changeSchedulingPolicyCompartmentDetails = null; + + /** + * Request to move scheduling policy to a different compartment + * + * @param changeSchedulingPolicyCompartmentDetails the value to set + * @return this builder instance + */ + public Builder changeSchedulingPolicyCompartmentDetails( + com.oracle.bmc.database.model.ChangeSchedulingPolicyCompartmentDetails + changeSchedulingPolicyCompartmentDetails) { + this.changeSchedulingPolicyCompartmentDetails = + changeSchedulingPolicyCompartmentDetails; + return this; + } + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String schedulingPolicyId = null; + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + * + * @param schedulingPolicyId the value to set + * @return this builder instance + */ + public Builder schedulingPolicyId(String schedulingPolicyId) { + this.schedulingPolicyId = schedulingPolicyId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * 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(ChangeSchedulingPolicyCompartmentRequest o) { + changeSchedulingPolicyCompartmentDetails( + o.getChangeSchedulingPolicyCompartmentDetails()); + schedulingPolicyId(o.getSchedulingPolicyId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeSchedulingPolicyCompartmentRequest 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 ChangeSchedulingPolicyCompartmentRequest + */ + public ChangeSchedulingPolicyCompartmentRequest build() { + ChangeSchedulingPolicyCompartmentRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.database.model.ChangeSchedulingPolicyCompartmentDetails body) { + changeSchedulingPolicyCompartmentDetails(body); + return this; + } + + /** + * Build the instance of ChangeSchedulingPolicyCompartmentRequest 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 ChangeSchedulingPolicyCompartmentRequest + */ + public ChangeSchedulingPolicyCompartmentRequest buildWithoutInvocationCallback() { + ChangeSchedulingPolicyCompartmentRequest request = + new ChangeSchedulingPolicyCompartmentRequest(); + request.changeSchedulingPolicyCompartmentDetails = + changeSchedulingPolicyCompartmentDetails; + request.schedulingPolicyId = schedulingPolicyId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new + // ChangeSchedulingPolicyCompartmentRequest(changeSchedulingPolicyCompartmentDetails, + // schedulingPolicyId, 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() + .changeSchedulingPolicyCompartmentDetails(changeSchedulingPolicyCompartmentDetails) + .schedulingPolicyId(schedulingPolicyId) + .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(",changeSchedulingPolicyCompartmentDetails=") + .append(String.valueOf(this.changeSchedulingPolicyCompartmentDetails)); + sb.append(",schedulingPolicyId=").append(String.valueOf(this.schedulingPolicyId)); + 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 ChangeSchedulingPolicyCompartmentRequest)) { + return false; + } + + ChangeSchedulingPolicyCompartmentRequest other = + (ChangeSchedulingPolicyCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.changeSchedulingPolicyCompartmentDetails, + other.changeSchedulingPolicyCompartmentDetails) + && java.util.Objects.equals(this.schedulingPolicyId, other.schedulingPolicyId) + && 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.changeSchedulingPolicyCompartmentDetails == null + ? 43 + : this.changeSchedulingPolicyCompartmentDetails.hashCode()); + result = + (result * PRIME) + + (this.schedulingPolicyId == null + ? 43 + : this.schedulingPolicyId.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-database/src/main/java/com/oracle/bmc/database/requests/CreateExecutionActionRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateExecutionActionRequest.java new file mode 100644 index 00000000000..78fda53f34a --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateExecutionActionRequest.java @@ -0,0 +1,281 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use + * CreateExecutionActionRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class CreateExecutionActionRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.database.model.CreateExecutionActionDetails> { + + /** Request to create execution action. */ + private com.oracle.bmc.database.model.CreateExecutionActionDetails createExecutionActionDetails; + + /** Request to create execution action. */ + public com.oracle.bmc.database.model.CreateExecutionActionDetails + getCreateExecutionActionDetails() { + return createExecutionActionDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.database.model.CreateExecutionActionDetails getBody$() { + return createExecutionActionDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateExecutionActionRequest, + com.oracle.bmc.database.model.CreateExecutionActionDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Request to create execution action. */ + private com.oracle.bmc.database.model.CreateExecutionActionDetails + createExecutionActionDetails = null; + + /** + * Request to create execution action. + * + * @param createExecutionActionDetails the value to set + * @return this builder instance + */ + public Builder createExecutionActionDetails( + com.oracle.bmc.database.model.CreateExecutionActionDetails + createExecutionActionDetails) { + this.createExecutionActionDetails = createExecutionActionDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(CreateExecutionActionRequest o) { + createExecutionActionDetails(o.getCreateExecutionActionDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateExecutionActionRequest 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 CreateExecutionActionRequest + */ + public CreateExecutionActionRequest build() { + CreateExecutionActionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.database.model.CreateExecutionActionDetails body) { + createExecutionActionDetails(body); + return this; + } + + /** + * Build the instance of CreateExecutionActionRequest 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 CreateExecutionActionRequest + */ + public CreateExecutionActionRequest buildWithoutInvocationCallback() { + CreateExecutionActionRequest request = new CreateExecutionActionRequest(); + request.createExecutionActionDetails = createExecutionActionDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateExecutionActionRequest(createExecutionActionDetails, 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() + .createExecutionActionDetails(createExecutionActionDetails) + .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(",createExecutionActionDetails=") + .append(String.valueOf(this.createExecutionActionDetails)); + 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 CreateExecutionActionRequest)) { + return false; + } + + CreateExecutionActionRequest other = (CreateExecutionActionRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createExecutionActionDetails, other.createExecutionActionDetails) + && 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.createExecutionActionDetails == null + ? 43 + : this.createExecutionActionDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateExecutionWindowRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateExecutionWindowRequest.java new file mode 100644 index 00000000000..86df0df0133 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateExecutionWindowRequest.java @@ -0,0 +1,281 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use + * CreateExecutionWindowRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class CreateExecutionWindowRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.database.model.CreateExecutionWindowDetails> { + + /** Request to create execution window. */ + private com.oracle.bmc.database.model.CreateExecutionWindowDetails createExecutionWindowDetails; + + /** Request to create execution window. */ + public com.oracle.bmc.database.model.CreateExecutionWindowDetails + getCreateExecutionWindowDetails() { + return createExecutionWindowDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.database.model.CreateExecutionWindowDetails getBody$() { + return createExecutionWindowDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateExecutionWindowRequest, + com.oracle.bmc.database.model.CreateExecutionWindowDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Request to create execution window. */ + private com.oracle.bmc.database.model.CreateExecutionWindowDetails + createExecutionWindowDetails = null; + + /** + * Request to create execution window. + * + * @param createExecutionWindowDetails the value to set + * @return this builder instance + */ + public Builder createExecutionWindowDetails( + com.oracle.bmc.database.model.CreateExecutionWindowDetails + createExecutionWindowDetails) { + this.createExecutionWindowDetails = createExecutionWindowDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(CreateExecutionWindowRequest o) { + createExecutionWindowDetails(o.getCreateExecutionWindowDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateExecutionWindowRequest 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 CreateExecutionWindowRequest + */ + public CreateExecutionWindowRequest build() { + CreateExecutionWindowRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.database.model.CreateExecutionWindowDetails body) { + createExecutionWindowDetails(body); + return this; + } + + /** + * Build the instance of CreateExecutionWindowRequest 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 CreateExecutionWindowRequest + */ + public CreateExecutionWindowRequest buildWithoutInvocationCallback() { + CreateExecutionWindowRequest request = new CreateExecutionWindowRequest(); + request.createExecutionWindowDetails = createExecutionWindowDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateExecutionWindowRequest(createExecutionWindowDetails, 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() + .createExecutionWindowDetails(createExecutionWindowDetails) + .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(",createExecutionWindowDetails=") + .append(String.valueOf(this.createExecutionWindowDetails)); + 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 CreateExecutionWindowRequest)) { + return false; + } + + CreateExecutionWindowRequest other = (CreateExecutionWindowRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createExecutionWindowDetails, other.createExecutionWindowDetails) + && 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.createExecutionWindowDetails == null + ? 43 + : this.createExecutionWindowDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateScheduledActionRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateScheduledActionRequest.java new file mode 100644 index 00000000000..4413ae8a0aa --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateScheduledActionRequest.java @@ -0,0 +1,281 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use + * CreateScheduledActionRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class CreateScheduledActionRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.database.model.CreateScheduledActionDetails> { + + /** Request to create Scheduled Action. */ + private com.oracle.bmc.database.model.CreateScheduledActionDetails createScheduledActionDetails; + + /** Request to create Scheduled Action. */ + public com.oracle.bmc.database.model.CreateScheduledActionDetails + getCreateScheduledActionDetails() { + return createScheduledActionDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.database.model.CreateScheduledActionDetails getBody$() { + return createScheduledActionDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateScheduledActionRequest, + com.oracle.bmc.database.model.CreateScheduledActionDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Request to create Scheduled Action. */ + private com.oracle.bmc.database.model.CreateScheduledActionDetails + createScheduledActionDetails = null; + + /** + * Request to create Scheduled Action. + * + * @param createScheduledActionDetails the value to set + * @return this builder instance + */ + public Builder createScheduledActionDetails( + com.oracle.bmc.database.model.CreateScheduledActionDetails + createScheduledActionDetails) { + this.createScheduledActionDetails = createScheduledActionDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(CreateScheduledActionRequest o) { + createScheduledActionDetails(o.getCreateScheduledActionDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateScheduledActionRequest 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 CreateScheduledActionRequest + */ + public CreateScheduledActionRequest build() { + CreateScheduledActionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.database.model.CreateScheduledActionDetails body) { + createScheduledActionDetails(body); + return this; + } + + /** + * Build the instance of CreateScheduledActionRequest 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 CreateScheduledActionRequest + */ + public CreateScheduledActionRequest buildWithoutInvocationCallback() { + CreateScheduledActionRequest request = new CreateScheduledActionRequest(); + request.createScheduledActionDetails = createScheduledActionDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateScheduledActionRequest(createScheduledActionDetails, 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() + .createScheduledActionDetails(createScheduledActionDetails) + .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(",createScheduledActionDetails=") + .append(String.valueOf(this.createScheduledActionDetails)); + 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 CreateScheduledActionRequest)) { + return false; + } + + CreateScheduledActionRequest other = (CreateScheduledActionRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createScheduledActionDetails, other.createScheduledActionDetails) + && 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.createScheduledActionDetails == null + ? 43 + : this.createScheduledActionDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateSchedulingPlanRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateSchedulingPlanRequest.java new file mode 100644 index 00000000000..c173e7d55de --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateSchedulingPlanRequest.java @@ -0,0 +1,280 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use CreateSchedulingPlanRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class CreateSchedulingPlanRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.database.model.CreateSchedulingPlanDetails> { + + /** Request to create Scheduling Plan. */ + private com.oracle.bmc.database.model.CreateSchedulingPlanDetails createSchedulingPlanDetails; + + /** Request to create Scheduling Plan. */ + public com.oracle.bmc.database.model.CreateSchedulingPlanDetails + getCreateSchedulingPlanDetails() { + return createSchedulingPlanDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.database.model.CreateSchedulingPlanDetails getBody$() { + return createSchedulingPlanDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateSchedulingPlanRequest, + com.oracle.bmc.database.model.CreateSchedulingPlanDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Request to create Scheduling Plan. */ + private com.oracle.bmc.database.model.CreateSchedulingPlanDetails + createSchedulingPlanDetails = null; + + /** + * Request to create Scheduling Plan. + * + * @param createSchedulingPlanDetails the value to set + * @return this builder instance + */ + public Builder createSchedulingPlanDetails( + com.oracle.bmc.database.model.CreateSchedulingPlanDetails + createSchedulingPlanDetails) { + this.createSchedulingPlanDetails = createSchedulingPlanDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(CreateSchedulingPlanRequest o) { + createSchedulingPlanDetails(o.getCreateSchedulingPlanDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateSchedulingPlanRequest 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 CreateSchedulingPlanRequest + */ + public CreateSchedulingPlanRequest build() { + CreateSchedulingPlanRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.database.model.CreateSchedulingPlanDetails body) { + createSchedulingPlanDetails(body); + return this; + } + + /** + * Build the instance of CreateSchedulingPlanRequest 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 CreateSchedulingPlanRequest + */ + public CreateSchedulingPlanRequest buildWithoutInvocationCallback() { + CreateSchedulingPlanRequest request = new CreateSchedulingPlanRequest(); + request.createSchedulingPlanDetails = createSchedulingPlanDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateSchedulingPlanRequest(createSchedulingPlanDetails, 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() + .createSchedulingPlanDetails(createSchedulingPlanDetails) + .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(",createSchedulingPlanDetails=") + .append(String.valueOf(this.createSchedulingPlanDetails)); + 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 CreateSchedulingPlanRequest)) { + return false; + } + + CreateSchedulingPlanRequest other = (CreateSchedulingPlanRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createSchedulingPlanDetails, other.createSchedulingPlanDetails) + && 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.createSchedulingPlanDetails == null + ? 43 + : this.createSchedulingPlanDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateSchedulingPolicyRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateSchedulingPolicyRequest.java new file mode 100644 index 00000000000..d8cfd83f959 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateSchedulingPolicyRequest.java @@ -0,0 +1,282 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use + * CreateSchedulingPolicyRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class CreateSchedulingPolicyRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.database.model.CreateSchedulingPolicyDetails> { + + /** Request to create Scheduling Policy. */ + private com.oracle.bmc.database.model.CreateSchedulingPolicyDetails + createSchedulingPolicyDetails; + + /** Request to create Scheduling Policy. */ + public com.oracle.bmc.database.model.CreateSchedulingPolicyDetails + getCreateSchedulingPolicyDetails() { + return createSchedulingPolicyDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.database.model.CreateSchedulingPolicyDetails getBody$() { + return createSchedulingPolicyDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateSchedulingPolicyRequest, + com.oracle.bmc.database.model.CreateSchedulingPolicyDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Request to create Scheduling Policy. */ + private com.oracle.bmc.database.model.CreateSchedulingPolicyDetails + createSchedulingPolicyDetails = null; + + /** + * Request to create Scheduling Policy. + * + * @param createSchedulingPolicyDetails the value to set + * @return this builder instance + */ + public Builder createSchedulingPolicyDetails( + com.oracle.bmc.database.model.CreateSchedulingPolicyDetails + createSchedulingPolicyDetails) { + this.createSchedulingPolicyDetails = createSchedulingPolicyDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(CreateSchedulingPolicyRequest o) { + createSchedulingPolicyDetails(o.getCreateSchedulingPolicyDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateSchedulingPolicyRequest 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 CreateSchedulingPolicyRequest + */ + public CreateSchedulingPolicyRequest build() { + CreateSchedulingPolicyRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.database.model.CreateSchedulingPolicyDetails body) { + createSchedulingPolicyDetails(body); + return this; + } + + /** + * Build the instance of CreateSchedulingPolicyRequest 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 CreateSchedulingPolicyRequest + */ + public CreateSchedulingPolicyRequest buildWithoutInvocationCallback() { + CreateSchedulingPolicyRequest request = new CreateSchedulingPolicyRequest(); + request.createSchedulingPolicyDetails = createSchedulingPolicyDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateSchedulingPolicyRequest(createSchedulingPolicyDetails, 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() + .createSchedulingPolicyDetails(createSchedulingPolicyDetails) + .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(",createSchedulingPolicyDetails=") + .append(String.valueOf(this.createSchedulingPolicyDetails)); + 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 CreateSchedulingPolicyRequest)) { + return false; + } + + CreateSchedulingPolicyRequest other = (CreateSchedulingPolicyRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createSchedulingPolicyDetails, other.createSchedulingPolicyDetails) + && 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.createSchedulingPolicyDetails == null + ? 43 + : this.createSchedulingPolicyDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateSchedulingWindowRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateSchedulingWindowRequest.java new file mode 100644 index 00000000000..690aba88aaa --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateSchedulingWindowRequest.java @@ -0,0 +1,323 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use + * CreateSchedulingWindowRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class CreateSchedulingWindowRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.database.model.CreateSchedulingWindowDetails> { + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String schedulingPolicyId; + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + public String getSchedulingPolicyId() { + return schedulingPolicyId; + } + /** Request to create Scheduling Window. */ + private com.oracle.bmc.database.model.CreateSchedulingWindowDetails + createSchedulingWindowDetails; + + /** Request to create Scheduling Window. */ + public com.oracle.bmc.database.model.CreateSchedulingWindowDetails + getCreateSchedulingWindowDetails() { + return createSchedulingWindowDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.database.model.CreateSchedulingWindowDetails getBody$() { + return createSchedulingWindowDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateSchedulingWindowRequest, + com.oracle.bmc.database.model.CreateSchedulingWindowDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String schedulingPolicyId = null; + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + * + * @param schedulingPolicyId the value to set + * @return this builder instance + */ + public Builder schedulingPolicyId(String schedulingPolicyId) { + this.schedulingPolicyId = schedulingPolicyId; + return this; + } + + /** Request to create Scheduling Window. */ + private com.oracle.bmc.database.model.CreateSchedulingWindowDetails + createSchedulingWindowDetails = null; + + /** + * Request to create Scheduling Window. + * + * @param createSchedulingWindowDetails the value to set + * @return this builder instance + */ + public Builder createSchedulingWindowDetails( + com.oracle.bmc.database.model.CreateSchedulingWindowDetails + createSchedulingWindowDetails) { + this.createSchedulingWindowDetails = createSchedulingWindowDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(CreateSchedulingWindowRequest o) { + schedulingPolicyId(o.getSchedulingPolicyId()); + createSchedulingWindowDetails(o.getCreateSchedulingWindowDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateSchedulingWindowRequest 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 CreateSchedulingWindowRequest + */ + public CreateSchedulingWindowRequest build() { + CreateSchedulingWindowRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.database.model.CreateSchedulingWindowDetails body) { + createSchedulingWindowDetails(body); + return this; + } + + /** + * Build the instance of CreateSchedulingWindowRequest 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 CreateSchedulingWindowRequest + */ + public CreateSchedulingWindowRequest buildWithoutInvocationCallback() { + CreateSchedulingWindowRequest request = new CreateSchedulingWindowRequest(); + request.schedulingPolicyId = schedulingPolicyId; + request.createSchedulingWindowDetails = createSchedulingWindowDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateSchedulingWindowRequest(schedulingPolicyId, createSchedulingWindowDetails, + // 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() + .schedulingPolicyId(schedulingPolicyId) + .createSchedulingWindowDetails(createSchedulingWindowDetails) + .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(",schedulingPolicyId=").append(String.valueOf(this.schedulingPolicyId)); + sb.append(",createSchedulingWindowDetails=") + .append(String.valueOf(this.createSchedulingWindowDetails)); + 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 CreateSchedulingWindowRequest)) { + return false; + } + + CreateSchedulingWindowRequest other = (CreateSchedulingWindowRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.schedulingPolicyId, other.schedulingPolicyId) + && java.util.Objects.equals( + this.createSchedulingWindowDetails, other.createSchedulingWindowDetails) + && 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.schedulingPolicyId == null + ? 43 + : this.schedulingPolicyId.hashCode()); + result = + (result * PRIME) + + (this.createSchedulingWindowDetails == null + ? 43 + : this.createSchedulingWindowDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteExecutionActionRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteExecutionActionRequest.java new file mode 100644 index 00000000000..fa3bd2822b9 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteExecutionActionRequest.java @@ -0,0 +1,251 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use + * DeleteExecutionActionRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class DeleteExecutionActionRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The execution action + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String executionActionId; + + /** + * The execution action + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + public String getExecutionActionId() { + return executionActionId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteExecutionActionRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The execution action + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String executionActionId = null; + + /** + * The execution action + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + * + * @param executionActionId the value to set + * @return this builder instance + */ + public Builder executionActionId(String executionActionId) { + this.executionActionId = executionActionId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DeleteExecutionActionRequest o) { + executionActionId(o.getExecutionActionId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteExecutionActionRequest 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 DeleteExecutionActionRequest + */ + public DeleteExecutionActionRequest build() { + DeleteExecutionActionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteExecutionActionRequest 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 DeleteExecutionActionRequest + */ + public DeleteExecutionActionRequest buildWithoutInvocationCallback() { + DeleteExecutionActionRequest request = new DeleteExecutionActionRequest(); + request.executionActionId = executionActionId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteExecutionActionRequest(executionActionId, 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() + .executionActionId(executionActionId) + .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(",executionActionId=").append(String.valueOf(this.executionActionId)); + 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 DeleteExecutionActionRequest)) { + return false; + } + + DeleteExecutionActionRequest other = (DeleteExecutionActionRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.executionActionId, other.executionActionId) + && 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.executionActionId == null ? 43 : this.executionActionId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteExecutionWindowRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteExecutionWindowRequest.java new file mode 100644 index 00000000000..8e0b7d9d446 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteExecutionWindowRequest.java @@ -0,0 +1,251 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use + * DeleteExecutionWindowRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class DeleteExecutionWindowRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The execution window + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String executionWindowId; + + /** + * The execution window + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + public String getExecutionWindowId() { + return executionWindowId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteExecutionWindowRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The execution window + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String executionWindowId = null; + + /** + * The execution window + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + * + * @param executionWindowId the value to set + * @return this builder instance + */ + public Builder executionWindowId(String executionWindowId) { + this.executionWindowId = executionWindowId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DeleteExecutionWindowRequest o) { + executionWindowId(o.getExecutionWindowId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteExecutionWindowRequest 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 DeleteExecutionWindowRequest + */ + public DeleteExecutionWindowRequest build() { + DeleteExecutionWindowRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteExecutionWindowRequest 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 DeleteExecutionWindowRequest + */ + public DeleteExecutionWindowRequest buildWithoutInvocationCallback() { + DeleteExecutionWindowRequest request = new DeleteExecutionWindowRequest(); + request.executionWindowId = executionWindowId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteExecutionWindowRequest(executionWindowId, 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() + .executionWindowId(executionWindowId) + .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(",executionWindowId=").append(String.valueOf(this.executionWindowId)); + 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 DeleteExecutionWindowRequest)) { + return false; + } + + DeleteExecutionWindowRequest other = (DeleteExecutionWindowRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.executionWindowId, other.executionWindowId) + && 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.executionWindowId == null ? 43 : this.executionWindowId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteScheduledActionRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteScheduledActionRequest.java new file mode 100644 index 00000000000..3b4c7e47de9 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteScheduledActionRequest.java @@ -0,0 +1,251 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use + * DeleteScheduledActionRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class DeleteScheduledActionRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The Scheduled Action + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String scheduledActionId; + + /** + * The Scheduled Action + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + public String getScheduledActionId() { + return scheduledActionId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteScheduledActionRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The Scheduled Action + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String scheduledActionId = null; + + /** + * The Scheduled Action + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + * + * @param scheduledActionId the value to set + * @return this builder instance + */ + public Builder scheduledActionId(String scheduledActionId) { + this.scheduledActionId = scheduledActionId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DeleteScheduledActionRequest o) { + scheduledActionId(o.getScheduledActionId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteScheduledActionRequest 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 DeleteScheduledActionRequest + */ + public DeleteScheduledActionRequest build() { + DeleteScheduledActionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteScheduledActionRequest 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 DeleteScheduledActionRequest + */ + public DeleteScheduledActionRequest buildWithoutInvocationCallback() { + DeleteScheduledActionRequest request = new DeleteScheduledActionRequest(); + request.scheduledActionId = scheduledActionId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteScheduledActionRequest(scheduledActionId, 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() + .scheduledActionId(scheduledActionId) + .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(",scheduledActionId=").append(String.valueOf(this.scheduledActionId)); + 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 DeleteScheduledActionRequest)) { + return false; + } + + DeleteScheduledActionRequest other = (DeleteScheduledActionRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.scheduledActionId, other.scheduledActionId) + && 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.scheduledActionId == null ? 43 : this.scheduledActionId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteSchedulingPlanRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteSchedulingPlanRequest.java new file mode 100644 index 00000000000..b730e526f26 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteSchedulingPlanRequest.java @@ -0,0 +1,250 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use DeleteSchedulingPlanRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class DeleteSchedulingPlanRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The Schedule Plan + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String schedulingPlanId; + + /** + * The Schedule Plan + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + public String getSchedulingPlanId() { + return schedulingPlanId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteSchedulingPlanRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The Schedule Plan + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String schedulingPlanId = null; + + /** + * The Schedule Plan + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + * + * @param schedulingPlanId the value to set + * @return this builder instance + */ + public Builder schedulingPlanId(String schedulingPlanId) { + this.schedulingPlanId = schedulingPlanId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DeleteSchedulingPlanRequest o) { + schedulingPlanId(o.getSchedulingPlanId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteSchedulingPlanRequest 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 DeleteSchedulingPlanRequest + */ + public DeleteSchedulingPlanRequest build() { + DeleteSchedulingPlanRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteSchedulingPlanRequest 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 DeleteSchedulingPlanRequest + */ + public DeleteSchedulingPlanRequest buildWithoutInvocationCallback() { + DeleteSchedulingPlanRequest request = new DeleteSchedulingPlanRequest(); + request.schedulingPlanId = schedulingPlanId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteSchedulingPlanRequest(schedulingPlanId, 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() + .schedulingPlanId(schedulingPlanId) + .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(",schedulingPlanId=").append(String.valueOf(this.schedulingPlanId)); + 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 DeleteSchedulingPlanRequest)) { + return false; + } + + DeleteSchedulingPlanRequest other = (DeleteSchedulingPlanRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.schedulingPlanId, other.schedulingPlanId) + && 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.schedulingPlanId == null ? 43 : this.schedulingPlanId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteSchedulingPolicyRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteSchedulingPolicyRequest.java new file mode 100644 index 00000000000..488d59d9b00 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteSchedulingPolicyRequest.java @@ -0,0 +1,253 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use + * DeleteSchedulingPolicyRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class DeleteSchedulingPolicyRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String schedulingPolicyId; + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + public String getSchedulingPolicyId() { + return schedulingPolicyId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteSchedulingPolicyRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String schedulingPolicyId = null; + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + * + * @param schedulingPolicyId the value to set + * @return this builder instance + */ + public Builder schedulingPolicyId(String schedulingPolicyId) { + this.schedulingPolicyId = schedulingPolicyId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DeleteSchedulingPolicyRequest o) { + schedulingPolicyId(o.getSchedulingPolicyId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteSchedulingPolicyRequest 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 DeleteSchedulingPolicyRequest + */ + public DeleteSchedulingPolicyRequest build() { + DeleteSchedulingPolicyRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteSchedulingPolicyRequest 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 DeleteSchedulingPolicyRequest + */ + public DeleteSchedulingPolicyRequest buildWithoutInvocationCallback() { + DeleteSchedulingPolicyRequest request = new DeleteSchedulingPolicyRequest(); + request.schedulingPolicyId = schedulingPolicyId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteSchedulingPolicyRequest(schedulingPolicyId, 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() + .schedulingPolicyId(schedulingPolicyId) + .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(",schedulingPolicyId=").append(String.valueOf(this.schedulingPolicyId)); + 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 DeleteSchedulingPolicyRequest)) { + return false; + } + + DeleteSchedulingPolicyRequest other = (DeleteSchedulingPolicyRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.schedulingPolicyId, other.schedulingPolicyId) + && 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.schedulingPolicyId == null + ? 43 + : this.schedulingPolicyId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteSchedulingWindowRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteSchedulingWindowRequest.java new file mode 100644 index 00000000000..d7ddd814394 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteSchedulingWindowRequest.java @@ -0,0 +1,295 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use + * DeleteSchedulingWindowRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class DeleteSchedulingWindowRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String schedulingPolicyId; + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + public String getSchedulingPolicyId() { + return schedulingPolicyId; + } + /** + * The Scheduling Window + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String schedulingWindowId; + + /** + * The Scheduling Window + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + public String getSchedulingWindowId() { + return schedulingWindowId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteSchedulingWindowRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String schedulingPolicyId = null; + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + * + * @param schedulingPolicyId the value to set + * @return this builder instance + */ + public Builder schedulingPolicyId(String schedulingPolicyId) { + this.schedulingPolicyId = schedulingPolicyId; + return this; + } + + /** + * The Scheduling Window + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String schedulingWindowId = null; + + /** + * The Scheduling Window + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + * + * @param schedulingWindowId the value to set + * @return this builder instance + */ + public Builder schedulingWindowId(String schedulingWindowId) { + this.schedulingWindowId = schedulingWindowId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DeleteSchedulingWindowRequest o) { + schedulingPolicyId(o.getSchedulingPolicyId()); + schedulingWindowId(o.getSchedulingWindowId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteSchedulingWindowRequest 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 DeleteSchedulingWindowRequest + */ + public DeleteSchedulingWindowRequest build() { + DeleteSchedulingWindowRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteSchedulingWindowRequest 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 DeleteSchedulingWindowRequest + */ + public DeleteSchedulingWindowRequest buildWithoutInvocationCallback() { + DeleteSchedulingWindowRequest request = new DeleteSchedulingWindowRequest(); + request.schedulingPolicyId = schedulingPolicyId; + request.schedulingWindowId = schedulingWindowId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteSchedulingWindowRequest(schedulingPolicyId, schedulingWindowId, 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() + .schedulingPolicyId(schedulingPolicyId) + .schedulingWindowId(schedulingWindowId) + .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(",schedulingPolicyId=").append(String.valueOf(this.schedulingPolicyId)); + sb.append(",schedulingWindowId=").append(String.valueOf(this.schedulingWindowId)); + 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 DeleteSchedulingWindowRequest)) { + return false; + } + + DeleteSchedulingWindowRequest other = (DeleteSchedulingWindowRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.schedulingPolicyId, other.schedulingPolicyId) + && java.util.Objects.equals(this.schedulingWindowId, other.schedulingWindowId) + && 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.schedulingPolicyId == null + ? 43 + : this.schedulingPolicyId.hashCode()); + result = + (result * PRIME) + + (this.schedulingWindowId == null + ? 43 + : this.schedulingWindowId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetExecutionActionRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetExecutionActionRequest.java new file mode 100644 index 00000000000..125f93d6925 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetExecutionActionRequest.java @@ -0,0 +1,202 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use GetExecutionActionRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class GetExecutionActionRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The execution action + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String executionActionId; + + /** + * The execution action + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + public String getExecutionActionId() { + return executionActionId; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetExecutionActionRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The execution action + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String executionActionId = null; + + /** + * The execution action + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + * + * @param executionActionId the value to set + * @return this builder instance + */ + public Builder executionActionId(String executionActionId) { + this.executionActionId = executionActionId; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetExecutionActionRequest o) { + executionActionId(o.getExecutionActionId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetExecutionActionRequest 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 GetExecutionActionRequest + */ + public GetExecutionActionRequest build() { + GetExecutionActionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetExecutionActionRequest 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 GetExecutionActionRequest + */ + public GetExecutionActionRequest buildWithoutInvocationCallback() { + GetExecutionActionRequest request = new GetExecutionActionRequest(); + request.executionActionId = executionActionId; + request.opcRequestId = opcRequestId; + return request; + // new GetExecutionActionRequest(executionActionId, 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().executionActionId(executionActionId).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(",executionActionId=").append(String.valueOf(this.executionActionId)); + 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 GetExecutionActionRequest)) { + return false; + } + + GetExecutionActionRequest other = (GetExecutionActionRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.executionActionId, other.executionActionId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.executionActionId == null ? 43 : this.executionActionId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetExecutionWindowRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetExecutionWindowRequest.java new file mode 100644 index 00000000000..70e7d9425d6 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetExecutionWindowRequest.java @@ -0,0 +1,202 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use GetExecutionWindowRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class GetExecutionWindowRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The execution window + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String executionWindowId; + + /** + * The execution window + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + public String getExecutionWindowId() { + return executionWindowId; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetExecutionWindowRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The execution window + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String executionWindowId = null; + + /** + * The execution window + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + * + * @param executionWindowId the value to set + * @return this builder instance + */ + public Builder executionWindowId(String executionWindowId) { + this.executionWindowId = executionWindowId; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetExecutionWindowRequest o) { + executionWindowId(o.getExecutionWindowId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetExecutionWindowRequest 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 GetExecutionWindowRequest + */ + public GetExecutionWindowRequest build() { + GetExecutionWindowRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetExecutionWindowRequest 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 GetExecutionWindowRequest + */ + public GetExecutionWindowRequest buildWithoutInvocationCallback() { + GetExecutionWindowRequest request = new GetExecutionWindowRequest(); + request.executionWindowId = executionWindowId; + request.opcRequestId = opcRequestId; + return request; + // new GetExecutionWindowRequest(executionWindowId, 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().executionWindowId(executionWindowId).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(",executionWindowId=").append(String.valueOf(this.executionWindowId)); + 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 GetExecutionWindowRequest)) { + return false; + } + + GetExecutionWindowRequest other = (GetExecutionWindowRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.executionWindowId, other.executionWindowId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.executionWindowId == null ? 43 : this.executionWindowId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetScheduledActionRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetScheduledActionRequest.java new file mode 100644 index 00000000000..d739fedaaf5 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetScheduledActionRequest.java @@ -0,0 +1,202 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use GetScheduledActionRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class GetScheduledActionRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The Scheduled Action + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String scheduledActionId; + + /** + * The Scheduled Action + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + public String getScheduledActionId() { + return scheduledActionId; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetScheduledActionRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The Scheduled Action + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String scheduledActionId = null; + + /** + * The Scheduled Action + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + * + * @param scheduledActionId the value to set + * @return this builder instance + */ + public Builder scheduledActionId(String scheduledActionId) { + this.scheduledActionId = scheduledActionId; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetScheduledActionRequest o) { + scheduledActionId(o.getScheduledActionId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetScheduledActionRequest 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 GetScheduledActionRequest + */ + public GetScheduledActionRequest build() { + GetScheduledActionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetScheduledActionRequest 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 GetScheduledActionRequest + */ + public GetScheduledActionRequest buildWithoutInvocationCallback() { + GetScheduledActionRequest request = new GetScheduledActionRequest(); + request.scheduledActionId = scheduledActionId; + request.opcRequestId = opcRequestId; + return request; + // new GetScheduledActionRequest(scheduledActionId, 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().scheduledActionId(scheduledActionId).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(",scheduledActionId=").append(String.valueOf(this.scheduledActionId)); + 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 GetScheduledActionRequest)) { + return false; + } + + GetScheduledActionRequest other = (GetScheduledActionRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.scheduledActionId, other.scheduledActionId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.scheduledActionId == null ? 43 : this.scheduledActionId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetSchedulingPlanRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetSchedulingPlanRequest.java new file mode 100644 index 00000000000..f2e0cb35823 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetSchedulingPlanRequest.java @@ -0,0 +1,202 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use GetSchedulingPlanRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class GetSchedulingPlanRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The Schedule Plan + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String schedulingPlanId; + + /** + * The Schedule Plan + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + public String getSchedulingPlanId() { + return schedulingPlanId; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetSchedulingPlanRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The Schedule Plan + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String schedulingPlanId = null; + + /** + * The Schedule Plan + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + * + * @param schedulingPlanId the value to set + * @return this builder instance + */ + public Builder schedulingPlanId(String schedulingPlanId) { + this.schedulingPlanId = schedulingPlanId; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetSchedulingPlanRequest o) { + schedulingPlanId(o.getSchedulingPlanId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetSchedulingPlanRequest 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 GetSchedulingPlanRequest + */ + public GetSchedulingPlanRequest build() { + GetSchedulingPlanRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetSchedulingPlanRequest 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 GetSchedulingPlanRequest + */ + public GetSchedulingPlanRequest buildWithoutInvocationCallback() { + GetSchedulingPlanRequest request = new GetSchedulingPlanRequest(); + request.schedulingPlanId = schedulingPlanId; + request.opcRequestId = opcRequestId; + return request; + // new GetSchedulingPlanRequest(schedulingPlanId, 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().schedulingPlanId(schedulingPlanId).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(",schedulingPlanId=").append(String.valueOf(this.schedulingPlanId)); + 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 GetSchedulingPlanRequest)) { + return false; + } + + GetSchedulingPlanRequest other = (GetSchedulingPlanRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.schedulingPlanId, other.schedulingPlanId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.schedulingPlanId == null ? 43 : this.schedulingPlanId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetSchedulingPolicyRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetSchedulingPolicyRequest.java new file mode 100644 index 00000000000..e2d5ec6dfba --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetSchedulingPolicyRequest.java @@ -0,0 +1,204 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use GetSchedulingPolicyRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class GetSchedulingPolicyRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String schedulingPolicyId; + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + public String getSchedulingPolicyId() { + return schedulingPolicyId; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetSchedulingPolicyRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String schedulingPolicyId = null; + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + * + * @param schedulingPolicyId the value to set + * @return this builder instance + */ + public Builder schedulingPolicyId(String schedulingPolicyId) { + this.schedulingPolicyId = schedulingPolicyId; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetSchedulingPolicyRequest o) { + schedulingPolicyId(o.getSchedulingPolicyId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetSchedulingPolicyRequest 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 GetSchedulingPolicyRequest + */ + public GetSchedulingPolicyRequest build() { + GetSchedulingPolicyRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetSchedulingPolicyRequest 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 GetSchedulingPolicyRequest + */ + public GetSchedulingPolicyRequest buildWithoutInvocationCallback() { + GetSchedulingPolicyRequest request = new GetSchedulingPolicyRequest(); + request.schedulingPolicyId = schedulingPolicyId; + request.opcRequestId = opcRequestId; + return request; + // new GetSchedulingPolicyRequest(schedulingPolicyId, 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().schedulingPolicyId(schedulingPolicyId).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(",schedulingPolicyId=").append(String.valueOf(this.schedulingPolicyId)); + 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 GetSchedulingPolicyRequest)) { + return false; + } + + GetSchedulingPolicyRequest other = (GetSchedulingPolicyRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.schedulingPolicyId, other.schedulingPolicyId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.schedulingPolicyId == null + ? 43 + : this.schedulingPolicyId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetSchedulingWindowRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetSchedulingWindowRequest.java new file mode 100644 index 00000000000..230fe899e60 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetSchedulingWindowRequest.java @@ -0,0 +1,247 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use GetSchedulingWindowRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class GetSchedulingWindowRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String schedulingPolicyId; + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + public String getSchedulingPolicyId() { + return schedulingPolicyId; + } + /** + * The Scheduling Window + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String schedulingWindowId; + + /** + * The Scheduling Window + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + public String getSchedulingWindowId() { + return schedulingWindowId; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetSchedulingWindowRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String schedulingPolicyId = null; + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + * + * @param schedulingPolicyId the value to set + * @return this builder instance + */ + public Builder schedulingPolicyId(String schedulingPolicyId) { + this.schedulingPolicyId = schedulingPolicyId; + return this; + } + + /** + * The Scheduling Window + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String schedulingWindowId = null; + + /** + * The Scheduling Window + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + * + * @param schedulingWindowId the value to set + * @return this builder instance + */ + public Builder schedulingWindowId(String schedulingWindowId) { + this.schedulingWindowId = schedulingWindowId; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetSchedulingWindowRequest o) { + schedulingPolicyId(o.getSchedulingPolicyId()); + schedulingWindowId(o.getSchedulingWindowId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetSchedulingWindowRequest 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 GetSchedulingWindowRequest + */ + public GetSchedulingWindowRequest build() { + GetSchedulingWindowRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetSchedulingWindowRequest 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 GetSchedulingWindowRequest + */ + public GetSchedulingWindowRequest buildWithoutInvocationCallback() { + GetSchedulingWindowRequest request = new GetSchedulingWindowRequest(); + request.schedulingPolicyId = schedulingPolicyId; + request.schedulingWindowId = schedulingWindowId; + request.opcRequestId = opcRequestId; + return request; + // new GetSchedulingWindowRequest(schedulingPolicyId, schedulingWindowId, 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() + .schedulingPolicyId(schedulingPolicyId) + .schedulingWindowId(schedulingWindowId) + .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(",schedulingPolicyId=").append(String.valueOf(this.schedulingPolicyId)); + sb.append(",schedulingWindowId=").append(String.valueOf(this.schedulingWindowId)); + 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 GetSchedulingWindowRequest)) { + return false; + } + + GetSchedulingWindowRequest other = (GetSchedulingWindowRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.schedulingPolicyId, other.schedulingPolicyId) + && java.util.Objects.equals(this.schedulingWindowId, other.schedulingWindowId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.schedulingPolicyId == null + ? 43 + : this.schedulingPolicyId.hashCode()); + result = + (result * PRIME) + + (this.schedulingWindowId == null + ? 43 + : this.schedulingWindowId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListExecutionActionsRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListExecutionActionsRequest.java new file mode 100644 index 00000000000..abd0af6b67e --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListExecutionActionsRequest.java @@ -0,0 +1,498 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use ListExecutionActionsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListExecutionActionsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The compartment + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String compartmentId; + + /** + * The compartment + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + public String getCompartmentId() { + return compartmentId; + } + /** The maximum number of items to return per page. */ + private Integer limit; + + /** The maximum number of items to return per page. */ + public Integer getLimit() { + return limit; + } + /** The pagination token to continue listing from. */ + private String page; + + /** The pagination token to continue listing from. */ + public String getPage() { + return page; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order for + * TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort + * order is case sensitive. + */ + private SortBy sortBy; + + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order for + * TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort + * order is case sensitive. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + Timecreated("TIMECREATED"), + Displayname("DISPLAYNAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order for + * TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort + * order is case sensitive. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + private SortOrder sortOrder; + + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + public enum SortOrder implements com.oracle.bmc.http.internal.BmcEnum { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortOrder: " + key); + } + }; + + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + public SortOrder getSortOrder() { + return sortOrder; + } + /** A filter to return only resources that match the given lifecycle state exactly. */ + private com.oracle.bmc.database.model.ExecutionActionSummary.LifecycleState lifecycleState; + + /** A filter to return only resources that match the given lifecycle state exactly. */ + public com.oracle.bmc.database.model.ExecutionActionSummary.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** A filter to return only resources that match the given execution wondow id. */ + private String executionWindowId; + + /** A filter to return only resources that match the given execution wondow id. */ + public String getExecutionWindowId() { + return executionWindowId; + } + /** + * A filter to return only resources that match the entire display name given. The match is not + * case sensitive. + */ + private String displayName; + + /** + * A filter to return only resources that match the entire display name given. The match is not + * case sensitive. + */ + public String getDisplayName() { + return displayName; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListExecutionActionsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The compartment + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String compartmentId = null; + + /** + * The compartment + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** The maximum number of items to return per page. */ + private Integer limit = null; + + /** + * The maximum number of items to return per page. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** The pagination token to continue listing from. */ + private String page = null; + + /** + * The pagination token to continue listing from. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order + * for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The + * DISPLAYNAME sort order is case sensitive. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order + * for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The + * DISPLAYNAME sort order is case sensitive. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + private SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** A filter to return only resources that match the given lifecycle state exactly. */ + private com.oracle.bmc.database.model.ExecutionActionSummary.LifecycleState lifecycleState = + null; + + /** + * A filter to return only resources that match the given lifecycle state exactly. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.database.model.ExecutionActionSummary.LifecycleState + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** A filter to return only resources that match the given execution wondow id. */ + private String executionWindowId = null; + + /** + * A filter to return only resources that match the given execution wondow id. + * + * @param executionWindowId the value to set + * @return this builder instance + */ + public Builder executionWindowId(String executionWindowId) { + this.executionWindowId = executionWindowId; + return this; + } + + /** + * A filter to return only resources that match the entire display name given. The match is + * not case sensitive. + */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. The match is + * not case sensitive. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * 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(ListExecutionActionsRequest o) { + compartmentId(o.getCompartmentId()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + lifecycleState(o.getLifecycleState()); + executionWindowId(o.getExecutionWindowId()); + displayName(o.getDisplayName()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListExecutionActionsRequest 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 ListExecutionActionsRequest + */ + public ListExecutionActionsRequest build() { + ListExecutionActionsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListExecutionActionsRequest 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 ListExecutionActionsRequest + */ + public ListExecutionActionsRequest buildWithoutInvocationCallback() { + ListExecutionActionsRequest request = new ListExecutionActionsRequest(); + request.compartmentId = compartmentId; + request.limit = limit; + request.page = page; + request.opcRequestId = opcRequestId; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.lifecycleState = lifecycleState; + request.executionWindowId = executionWindowId; + request.displayName = displayName; + return request; + // new ListExecutionActionsRequest(compartmentId, limit, page, opcRequestId, sortBy, + // sortOrder, lifecycleState, executionWindowId, 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() + .compartmentId(compartmentId) + .limit(limit) + .page(page) + .opcRequestId(opcRequestId) + .sortBy(sortBy) + .sortOrder(sortOrder) + .lifecycleState(lifecycleState) + .executionWindowId(executionWindowId) + .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(",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(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",executionWindowId=").append(String.valueOf(this.executionWindowId)); + 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 ListExecutionActionsRequest)) { + return false; + } + + ListExecutionActionsRequest other = (ListExecutionActionsRequest) 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) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.executionWindowId, other.executionWindowId) + && java.util.Objects.equals(this.displayName, other.displayName); + } + + @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()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.executionWindowId == null ? 43 : this.executionWindowId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListExecutionWindowsRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListExecutionWindowsRequest.java new file mode 100644 index 00000000000..0a8a9446859 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListExecutionWindowsRequest.java @@ -0,0 +1,500 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use ListExecutionWindowsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListExecutionWindowsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The compartment + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String compartmentId; + + /** + * The compartment + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + public String getCompartmentId() { + return compartmentId; + } + /** The maximum number of items to return per page. */ + private Integer limit; + + /** The maximum number of items to return per page. */ + public Integer getLimit() { + return limit; + } + /** The pagination token to continue listing from. */ + private String page; + + /** The pagination token to continue listing from. */ + public String getPage() { + return page; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order for + * TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort + * order is case sensitive. + */ + private SortBy sortBy; + + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order for + * TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort + * order is case sensitive. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + Timecreated("TIMECREATED"), + Displayname("DISPLAYNAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order for + * TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort + * order is case sensitive. + */ + public SortBy getSortBy() { + return sortBy; + } + /** A filter to return only resources that match the given resource id exactly. */ + private String executionResourceId; + + /** A filter to return only resources that match the given resource id exactly. */ + public String getExecutionResourceId() { + return executionResourceId; + } + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + private SortOrder sortOrder; + + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + public enum SortOrder implements com.oracle.bmc.http.internal.BmcEnum { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortOrder: " + key); + } + }; + + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + public SortOrder getSortOrder() { + return sortOrder; + } + /** A filter to return only resources that match the given lifecycle state exactly. */ + private com.oracle.bmc.database.model.ExecutionWindowSummary.LifecycleState lifecycleState; + + /** A filter to return only resources that match the given lifecycle state exactly. */ + public com.oracle.bmc.database.model.ExecutionWindowSummary.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** + * A filter to return only resources that match the entire display name given. The match is not + * case sensitive. + */ + private String displayName; + + /** + * A filter to return only resources that match the entire display name given. The match is not + * case sensitive. + */ + public String getDisplayName() { + return displayName; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListExecutionWindowsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The compartment + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String compartmentId = null; + + /** + * The compartment + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** The maximum number of items to return per page. */ + private Integer limit = null; + + /** + * The maximum number of items to return per page. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** The pagination token to continue listing from. */ + private String page = null; + + /** + * The pagination token to continue listing from. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order + * for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The + * DISPLAYNAME sort order is case sensitive. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order + * for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The + * DISPLAYNAME sort order is case sensitive. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** A filter to return only resources that match the given resource id exactly. */ + private String executionResourceId = null; + + /** + * A filter to return only resources that match the given resource id exactly. + * + * @param executionResourceId the value to set + * @return this builder instance + */ + public Builder executionResourceId(String executionResourceId) { + this.executionResourceId = executionResourceId; + return this; + } + + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + private SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** A filter to return only resources that match the given lifecycle state exactly. */ + private com.oracle.bmc.database.model.ExecutionWindowSummary.LifecycleState lifecycleState = + null; + + /** + * A filter to return only resources that match the given lifecycle state exactly. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.database.model.ExecutionWindowSummary.LifecycleState + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * A filter to return only resources that match the entire display name given. The match is + * not case sensitive. + */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. The match is + * not case sensitive. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * 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(ListExecutionWindowsRequest o) { + compartmentId(o.getCompartmentId()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + sortBy(o.getSortBy()); + executionResourceId(o.getExecutionResourceId()); + sortOrder(o.getSortOrder()); + lifecycleState(o.getLifecycleState()); + displayName(o.getDisplayName()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListExecutionWindowsRequest 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 ListExecutionWindowsRequest + */ + public ListExecutionWindowsRequest build() { + ListExecutionWindowsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListExecutionWindowsRequest 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 ListExecutionWindowsRequest + */ + public ListExecutionWindowsRequest buildWithoutInvocationCallback() { + ListExecutionWindowsRequest request = new ListExecutionWindowsRequest(); + request.compartmentId = compartmentId; + request.limit = limit; + request.page = page; + request.opcRequestId = opcRequestId; + request.sortBy = sortBy; + request.executionResourceId = executionResourceId; + request.sortOrder = sortOrder; + request.lifecycleState = lifecycleState; + request.displayName = displayName; + return request; + // new ListExecutionWindowsRequest(compartmentId, limit, page, opcRequestId, sortBy, + // executionResourceId, sortOrder, lifecycleState, 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() + .compartmentId(compartmentId) + .limit(limit) + .page(page) + .opcRequestId(opcRequestId) + .sortBy(sortBy) + .executionResourceId(executionResourceId) + .sortOrder(sortOrder) + .lifecycleState(lifecycleState) + .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(",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(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",executionResourceId=").append(String.valueOf(this.executionResourceId)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListExecutionWindowsRequest)) { + return false; + } + + ListExecutionWindowsRequest other = (ListExecutionWindowsRequest) 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) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.executionResourceId, other.executionResourceId) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.displayName, other.displayName); + } + + @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()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = + (result * PRIME) + + (this.executionResourceId == null + ? 43 + : this.executionResourceId.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListParamsForActionTypeRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListParamsForActionTypeRequest.java new file mode 100644 index 00000000000..2ae5a2422af --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListParamsForActionTypeRequest.java @@ -0,0 +1,246 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use + * ListParamsForActionTypeRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListParamsForActionTypeRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The type of the scheduled action */ + private com.oracle.bmc.database.model.RecommendedScheduledActionSummary.ActionType type; + + /** The type of the scheduled action */ + public com.oracle.bmc.database.model.RecommendedScheduledActionSummary.ActionType getType() { + return type; + } + /** The maximum number of items to return per page. */ + private Integer limit; + + /** The maximum number of items to return per page. */ + public Integer getLimit() { + return limit; + } + /** The pagination token to continue listing from. */ + private String page; + + /** The pagination token to continue listing from. */ + public String getPage() { + return page; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListParamsForActionTypeRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The type of the scheduled action */ + private com.oracle.bmc.database.model.RecommendedScheduledActionSummary.ActionType type = + null; + + /** + * The type of the scheduled action + * + * @param type the value to set + * @return this builder instance + */ + public Builder type( + com.oracle.bmc.database.model.RecommendedScheduledActionSummary.ActionType type) { + this.type = type; + return this; + } + + /** The maximum number of items to return per page. */ + private Integer limit = null; + + /** + * The maximum number of items to return per page. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** The pagination token to continue listing from. */ + private String page = null; + + /** + * The pagination token to continue listing from. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListParamsForActionTypeRequest o) { + type(o.getType()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListParamsForActionTypeRequest 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 ListParamsForActionTypeRequest + */ + public ListParamsForActionTypeRequest build() { + ListParamsForActionTypeRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListParamsForActionTypeRequest 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 ListParamsForActionTypeRequest + */ + public ListParamsForActionTypeRequest buildWithoutInvocationCallback() { + ListParamsForActionTypeRequest request = new ListParamsForActionTypeRequest(); + request.type = type; + request.limit = limit; + request.page = page; + request.opcRequestId = opcRequestId; + return request; + // new ListParamsForActionTypeRequest(type, 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().type(type).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(",type=").append(String.valueOf(this.type)); + 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 ListParamsForActionTypeRequest)) { + return false; + } + + ListParamsForActionTypeRequest other = (ListParamsForActionTypeRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.type, other.type) + && 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.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListRecommendedScheduledActionsRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListRecommendedScheduledActionsRequest.java new file mode 100644 index 00000000000..b6fda57f783 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListRecommendedScheduledActionsRequest.java @@ -0,0 +1,374 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use + * ListRecommendedScheduledActionsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListRecommendedScheduledActionsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String schedulingPolicyId; + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + public String getSchedulingPolicyId() { + return schedulingPolicyId; + } + /** + * The target resource + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) the scheduled + * actions will be for. + */ + private String schedulingPolicyTargetResourceId; + + /** + * The target resource + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) the scheduled + * actions will be for. + */ + public String getSchedulingPolicyTargetResourceId() { + return schedulingPolicyTargetResourceId; + } + /** The scheduling plan intent the scheduled actions will be for. */ + private PlanIntent planIntent; + + /** The scheduling plan intent the scheduled actions will be for. */ + public enum PlanIntent implements com.oracle.bmc.http.internal.BmcEnum { + ExadataInfrastructureFullSoftwareUpdate("EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PlanIntent v : PlanIntent.values()) { + map.put(v.getValue(), v); + } + } + + PlanIntent(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PlanIntent create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid PlanIntent: " + key); + } + }; + + /** The scheduling plan intent the scheduled actions will be for. */ + public PlanIntent getPlanIntent() { + return planIntent; + } + /** The maximum number of items to return per page. */ + private Integer limit; + + /** The maximum number of items to return per page. */ + public Integer getLimit() { + return limit; + } + /** The pagination token to continue listing from. */ + private String page; + + /** The pagination token to continue listing from. */ + public String getPage() { + return page; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListRecommendedScheduledActionsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String schedulingPolicyId = null; + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + * + * @param schedulingPolicyId the value to set + * @return this builder instance + */ + public Builder schedulingPolicyId(String schedulingPolicyId) { + this.schedulingPolicyId = schedulingPolicyId; + return this; + } + + /** + * The target resource + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) the + * scheduled actions will be for. + */ + private String schedulingPolicyTargetResourceId = null; + + /** + * The target resource + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) the + * scheduled actions will be for. + * + * @param schedulingPolicyTargetResourceId the value to set + * @return this builder instance + */ + public Builder schedulingPolicyTargetResourceId(String schedulingPolicyTargetResourceId) { + this.schedulingPolicyTargetResourceId = schedulingPolicyTargetResourceId; + return this; + } + + /** The scheduling plan intent the scheduled actions will be for. */ + private PlanIntent planIntent = null; + + /** + * The scheduling plan intent the scheduled actions will be for. + * + * @param planIntent the value to set + * @return this builder instance + */ + public Builder planIntent(PlanIntent planIntent) { + this.planIntent = planIntent; + return this; + } + + /** The maximum number of items to return per page. */ + private Integer limit = null; + + /** + * The maximum number of items to return per page. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** The pagination token to continue listing from. */ + private String page = null; + + /** + * The pagination token to continue listing from. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListRecommendedScheduledActionsRequest o) { + schedulingPolicyId(o.getSchedulingPolicyId()); + schedulingPolicyTargetResourceId(o.getSchedulingPolicyTargetResourceId()); + planIntent(o.getPlanIntent()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListRecommendedScheduledActionsRequest 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 ListRecommendedScheduledActionsRequest + */ + public ListRecommendedScheduledActionsRequest build() { + ListRecommendedScheduledActionsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListRecommendedScheduledActionsRequest 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 ListRecommendedScheduledActionsRequest + */ + public ListRecommendedScheduledActionsRequest buildWithoutInvocationCallback() { + ListRecommendedScheduledActionsRequest request = + new ListRecommendedScheduledActionsRequest(); + request.schedulingPolicyId = schedulingPolicyId; + request.schedulingPolicyTargetResourceId = schedulingPolicyTargetResourceId; + request.planIntent = planIntent; + request.limit = limit; + request.page = page; + request.opcRequestId = opcRequestId; + return request; + // new ListRecommendedScheduledActionsRequest(schedulingPolicyId, + // schedulingPolicyTargetResourceId, planIntent, 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() + .schedulingPolicyId(schedulingPolicyId) + .schedulingPolicyTargetResourceId(schedulingPolicyTargetResourceId) + .planIntent(planIntent) + .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(",schedulingPolicyId=").append(String.valueOf(this.schedulingPolicyId)); + sb.append(",schedulingPolicyTargetResourceId=") + .append(String.valueOf(this.schedulingPolicyTargetResourceId)); + sb.append(",planIntent=").append(String.valueOf(this.planIntent)); + 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 ListRecommendedScheduledActionsRequest)) { + return false; + } + + ListRecommendedScheduledActionsRequest other = (ListRecommendedScheduledActionsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.schedulingPolicyId, other.schedulingPolicyId) + && java.util.Objects.equals( + this.schedulingPolicyTargetResourceId, + other.schedulingPolicyTargetResourceId) + && java.util.Objects.equals(this.planIntent, other.planIntent) + && 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.schedulingPolicyId == null + ? 43 + : this.schedulingPolicyId.hashCode()); + result = + (result * PRIME) + + (this.schedulingPolicyTargetResourceId == null + ? 43 + : this.schedulingPolicyTargetResourceId.hashCode()); + result = (result * PRIME) + (this.planIntent == null ? 43 : this.planIntent.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListScheduledActionsRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListScheduledActionsRequest.java new file mode 100644 index 00000000000..01535e19250 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListScheduledActionsRequest.java @@ -0,0 +1,547 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use ListScheduledActionsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListScheduledActionsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The compartment + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String compartmentId; + + /** + * The compartment + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + public String getCompartmentId() { + return compartmentId; + } + /** The maximum number of items to return per page. */ + private Integer limit; + + /** The maximum number of items to return per page. */ + public Integer getLimit() { + return limit; + } + /** The pagination token to continue listing from. */ + private String page; + + /** The pagination token to continue listing from. */ + public String getPage() { + return page; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + private SortOrder sortOrder; + + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + public enum SortOrder implements com.oracle.bmc.http.internal.BmcEnum { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortOrder: " + key); + } + }; + + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + public SortOrder getSortOrder() { + return sortOrder; + } + /** A filter to return only resources that match the given service type exactly. */ + private String serviceType; + + /** A filter to return only resources that match the given service type exactly. */ + public String getServiceType() { + return serviceType; + } + /** A filter to return only resources that match the given scheduling policy id exactly. */ + private String schedulingPlanId; + + /** A filter to return only resources that match the given scheduling policy id exactly. */ + public String getSchedulingPlanId() { + return schedulingPlanId; + } + /** + * A filter to return only resources that match the entire display name given. The match is not + * case sensitive. + */ + private String displayName; + + /** + * A filter to return only resources that match the entire display name given. The match is not + * case sensitive. + */ + public String getDisplayName() { + return displayName; + } + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order for + * TIMECREATED is descending. + */ + private SortBy sortBy; + + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order for + * TIMECREATED is descending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + Timecreated("TIMECREATED"), + Displayname("DISPLAYNAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order for + * TIMECREATED is descending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** A filter to return only resources that match the given Scheduled Action id exactly. */ + private String id; + + /** A filter to return only resources that match the given Scheduled Action id exactly. */ + public String getId() { + return id; + } + /** A filter to return only resources that match the given lifecycle state exactly. */ + private com.oracle.bmc.database.model.ScheduledActionSummary.LifecycleState lifecycleState; + + /** A filter to return only resources that match the given lifecycle state exactly. */ + public com.oracle.bmc.database.model.ScheduledActionSummary.LifecycleState getLifecycleState() { + return lifecycleState; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListScheduledActionsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The compartment + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String compartmentId = null; + + /** + * The compartment + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** The maximum number of items to return per page. */ + private Integer limit = null; + + /** + * The maximum number of items to return per page. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** The pagination token to continue listing from. */ + private String page = null; + + /** + * The pagination token to continue listing from. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + private SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** A filter to return only resources that match the given service type exactly. */ + private String serviceType = null; + + /** + * A filter to return only resources that match the given service type exactly. + * + * @param serviceType the value to set + * @return this builder instance + */ + public Builder serviceType(String serviceType) { + this.serviceType = serviceType; + return this; + } + + /** A filter to return only resources that match the given scheduling policy id exactly. */ + private String schedulingPlanId = null; + + /** + * A filter to return only resources that match the given scheduling policy id exactly. + * + * @param schedulingPlanId the value to set + * @return this builder instance + */ + public Builder schedulingPlanId(String schedulingPlanId) { + this.schedulingPlanId = schedulingPlanId; + return this; + } + + /** + * A filter to return only resources that match the entire display name given. The match is + * not case sensitive. + */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. The match is + * not case sensitive. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order + * for TIMECREATED is descending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order + * for TIMECREATED is descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** A filter to return only resources that match the given Scheduled Action id exactly. */ + private String id = null; + + /** + * A filter to return only resources that match the given Scheduled Action id exactly. + * + * @param id the value to set + * @return this builder instance + */ + public Builder id(String id) { + this.id = id; + return this; + } + + /** A filter to return only resources that match the given lifecycle state exactly. */ + private com.oracle.bmc.database.model.ScheduledActionSummary.LifecycleState lifecycleState = + null; + + /** + * A filter to return only resources that match the given lifecycle state exactly. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.database.model.ScheduledActionSummary.LifecycleState + lifecycleState) { + this.lifecycleState = lifecycleState; + 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(ListScheduledActionsRequest o) { + compartmentId(o.getCompartmentId()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + sortOrder(o.getSortOrder()); + serviceType(o.getServiceType()); + schedulingPlanId(o.getSchedulingPlanId()); + displayName(o.getDisplayName()); + sortBy(o.getSortBy()); + id(o.getId()); + lifecycleState(o.getLifecycleState()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListScheduledActionsRequest 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 ListScheduledActionsRequest + */ + public ListScheduledActionsRequest build() { + ListScheduledActionsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListScheduledActionsRequest 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 ListScheduledActionsRequest + */ + public ListScheduledActionsRequest buildWithoutInvocationCallback() { + ListScheduledActionsRequest request = new ListScheduledActionsRequest(); + request.compartmentId = compartmentId; + request.limit = limit; + request.page = page; + request.opcRequestId = opcRequestId; + request.sortOrder = sortOrder; + request.serviceType = serviceType; + request.schedulingPlanId = schedulingPlanId; + request.displayName = displayName; + request.sortBy = sortBy; + request.id = id; + request.lifecycleState = lifecycleState; + return request; + // new ListScheduledActionsRequest(compartmentId, limit, page, opcRequestId, sortOrder, + // serviceType, schedulingPlanId, displayName, sortBy, id, lifecycleState); + } + } + + /** + * 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) + .sortOrder(sortOrder) + .serviceType(serviceType) + .schedulingPlanId(schedulingPlanId) + .displayName(displayName) + .sortBy(sortBy) + .id(id) + .lifecycleState(lifecycleState); + } + + /** + * 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(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",serviceType=").append(String.valueOf(this.serviceType)); + sb.append(",schedulingPlanId=").append(String.valueOf(this.schedulingPlanId)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",id=").append(String.valueOf(this.id)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListScheduledActionsRequest)) { + return false; + } + + ListScheduledActionsRequest other = (ListScheduledActionsRequest) 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) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.serviceType, other.serviceType) + && java.util.Objects.equals(this.schedulingPlanId, other.schedulingPlanId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState); + } + + @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()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.serviceType == null ? 43 : this.serviceType.hashCode()); + result = + (result * PRIME) + + (this.schedulingPlanId == null ? 43 : this.schedulingPlanId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListSchedulingPlansRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListSchedulingPlansRequest.java new file mode 100644 index 00000000000..c81f7b49a1e --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListSchedulingPlansRequest.java @@ -0,0 +1,547 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use ListSchedulingPlansRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListSchedulingPlansRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The compartment + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String compartmentId; + + /** + * The compartment + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + public String getCompartmentId() { + return compartmentId; + } + /** The maximum number of items to return per page. */ + private Integer limit; + + /** The maximum number of items to return per page. */ + public Integer getLimit() { + return limit; + } + /** The pagination token to continue listing from. */ + private String page; + + /** The pagination token to continue listing from. */ + public String getPage() { + return page; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order for + * TIMECREATED is descending. + */ + private SortBy sortBy; + + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order for + * TIMECREATED is descending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + Timecreated("TIMECREATED"), + Displayname("DISPLAYNAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order for + * TIMECREATED is descending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + private SortOrder sortOrder; + + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + public enum SortOrder implements com.oracle.bmc.http.internal.BmcEnum { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortOrder: " + key); + } + }; + + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + public SortOrder getSortOrder() { + return sortOrder; + } + /** A filter to return only resources that match the given lifecycle state exactly. */ + private com.oracle.bmc.database.model.SchedulingPlanSummary.LifecycleState lifecycleState; + + /** A filter to return only resources that match the given lifecycle state exactly. */ + public com.oracle.bmc.database.model.SchedulingPlanSummary.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** A filter to return only resources that match the given scheduling policy id exactly. */ + private String schedulingPolicyId; + + /** A filter to return only resources that match the given scheduling policy id exactly. */ + public String getSchedulingPolicyId() { + return schedulingPolicyId; + } + /** + * A filter to return only resources that match the entire display name given. The match is not + * case sensitive. + */ + private String displayName; + + /** + * A filter to return only resources that match the entire display name given. The match is not + * case sensitive. + */ + public String getDisplayName() { + return displayName; + } + /** A filter to return only resources that match the given resource id exactly. */ + private String resourceId; + + /** A filter to return only resources that match the given resource id exactly. */ + public String getResourceId() { + return resourceId; + } + /** A filter to return only resources that match the given Schedule Plan id exactly. */ + private String id; + + /** A filter to return only resources that match the given Schedule Plan id exactly. */ + public String getId() { + return id; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListSchedulingPlansRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The compartment + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String compartmentId = null; + + /** + * The compartment + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** The maximum number of items to return per page. */ + private Integer limit = null; + + /** + * The maximum number of items to return per page. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** The pagination token to continue listing from. */ + private String page = null; + + /** + * The pagination token to continue listing from. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order + * for TIMECREATED is descending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order + * for TIMECREATED is descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + private SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** A filter to return only resources that match the given lifecycle state exactly. */ + private com.oracle.bmc.database.model.SchedulingPlanSummary.LifecycleState lifecycleState = + null; + + /** + * A filter to return only resources that match the given lifecycle state exactly. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.database.model.SchedulingPlanSummary.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** A filter to return only resources that match the given scheduling policy id exactly. */ + private String schedulingPolicyId = null; + + /** + * A filter to return only resources that match the given scheduling policy id exactly. + * + * @param schedulingPolicyId the value to set + * @return this builder instance + */ + public Builder schedulingPolicyId(String schedulingPolicyId) { + this.schedulingPolicyId = schedulingPolicyId; + return this; + } + + /** + * A filter to return only resources that match the entire display name given. The match is + * not case sensitive. + */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. The match is + * not case sensitive. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** A filter to return only resources that match the given resource id exactly. */ + private String resourceId = null; + + /** + * A filter to return only resources that match the given resource id exactly. + * + * @param resourceId the value to set + * @return this builder instance + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** A filter to return only resources that match the given Schedule Plan id exactly. */ + private String id = null; + + /** + * A filter to return only resources that match the given Schedule Plan id exactly. + * + * @param id the value to set + * @return this builder instance + */ + public Builder id(String id) { + this.id = id; + 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(ListSchedulingPlansRequest o) { + compartmentId(o.getCompartmentId()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + lifecycleState(o.getLifecycleState()); + schedulingPolicyId(o.getSchedulingPolicyId()); + displayName(o.getDisplayName()); + resourceId(o.getResourceId()); + id(o.getId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListSchedulingPlansRequest 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 ListSchedulingPlansRequest + */ + public ListSchedulingPlansRequest build() { + ListSchedulingPlansRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListSchedulingPlansRequest 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 ListSchedulingPlansRequest + */ + public ListSchedulingPlansRequest buildWithoutInvocationCallback() { + ListSchedulingPlansRequest request = new ListSchedulingPlansRequest(); + request.compartmentId = compartmentId; + request.limit = limit; + request.page = page; + request.opcRequestId = opcRequestId; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.lifecycleState = lifecycleState; + request.schedulingPolicyId = schedulingPolicyId; + request.displayName = displayName; + request.resourceId = resourceId; + request.id = id; + return request; + // new ListSchedulingPlansRequest(compartmentId, limit, page, opcRequestId, sortBy, + // sortOrder, lifecycleState, schedulingPolicyId, displayName, resourceId, id); + } + } + + /** + * 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) + .sortBy(sortBy) + .sortOrder(sortOrder) + .lifecycleState(lifecycleState) + .schedulingPolicyId(schedulingPolicyId) + .displayName(displayName) + .resourceId(resourceId) + .id(id); + } + + /** + * 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(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",schedulingPolicyId=").append(String.valueOf(this.schedulingPolicyId)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",resourceId=").append(String.valueOf(this.resourceId)); + sb.append(",id=").append(String.valueOf(this.id)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListSchedulingPlansRequest)) { + return false; + } + + ListSchedulingPlansRequest other = (ListSchedulingPlansRequest) 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) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.schedulingPolicyId, other.schedulingPolicyId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.id, other.id); + } + + @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()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.schedulingPolicyId == null + ? 43 + : this.schedulingPolicyId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListSchedulingPoliciesRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListSchedulingPoliciesRequest.java new file mode 100644 index 00000000000..520c67ee90f --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListSchedulingPoliciesRequest.java @@ -0,0 +1,471 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use + * ListSchedulingPoliciesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListSchedulingPoliciesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The compartment + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String compartmentId; + + /** + * The compartment + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + public String getCompartmentId() { + return compartmentId; + } + /** The maximum number of items to return per page. */ + private Integer limit; + + /** The maximum number of items to return per page. */ + public Integer getLimit() { + return limit; + } + /** The pagination token to continue listing from. */ + private String page; + + /** The pagination token to continue listing from. */ + public String getPage() { + return page; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order for + * TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort + * order is case sensitive. + */ + private SortBy sortBy; + + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order for + * TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort + * order is case sensitive. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + Timecreated("TIMECREATED"), + Displayname("DISPLAYNAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order for + * TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort + * order is case sensitive. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + private SortOrder sortOrder; + + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + public enum SortOrder implements com.oracle.bmc.http.internal.BmcEnum { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortOrder: " + key); + } + }; + + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + public SortOrder getSortOrder() { + return sortOrder; + } + /** A filter to return only resources that match the given lifecycle state exactly. */ + private com.oracle.bmc.database.model.SchedulingPolicySummary.LifecycleState lifecycleState; + + /** A filter to return only resources that match the given lifecycle state exactly. */ + public com.oracle.bmc.database.model.SchedulingPolicySummary.LifecycleState + getLifecycleState() { + return lifecycleState; + } + /** + * A filter to return only resources that match the entire display name given. The match is not + * case sensitive. + */ + private String displayName; + + /** + * A filter to return only resources that match the entire display name given. The match is not + * case sensitive. + */ + public String getDisplayName() { + return displayName; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListSchedulingPoliciesRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The compartment + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String compartmentId = null; + + /** + * The compartment + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** The maximum number of items to return per page. */ + private Integer limit = null; + + /** + * The maximum number of items to return per page. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** The pagination token to continue listing from. */ + private String page = null; + + /** + * The pagination token to continue listing from. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order + * for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The + * DISPLAYNAME sort order is case sensitive. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order + * for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The + * DISPLAYNAME sort order is case sensitive. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + private SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** A filter to return only resources that match the given lifecycle state exactly. */ + private com.oracle.bmc.database.model.SchedulingPolicySummary.LifecycleState + lifecycleState = null; + + /** + * A filter to return only resources that match the given lifecycle state exactly. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.database.model.SchedulingPolicySummary.LifecycleState + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * A filter to return only resources that match the entire display name given. The match is + * not case sensitive. + */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. The match is + * not case sensitive. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * 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(ListSchedulingPoliciesRequest o) { + compartmentId(o.getCompartmentId()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + lifecycleState(o.getLifecycleState()); + displayName(o.getDisplayName()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListSchedulingPoliciesRequest 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 ListSchedulingPoliciesRequest + */ + public ListSchedulingPoliciesRequest build() { + ListSchedulingPoliciesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListSchedulingPoliciesRequest 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 ListSchedulingPoliciesRequest + */ + public ListSchedulingPoliciesRequest buildWithoutInvocationCallback() { + ListSchedulingPoliciesRequest request = new ListSchedulingPoliciesRequest(); + request.compartmentId = compartmentId; + request.limit = limit; + request.page = page; + request.opcRequestId = opcRequestId; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.lifecycleState = lifecycleState; + request.displayName = displayName; + return request; + // new ListSchedulingPoliciesRequest(compartmentId, limit, page, opcRequestId, sortBy, + // sortOrder, lifecycleState, 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() + .compartmentId(compartmentId) + .limit(limit) + .page(page) + .opcRequestId(opcRequestId) + .sortBy(sortBy) + .sortOrder(sortOrder) + .lifecycleState(lifecycleState) + .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(",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(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListSchedulingPoliciesRequest)) { + return false; + } + + ListSchedulingPoliciesRequest other = (ListSchedulingPoliciesRequest) 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) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.displayName, other.displayName); + } + + @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()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListSchedulingWindowsRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListSchedulingWindowsRequest.java new file mode 100644 index 00000000000..51d9dffa7cb --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListSchedulingWindowsRequest.java @@ -0,0 +1,512 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use + * ListSchedulingWindowsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListSchedulingWindowsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String schedulingPolicyId; + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + public String getSchedulingPolicyId() { + return schedulingPolicyId; + } + /** + * The compartment + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String compartmentId; + + /** + * The compartment + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + public String getCompartmentId() { + return compartmentId; + } + /** The maximum number of items to return per page. */ + private Integer limit; + + /** The maximum number of items to return per page. */ + public Integer getLimit() { + return limit; + } + /** The pagination token to continue listing from. */ + private String page; + + /** The pagination token to continue listing from. */ + public String getPage() { + return page; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order for + * TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort + * order is case sensitive. + */ + private SortBy sortBy; + + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order for + * TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort + * order is case sensitive. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + Timecreated("TIMECREATED"), + Displayname("DISPLAYNAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order for + * TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort + * order is case sensitive. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + private SortOrder sortOrder; + + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + public enum SortOrder implements com.oracle.bmc.http.internal.BmcEnum { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortOrder: " + key); + } + }; + + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + public SortOrder getSortOrder() { + return sortOrder; + } + /** A filter to return only resources that match the given lifecycle state exactly. */ + private com.oracle.bmc.database.model.SchedulingWindowSummary.LifecycleState lifecycleState; + + /** A filter to return only resources that match the given lifecycle state exactly. */ + public com.oracle.bmc.database.model.SchedulingWindowSummary.LifecycleState + getLifecycleState() { + return lifecycleState; + } + /** + * A filter to return only resources that match the entire display name given. The match is not + * case sensitive. + */ + private String displayName; + + /** + * A filter to return only resources that match the entire display name given. The match is not + * case sensitive. + */ + public String getDisplayName() { + return displayName; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListSchedulingWindowsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String schedulingPolicyId = null; + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + * + * @param schedulingPolicyId the value to set + * @return this builder instance + */ + public Builder schedulingPolicyId(String schedulingPolicyId) { + this.schedulingPolicyId = schedulingPolicyId; + return this; + } + + /** + * The compartment + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String compartmentId = null; + + /** + * The compartment + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** The maximum number of items to return per page. */ + private Integer limit = null; + + /** + * The maximum number of items to return per page. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** The pagination token to continue listing from. */ + private String page = null; + + /** + * The pagination token to continue listing from. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order + * for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The + * DISPLAYNAME sort order is case sensitive. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order + * for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The + * DISPLAYNAME sort order is case sensitive. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + private SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** A filter to return only resources that match the given lifecycle state exactly. */ + private com.oracle.bmc.database.model.SchedulingWindowSummary.LifecycleState + lifecycleState = null; + + /** + * A filter to return only resources that match the given lifecycle state exactly. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.database.model.SchedulingWindowSummary.LifecycleState + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * A filter to return only resources that match the entire display name given. The match is + * not case sensitive. + */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. The match is + * not case sensitive. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * 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(ListSchedulingWindowsRequest o) { + schedulingPolicyId(o.getSchedulingPolicyId()); + compartmentId(o.getCompartmentId()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + lifecycleState(o.getLifecycleState()); + displayName(o.getDisplayName()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListSchedulingWindowsRequest 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 ListSchedulingWindowsRequest + */ + public ListSchedulingWindowsRequest build() { + ListSchedulingWindowsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListSchedulingWindowsRequest 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 ListSchedulingWindowsRequest + */ + public ListSchedulingWindowsRequest buildWithoutInvocationCallback() { + ListSchedulingWindowsRequest request = new ListSchedulingWindowsRequest(); + request.schedulingPolicyId = schedulingPolicyId; + request.compartmentId = compartmentId; + request.limit = limit; + request.page = page; + request.opcRequestId = opcRequestId; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.lifecycleState = lifecycleState; + request.displayName = displayName; + return request; + // new ListSchedulingWindowsRequest(schedulingPolicyId, compartmentId, limit, page, + // opcRequestId, sortBy, sortOrder, lifecycleState, 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() + .schedulingPolicyId(schedulingPolicyId) + .compartmentId(compartmentId) + .limit(limit) + .page(page) + .opcRequestId(opcRequestId) + .sortBy(sortBy) + .sortOrder(sortOrder) + .lifecycleState(lifecycleState) + .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(",schedulingPolicyId=").append(String.valueOf(this.schedulingPolicyId)); + 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(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListSchedulingWindowsRequest)) { + return false; + } + + ListSchedulingWindowsRequest other = (ListSchedulingWindowsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.schedulingPolicyId, other.schedulingPolicyId) + && 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) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.displayName, other.displayName); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.schedulingPolicyId == null + ? 43 + : this.schedulingPolicyId.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()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/MoveExecutionActionMemberRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/MoveExecutionActionMemberRequest.java new file mode 100644 index 00000000000..ba6bc61913b --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/MoveExecutionActionMemberRequest.java @@ -0,0 +1,375 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use + * MoveExecutionActionMemberRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class MoveExecutionActionMemberRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.database.model.MoveExecutionActionMemberDetails> { + + /** + * The execution action + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String executionActionId; + + /** + * The execution action + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + public String getExecutionActionId() { + return executionActionId; + } + /** + * Request to move an execution action member to this execution action resource from another. + */ + private com.oracle.bmc.database.model.MoveExecutionActionMemberDetails + moveExecutionActionMemberDetails; + + /** + * Request to move an execution action member to this execution action resource from another. + */ + public com.oracle.bmc.database.model.MoveExecutionActionMemberDetails + getMoveExecutionActionMemberDetails() { + return moveExecutionActionMemberDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.database.model.MoveExecutionActionMemberDetails getBody$() { + return moveExecutionActionMemberDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + MoveExecutionActionMemberRequest, + com.oracle.bmc.database.model.MoveExecutionActionMemberDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The execution action + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String executionActionId = null; + + /** + * The execution action + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + * + * @param executionActionId the value to set + * @return this builder instance + */ + public Builder executionActionId(String executionActionId) { + this.executionActionId = executionActionId; + return this; + } + + /** + * Request to move an execution action member to this execution action resource from + * another. + */ + private com.oracle.bmc.database.model.MoveExecutionActionMemberDetails + moveExecutionActionMemberDetails = null; + + /** + * Request to move an execution action member to this execution action resource from + * another. + * + * @param moveExecutionActionMemberDetails the value to set + * @return this builder instance + */ + public Builder moveExecutionActionMemberDetails( + com.oracle.bmc.database.model.MoveExecutionActionMemberDetails + moveExecutionActionMemberDetails) { + this.moveExecutionActionMemberDetails = moveExecutionActionMemberDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * 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(MoveExecutionActionMemberRequest o) { + executionActionId(o.getExecutionActionId()); + moveExecutionActionMemberDetails(o.getMoveExecutionActionMemberDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of MoveExecutionActionMemberRequest 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 MoveExecutionActionMemberRequest + */ + public MoveExecutionActionMemberRequest build() { + MoveExecutionActionMemberRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.database.model.MoveExecutionActionMemberDetails body) { + moveExecutionActionMemberDetails(body); + return this; + } + + /** + * Build the instance of MoveExecutionActionMemberRequest 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 MoveExecutionActionMemberRequest + */ + public MoveExecutionActionMemberRequest buildWithoutInvocationCallback() { + MoveExecutionActionMemberRequest request = new MoveExecutionActionMemberRequest(); + request.executionActionId = executionActionId; + request.moveExecutionActionMemberDetails = moveExecutionActionMemberDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new MoveExecutionActionMemberRequest(executionActionId, + // moveExecutionActionMemberDetails, 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() + .executionActionId(executionActionId) + .moveExecutionActionMemberDetails(moveExecutionActionMemberDetails) + .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(",executionActionId=").append(String.valueOf(this.executionActionId)); + sb.append(",moveExecutionActionMemberDetails=") + .append(String.valueOf(this.moveExecutionActionMemberDetails)); + 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 MoveExecutionActionMemberRequest)) { + return false; + } + + MoveExecutionActionMemberRequest other = (MoveExecutionActionMemberRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.executionActionId, other.executionActionId) + && java.util.Objects.equals( + this.moveExecutionActionMemberDetails, + other.moveExecutionActionMemberDetails) + && 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.executionActionId == null ? 43 : this.executionActionId.hashCode()); + result = + (result * PRIME) + + (this.moveExecutionActionMemberDetails == null + ? 43 + : this.moveExecutionActionMemberDetails.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-database/src/main/java/com/oracle/bmc/database/requests/ReorderExecutionActionsRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ReorderExecutionActionsRequest.java new file mode 100644 index 00000000000..be3765f6691 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ReorderExecutionActionsRequest.java @@ -0,0 +1,366 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use + * ReorderExecutionActionsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ReorderExecutionActionsRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.database.model.ReorderExecutionActionDetails> { + + /** + * The execution window + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String executionWindowId; + + /** + * The execution window + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + public String getExecutionWindowId() { + return executionWindowId; + } + /** Request to reorder the execution actions under this execution window resource. */ + private com.oracle.bmc.database.model.ReorderExecutionActionDetails + reorderExecutionActionDetails; + + /** Request to reorder the execution actions under this execution window resource. */ + public com.oracle.bmc.database.model.ReorderExecutionActionDetails + getReorderExecutionActionDetails() { + return reorderExecutionActionDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.database.model.ReorderExecutionActionDetails getBody$() { + return reorderExecutionActionDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ReorderExecutionActionsRequest, + com.oracle.bmc.database.model.ReorderExecutionActionDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The execution window + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String executionWindowId = null; + + /** + * The execution window + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + * + * @param executionWindowId the value to set + * @return this builder instance + */ + public Builder executionWindowId(String executionWindowId) { + this.executionWindowId = executionWindowId; + return this; + } + + /** Request to reorder the execution actions under this execution window resource. */ + private com.oracle.bmc.database.model.ReorderExecutionActionDetails + reorderExecutionActionDetails = null; + + /** + * Request to reorder the execution actions under this execution window resource. + * + * @param reorderExecutionActionDetails the value to set + * @return this builder instance + */ + public Builder reorderExecutionActionDetails( + com.oracle.bmc.database.model.ReorderExecutionActionDetails + reorderExecutionActionDetails) { + this.reorderExecutionActionDetails = reorderExecutionActionDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * 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(ReorderExecutionActionsRequest o) { + executionWindowId(o.getExecutionWindowId()); + reorderExecutionActionDetails(o.getReorderExecutionActionDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ReorderExecutionActionsRequest 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 ReorderExecutionActionsRequest + */ + public ReorderExecutionActionsRequest build() { + ReorderExecutionActionsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.database.model.ReorderExecutionActionDetails body) { + reorderExecutionActionDetails(body); + return this; + } + + /** + * Build the instance of ReorderExecutionActionsRequest 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 ReorderExecutionActionsRequest + */ + public ReorderExecutionActionsRequest buildWithoutInvocationCallback() { + ReorderExecutionActionsRequest request = new ReorderExecutionActionsRequest(); + request.executionWindowId = executionWindowId; + request.reorderExecutionActionDetails = reorderExecutionActionDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new ReorderExecutionActionsRequest(executionWindowId, reorderExecutionActionDetails, + // 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() + .executionWindowId(executionWindowId) + .reorderExecutionActionDetails(reorderExecutionActionDetails) + .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(",executionWindowId=").append(String.valueOf(this.executionWindowId)); + sb.append(",reorderExecutionActionDetails=") + .append(String.valueOf(this.reorderExecutionActionDetails)); + 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 ReorderExecutionActionsRequest)) { + return false; + } + + ReorderExecutionActionsRequest other = (ReorderExecutionActionsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.executionWindowId, other.executionWindowId) + && java.util.Objects.equals( + this.reorderExecutionActionDetails, other.reorderExecutionActionDetails) + && 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.executionWindowId == null ? 43 : this.executionWindowId.hashCode()); + result = + (result * PRIME) + + (this.reorderExecutionActionDetails == null + ? 43 + : this.reorderExecutionActionDetails.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-database/src/main/java/com/oracle/bmc/database/requests/ReorderScheduledActionsRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ReorderScheduledActionsRequest.java new file mode 100644 index 00000000000..2de782a8f67 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ReorderScheduledActionsRequest.java @@ -0,0 +1,366 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use + * ReorderScheduledActionsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ReorderScheduledActionsRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.database.model.ReorderScheduledActionsDetails> { + + /** Request to re-order Scheduled Action resources. */ + private com.oracle.bmc.database.model.ReorderScheduledActionsDetails + reorderScheduledActionsDetails; + + /** Request to re-order Scheduled Action resources. */ + public com.oracle.bmc.database.model.ReorderScheduledActionsDetails + getReorderScheduledActionsDetails() { + return reorderScheduledActionsDetails; + } + /** + * The Schedule Plan + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String schedulingPlanId; + + /** + * The Schedule Plan + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + public String getSchedulingPlanId() { + return schedulingPlanId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.database.model.ReorderScheduledActionsDetails getBody$() { + return reorderScheduledActionsDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ReorderScheduledActionsRequest, + com.oracle.bmc.database.model.ReorderScheduledActionsDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Request to re-order Scheduled Action resources. */ + private com.oracle.bmc.database.model.ReorderScheduledActionsDetails + reorderScheduledActionsDetails = null; + + /** + * Request to re-order Scheduled Action resources. + * + * @param reorderScheduledActionsDetails the value to set + * @return this builder instance + */ + public Builder reorderScheduledActionsDetails( + com.oracle.bmc.database.model.ReorderScheduledActionsDetails + reorderScheduledActionsDetails) { + this.reorderScheduledActionsDetails = reorderScheduledActionsDetails; + return this; + } + + /** + * The Schedule Plan + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String schedulingPlanId = null; + + /** + * The Schedule Plan + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + * + * @param schedulingPlanId the value to set + * @return this builder instance + */ + public Builder schedulingPlanId(String schedulingPlanId) { + this.schedulingPlanId = schedulingPlanId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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(ReorderScheduledActionsRequest o) { + reorderScheduledActionsDetails(o.getReorderScheduledActionsDetails()); + schedulingPlanId(o.getSchedulingPlanId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ReorderScheduledActionsRequest 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 ReorderScheduledActionsRequest + */ + public ReorderScheduledActionsRequest build() { + ReorderScheduledActionsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.database.model.ReorderScheduledActionsDetails body) { + reorderScheduledActionsDetails(body); + return this; + } + + /** + * Build the instance of ReorderScheduledActionsRequest 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 ReorderScheduledActionsRequest + */ + public ReorderScheduledActionsRequest buildWithoutInvocationCallback() { + ReorderScheduledActionsRequest request = new ReorderScheduledActionsRequest(); + request.reorderScheduledActionsDetails = reorderScheduledActionsDetails; + request.schedulingPlanId = schedulingPlanId; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new ReorderScheduledActionsRequest(reorderScheduledActionsDetails, schedulingPlanId, + // opcRetryToken, opcRequestId, ifMatch); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .reorderScheduledActionsDetails(reorderScheduledActionsDetails) + .schedulingPlanId(schedulingPlanId) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",reorderScheduledActionsDetails=") + .append(String.valueOf(this.reorderScheduledActionsDetails)); + sb.append(",schedulingPlanId=").append(String.valueOf(this.schedulingPlanId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ReorderScheduledActionsRequest)) { + return false; + } + + ReorderScheduledActionsRequest other = (ReorderScheduledActionsRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.reorderScheduledActionsDetails, other.reorderScheduledActionsDetails) + && java.util.Objects.equals(this.schedulingPlanId, other.schedulingPlanId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.reorderScheduledActionsDetails == null + ? 43 + : this.reorderScheduledActionsDetails.hashCode()); + result = + (result * PRIME) + + (this.schedulingPlanId == null ? 43 : this.schedulingPlanId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateExecutionActionRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateExecutionActionRequest.java new file mode 100644 index 00000000000..972d7e1b5f1 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateExecutionActionRequest.java @@ -0,0 +1,314 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use + * UpdateExecutionActionRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class UpdateExecutionActionRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.database.model.UpdateExecutionActionDetails> { + + /** + * The execution action + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String executionActionId; + + /** + * The execution action + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + public String getExecutionActionId() { + return executionActionId; + } + /** Request to update the properties of a execution action. */ + private com.oracle.bmc.database.model.UpdateExecutionActionDetails updateExecutionActionDetails; + + /** Request to update the properties of a execution action. */ + public com.oracle.bmc.database.model.UpdateExecutionActionDetails + getUpdateExecutionActionDetails() { + return updateExecutionActionDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.database.model.UpdateExecutionActionDetails getBody$() { + return updateExecutionActionDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateExecutionActionRequest, + com.oracle.bmc.database.model.UpdateExecutionActionDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The execution action + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String executionActionId = null; + + /** + * The execution action + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + * + * @param executionActionId the value to set + * @return this builder instance + */ + public Builder executionActionId(String executionActionId) { + this.executionActionId = executionActionId; + return this; + } + + /** Request to update the properties of a execution action. */ + private com.oracle.bmc.database.model.UpdateExecutionActionDetails + updateExecutionActionDetails = null; + + /** + * Request to update the properties of a execution action. + * + * @param updateExecutionActionDetails the value to set + * @return this builder instance + */ + public Builder updateExecutionActionDetails( + com.oracle.bmc.database.model.UpdateExecutionActionDetails + updateExecutionActionDetails) { + this.updateExecutionActionDetails = updateExecutionActionDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(UpdateExecutionActionRequest o) { + executionActionId(o.getExecutionActionId()); + updateExecutionActionDetails(o.getUpdateExecutionActionDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateExecutionActionRequest 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 UpdateExecutionActionRequest + */ + public UpdateExecutionActionRequest build() { + UpdateExecutionActionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.database.model.UpdateExecutionActionDetails body) { + updateExecutionActionDetails(body); + return this; + } + + /** + * Build the instance of UpdateExecutionActionRequest 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 UpdateExecutionActionRequest + */ + public UpdateExecutionActionRequest buildWithoutInvocationCallback() { + UpdateExecutionActionRequest request = new UpdateExecutionActionRequest(); + request.executionActionId = executionActionId; + request.updateExecutionActionDetails = updateExecutionActionDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateExecutionActionRequest(executionActionId, updateExecutionActionDetails, + // 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() + .executionActionId(executionActionId) + .updateExecutionActionDetails(updateExecutionActionDetails) + .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(",executionActionId=").append(String.valueOf(this.executionActionId)); + sb.append(",updateExecutionActionDetails=") + .append(String.valueOf(this.updateExecutionActionDetails)); + 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 UpdateExecutionActionRequest)) { + return false; + } + + UpdateExecutionActionRequest other = (UpdateExecutionActionRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.executionActionId, other.executionActionId) + && java.util.Objects.equals( + this.updateExecutionActionDetails, other.updateExecutionActionDetails) + && 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.executionActionId == null ? 43 : this.executionActionId.hashCode()); + result = + (result * PRIME) + + (this.updateExecutionActionDetails == null + ? 43 + : this.updateExecutionActionDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateExecutionWindowRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateExecutionWindowRequest.java new file mode 100644 index 00000000000..5635fb9bfc7 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateExecutionWindowRequest.java @@ -0,0 +1,314 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use + * UpdateExecutionWindowRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class UpdateExecutionWindowRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.database.model.UpdateExecutionWindowDetails> { + + /** + * The execution window + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String executionWindowId; + + /** + * The execution window + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + public String getExecutionWindowId() { + return executionWindowId; + } + /** Request to update the properties of a execution window. */ + private com.oracle.bmc.database.model.UpdateExecutionWindowDetails updateExecutionWindowDetails; + + /** Request to update the properties of a execution window. */ + public com.oracle.bmc.database.model.UpdateExecutionWindowDetails + getUpdateExecutionWindowDetails() { + return updateExecutionWindowDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.database.model.UpdateExecutionWindowDetails getBody$() { + return updateExecutionWindowDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateExecutionWindowRequest, + com.oracle.bmc.database.model.UpdateExecutionWindowDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The execution window + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String executionWindowId = null; + + /** + * The execution window + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + * + * @param executionWindowId the value to set + * @return this builder instance + */ + public Builder executionWindowId(String executionWindowId) { + this.executionWindowId = executionWindowId; + return this; + } + + /** Request to update the properties of a execution window. */ + private com.oracle.bmc.database.model.UpdateExecutionWindowDetails + updateExecutionWindowDetails = null; + + /** + * Request to update the properties of a execution window. + * + * @param updateExecutionWindowDetails the value to set + * @return this builder instance + */ + public Builder updateExecutionWindowDetails( + com.oracle.bmc.database.model.UpdateExecutionWindowDetails + updateExecutionWindowDetails) { + this.updateExecutionWindowDetails = updateExecutionWindowDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(UpdateExecutionWindowRequest o) { + executionWindowId(o.getExecutionWindowId()); + updateExecutionWindowDetails(o.getUpdateExecutionWindowDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateExecutionWindowRequest 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 UpdateExecutionWindowRequest + */ + public UpdateExecutionWindowRequest build() { + UpdateExecutionWindowRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.database.model.UpdateExecutionWindowDetails body) { + updateExecutionWindowDetails(body); + return this; + } + + /** + * Build the instance of UpdateExecutionWindowRequest 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 UpdateExecutionWindowRequest + */ + public UpdateExecutionWindowRequest buildWithoutInvocationCallback() { + UpdateExecutionWindowRequest request = new UpdateExecutionWindowRequest(); + request.executionWindowId = executionWindowId; + request.updateExecutionWindowDetails = updateExecutionWindowDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateExecutionWindowRequest(executionWindowId, updateExecutionWindowDetails, + // 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() + .executionWindowId(executionWindowId) + .updateExecutionWindowDetails(updateExecutionWindowDetails) + .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(",executionWindowId=").append(String.valueOf(this.executionWindowId)); + sb.append(",updateExecutionWindowDetails=") + .append(String.valueOf(this.updateExecutionWindowDetails)); + 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 UpdateExecutionWindowRequest)) { + return false; + } + + UpdateExecutionWindowRequest other = (UpdateExecutionWindowRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.executionWindowId, other.executionWindowId) + && java.util.Objects.equals( + this.updateExecutionWindowDetails, other.updateExecutionWindowDetails) + && 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.executionWindowId == null ? 43 : this.executionWindowId.hashCode()); + result = + (result * PRIME) + + (this.updateExecutionWindowDetails == null + ? 43 + : this.updateExecutionWindowDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateScheduledActionRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateScheduledActionRequest.java new file mode 100644 index 00000000000..3d914172d00 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateScheduledActionRequest.java @@ -0,0 +1,314 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use + * UpdateScheduledActionRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class UpdateScheduledActionRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.database.model.UpdateScheduledActionDetails> { + + /** + * The Scheduled Action + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String scheduledActionId; + + /** + * The Scheduled Action + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + public String getScheduledActionId() { + return scheduledActionId; + } + /** Request to update the properties of a Scheduled Action. */ + private com.oracle.bmc.database.model.UpdateScheduledActionDetails updateScheduledActionDetails; + + /** Request to update the properties of a Scheduled Action. */ + public com.oracle.bmc.database.model.UpdateScheduledActionDetails + getUpdateScheduledActionDetails() { + return updateScheduledActionDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.database.model.UpdateScheduledActionDetails getBody$() { + return updateScheduledActionDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateScheduledActionRequest, + com.oracle.bmc.database.model.UpdateScheduledActionDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The Scheduled Action + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String scheduledActionId = null; + + /** + * The Scheduled Action + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + * + * @param scheduledActionId the value to set + * @return this builder instance + */ + public Builder scheduledActionId(String scheduledActionId) { + this.scheduledActionId = scheduledActionId; + return this; + } + + /** Request to update the properties of a Scheduled Action. */ + private com.oracle.bmc.database.model.UpdateScheduledActionDetails + updateScheduledActionDetails = null; + + /** + * Request to update the properties of a Scheduled Action. + * + * @param updateScheduledActionDetails the value to set + * @return this builder instance + */ + public Builder updateScheduledActionDetails( + com.oracle.bmc.database.model.UpdateScheduledActionDetails + updateScheduledActionDetails) { + this.updateScheduledActionDetails = updateScheduledActionDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(UpdateScheduledActionRequest o) { + scheduledActionId(o.getScheduledActionId()); + updateScheduledActionDetails(o.getUpdateScheduledActionDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateScheduledActionRequest 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 UpdateScheduledActionRequest + */ + public UpdateScheduledActionRequest build() { + UpdateScheduledActionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.database.model.UpdateScheduledActionDetails body) { + updateScheduledActionDetails(body); + return this; + } + + /** + * Build the instance of UpdateScheduledActionRequest 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 UpdateScheduledActionRequest + */ + public UpdateScheduledActionRequest buildWithoutInvocationCallback() { + UpdateScheduledActionRequest request = new UpdateScheduledActionRequest(); + request.scheduledActionId = scheduledActionId; + request.updateScheduledActionDetails = updateScheduledActionDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateScheduledActionRequest(scheduledActionId, updateScheduledActionDetails, + // 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() + .scheduledActionId(scheduledActionId) + .updateScheduledActionDetails(updateScheduledActionDetails) + .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(",scheduledActionId=").append(String.valueOf(this.scheduledActionId)); + sb.append(",updateScheduledActionDetails=") + .append(String.valueOf(this.updateScheduledActionDetails)); + 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 UpdateScheduledActionRequest)) { + return false; + } + + UpdateScheduledActionRequest other = (UpdateScheduledActionRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.scheduledActionId, other.scheduledActionId) + && java.util.Objects.equals( + this.updateScheduledActionDetails, other.updateScheduledActionDetails) + && 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.scheduledActionId == null ? 43 : this.scheduledActionId.hashCode()); + result = + (result * PRIME) + + (this.updateScheduledActionDetails == null + ? 43 + : this.updateScheduledActionDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateSchedulingPolicyRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateSchedulingPolicyRequest.java new file mode 100644 index 00000000000..4e128f8802a --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateSchedulingPolicyRequest.java @@ -0,0 +1,317 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use + * UpdateSchedulingPolicyRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class UpdateSchedulingPolicyRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.database.model.UpdateSchedulingPolicyDetails> { + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String schedulingPolicyId; + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + public String getSchedulingPolicyId() { + return schedulingPolicyId; + } + /** Request to update the properties of a Scheduling Policy. */ + private com.oracle.bmc.database.model.UpdateSchedulingPolicyDetails + updateSchedulingPolicyDetails; + + /** Request to update the properties of a Scheduling Policy. */ + public com.oracle.bmc.database.model.UpdateSchedulingPolicyDetails + getUpdateSchedulingPolicyDetails() { + return updateSchedulingPolicyDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.database.model.UpdateSchedulingPolicyDetails getBody$() { + return updateSchedulingPolicyDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateSchedulingPolicyRequest, + com.oracle.bmc.database.model.UpdateSchedulingPolicyDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String schedulingPolicyId = null; + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + * + * @param schedulingPolicyId the value to set + * @return this builder instance + */ + public Builder schedulingPolicyId(String schedulingPolicyId) { + this.schedulingPolicyId = schedulingPolicyId; + return this; + } + + /** Request to update the properties of a Scheduling Policy. */ + private com.oracle.bmc.database.model.UpdateSchedulingPolicyDetails + updateSchedulingPolicyDetails = null; + + /** + * Request to update the properties of a Scheduling Policy. + * + * @param updateSchedulingPolicyDetails the value to set + * @return this builder instance + */ + public Builder updateSchedulingPolicyDetails( + com.oracle.bmc.database.model.UpdateSchedulingPolicyDetails + updateSchedulingPolicyDetails) { + this.updateSchedulingPolicyDetails = updateSchedulingPolicyDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(UpdateSchedulingPolicyRequest o) { + schedulingPolicyId(o.getSchedulingPolicyId()); + updateSchedulingPolicyDetails(o.getUpdateSchedulingPolicyDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateSchedulingPolicyRequest 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 UpdateSchedulingPolicyRequest + */ + public UpdateSchedulingPolicyRequest build() { + UpdateSchedulingPolicyRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.database.model.UpdateSchedulingPolicyDetails body) { + updateSchedulingPolicyDetails(body); + return this; + } + + /** + * Build the instance of UpdateSchedulingPolicyRequest 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 UpdateSchedulingPolicyRequest + */ + public UpdateSchedulingPolicyRequest buildWithoutInvocationCallback() { + UpdateSchedulingPolicyRequest request = new UpdateSchedulingPolicyRequest(); + request.schedulingPolicyId = schedulingPolicyId; + request.updateSchedulingPolicyDetails = updateSchedulingPolicyDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateSchedulingPolicyRequest(schedulingPolicyId, updateSchedulingPolicyDetails, + // 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() + .schedulingPolicyId(schedulingPolicyId) + .updateSchedulingPolicyDetails(updateSchedulingPolicyDetails) + .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(",schedulingPolicyId=").append(String.valueOf(this.schedulingPolicyId)); + sb.append(",updateSchedulingPolicyDetails=") + .append(String.valueOf(this.updateSchedulingPolicyDetails)); + 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 UpdateSchedulingPolicyRequest)) { + return false; + } + + UpdateSchedulingPolicyRequest other = (UpdateSchedulingPolicyRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.schedulingPolicyId, other.schedulingPolicyId) + && java.util.Objects.equals( + this.updateSchedulingPolicyDetails, other.updateSchedulingPolicyDetails) + && 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.schedulingPolicyId == null + ? 43 + : this.schedulingPolicyId.hashCode()); + result = + (result * PRIME) + + (this.updateSchedulingPolicyDetails == null + ? 43 + : this.updateSchedulingPolicyDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateSchedulingWindowRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateSchedulingWindowRequest.java new file mode 100644 index 00000000000..64ba06816c4 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateSchedulingWindowRequest.java @@ -0,0 +1,358 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use + * UpdateSchedulingWindowRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class UpdateSchedulingWindowRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.database.model.UpdateSchedulingWindowDetails> { + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String schedulingPolicyId; + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + public String getSchedulingPolicyId() { + return schedulingPolicyId; + } + /** + * The Scheduling Window + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String schedulingWindowId; + + /** + * The Scheduling Window + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + public String getSchedulingWindowId() { + return schedulingWindowId; + } + /** Request to update the properties of a Scheduling Window. */ + private com.oracle.bmc.database.model.UpdateSchedulingWindowDetails + updateSchedulingWindowDetails; + + /** Request to update the properties of a Scheduling Window. */ + public com.oracle.bmc.database.model.UpdateSchedulingWindowDetails + getUpdateSchedulingWindowDetails() { + return updateSchedulingWindowDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.database.model.UpdateSchedulingWindowDetails getBody$() { + return updateSchedulingWindowDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateSchedulingWindowRequest, + com.oracle.bmc.database.model.UpdateSchedulingWindowDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String schedulingPolicyId = null; + + /** + * The Scheduling Policy + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + * + * @param schedulingPolicyId the value to set + * @return this builder instance + */ + public Builder schedulingPolicyId(String schedulingPolicyId) { + this.schedulingPolicyId = schedulingPolicyId; + return this; + } + + /** + * The Scheduling Window + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String schedulingWindowId = null; + + /** + * The Scheduling Window + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + * + * @param schedulingWindowId the value to set + * @return this builder instance + */ + public Builder schedulingWindowId(String schedulingWindowId) { + this.schedulingWindowId = schedulingWindowId; + return this; + } + + /** Request to update the properties of a Scheduling Window. */ + private com.oracle.bmc.database.model.UpdateSchedulingWindowDetails + updateSchedulingWindowDetails = null; + + /** + * Request to update the properties of a Scheduling Window. + * + * @param updateSchedulingWindowDetails the value to set + * @return this builder instance + */ + public Builder updateSchedulingWindowDetails( + com.oracle.bmc.database.model.UpdateSchedulingWindowDetails + updateSchedulingWindowDetails) { + this.updateSchedulingWindowDetails = updateSchedulingWindowDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(UpdateSchedulingWindowRequest o) { + schedulingPolicyId(o.getSchedulingPolicyId()); + schedulingWindowId(o.getSchedulingWindowId()); + updateSchedulingWindowDetails(o.getUpdateSchedulingWindowDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateSchedulingWindowRequest 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 UpdateSchedulingWindowRequest + */ + public UpdateSchedulingWindowRequest build() { + UpdateSchedulingWindowRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.database.model.UpdateSchedulingWindowDetails body) { + updateSchedulingWindowDetails(body); + return this; + } + + /** + * Build the instance of UpdateSchedulingWindowRequest 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 UpdateSchedulingWindowRequest + */ + public UpdateSchedulingWindowRequest buildWithoutInvocationCallback() { + UpdateSchedulingWindowRequest request = new UpdateSchedulingWindowRequest(); + request.schedulingPolicyId = schedulingPolicyId; + request.schedulingWindowId = schedulingWindowId; + request.updateSchedulingWindowDetails = updateSchedulingWindowDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateSchedulingWindowRequest(schedulingPolicyId, schedulingWindowId, + // updateSchedulingWindowDetails, 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() + .schedulingPolicyId(schedulingPolicyId) + .schedulingWindowId(schedulingWindowId) + .updateSchedulingWindowDetails(updateSchedulingWindowDetails) + .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(",schedulingPolicyId=").append(String.valueOf(this.schedulingPolicyId)); + sb.append(",schedulingWindowId=").append(String.valueOf(this.schedulingWindowId)); + sb.append(",updateSchedulingWindowDetails=") + .append(String.valueOf(this.updateSchedulingWindowDetails)); + 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 UpdateSchedulingWindowRequest)) { + return false; + } + + UpdateSchedulingWindowRequest other = (UpdateSchedulingWindowRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.schedulingPolicyId, other.schedulingPolicyId) + && java.util.Objects.equals(this.schedulingWindowId, other.schedulingWindowId) + && java.util.Objects.equals( + this.updateSchedulingWindowDetails, other.updateSchedulingWindowDetails) + && 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.schedulingPolicyId == null + ? 43 + : this.schedulingPolicyId.hashCode()); + result = + (result * PRIME) + + (this.schedulingWindowId == null + ? 43 + : this.schedulingWindowId.hashCode()); + result = + (result * PRIME) + + (this.updateSchedulingWindowDetails == null + ? 43 + : this.updateSchedulingWindowDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/CancelExecutionWindowResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/CancelExecutionWindowResponse.java new file mode 100644 index 00000000000..55cdfb45b9a --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/CancelExecutionWindowResponse.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.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class CancelExecutionWindowResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code ExecutionWindow} instance. */ + private com.oracle.bmc.database.model.ExecutionWindow executionWindow; + + /** + * The returned {@code ExecutionWindow} instance. + * + * @return the value + */ + public com.oracle.bmc.database.model.ExecutionWindow getExecutionWindow() { + return executionWindow; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "etag", + "opcRequestId", + "executionWindow" + }) + private CancelExecutionWindowResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String etag, + String opcRequestId, + com.oracle.bmc.database.model.ExecutionWindow executionWindow) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.etag = etag; + this.opcRequestId = opcRequestId; + this.executionWindow = executionWindow; + } + + 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/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code ExecutionWindow} instance. */ + private com.oracle.bmc.database.model.ExecutionWindow executionWindow; + + /** + * The returned {@code ExecutionWindow} instance. + * + * @param executionWindow the value to set + * @return this builder + */ + public Builder executionWindow( + com.oracle.bmc.database.model.ExecutionWindow executionWindow) { + this.executionWindow = executionWindow; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CancelExecutionWindowResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + executionWindow(o.getExecutionWindow()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CancelExecutionWindowResponse build() { + return new CancelExecutionWindowResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + etag, + opcRequestId, + executionWindow); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",executionWindow=").append(String.valueOf(executionWindow)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CancelExecutionWindowResponse)) { + return false; + } + + CancelExecutionWindowResponse other = (CancelExecutionWindowResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.executionWindow, other.executionWindow); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.executionWindow == null ? 43 : this.executionWindow.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/CascadingDeleteSchedulingPlanResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/CascadingDeleteSchedulingPlanResponse.java new file mode 100644 index 00000000000..f565ed73d84 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/CascadingDeleteSchedulingPlanResponse.java @@ -0,0 +1,194 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class CascadingDeleteSchedulingPlanResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private CascadingDeleteSchedulingPlanResponse( + 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< + CascadingDeleteSchedulingPlanResponse> { + 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/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CascadingDeleteSchedulingPlanResponse 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 CascadingDeleteSchedulingPlanResponse build() { + return new CascadingDeleteSchedulingPlanResponse( + __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 CascadingDeleteSchedulingPlanResponse)) { + return false; + } + + CascadingDeleteSchedulingPlanResponse other = (CascadingDeleteSchedulingPlanResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/ChangeSchedulingPlanCompartmentResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ChangeSchedulingPlanCompartmentResponse.java new file mode 100644 index 00000000000..a4109464e2c --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ChangeSchedulingPlanCompartmentResponse.java @@ -0,0 +1,194 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ChangeSchedulingPlanCompartmentResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ChangeSchedulingPlanCompartmentResponse( + 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< + ChangeSchedulingPlanCompartmentResponse> { + 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/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ChangeSchedulingPlanCompartmentResponse 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 ChangeSchedulingPlanCompartmentResponse build() { + return new ChangeSchedulingPlanCompartmentResponse( + __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 ChangeSchedulingPlanCompartmentResponse)) { + return false; + } + + ChangeSchedulingPlanCompartmentResponse other = (ChangeSchedulingPlanCompartmentResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/ChangeSchedulingPolicyCompartmentResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ChangeSchedulingPolicyCompartmentResponse.java new file mode 100644 index 00000000000..56d02bcb375 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ChangeSchedulingPolicyCompartmentResponse.java @@ -0,0 +1,196 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ChangeSchedulingPolicyCompartmentResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ChangeSchedulingPolicyCompartmentResponse( + 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< + ChangeSchedulingPolicyCompartmentResponse> { + 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/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ChangeSchedulingPolicyCompartmentResponse 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 ChangeSchedulingPolicyCompartmentResponse build() { + return new ChangeSchedulingPolicyCompartmentResponse( + __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 ChangeSchedulingPolicyCompartmentResponse)) { + return false; + } + + ChangeSchedulingPolicyCompartmentResponse other = + (ChangeSchedulingPolicyCompartmentResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateExecutionActionResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateExecutionActionResponse.java new file mode 100644 index 00000000000..51a2823416e --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateExecutionActionResponse.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.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class CreateExecutionActionResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code ExecutionAction} instance. */ + private com.oracle.bmc.database.model.ExecutionAction executionAction; + + /** + * The returned {@code ExecutionAction} instance. + * + * @return the value + */ + public com.oracle.bmc.database.model.ExecutionAction getExecutionAction() { + return executionAction; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "etag", + "opcRequestId", + "executionAction" + }) + private CreateExecutionActionResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String etag, + String opcRequestId, + com.oracle.bmc.database.model.ExecutionAction executionAction) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.etag = etag; + this.opcRequestId = opcRequestId; + this.executionAction = executionAction; + } + + 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/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code ExecutionAction} instance. */ + private com.oracle.bmc.database.model.ExecutionAction executionAction; + + /** + * The returned {@code ExecutionAction} instance. + * + * @param executionAction the value to set + * @return this builder + */ + public Builder executionAction( + com.oracle.bmc.database.model.ExecutionAction executionAction) { + this.executionAction = executionAction; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateExecutionActionResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + executionAction(o.getExecutionAction()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateExecutionActionResponse build() { + return new CreateExecutionActionResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + etag, + opcRequestId, + executionAction); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",executionAction=").append(String.valueOf(executionAction)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateExecutionActionResponse)) { + return false; + } + + CreateExecutionActionResponse other = (CreateExecutionActionResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.executionAction, other.executionAction); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.executionAction == null ? 43 : this.executionAction.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateExecutionWindowResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateExecutionWindowResponse.java new file mode 100644 index 00000000000..3acc1c1ef72 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateExecutionWindowResponse.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.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class CreateExecutionWindowResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code ExecutionWindow} instance. */ + private com.oracle.bmc.database.model.ExecutionWindow executionWindow; + + /** + * The returned {@code ExecutionWindow} instance. + * + * @return the value + */ + public com.oracle.bmc.database.model.ExecutionWindow getExecutionWindow() { + return executionWindow; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "etag", + "opcRequestId", + "executionWindow" + }) + private CreateExecutionWindowResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String etag, + String opcRequestId, + com.oracle.bmc.database.model.ExecutionWindow executionWindow) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.etag = etag; + this.opcRequestId = opcRequestId; + this.executionWindow = executionWindow; + } + + 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/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code ExecutionWindow} instance. */ + private com.oracle.bmc.database.model.ExecutionWindow executionWindow; + + /** + * The returned {@code ExecutionWindow} instance. + * + * @param executionWindow the value to set + * @return this builder + */ + public Builder executionWindow( + com.oracle.bmc.database.model.ExecutionWindow executionWindow) { + this.executionWindow = executionWindow; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateExecutionWindowResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + executionWindow(o.getExecutionWindow()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateExecutionWindowResponse build() { + return new CreateExecutionWindowResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + etag, + opcRequestId, + executionWindow); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",executionWindow=").append(String.valueOf(executionWindow)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateExecutionWindowResponse)) { + return false; + } + + CreateExecutionWindowResponse other = (CreateExecutionWindowResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.executionWindow, other.executionWindow); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.executionWindow == null ? 43 : this.executionWindow.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateScheduledActionResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateScheduledActionResponse.java new file mode 100644 index 00000000000..c3db3d4b616 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateScheduledActionResponse.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.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class CreateScheduledActionResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code ScheduledAction} instance. */ + private com.oracle.bmc.database.model.ScheduledAction scheduledAction; + + /** + * The returned {@code ScheduledAction} instance. + * + * @return the value + */ + public com.oracle.bmc.database.model.ScheduledAction getScheduledAction() { + return scheduledAction; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "etag", + "opcRequestId", + "scheduledAction" + }) + private CreateScheduledActionResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String etag, + String opcRequestId, + com.oracle.bmc.database.model.ScheduledAction scheduledAction) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.etag = etag; + this.opcRequestId = opcRequestId; + this.scheduledAction = scheduledAction; + } + + 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/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code ScheduledAction} instance. */ + private com.oracle.bmc.database.model.ScheduledAction scheduledAction; + + /** + * The returned {@code ScheduledAction} instance. + * + * @param scheduledAction the value to set + * @return this builder + */ + public Builder scheduledAction( + com.oracle.bmc.database.model.ScheduledAction scheduledAction) { + this.scheduledAction = scheduledAction; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateScheduledActionResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + scheduledAction(o.getScheduledAction()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateScheduledActionResponse build() { + return new CreateScheduledActionResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + etag, + opcRequestId, + scheduledAction); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",scheduledAction=").append(String.valueOf(scheduledAction)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateScheduledActionResponse)) { + return false; + } + + CreateScheduledActionResponse other = (CreateScheduledActionResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.scheduledAction, other.scheduledAction); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.scheduledAction == null ? 43 : this.scheduledAction.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateSchedulingPlanResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateSchedulingPlanResponse.java new file mode 100644 index 00000000000..6fcfe0b741c --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateSchedulingPlanResponse.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.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class CreateSchedulingPlanResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code SchedulingPlan} instance. */ + private com.oracle.bmc.database.model.SchedulingPlan schedulingPlan; + + /** + * The returned {@code SchedulingPlan} instance. + * + * @return the value + */ + public com.oracle.bmc.database.model.SchedulingPlan getSchedulingPlan() { + return schedulingPlan; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "etag", + "opcRequestId", + "schedulingPlan" + }) + private CreateSchedulingPlanResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String etag, + String opcRequestId, + com.oracle.bmc.database.model.SchedulingPlan schedulingPlan) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.etag = etag; + this.opcRequestId = opcRequestId; + this.schedulingPlan = schedulingPlan; + } + + 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/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code SchedulingPlan} instance. */ + private com.oracle.bmc.database.model.SchedulingPlan schedulingPlan; + + /** + * The returned {@code SchedulingPlan} instance. + * + * @param schedulingPlan the value to set + * @return this builder + */ + public Builder schedulingPlan(com.oracle.bmc.database.model.SchedulingPlan schedulingPlan) { + this.schedulingPlan = schedulingPlan; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateSchedulingPlanResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + schedulingPlan(o.getSchedulingPlan()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateSchedulingPlanResponse build() { + return new CreateSchedulingPlanResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + etag, + opcRequestId, + schedulingPlan); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",schedulingPlan=").append(String.valueOf(schedulingPlan)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateSchedulingPlanResponse)) { + return false; + } + + CreateSchedulingPlanResponse other = (CreateSchedulingPlanResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.schedulingPlan, other.schedulingPlan); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.schedulingPlan == null ? 43 : this.schedulingPlan.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateSchedulingPolicyResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateSchedulingPolicyResponse.java new file mode 100644 index 00000000000..f68edc54da7 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateSchedulingPolicyResponse.java @@ -0,0 +1,268 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class CreateSchedulingPolicyResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code SchedulingPolicy} instance. */ + private com.oracle.bmc.database.model.SchedulingPolicy schedulingPolicy; + + /** + * The returned {@code SchedulingPolicy} instance. + * + * @return the value + */ + public com.oracle.bmc.database.model.SchedulingPolicy getSchedulingPolicy() { + return schedulingPolicy; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "etag", + "opcRequestId", + "schedulingPolicy" + }) + private CreateSchedulingPolicyResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String etag, + String opcRequestId, + com.oracle.bmc.database.model.SchedulingPolicy schedulingPolicy) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.etag = etag; + this.opcRequestId = opcRequestId; + this.schedulingPolicy = schedulingPolicy; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + CreateSchedulingPolicyResponse> { + 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/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code SchedulingPolicy} instance. */ + private com.oracle.bmc.database.model.SchedulingPolicy schedulingPolicy; + + /** + * The returned {@code SchedulingPolicy} instance. + * + * @param schedulingPolicy the value to set + * @return this builder + */ + public Builder schedulingPolicy( + com.oracle.bmc.database.model.SchedulingPolicy schedulingPolicy) { + this.schedulingPolicy = schedulingPolicy; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateSchedulingPolicyResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + schedulingPolicy(o.getSchedulingPolicy()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateSchedulingPolicyResponse build() { + return new CreateSchedulingPolicyResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + etag, + opcRequestId, + schedulingPolicy); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",schedulingPolicy=").append(String.valueOf(schedulingPolicy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateSchedulingPolicyResponse)) { + return false; + } + + CreateSchedulingPolicyResponse other = (CreateSchedulingPolicyResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.schedulingPolicy, other.schedulingPolicy); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.schedulingPolicy == null ? 43 : this.schedulingPolicy.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateSchedulingWindowResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateSchedulingWindowResponse.java new file mode 100644 index 00000000000..7e3af4b6fae --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateSchedulingWindowResponse.java @@ -0,0 +1,268 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class CreateSchedulingWindowResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code SchedulingWindow} instance. */ + private com.oracle.bmc.database.model.SchedulingWindow schedulingWindow; + + /** + * The returned {@code SchedulingWindow} instance. + * + * @return the value + */ + public com.oracle.bmc.database.model.SchedulingWindow getSchedulingWindow() { + return schedulingWindow; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "etag", + "opcRequestId", + "schedulingWindow" + }) + private CreateSchedulingWindowResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String etag, + String opcRequestId, + com.oracle.bmc.database.model.SchedulingWindow schedulingWindow) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.etag = etag; + this.opcRequestId = opcRequestId; + this.schedulingWindow = schedulingWindow; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + CreateSchedulingWindowResponse> { + 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/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code SchedulingWindow} instance. */ + private com.oracle.bmc.database.model.SchedulingWindow schedulingWindow; + + /** + * The returned {@code SchedulingWindow} instance. + * + * @param schedulingWindow the value to set + * @return this builder + */ + public Builder schedulingWindow( + com.oracle.bmc.database.model.SchedulingWindow schedulingWindow) { + this.schedulingWindow = schedulingWindow; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateSchedulingWindowResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + schedulingWindow(o.getSchedulingWindow()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateSchedulingWindowResponse build() { + return new CreateSchedulingWindowResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + etag, + opcRequestId, + schedulingWindow); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",schedulingWindow=").append(String.valueOf(schedulingWindow)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateSchedulingWindowResponse)) { + return false; + } + + CreateSchedulingWindowResponse other = (CreateSchedulingWindowResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.schedulingWindow, other.schedulingWindow); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.schedulingWindow == null ? 43 : this.schedulingWindow.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteExecutionActionResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteExecutionActionResponse.java new file mode 100644 index 00000000000..37d88727519 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteExecutionActionResponse.java @@ -0,0 +1,193 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class DeleteExecutionActionResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private DeleteExecutionActionResponse( + 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/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteExecutionActionResponse 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 DeleteExecutionActionResponse build() { + return new DeleteExecutionActionResponse( + __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 DeleteExecutionActionResponse)) { + return false; + } + + DeleteExecutionActionResponse other = (DeleteExecutionActionResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteExecutionWindowResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteExecutionWindowResponse.java new file mode 100644 index 00000000000..33408f71b82 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteExecutionWindowResponse.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.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class DeleteExecutionWindowResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private DeleteExecutionWindowResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteExecutionWindowResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DeleteExecutionWindowResponse build() { + return new DeleteExecutionWindowResponse(__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 DeleteExecutionWindowResponse)) { + return false; + } + + DeleteExecutionWindowResponse other = (DeleteExecutionWindowResponse) 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-database/src/main/java/com/oracle/bmc/database/responses/DeleteScheduledActionResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteScheduledActionResponse.java new file mode 100644 index 00000000000..b9e47ee1154 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteScheduledActionResponse.java @@ -0,0 +1,193 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class DeleteScheduledActionResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private DeleteScheduledActionResponse( + 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/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteScheduledActionResponse 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 DeleteScheduledActionResponse build() { + return new DeleteScheduledActionResponse( + __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 DeleteScheduledActionResponse)) { + return false; + } + + DeleteScheduledActionResponse other = (DeleteScheduledActionResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteSchedulingPlanResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteSchedulingPlanResponse.java new file mode 100644 index 00000000000..f232b9045bb --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteSchedulingPlanResponse.java @@ -0,0 +1,193 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class DeleteSchedulingPlanResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private DeleteSchedulingPlanResponse( + 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/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteSchedulingPlanResponse 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 DeleteSchedulingPlanResponse build() { + return new DeleteSchedulingPlanResponse( + __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 DeleteSchedulingPlanResponse)) { + return false; + } + + DeleteSchedulingPlanResponse other = (DeleteSchedulingPlanResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteSchedulingPolicyResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteSchedulingPolicyResponse.java new file mode 100644 index 00000000000..6f2fe2c36b1 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteSchedulingPolicyResponse.java @@ -0,0 +1,137 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class DeleteSchedulingPolicyResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private DeleteSchedulingPolicyResponse( + 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< + DeleteSchedulingPolicyResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteSchedulingPolicyResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DeleteSchedulingPolicyResponse build() { + return new DeleteSchedulingPolicyResponse(__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 DeleteSchedulingPolicyResponse)) { + return false; + } + + DeleteSchedulingPolicyResponse other = (DeleteSchedulingPolicyResponse) 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-database/src/main/java/com/oracle/bmc/database/responses/DeleteSchedulingWindowResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteSchedulingWindowResponse.java new file mode 100644 index 00000000000..6b95276a17f --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteSchedulingWindowResponse.java @@ -0,0 +1,137 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class DeleteSchedulingWindowResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private DeleteSchedulingWindowResponse( + 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< + DeleteSchedulingWindowResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteSchedulingWindowResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DeleteSchedulingWindowResponse build() { + return new DeleteSchedulingWindowResponse(__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 DeleteSchedulingWindowResponse)) { + return false; + } + + DeleteSchedulingWindowResponse other = (DeleteSchedulingWindowResponse) 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-database/src/main/java/com/oracle/bmc/database/responses/GetExecutionActionResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetExecutionActionResponse.java new file mode 100644 index 00000000000..1ef556713c5 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetExecutionActionResponse.java @@ -0,0 +1,211 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class GetExecutionActionResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code ExecutionAction} instance. */ + private com.oracle.bmc.database.model.ExecutionAction executionAction; + + /** + * The returned {@code ExecutionAction} instance. + * + * @return the value + */ + public com.oracle.bmc.database.model.ExecutionAction getExecutionAction() { + return executionAction; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "executionAction" + }) + private GetExecutionActionResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.database.model.ExecutionAction executionAction) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.executionAction = executionAction; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code ExecutionAction} instance. */ + private com.oracle.bmc.database.model.ExecutionAction executionAction; + + /** + * The returned {@code ExecutionAction} instance. + * + * @param executionAction the value to set + * @return this builder + */ + public Builder executionAction( + com.oracle.bmc.database.model.ExecutionAction executionAction) { + this.executionAction = executionAction; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetExecutionActionResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + executionAction(o.getExecutionAction()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetExecutionActionResponse build() { + return new GetExecutionActionResponse( + __httpStatusCode__, headers, etag, opcRequestId, executionAction); + } + } + + /** + * 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(",executionAction=").append(String.valueOf(executionAction)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetExecutionActionResponse)) { + return false; + } + + GetExecutionActionResponse other = (GetExecutionActionResponse) 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.executionAction, other.executionAction); + } + + @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.executionAction == null ? 43 : this.executionAction.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetExecutionWindowResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetExecutionWindowResponse.java new file mode 100644 index 00000000000..16e8909d0f6 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetExecutionWindowResponse.java @@ -0,0 +1,211 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class GetExecutionWindowResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code ExecutionWindow} instance. */ + private com.oracle.bmc.database.model.ExecutionWindow executionWindow; + + /** + * The returned {@code ExecutionWindow} instance. + * + * @return the value + */ + public com.oracle.bmc.database.model.ExecutionWindow getExecutionWindow() { + return executionWindow; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "executionWindow" + }) + private GetExecutionWindowResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.database.model.ExecutionWindow executionWindow) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.executionWindow = executionWindow; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code ExecutionWindow} instance. */ + private com.oracle.bmc.database.model.ExecutionWindow executionWindow; + + /** + * The returned {@code ExecutionWindow} instance. + * + * @param executionWindow the value to set + * @return this builder + */ + public Builder executionWindow( + com.oracle.bmc.database.model.ExecutionWindow executionWindow) { + this.executionWindow = executionWindow; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetExecutionWindowResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + executionWindow(o.getExecutionWindow()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetExecutionWindowResponse build() { + return new GetExecutionWindowResponse( + __httpStatusCode__, headers, etag, opcRequestId, executionWindow); + } + } + + /** + * 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(",executionWindow=").append(String.valueOf(executionWindow)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetExecutionWindowResponse)) { + return false; + } + + GetExecutionWindowResponse other = (GetExecutionWindowResponse) 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.executionWindow, other.executionWindow); + } + + @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.executionWindow == null ? 43 : this.executionWindow.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetScheduledActionResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetScheduledActionResponse.java new file mode 100644 index 00000000000..5d879dee12e --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetScheduledActionResponse.java @@ -0,0 +1,211 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class GetScheduledActionResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code ScheduledAction} instance. */ + private com.oracle.bmc.database.model.ScheduledAction scheduledAction; + + /** + * The returned {@code ScheduledAction} instance. + * + * @return the value + */ + public com.oracle.bmc.database.model.ScheduledAction getScheduledAction() { + return scheduledAction; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "scheduledAction" + }) + private GetScheduledActionResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.database.model.ScheduledAction scheduledAction) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.scheduledAction = scheduledAction; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code ScheduledAction} instance. */ + private com.oracle.bmc.database.model.ScheduledAction scheduledAction; + + /** + * The returned {@code ScheduledAction} instance. + * + * @param scheduledAction the value to set + * @return this builder + */ + public Builder scheduledAction( + com.oracle.bmc.database.model.ScheduledAction scheduledAction) { + this.scheduledAction = scheduledAction; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetScheduledActionResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + scheduledAction(o.getScheduledAction()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetScheduledActionResponse build() { + return new GetScheduledActionResponse( + __httpStatusCode__, headers, etag, opcRequestId, scheduledAction); + } + } + + /** + * 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(",scheduledAction=").append(String.valueOf(scheduledAction)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetScheduledActionResponse)) { + return false; + } + + GetScheduledActionResponse other = (GetScheduledActionResponse) 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.scheduledAction, other.scheduledAction); + } + + @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.scheduledAction == null ? 43 : this.scheduledAction.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetSchedulingPlanResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetSchedulingPlanResponse.java new file mode 100644 index 00000000000..2d33141af06 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetSchedulingPlanResponse.java @@ -0,0 +1,210 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class GetSchedulingPlanResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code SchedulingPlan} instance. */ + private com.oracle.bmc.database.model.SchedulingPlan schedulingPlan; + + /** + * The returned {@code SchedulingPlan} instance. + * + * @return the value + */ + public com.oracle.bmc.database.model.SchedulingPlan getSchedulingPlan() { + return schedulingPlan; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "schedulingPlan" + }) + private GetSchedulingPlanResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.database.model.SchedulingPlan schedulingPlan) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.schedulingPlan = schedulingPlan; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code SchedulingPlan} instance. */ + private com.oracle.bmc.database.model.SchedulingPlan schedulingPlan; + + /** + * The returned {@code SchedulingPlan} instance. + * + * @param schedulingPlan the value to set + * @return this builder + */ + public Builder schedulingPlan(com.oracle.bmc.database.model.SchedulingPlan schedulingPlan) { + this.schedulingPlan = schedulingPlan; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetSchedulingPlanResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + schedulingPlan(o.getSchedulingPlan()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetSchedulingPlanResponse build() { + return new GetSchedulingPlanResponse( + __httpStatusCode__, headers, etag, opcRequestId, schedulingPlan); + } + } + + /** + * 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(",schedulingPlan=").append(String.valueOf(schedulingPlan)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetSchedulingPlanResponse)) { + return false; + } + + GetSchedulingPlanResponse other = (GetSchedulingPlanResponse) 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.schedulingPlan, other.schedulingPlan); + } + + @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.schedulingPlan == null ? 43 : this.schedulingPlan.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetSchedulingPolicyResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetSchedulingPolicyResponse.java new file mode 100644 index 00000000000..b136c108ebd --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetSchedulingPolicyResponse.java @@ -0,0 +1,211 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class GetSchedulingPolicyResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code SchedulingPolicy} instance. */ + private com.oracle.bmc.database.model.SchedulingPolicy schedulingPolicy; + + /** + * The returned {@code SchedulingPolicy} instance. + * + * @return the value + */ + public com.oracle.bmc.database.model.SchedulingPolicy getSchedulingPolicy() { + return schedulingPolicy; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "schedulingPolicy" + }) + private GetSchedulingPolicyResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.database.model.SchedulingPolicy schedulingPolicy) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.schedulingPolicy = schedulingPolicy; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code SchedulingPolicy} instance. */ + private com.oracle.bmc.database.model.SchedulingPolicy schedulingPolicy; + + /** + * The returned {@code SchedulingPolicy} instance. + * + * @param schedulingPolicy the value to set + * @return this builder + */ + public Builder schedulingPolicy( + com.oracle.bmc.database.model.SchedulingPolicy schedulingPolicy) { + this.schedulingPolicy = schedulingPolicy; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetSchedulingPolicyResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + schedulingPolicy(o.getSchedulingPolicy()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetSchedulingPolicyResponse build() { + return new GetSchedulingPolicyResponse( + __httpStatusCode__, headers, etag, opcRequestId, schedulingPolicy); + } + } + + /** + * 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(",schedulingPolicy=").append(String.valueOf(schedulingPolicy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetSchedulingPolicyResponse)) { + return false; + } + + GetSchedulingPolicyResponse other = (GetSchedulingPolicyResponse) 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.schedulingPolicy, other.schedulingPolicy); + } + + @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.schedulingPolicy == null ? 43 : this.schedulingPolicy.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetSchedulingWindowResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetSchedulingWindowResponse.java new file mode 100644 index 00000000000..f13dc46c4d2 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetSchedulingWindowResponse.java @@ -0,0 +1,211 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class GetSchedulingWindowResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code SchedulingWindow} instance. */ + private com.oracle.bmc.database.model.SchedulingWindow schedulingWindow; + + /** + * The returned {@code SchedulingWindow} instance. + * + * @return the value + */ + public com.oracle.bmc.database.model.SchedulingWindow getSchedulingWindow() { + return schedulingWindow; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "schedulingWindow" + }) + private GetSchedulingWindowResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.database.model.SchedulingWindow schedulingWindow) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.schedulingWindow = schedulingWindow; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code SchedulingWindow} instance. */ + private com.oracle.bmc.database.model.SchedulingWindow schedulingWindow; + + /** + * The returned {@code SchedulingWindow} instance. + * + * @param schedulingWindow the value to set + * @return this builder + */ + public Builder schedulingWindow( + com.oracle.bmc.database.model.SchedulingWindow schedulingWindow) { + this.schedulingWindow = schedulingWindow; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetSchedulingWindowResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + schedulingWindow(o.getSchedulingWindow()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetSchedulingWindowResponse build() { + return new GetSchedulingWindowResponse( + __httpStatusCode__, headers, etag, opcRequestId, schedulingWindow); + } + } + + /** + * 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(",schedulingWindow=").append(String.valueOf(schedulingWindow)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetSchedulingWindowResponse)) { + return false; + } + + GetSchedulingWindowResponse other = (GetSchedulingWindowResponse) 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.schedulingWindow, other.schedulingWindow); + } + + @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.schedulingWindow == null ? 43 : this.schedulingWindow.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListExecutionActionsResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListExecutionActionsResponse.java new file mode 100644 index 00000000000..837f1c7f8e6 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListExecutionActionsResponse.java @@ -0,0 +1,227 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListExecutionActionsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then there are additional items still to get. Include this value as the {@code + * page} parameter for the subsequent GET request. For information about pagination, see [List + * Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then there are additional items still to get. Include this value as the {@code + * page} parameter for the subsequent GET request. For information about pagination, see [List + * Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** A list of {@code com.oracle.bmc.database.model.ExecutionActionSummary} instances. */ + private java.util.List items; + + /** + * A list of {@code com.oracle.bmc.database.model.ExecutionActionSummary} instances. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "items" + }) + private ListExecutionActionsResponse( + 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 + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then there are additional items still to get. Include this value as the + * {@code page} parameter for the subsequent GET request. For information about pagination, + * see [List + * Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then there are additional items still to get. Include this value as the + * {@code page} parameter for the subsequent GET request. For information about pagination, + * see [List + * Pagination](https://docs.cloud.oracle.com/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; + } + + /** A list of {@code com.oracle.bmc.database.model.ExecutionActionSummary} instances. */ + private java.util.List items; + + /** + * A list of {@code com.oracle.bmc.database.model.ExecutionActionSummary} 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(ListExecutionActionsResponse 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 ListExecutionActionsResponse build() { + return new ListExecutionActionsResponse( + __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 ListExecutionActionsResponse)) { + return false; + } + + ListExecutionActionsResponse other = (ListExecutionActionsResponse) 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-database/src/main/java/com/oracle/bmc/database/responses/ListExecutionWindowsResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListExecutionWindowsResponse.java new file mode 100644 index 00000000000..4fa80ea275b --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListExecutionWindowsResponse.java @@ -0,0 +1,227 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListExecutionWindowsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then there are additional items still to get. Include this value as the {@code + * page} parameter for the subsequent GET request. For information about pagination, see [List + * Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then there are additional items still to get. Include this value as the {@code + * page} parameter for the subsequent GET request. For information about pagination, see [List + * Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** A list of {@code com.oracle.bmc.database.model.ExecutionWindowSummary} instances. */ + private java.util.List items; + + /** + * A list of {@code com.oracle.bmc.database.model.ExecutionWindowSummary} instances. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "items" + }) + private ListExecutionWindowsResponse( + 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 + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then there are additional items still to get. Include this value as the + * {@code page} parameter for the subsequent GET request. For information about pagination, + * see [List + * Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then there are additional items still to get. Include this value as the + * {@code page} parameter for the subsequent GET request. For information about pagination, + * see [List + * Pagination](https://docs.cloud.oracle.com/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; + } + + /** A list of {@code com.oracle.bmc.database.model.ExecutionWindowSummary} instances. */ + private java.util.List items; + + /** + * A list of {@code com.oracle.bmc.database.model.ExecutionWindowSummary} 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(ListExecutionWindowsResponse 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 ListExecutionWindowsResponse build() { + return new ListExecutionWindowsResponse( + __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 ListExecutionWindowsResponse)) { + return false; + } + + ListExecutionWindowsResponse other = (ListExecutionWindowsResponse) 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-database/src/main/java/com/oracle/bmc/database/responses/ListParamsForActionTypeResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListParamsForActionTypeResponse.java new file mode 100644 index 00000000000..f6d58ed2e5c --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListParamsForActionTypeResponse.java @@ -0,0 +1,241 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListParamsForActionTypeResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then there are additional items still to get. Include this value as the {@code + * page} parameter for the subsequent GET request. For information about pagination, see [List + * Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then there are additional items still to get. Include this value as the {@code + * page} parameter for the subsequent GET request. For information about pagination, see [List + * Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code ActionParamValuesCollection} instance. */ + private com.oracle.bmc.database.model.ActionParamValuesCollection actionParamValuesCollection; + + /** + * The returned {@code ActionParamValuesCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.database.model.ActionParamValuesCollection + getActionParamValuesCollection() { + return actionParamValuesCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "actionParamValuesCollection" + }) + private ListParamsForActionTypeResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.database.model.ActionParamValuesCollection actionParamValuesCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.actionParamValuesCollection = actionParamValuesCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListParamsForActionTypeResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then there are additional items still to get. Include this value as the + * {@code page} parameter for the subsequent GET request. For information about pagination, + * see [List + * Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then there are additional items still to get. Include this value as the + * {@code page} parameter for the subsequent GET request. For information about pagination, + * see [List + * Pagination](https://docs.cloud.oracle.com/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 ActionParamValuesCollection} instance. */ + private com.oracle.bmc.database.model.ActionParamValuesCollection + actionParamValuesCollection; + + /** + * The returned {@code ActionParamValuesCollection} instance. + * + * @param actionParamValuesCollection the value to set + * @return this builder + */ + public Builder actionParamValuesCollection( + com.oracle.bmc.database.model.ActionParamValuesCollection + actionParamValuesCollection) { + this.actionParamValuesCollection = actionParamValuesCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListParamsForActionTypeResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + actionParamValuesCollection(o.getActionParamValuesCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListParamsForActionTypeResponse build() { + return new ListParamsForActionTypeResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + actionParamValuesCollection); + } + } + + /** + * 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(",actionParamValuesCollection=") + .append(String.valueOf(actionParamValuesCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListParamsForActionTypeResponse)) { + return false; + } + + ListParamsForActionTypeResponse other = (ListParamsForActionTypeResponse) 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.actionParamValuesCollection, other.actionParamValuesCollection); + } + + @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.actionParamValuesCollection == null + ? 43 + : this.actionParamValuesCollection.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListRecommendedScheduledActionsResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListRecommendedScheduledActionsResponse.java new file mode 100644 index 00000000000..75fd3f262a7 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListRecommendedScheduledActionsResponse.java @@ -0,0 +1,244 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListRecommendedScheduledActionsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then there are additional items still to get. Include this value as the {@code + * page} parameter for the subsequent GET request. For information about pagination, see [List + * Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then there are additional items still to get. Include this value as the {@code + * page} parameter for the subsequent GET request. For information about pagination, see [List + * Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code RecommendedScheduledActionsCollection} instance. */ + private com.oracle.bmc.database.model.RecommendedScheduledActionsCollection + recommendedScheduledActionsCollection; + + /** + * The returned {@code RecommendedScheduledActionsCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.database.model.RecommendedScheduledActionsCollection + getRecommendedScheduledActionsCollection() { + return recommendedScheduledActionsCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "recommendedScheduledActionsCollection" + }) + private ListRecommendedScheduledActionsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.database.model.RecommendedScheduledActionsCollection + recommendedScheduledActionsCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.recommendedScheduledActionsCollection = recommendedScheduledActionsCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListRecommendedScheduledActionsResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then there are additional items still to get. Include this value as the + * {@code page} parameter for the subsequent GET request. For information about pagination, + * see [List + * Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then there are additional items still to get. Include this value as the + * {@code page} parameter for the subsequent GET request. For information about pagination, + * see [List + * Pagination](https://docs.cloud.oracle.com/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 RecommendedScheduledActionsCollection} instance. */ + private com.oracle.bmc.database.model.RecommendedScheduledActionsCollection + recommendedScheduledActionsCollection; + + /** + * The returned {@code RecommendedScheduledActionsCollection} instance. + * + * @param recommendedScheduledActionsCollection the value to set + * @return this builder + */ + public Builder recommendedScheduledActionsCollection( + com.oracle.bmc.database.model.RecommendedScheduledActionsCollection + recommendedScheduledActionsCollection) { + this.recommendedScheduledActionsCollection = recommendedScheduledActionsCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListRecommendedScheduledActionsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + recommendedScheduledActionsCollection(o.getRecommendedScheduledActionsCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListRecommendedScheduledActionsResponse build() { + return new ListRecommendedScheduledActionsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + recommendedScheduledActionsCollection); + } + } + + /** + * 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(",recommendedScheduledActionsCollection=") + .append(String.valueOf(recommendedScheduledActionsCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListRecommendedScheduledActionsResponse)) { + return false; + } + + ListRecommendedScheduledActionsResponse other = (ListRecommendedScheduledActionsResponse) 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.recommendedScheduledActionsCollection, + other.recommendedScheduledActionsCollection); + } + + @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.recommendedScheduledActionsCollection == null + ? 43 + : this.recommendedScheduledActionsCollection.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListScheduledActionsResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListScheduledActionsResponse.java new file mode 100644 index 00000000000..a51435ab372 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListScheduledActionsResponse.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.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListScheduledActionsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then there are additional items still to get. Include this value as the {@code + * page} parameter for the subsequent GET request. For information about pagination, see [List + * Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then there are additional items still to get. Include this value as the {@code + * page} parameter for the subsequent GET request. For information about pagination, see [List + * Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code ScheduledActionCollection} instance. */ + private com.oracle.bmc.database.model.ScheduledActionCollection scheduledActionCollection; + + /** + * The returned {@code ScheduledActionCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.database.model.ScheduledActionCollection getScheduledActionCollection() { + return scheduledActionCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "scheduledActionCollection" + }) + private ListScheduledActionsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.database.model.ScheduledActionCollection scheduledActionCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.scheduledActionCollection = scheduledActionCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then there are additional items still to get. Include this value as the + * {@code page} parameter for the subsequent GET request. For information about pagination, + * see [List + * Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then there are additional items still to get. Include this value as the + * {@code page} parameter for the subsequent GET request. For information about pagination, + * see [List + * Pagination](https://docs.cloud.oracle.com/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 ScheduledActionCollection} instance. */ + private com.oracle.bmc.database.model.ScheduledActionCollection scheduledActionCollection; + + /** + * The returned {@code ScheduledActionCollection} instance. + * + * @param scheduledActionCollection the value to set + * @return this builder + */ + public Builder scheduledActionCollection( + com.oracle.bmc.database.model.ScheduledActionCollection scheduledActionCollection) { + this.scheduledActionCollection = scheduledActionCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListScheduledActionsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + scheduledActionCollection(o.getScheduledActionCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListScheduledActionsResponse build() { + return new ListScheduledActionsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + scheduledActionCollection); + } + } + + /** + * 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(",scheduledActionCollection=").append(String.valueOf(scheduledActionCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListScheduledActionsResponse)) { + return false; + } + + ListScheduledActionsResponse other = (ListScheduledActionsResponse) 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.scheduledActionCollection, other.scheduledActionCollection); + } + + @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.scheduledActionCollection == null + ? 43 + : this.scheduledActionCollection.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListSchedulingPlansResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListSchedulingPlansResponse.java new file mode 100644 index 00000000000..6da14b1eb91 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListSchedulingPlansResponse.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.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListSchedulingPlansResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then there are additional items still to get. Include this value as the {@code + * page} parameter for the subsequent GET request. For information about pagination, see [List + * Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then there are additional items still to get. Include this value as the {@code + * page} parameter for the subsequent GET request. For information about pagination, see [List + * Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code SchedulingPlanCollection} instance. */ + private com.oracle.bmc.database.model.SchedulingPlanCollection schedulingPlanCollection; + + /** + * The returned {@code SchedulingPlanCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.database.model.SchedulingPlanCollection getSchedulingPlanCollection() { + return schedulingPlanCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "schedulingPlanCollection" + }) + private ListSchedulingPlansResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.database.model.SchedulingPlanCollection schedulingPlanCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.schedulingPlanCollection = schedulingPlanCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then there are additional items still to get. Include this value as the + * {@code page} parameter for the subsequent GET request. For information about pagination, + * see [List + * Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then there are additional items still to get. Include this value as the + * {@code page} parameter for the subsequent GET request. For information about pagination, + * see [List + * Pagination](https://docs.cloud.oracle.com/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 SchedulingPlanCollection} instance. */ + private com.oracle.bmc.database.model.SchedulingPlanCollection schedulingPlanCollection; + + /** + * The returned {@code SchedulingPlanCollection} instance. + * + * @param schedulingPlanCollection the value to set + * @return this builder + */ + public Builder schedulingPlanCollection( + com.oracle.bmc.database.model.SchedulingPlanCollection schedulingPlanCollection) { + this.schedulingPlanCollection = schedulingPlanCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListSchedulingPlansResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + schedulingPlanCollection(o.getSchedulingPlanCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListSchedulingPlansResponse build() { + return new ListSchedulingPlansResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + schedulingPlanCollection); + } + } + + /** + * 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(",schedulingPlanCollection=").append(String.valueOf(schedulingPlanCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListSchedulingPlansResponse)) { + return false; + } + + ListSchedulingPlansResponse other = (ListSchedulingPlansResponse) 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.schedulingPlanCollection, other.schedulingPlanCollection); + } + + @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.schedulingPlanCollection == null + ? 43 + : this.schedulingPlanCollection.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListSchedulingPoliciesResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListSchedulingPoliciesResponse.java new file mode 100644 index 00000000000..ad3224defe5 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListSchedulingPoliciesResponse.java @@ -0,0 +1,228 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListSchedulingPoliciesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then there are additional items still to get. Include this value as the {@code + * page} parameter for the subsequent GET request. For information about pagination, see [List + * Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then there are additional items still to get. Include this value as the {@code + * page} parameter for the subsequent GET request. For information about pagination, see [List + * Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** A list of {@code com.oracle.bmc.database.model.SchedulingPolicySummary} instances. */ + private java.util.List items; + + /** + * A list of {@code com.oracle.bmc.database.model.SchedulingPolicySummary} instances. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "items" + }) + private ListSchedulingPoliciesResponse( + 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< + ListSchedulingPoliciesResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then there are additional items still to get. Include this value as the + * {@code page} parameter for the subsequent GET request. For information about pagination, + * see [List + * Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then there are additional items still to get. Include this value as the + * {@code page} parameter for the subsequent GET request. For information about pagination, + * see [List + * Pagination](https://docs.cloud.oracle.com/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; + } + + /** A list of {@code com.oracle.bmc.database.model.SchedulingPolicySummary} instances. */ + private java.util.List items; + + /** + * A list of {@code com.oracle.bmc.database.model.SchedulingPolicySummary} 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(ListSchedulingPoliciesResponse 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 ListSchedulingPoliciesResponse build() { + return new ListSchedulingPoliciesResponse( + __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 ListSchedulingPoliciesResponse)) { + return false; + } + + ListSchedulingPoliciesResponse other = (ListSchedulingPoliciesResponse) 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-database/src/main/java/com/oracle/bmc/database/responses/ListSchedulingWindowsResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListSchedulingWindowsResponse.java new file mode 100644 index 00000000000..ed46054ac3b --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListSchedulingWindowsResponse.java @@ -0,0 +1,227 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListSchedulingWindowsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then there are additional items still to get. Include this value as the {@code + * page} parameter for the subsequent GET request. For information about pagination, see [List + * Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then there are additional items still to get. Include this value as the {@code + * page} parameter for the subsequent GET request. For information about pagination, see [List + * Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** A list of {@code com.oracle.bmc.database.model.SchedulingWindowSummary} instances. */ + private java.util.List items; + + /** + * A list of {@code com.oracle.bmc.database.model.SchedulingWindowSummary} instances. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "items" + }) + private ListSchedulingWindowsResponse( + 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 + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then there are additional items still to get. Include this value as the + * {@code page} parameter for the subsequent GET request. For information about pagination, + * see [List + * Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then there are additional items still to get. Include this value as the + * {@code page} parameter for the subsequent GET request. For information about pagination, + * see [List + * Pagination](https://docs.cloud.oracle.com/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; + } + + /** A list of {@code com.oracle.bmc.database.model.SchedulingWindowSummary} instances. */ + private java.util.List items; + + /** + * A list of {@code com.oracle.bmc.database.model.SchedulingWindowSummary} 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(ListSchedulingWindowsResponse 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 ListSchedulingWindowsResponse build() { + return new ListSchedulingWindowsResponse( + __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 ListSchedulingWindowsResponse)) { + return false; + } + + ListSchedulingWindowsResponse other = (ListSchedulingWindowsResponse) 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-database/src/main/java/com/oracle/bmc/database/responses/MoveExecutionActionMemberResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/MoveExecutionActionMemberResponse.java new file mode 100644 index 00000000000..42bf825e5cd --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/MoveExecutionActionMemberResponse.java @@ -0,0 +1,268 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class MoveExecutionActionMemberResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code ExecutionAction} instance. */ + private com.oracle.bmc.database.model.ExecutionAction executionAction; + + /** + * The returned {@code ExecutionAction} instance. + * + * @return the value + */ + public com.oracle.bmc.database.model.ExecutionAction getExecutionAction() { + return executionAction; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "etag", + "opcRequestId", + "executionAction" + }) + private MoveExecutionActionMemberResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String etag, + String opcRequestId, + com.oracle.bmc.database.model.ExecutionAction executionAction) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.etag = etag; + this.opcRequestId = opcRequestId; + this.executionAction = executionAction; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + MoveExecutionActionMemberResponse> { + 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/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code ExecutionAction} instance. */ + private com.oracle.bmc.database.model.ExecutionAction executionAction; + + /** + * The returned {@code ExecutionAction} instance. + * + * @param executionAction the value to set + * @return this builder + */ + public Builder executionAction( + com.oracle.bmc.database.model.ExecutionAction executionAction) { + this.executionAction = executionAction; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(MoveExecutionActionMemberResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + executionAction(o.getExecutionAction()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public MoveExecutionActionMemberResponse build() { + return new MoveExecutionActionMemberResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + etag, + opcRequestId, + executionAction); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",executionAction=").append(String.valueOf(executionAction)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MoveExecutionActionMemberResponse)) { + return false; + } + + MoveExecutionActionMemberResponse other = (MoveExecutionActionMemberResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.executionAction, other.executionAction); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.executionAction == null ? 43 : this.executionAction.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/ReorderExecutionActionsResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ReorderExecutionActionsResponse.java new file mode 100644 index 00000000000..4c1efcb10b2 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ReorderExecutionActionsResponse.java @@ -0,0 +1,268 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ReorderExecutionActionsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code ExecutionWindow} instance. */ + private com.oracle.bmc.database.model.ExecutionWindow executionWindow; + + /** + * The returned {@code ExecutionWindow} instance. + * + * @return the value + */ + public com.oracle.bmc.database.model.ExecutionWindow getExecutionWindow() { + return executionWindow; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "etag", + "opcRequestId", + "executionWindow" + }) + private ReorderExecutionActionsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String etag, + String opcRequestId, + com.oracle.bmc.database.model.ExecutionWindow executionWindow) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.etag = etag; + this.opcRequestId = opcRequestId; + this.executionWindow = executionWindow; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ReorderExecutionActionsResponse> { + 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/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code ExecutionWindow} instance. */ + private com.oracle.bmc.database.model.ExecutionWindow executionWindow; + + /** + * The returned {@code ExecutionWindow} instance. + * + * @param executionWindow the value to set + * @return this builder + */ + public Builder executionWindow( + com.oracle.bmc.database.model.ExecutionWindow executionWindow) { + this.executionWindow = executionWindow; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ReorderExecutionActionsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + executionWindow(o.getExecutionWindow()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ReorderExecutionActionsResponse build() { + return new ReorderExecutionActionsResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + etag, + opcRequestId, + executionWindow); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",executionWindow=").append(String.valueOf(executionWindow)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ReorderExecutionActionsResponse)) { + return false; + } + + ReorderExecutionActionsResponse other = (ReorderExecutionActionsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.executionWindow, other.executionWindow); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.executionWindow == null ? 43 : this.executionWindow.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/ReorderScheduledActionsResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ReorderScheduledActionsResponse.java new file mode 100644 index 00000000000..345e33602f9 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ReorderScheduledActionsResponse.java @@ -0,0 +1,319 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ReorderScheduledActionsResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then there are additional items still to get. Include this value as the {@code + * page} parameter for the subsequent GET request. For information about pagination, see [List + * Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then there are additional items still to get. Include this value as the {@code + * page} parameter for the subsequent GET request. For information about pagination, see [List + * Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** The returned {@code SchedulingPlan} instance. */ + private com.oracle.bmc.database.model.SchedulingPlan schedulingPlan; + + /** + * The returned {@code SchedulingPlan} instance. + * + * @return the value + */ + public com.oracle.bmc.database.model.SchedulingPlan getSchedulingPlan() { + return schedulingPlan; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "opcNextPage", + "opcWorkRequestId", + "schedulingPlan" + }) + private ReorderScheduledActionsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + String opcNextPage, + String opcWorkRequestId, + com.oracle.bmc.database.model.SchedulingPlan schedulingPlan) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.opcWorkRequestId = opcWorkRequestId; + this.schedulingPlan = schedulingPlan; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ReorderScheduledActionsResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then there are additional items still to get. Include this value as the + * {@code page} parameter for the subsequent GET request. For information about pagination, + * see [List + * Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then there are additional items still to get. Include this value as the + * {@code page} parameter for the subsequent GET request. For information about pagination, + * see [List + * Pagination](https://docs.cloud.oracle.com/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 [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** The returned {@code SchedulingPlan} instance. */ + private com.oracle.bmc.database.model.SchedulingPlan schedulingPlan; + + /** + * The returned {@code SchedulingPlan} instance. + * + * @param schedulingPlan the value to set + * @return this builder + */ + public Builder schedulingPlan(com.oracle.bmc.database.model.SchedulingPlan schedulingPlan) { + this.schedulingPlan = schedulingPlan; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ReorderScheduledActionsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + opcWorkRequestId(o.getOpcWorkRequestId()); + schedulingPlan(o.getSchedulingPlan()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ReorderScheduledActionsResponse build() { + return new ReorderScheduledActionsResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + opcNextPage, + opcWorkRequestId, + schedulingPlan); + } + } + + /** + * 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(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",schedulingPlan=").append(String.valueOf(schedulingPlan)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ReorderScheduledActionsResponse)) { + return false; + } + + ReorderScheduledActionsResponse other = (ReorderScheduledActionsResponse) 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.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.schedulingPlan, other.schedulingPlan); + } + + @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.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = + (result * PRIME) + + (this.schedulingPlan == null ? 43 : this.schedulingPlan.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateExecutionActionResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateExecutionActionResponse.java new file mode 100644 index 00000000000..0528cd620e6 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateExecutionActionResponse.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.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class UpdateExecutionActionResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code ExecutionAction} instance. */ + private com.oracle.bmc.database.model.ExecutionAction executionAction; + + /** + * The returned {@code ExecutionAction} instance. + * + * @return the value + */ + public com.oracle.bmc.database.model.ExecutionAction getExecutionAction() { + return executionAction; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "etag", + "opcRequestId", + "executionAction" + }) + private UpdateExecutionActionResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String etag, + String opcRequestId, + com.oracle.bmc.database.model.ExecutionAction executionAction) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.etag = etag; + this.opcRequestId = opcRequestId; + this.executionAction = executionAction; + } + + 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/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code ExecutionAction} instance. */ + private com.oracle.bmc.database.model.ExecutionAction executionAction; + + /** + * The returned {@code ExecutionAction} instance. + * + * @param executionAction the value to set + * @return this builder + */ + public Builder executionAction( + com.oracle.bmc.database.model.ExecutionAction executionAction) { + this.executionAction = executionAction; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateExecutionActionResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + executionAction(o.getExecutionAction()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateExecutionActionResponse build() { + return new UpdateExecutionActionResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + etag, + opcRequestId, + executionAction); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",executionAction=").append(String.valueOf(executionAction)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateExecutionActionResponse)) { + return false; + } + + UpdateExecutionActionResponse other = (UpdateExecutionActionResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.executionAction, other.executionAction); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.executionAction == null ? 43 : this.executionAction.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateExecutionWindowResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateExecutionWindowResponse.java new file mode 100644 index 00000000000..2fc6e916f26 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateExecutionWindowResponse.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.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class UpdateExecutionWindowResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code ExecutionWindow} instance. */ + private com.oracle.bmc.database.model.ExecutionWindow executionWindow; + + /** + * The returned {@code ExecutionWindow} instance. + * + * @return the value + */ + public com.oracle.bmc.database.model.ExecutionWindow getExecutionWindow() { + return executionWindow; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "etag", + "opcRequestId", + "executionWindow" + }) + private UpdateExecutionWindowResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String etag, + String opcRequestId, + com.oracle.bmc.database.model.ExecutionWindow executionWindow) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.etag = etag; + this.opcRequestId = opcRequestId; + this.executionWindow = executionWindow; + } + + 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/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code ExecutionWindow} instance. */ + private com.oracle.bmc.database.model.ExecutionWindow executionWindow; + + /** + * The returned {@code ExecutionWindow} instance. + * + * @param executionWindow the value to set + * @return this builder + */ + public Builder executionWindow( + com.oracle.bmc.database.model.ExecutionWindow executionWindow) { + this.executionWindow = executionWindow; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateExecutionWindowResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + executionWindow(o.getExecutionWindow()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateExecutionWindowResponse build() { + return new UpdateExecutionWindowResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + etag, + opcRequestId, + executionWindow); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",executionWindow=").append(String.valueOf(executionWindow)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateExecutionWindowResponse)) { + return false; + } + + UpdateExecutionWindowResponse other = (UpdateExecutionWindowResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.executionWindow, other.executionWindow); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.executionWindow == null ? 43 : this.executionWindow.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateScheduledActionResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateScheduledActionResponse.java new file mode 100644 index 00000000000..5bea2d75661 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateScheduledActionResponse.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.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class UpdateScheduledActionResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code ScheduledAction} instance. */ + private com.oracle.bmc.database.model.ScheduledAction scheduledAction; + + /** + * The returned {@code ScheduledAction} instance. + * + * @return the value + */ + public com.oracle.bmc.database.model.ScheduledAction getScheduledAction() { + return scheduledAction; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "etag", + "opcRequestId", + "scheduledAction" + }) + private UpdateScheduledActionResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String etag, + String opcRequestId, + com.oracle.bmc.database.model.ScheduledAction scheduledAction) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.etag = etag; + this.opcRequestId = opcRequestId; + this.scheduledAction = scheduledAction; + } + + 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/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code ScheduledAction} instance. */ + private com.oracle.bmc.database.model.ScheduledAction scheduledAction; + + /** + * The returned {@code ScheduledAction} instance. + * + * @param scheduledAction the value to set + * @return this builder + */ + public Builder scheduledAction( + com.oracle.bmc.database.model.ScheduledAction scheduledAction) { + this.scheduledAction = scheduledAction; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateScheduledActionResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + scheduledAction(o.getScheduledAction()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateScheduledActionResponse build() { + return new UpdateScheduledActionResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + etag, + opcRequestId, + scheduledAction); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",scheduledAction=").append(String.valueOf(scheduledAction)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateScheduledActionResponse)) { + return false; + } + + UpdateScheduledActionResponse other = (UpdateScheduledActionResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.scheduledAction, other.scheduledAction); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.scheduledAction == null ? 43 : this.scheduledAction.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateSchedulingPolicyResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateSchedulingPolicyResponse.java new file mode 100644 index 00000000000..c56e08245a6 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateSchedulingPolicyResponse.java @@ -0,0 +1,268 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class UpdateSchedulingPolicyResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code SchedulingPolicy} instance. */ + private com.oracle.bmc.database.model.SchedulingPolicy schedulingPolicy; + + /** + * The returned {@code SchedulingPolicy} instance. + * + * @return the value + */ + public com.oracle.bmc.database.model.SchedulingPolicy getSchedulingPolicy() { + return schedulingPolicy; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "etag", + "opcRequestId", + "schedulingPolicy" + }) + private UpdateSchedulingPolicyResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String etag, + String opcRequestId, + com.oracle.bmc.database.model.SchedulingPolicy schedulingPolicy) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.etag = etag; + this.opcRequestId = opcRequestId; + this.schedulingPolicy = schedulingPolicy; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + UpdateSchedulingPolicyResponse> { + 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/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code SchedulingPolicy} instance. */ + private com.oracle.bmc.database.model.SchedulingPolicy schedulingPolicy; + + /** + * The returned {@code SchedulingPolicy} instance. + * + * @param schedulingPolicy the value to set + * @return this builder + */ + public Builder schedulingPolicy( + com.oracle.bmc.database.model.SchedulingPolicy schedulingPolicy) { + this.schedulingPolicy = schedulingPolicy; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateSchedulingPolicyResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + schedulingPolicy(o.getSchedulingPolicy()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateSchedulingPolicyResponse build() { + return new UpdateSchedulingPolicyResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + etag, + opcRequestId, + schedulingPolicy); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",schedulingPolicy=").append(String.valueOf(schedulingPolicy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateSchedulingPolicyResponse)) { + return false; + } + + UpdateSchedulingPolicyResponse other = (UpdateSchedulingPolicyResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.schedulingPolicy, other.schedulingPolicy); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.schedulingPolicy == null ? 43 : this.schedulingPolicy.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateSchedulingWindowResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateSchedulingWindowResponse.java new file mode 100644 index 00000000000..bb53a25b5bc --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateSchedulingWindowResponse.java @@ -0,0 +1,268 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class UpdateSchedulingWindowResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code SchedulingWindow} instance. */ + private com.oracle.bmc.database.model.SchedulingWindow schedulingWindow; + + /** + * The returned {@code SchedulingWindow} instance. + * + * @return the value + */ + public com.oracle.bmc.database.model.SchedulingWindow getSchedulingWindow() { + return schedulingWindow; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "etag", + "opcRequestId", + "schedulingWindow" + }) + private UpdateSchedulingWindowResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String etag, + String opcRequestId, + com.oracle.bmc.database.model.SchedulingWindow schedulingWindow) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.etag = etag; + this.opcRequestId = opcRequestId; + this.schedulingWindow = schedulingWindow; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + UpdateSchedulingWindowResponse> { + 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/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code SchedulingWindow} instance. */ + private com.oracle.bmc.database.model.SchedulingWindow schedulingWindow; + + /** + * The returned {@code SchedulingWindow} instance. + * + * @param schedulingWindow the value to set + * @return this builder + */ + public Builder schedulingWindow( + com.oracle.bmc.database.model.SchedulingWindow schedulingWindow) { + this.schedulingWindow = schedulingWindow; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateSchedulingWindowResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + schedulingWindow(o.getSchedulingWindow()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateSchedulingWindowResponse build() { + return new UpdateSchedulingWindowResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + etag, + opcRequestId, + schedulingWindow); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",schedulingWindow=").append(String.valueOf(schedulingWindow)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateSchedulingWindowResponse)) { + return false; + } + + UpdateSchedulingWindowResponse other = (UpdateSchedulingWindowResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.schedulingWindow, other.schedulingWindow); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.schedulingWindow == null ? 43 : this.schedulingWindow.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-database/reflect-config.json b/bmc-database/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-database/reflect-config.json index 332e0987e5b..23eef3939a4 100644 --- a/bmc-database/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-database/reflect-config.json +++ b/bmc-database/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-database/reflect-config.json @@ -13,6 +13,68 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ActionMember", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ActionMember$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ActionOrderDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ActionOrderDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ActionParamValuesCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ActionParamValuesCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ActionParamValuesSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ActionParamValuesSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ActionParamValuesSummary$ParameterType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.ActivateExadataInfrastructureDetails", @@ -1483,6 +1545,20 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.CancelExecutionWindowDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.CancelExecutionWindowDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.ChangeAutonomousDatabaseSoftwareImageCompartmentDetails", @@ -1725,6 +1801,34 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ChangeSchedulingPlanCompartmentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ChangeSchedulingPlanCompartmentDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ChangeSchedulingPolicyCompartmentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ChangeSchedulingPolicyCompartmentDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.ChangeSubscriptionDetails", @@ -3035,6 +3139,40 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.CreateExecutionActionDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.CreateExecutionActionDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.CreateExecutionActionDetails$ActionType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.CreateExecutionWindowDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.CreateExecutionWindowDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.CreateExternalBackupJobDetails", @@ -3349,6 +3487,80 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.CreateScheduledActionDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.CreateScheduledActionDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.CreateScheduledActionDetails$ActionType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.CreateSchedulingPlanDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.CreateSchedulingPlanDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.CreateSchedulingPlanDetails$ServiceType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.CreateSchedulingPolicyDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.CreateSchedulingPolicyDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.CreateSchedulingPolicyDetails$Cadence", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.CreateSchedulingWindowDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.CreateSchedulingWindowDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.CreateVmClusterDetails", @@ -5223,229 +5435,371 @@ }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.database.model.ExternalBackupJob", + "name": "com.oracle.bmc.database.model.ExecutionAction", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.database.model.ExternalBackupJob$Builder", + "name": "com.oracle.bmc.database.model.ExecutionAction$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.database.model.ExternalContainerDatabase", + "name": "com.oracle.bmc.database.model.ExecutionAction$LifecycleState", "allDeclaredFields": true, - "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.database.model.ExternalContainerDatabase$Builder", + "name": "com.oracle.bmc.database.model.ExecutionAction$LifecycleSubstate", "allDeclaredFields": true, - "allDeclaredMethods": true, - "allDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.database.model.ExternalContainerDatabase$LifecycleState", + "name": "com.oracle.bmc.database.model.ExecutionAction$ActionType", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.database.model.ExternalContainerDatabase$DatabaseEdition", + "name": "com.oracle.bmc.database.model.ExecutionActionMember", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.database.model.ExternalContainerDatabase$DatabaseConfiguration", + "name": "com.oracle.bmc.database.model.ExecutionActionMember$Builder", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.database.model.ExternalContainerDatabaseSummary", + "name": "com.oracle.bmc.database.model.ExecutionActionSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.database.model.ExternalContainerDatabaseSummary$Builder", + "name": "com.oracle.bmc.database.model.ExecutionActionSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.database.model.ExternalContainerDatabaseSummary$LifecycleState", + "name": "com.oracle.bmc.database.model.ExecutionActionSummary$LifecycleState", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.database.model.ExternalContainerDatabaseSummary$DatabaseEdition", + "name": "com.oracle.bmc.database.model.ExecutionActionSummary$LifecycleSubstate", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.database.model.ExternalContainerDatabaseSummary$DatabaseConfiguration", + "name": "com.oracle.bmc.database.model.ExecutionActionSummary$ActionType", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.database.model.ExternalDatabaseBase", + "name": "com.oracle.bmc.database.model.ExecutionWindow", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.database.model.ExternalDatabaseBase$Builder", + "name": "com.oracle.bmc.database.model.ExecutionWindow$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.database.model.ExternalDatabaseBase$LifecycleState", + "name": "com.oracle.bmc.database.model.ExecutionWindow$LifecycleState", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.database.model.ExternalDatabaseBase$DatabaseEdition", + "name": "com.oracle.bmc.database.model.ExecutionWindow$LifecycleSubstate", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.database.model.ExternalDatabaseBase$DatabaseConfiguration", + "name": "com.oracle.bmc.database.model.ExecutionWindow$WindowType", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.database.model.ExternalDatabaseConnector", + "name": "com.oracle.bmc.database.model.ExecutionWindowSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.database.model.ExternalDatabaseConnector$ConnectorType", - "allDeclaredFields": true, - "allDeclaredMethods": true - }, - { - "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.database.model.ExternalDatabaseConnector$LifecycleState", - "allDeclaredFields": true, - "allDeclaredMethods": true - }, - { - "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.database.model.ExternalDatabaseConnectorSummary", + "name": "com.oracle.bmc.database.model.ExecutionWindowSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.database.model.ExternalDatabaseConnectorSummary$ConnectorType", + "name": "com.oracle.bmc.database.model.ExecutionWindowSummary$LifecycleState", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.database.model.ExternalMacsConnector", + "name": "com.oracle.bmc.database.model.ExecutionWindowSummary$LifecycleSubstate", "allDeclaredFields": true, - "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.database.model.ExternalMacsConnector$Builder", + "name": "com.oracle.bmc.database.model.ExecutionWindowSummary$WindowType", "allDeclaredFields": true, - "allDeclaredMethods": true, - "allDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.database.model.ExternalMacsConnectorSummary", + "name": "com.oracle.bmc.database.model.ExternalBackupJob", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.database.model.ExternalMacsConnectorSummary$Builder", + "name": "com.oracle.bmc.database.model.ExternalBackupJob$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.database.model.ExternalNonContainerDatabase", + "name": "com.oracle.bmc.database.model.ExternalContainerDatabase", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.database.model.ExternalNonContainerDatabase$Builder", + "name": "com.oracle.bmc.database.model.ExternalContainerDatabase$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.database.model.ExternalNonContainerDatabase$LifecycleState", + "name": "com.oracle.bmc.database.model.ExternalContainerDatabase$LifecycleState", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.database.model.ExternalNonContainerDatabase$DatabaseEdition", + "name": "com.oracle.bmc.database.model.ExternalContainerDatabase$DatabaseEdition", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.database.model.ExternalNonContainerDatabase$DatabaseConfiguration", + "name": "com.oracle.bmc.database.model.ExternalContainerDatabase$DatabaseConfiguration", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.database.model.ExternalNonContainerDatabaseSummary", + "name": "com.oracle.bmc.database.model.ExternalContainerDatabaseSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.database.model.ExternalNonContainerDatabaseSummary$Builder", + "name": "com.oracle.bmc.database.model.ExternalContainerDatabaseSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.database.model.ExternalNonContainerDatabaseSummary$LifecycleState", + "name": "com.oracle.bmc.database.model.ExternalContainerDatabaseSummary$LifecycleState", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.database.model.ExternalNonContainerDatabaseSummary$DatabaseEdition", + "name": "com.oracle.bmc.database.model.ExternalContainerDatabaseSummary$DatabaseEdition", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ExternalContainerDatabaseSummary$DatabaseConfiguration", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ExternalDatabaseBase", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ExternalDatabaseBase$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ExternalDatabaseBase$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ExternalDatabaseBase$DatabaseEdition", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ExternalDatabaseBase$DatabaseConfiguration", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ExternalDatabaseConnector", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ExternalDatabaseConnector$ConnectorType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ExternalDatabaseConnector$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ExternalDatabaseConnectorSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ExternalDatabaseConnectorSummary$ConnectorType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ExternalMacsConnector", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ExternalMacsConnector$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ExternalMacsConnectorSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ExternalMacsConnectorSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ExternalNonContainerDatabase", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ExternalNonContainerDatabase$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ExternalNonContainerDatabase$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ExternalNonContainerDatabase$DatabaseEdition", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ExternalNonContainerDatabase$DatabaseConfiguration", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ExternalNonContainerDatabaseSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ExternalNonContainerDatabaseSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ExternalNonContainerDatabaseSummary$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ExternalNonContainerDatabaseSummary$DatabaseEdition", "allDeclaredFields": true, "allDeclaredMethods": true }, @@ -5637,6 +5991,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.GranularMaintenanceHistoryDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.GranularMaintenanceHistoryDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.InfoForNetworkGenDetails", @@ -6226,6 +6594,20 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.MoveExecutionActionMemberDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.MoveExecutionActionMemberDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.NetworkBondingModeDetails", @@ -6712,6 +7094,40 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.RecommendedScheduledActionSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.RecommendedScheduledActionSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.RecommendedScheduledActionSummary$ActionType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.RecommendedScheduledActionsCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.RecommendedScheduledActionsCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.RefreshableCloneCollection", @@ -6824,6 +7240,34 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ReorderExecutionActionDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ReorderExecutionActionDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ReorderScheduledActionsDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ReorderScheduledActionsDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.ResizeVmClusterNetworkDetails", @@ -7048,6 +7492,72 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ScheduledAction", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ScheduledAction$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ScheduledAction$ActionType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ScheduledAction$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ScheduledActionCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ScheduledActionCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ScheduledActionSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ScheduledActionSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ScheduledActionSummary$ActionType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.ScheduledActionSummary$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.ScheduledOperationDetails", @@ -7062,6 +7572,176 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.SchedulingPlan", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.SchedulingPlan$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.SchedulingPlan$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.SchedulingPlan$PlanIntent", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.SchedulingPlan$ServiceType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.SchedulingPlanCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.SchedulingPlanCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.SchedulingPlanSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.SchedulingPlanSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.SchedulingPlanSummary$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.SchedulingPlanSummary$PlanIntent", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.SchedulingPlanSummary$ServiceType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.SchedulingPolicy", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.SchedulingPolicy$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.SchedulingPolicy$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.SchedulingPolicy$Cadence", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.SchedulingPolicySummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.SchedulingPolicySummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.SchedulingPolicySummary$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.SchedulingPolicySummary$Cadence", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.SchedulingWindow", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.SchedulingWindow$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.SchedulingWindow$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.SchedulingWindowSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.SchedulingWindowSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.SchedulingWindowSummary$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.SelfMountDetails", @@ -7646,6 +8326,34 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.UpdateExecutionActionDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.UpdateExecutionActionDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.UpdateExecutionWindowDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.UpdateExecutionWindowDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.UpdateExternalContainerDatabaseDetails", @@ -7855,6 +8563,54 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.UpdateScheduledActionDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.UpdateScheduledActionDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.UpdateSchedulingPolicyDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.UpdateSchedulingPolicyDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.UpdateSchedulingPolicyDetails$Cadence", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.UpdateSchedulingWindowDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.UpdateSchedulingWindowDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.UpdateSummary", @@ -8253,6 +9009,20 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.WindowPreferenceDetail", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.WindowPreferenceDetail$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.WorkloadType", diff --git a/bmc-databasemanagement/pom.xml b/bmc-databasemanagement/pom.xml index 54a016109d3..b4e5a7d0ce3 100644 --- a/bmc-databasemanagement/pom.xml +++ b/bmc-databasemanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-databasemanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagement.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagement.java index bedd76c9e20..4a4a7a7f639 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagement.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagement.java @@ -750,6 +750,23 @@ DisableAutomaticInitialPlanCaptureResponse disableAutomaticInitialPlanCapture( DisableAutomaticSpmEvolveAdvisorTaskResponse disableAutomaticSpmEvolveAdvisorTask( DisableAutomaticSpmEvolveAdvisorTaskRequest request); + /** + * Disables a Database Management feature for the specified Autonomous Database. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * DisableAutonomousDatabaseManagementFeature API. + */ + DisableAutonomousDatabaseManagementFeatureResponse disableAutonomousDatabaseManagementFeature( + DisableAutonomousDatabaseManagementFeatureRequest request); + /** * Disables a Database Management feature for the specified Oracle cloud database. * @@ -1058,6 +1075,23 @@ EnableAutomaticInitialPlanCaptureResponse enableAutomaticInitialPlanCapture( EnableAutomaticSpmEvolveAdvisorTaskResponse enableAutomaticSpmEvolveAdvisorTask( EnableAutomaticSpmEvolveAdvisorTaskRequest request); + /** + * Enables a Database Management feature for the specified Autonomous Database. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * EnableAutonomousDatabaseManagementFeature API. + */ + EnableAutonomousDatabaseManagementFeatureResponse enableAutonomousDatabaseManagementFeature( + EnableAutonomousDatabaseManagementFeatureRequest request); + /** * Enables a Database Management feature for the specified cloud database. * @@ -2870,6 +2904,23 @@ LoadSqlPlanBaselinesFromAwrResponse loadSqlPlanBaselinesFromAwr( LoadSqlPlanBaselinesFromCursorCacheResponse loadSqlPlanBaselinesFromCursorCache( LoadSqlPlanBaselinesFromCursorCacheRequest request); + /** + * Modifies the Database Management feature for the specified Autonomous Database. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * ModifyAutonomousDatabaseManagementFeature API. + */ + ModifyAutonomousDatabaseManagementFeatureResponse modifyAutonomousDatabaseManagementFeature( + ModifyAutonomousDatabaseManagementFeatureRequest request); + /** * Modifies a Database Management feature for the specified Oracle cloud database. * diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsync.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsync.java index 092dc18ff37..15e259bfe8e 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsync.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsync.java @@ -759,6 +759,24 @@ java.util.concurrent.Future deletePreferredCr DisableAutomaticSpmEvolveAdvisorTaskResponse> handler); + /** + * Disables a Database Management feature for the specified Autonomous Database. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + disableAutonomousDatabaseManagementFeature( + DisableAutonomousDatabaseManagementFeatureRequest request, + com.oracle.bmc.responses.AsyncHandler< + DisableAutonomousDatabaseManagementFeatureRequest, + DisableAutonomousDatabaseManagementFeatureResponse> + handler); + /** * Disables a Database Management feature for the specified Oracle cloud database. * @@ -1074,6 +1092,24 @@ java.util.concurrent.Future dropTablespace( EnableAutomaticSpmEvolveAdvisorTaskResponse> handler); + /** + * Enables a Database Management feature for the specified Autonomous Database. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + enableAutonomousDatabaseManagementFeature( + EnableAutonomousDatabaseManagementFeatureRequest request, + com.oracle.bmc.responses.AsyncHandler< + EnableAutonomousDatabaseManagementFeatureRequest, + EnableAutonomousDatabaseManagementFeatureResponse> + handler); + /** * Enables a Database Management feature for the specified cloud database. * @@ -2885,6 +2921,24 @@ java.util.concurrent.Future loadSqlPlanBase LoadSqlPlanBaselinesFromCursorCacheResponse> handler); + /** + * Modifies the Database Management feature for the specified Autonomous Database. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + modifyAutonomousDatabaseManagementFeature( + ModifyAutonomousDatabaseManagementFeatureRequest request, + com.oracle.bmc.responses.AsyncHandler< + ModifyAutonomousDatabaseManagementFeatureRequest, + ModifyAutonomousDatabaseManagementFeatureResponse> + handler); + /** * Modifies a Database Management feature for the specified Oracle cloud database. * diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsyncClient.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsyncClient.java index e20c91a3fcd..a535636ec70 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsyncClient.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsyncClient.java @@ -1526,6 +1526,49 @@ public java.util.concurrent.Future deletePref .callAsync(handler); } + @Override + public java.util.concurrent.Future + disableAutonomousDatabaseManagementFeature( + DisableAutonomousDatabaseManagementFeatureRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DisableAutonomousDatabaseManagementFeatureRequest, + DisableAutonomousDatabaseManagementFeatureResponse> + handler) { + + Validate.notBlank( + request.getAutonomousDatabaseId(), "autonomousDatabaseId must not be blank"); + Objects.requireNonNull( + request.getDisableAutonomousDatabaseManagementFeatureDetails(), + "disableAutonomousDatabaseManagementFeatureDetails is required"); + + return clientCall(request, DisableAutonomousDatabaseManagementFeatureResponse::builder) + .logger(LOG, "disableAutonomousDatabaseManagementFeature") + .serviceDetails( + "DbManagement", + "DisableAutonomousDatabaseManagementFeature", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/DisableAutonomousDatabaseManagementFeature") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(DisableAutonomousDatabaseManagementFeatureRequest::builder) + .basePath("/20201101") + .appendPathParam("autonomousDatabases") + .appendPathParam(request.getAutonomousDatabaseId()) + .appendPathParam("actions") + .appendPathParam("disableDatabaseManagement") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + DisableAutonomousDatabaseManagementFeatureResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + DisableAutonomousDatabaseManagementFeatureResponse.Builder + ::opcWorkRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future disableDatabaseManagementFeature( @@ -2130,6 +2173,48 @@ public java.util.concurrent.Future dropTablespace( .callAsync(handler); } + @Override + public java.util.concurrent.Future + enableAutonomousDatabaseManagementFeature( + EnableAutonomousDatabaseManagementFeatureRequest request, + final com.oracle.bmc.responses.AsyncHandler< + EnableAutonomousDatabaseManagementFeatureRequest, + EnableAutonomousDatabaseManagementFeatureResponse> + handler) { + + Validate.notBlank( + request.getAutonomousDatabaseId(), "autonomousDatabaseId must not be blank"); + Objects.requireNonNull( + request.getEnableAutonomousDatabaseManagementFeatureDetails(), + "enableAutonomousDatabaseManagementFeatureDetails is required"); + + return clientCall(request, EnableAutonomousDatabaseManagementFeatureResponse::builder) + .logger(LOG, "enableAutonomousDatabaseManagementFeature") + .serviceDetails( + "DbManagement", + "EnableAutonomousDatabaseManagementFeature", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/EnableAutonomousDatabaseManagementFeature") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(EnableAutonomousDatabaseManagementFeatureRequest::builder) + .basePath("/20201101") + .appendPathParam("autonomousDatabases") + .appendPathParam(request.getAutonomousDatabaseId()) + .appendPathParam("actions") + .appendPathParam("enableDatabaseManagement") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + EnableAutonomousDatabaseManagementFeatureResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + EnableAutonomousDatabaseManagementFeatureResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future enableDatabaseManagementFeature( @@ -4506,6 +4591,7 @@ public java.util.concurrent.Future listDatabaseP .appendQueryParam("name", request.getName()) .appendQueryParam("vcnId", request.getVcnId()) .appendQueryParam("isCluster", request.getIsCluster()) + .appendQueryParam("isDnsResolutionEnabled", request.getIsDnsResolutionEnabled()) .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) @@ -6216,6 +6302,48 @@ public java.util.concurrent.Future listWorkRequests( .callAsync(handler); } + @Override + public java.util.concurrent.Future + modifyAutonomousDatabaseManagementFeature( + ModifyAutonomousDatabaseManagementFeatureRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ModifyAutonomousDatabaseManagementFeatureRequest, + ModifyAutonomousDatabaseManagementFeatureResponse> + handler) { + + Validate.notBlank( + request.getAutonomousDatabaseId(), "autonomousDatabaseId must not be blank"); + Objects.requireNonNull( + request.getModifyAutonomousDatabaseManagementFeatureDetails(), + "modifyAutonomousDatabaseManagementFeatureDetails is required"); + + return clientCall(request, ModifyAutonomousDatabaseManagementFeatureResponse::builder) + .logger(LOG, "modifyAutonomousDatabaseManagementFeature") + .serviceDetails( + "DbManagement", + "ModifyAutonomousDatabaseManagementFeature", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/ModifyAutonomousDatabaseManagementFeature") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ModifyAutonomousDatabaseManagementFeatureRequest::builder) + .basePath("/20201101") + .appendPathParam("autonomousDatabases") + .appendPathParam(request.getAutonomousDatabaseId()) + .appendPathParam("actions") + .appendPathParam("modifyDatabaseManagement") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ModifyAutonomousDatabaseManagementFeatureResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + ModifyAutonomousDatabaseManagementFeatureResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future modifyDatabaseManagementFeature( diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementClient.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementClient.java index 483e0a3b1d1..9cf040abba2 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementClient.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementClient.java @@ -1396,6 +1396,46 @@ public DisableAutomaticSpmEvolveAdvisorTaskResponse disableAutomaticSpmEvolveAdv .callSync(); } + @Override + public DisableAutonomousDatabaseManagementFeatureResponse + disableAutonomousDatabaseManagementFeature( + DisableAutonomousDatabaseManagementFeatureRequest request) { + + Validate.notBlank( + request.getAutonomousDatabaseId(), "autonomousDatabaseId must not be blank"); + Objects.requireNonNull( + request.getDisableAutonomousDatabaseManagementFeatureDetails(), + "disableAutonomousDatabaseManagementFeatureDetails is required"); + + return clientCall(request, DisableAutonomousDatabaseManagementFeatureResponse::builder) + .logger(LOG, "disableAutonomousDatabaseManagementFeature") + .serviceDetails( + "DbManagement", + "DisableAutonomousDatabaseManagementFeature", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/DisableAutonomousDatabaseManagementFeature") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(DisableAutonomousDatabaseManagementFeatureRequest::builder) + .basePath("/20201101") + .appendPathParam("autonomousDatabases") + .appendPathParam(request.getAutonomousDatabaseId()) + .appendPathParam("actions") + .appendPathParam("disableDatabaseManagement") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + DisableAutonomousDatabaseManagementFeatureResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + DisableAutonomousDatabaseManagementFeatureResponse.Builder + ::opcWorkRequestId) + .callSync(); + } + @Override public DisableDatabaseManagementFeatureResponse disableDatabaseManagementFeature( DisableDatabaseManagementFeatureRequest request) { @@ -1943,6 +1983,45 @@ public EnableAutomaticSpmEvolveAdvisorTaskResponse enableAutomaticSpmEvolveAdvis .callSync(); } + @Override + public EnableAutonomousDatabaseManagementFeatureResponse + enableAutonomousDatabaseManagementFeature( + EnableAutonomousDatabaseManagementFeatureRequest request) { + + Validate.notBlank( + request.getAutonomousDatabaseId(), "autonomousDatabaseId must not be blank"); + Objects.requireNonNull( + request.getEnableAutonomousDatabaseManagementFeatureDetails(), + "enableAutonomousDatabaseManagementFeatureDetails is required"); + + return clientCall(request, EnableAutonomousDatabaseManagementFeatureResponse::builder) + .logger(LOG, "enableAutonomousDatabaseManagementFeature") + .serviceDetails( + "DbManagement", + "EnableAutonomousDatabaseManagementFeature", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/EnableAutonomousDatabaseManagementFeature") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(EnableAutonomousDatabaseManagementFeatureRequest::builder) + .basePath("/20201101") + .appendPathParam("autonomousDatabases") + .appendPathParam(request.getAutonomousDatabaseId()) + .appendPathParam("actions") + .appendPathParam("enableDatabaseManagement") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + EnableAutonomousDatabaseManagementFeatureResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + EnableAutonomousDatabaseManagementFeatureResponse.Builder::opcWorkRequestId) + .callSync(); + } + @Override public EnableDatabaseManagementFeatureResponse enableDatabaseManagementFeature( EnableDatabaseManagementFeatureRequest request) { @@ -4097,6 +4176,7 @@ public ListDbManagementPrivateEndpointsResponse listDbManagementPrivateEndpoints .appendQueryParam("name", request.getName()) .appendQueryParam("vcnId", request.getVcnId()) .appendQueryParam("isCluster", request.getIsCluster()) + .appendQueryParam("isDnsResolutionEnabled", request.getIsDnsResolutionEnabled()) .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) @@ -5662,6 +5742,45 @@ public LoadSqlPlanBaselinesFromCursorCacheResponse loadSqlPlanBaselinesFromCurso .callSync(); } + @Override + public ModifyAutonomousDatabaseManagementFeatureResponse + modifyAutonomousDatabaseManagementFeature( + ModifyAutonomousDatabaseManagementFeatureRequest request) { + + Validate.notBlank( + request.getAutonomousDatabaseId(), "autonomousDatabaseId must not be blank"); + Objects.requireNonNull( + request.getModifyAutonomousDatabaseManagementFeatureDetails(), + "modifyAutonomousDatabaseManagementFeatureDetails is required"); + + return clientCall(request, ModifyAutonomousDatabaseManagementFeatureResponse::builder) + .logger(LOG, "modifyAutonomousDatabaseManagementFeature") + .serviceDetails( + "DbManagement", + "ModifyAutonomousDatabaseManagementFeature", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/ModifyAutonomousDatabaseManagementFeature") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ModifyAutonomousDatabaseManagementFeatureRequest::builder) + .basePath("/20201101") + .appendPathParam("autonomousDatabases") + .appendPathParam(request.getAutonomousDatabaseId()) + .appendPathParam("actions") + .appendPathParam("modifyDatabaseManagement") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ModifyAutonomousDatabaseManagementFeatureResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + ModifyAutonomousDatabaseManagementFeatureResponse.Builder::opcWorkRequestId) + .callSync(); + } + @Override public ModifyDatabaseManagementFeatureResponse modifyDatabaseManagementFeature( ModifyDatabaseManagementFeatureRequest request) { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/AutonomousDatabaseDiagnosticsAndManagementFeatureDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/AutonomousDatabaseDiagnosticsAndManagementFeatureDetails.java new file mode 100644 index 00000000000..bcef235b6bd --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/AutonomousDatabaseDiagnosticsAndManagementFeatureDetails.java @@ -0,0 +1,130 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details required to enable the Diagnostics and Management feature.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AutonomousDatabaseDiagnosticsAndManagementFeatureDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "feature") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AutonomousDatabaseDiagnosticsAndManagementFeatureDetails + extends AutonomousDatabaseFeatureDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("databaseConnectionDetails") + private DatabaseConnectionDetails databaseConnectionDetails; + + public Builder databaseConnectionDetails( + DatabaseConnectionDetails databaseConnectionDetails) { + this.databaseConnectionDetails = databaseConnectionDetails; + this.__explicitlySet__.add("databaseConnectionDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectorDetails") + private ConnectorDetails connectorDetails; + + public Builder connectorDetails(ConnectorDetails connectorDetails) { + this.connectorDetails = connectorDetails; + this.__explicitlySet__.add("connectorDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AutonomousDatabaseDiagnosticsAndManagementFeatureDetails build() { + AutonomousDatabaseDiagnosticsAndManagementFeatureDetails model = + new AutonomousDatabaseDiagnosticsAndManagementFeatureDetails( + this.databaseConnectionDetails, this.connectorDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AutonomousDatabaseDiagnosticsAndManagementFeatureDetails model) { + if (model.wasPropertyExplicitlySet("databaseConnectionDetails")) { + this.databaseConnectionDetails(model.getDatabaseConnectionDetails()); + } + if (model.wasPropertyExplicitlySet("connectorDetails")) { + this.connectorDetails(model.getConnectorDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public AutonomousDatabaseDiagnosticsAndManagementFeatureDetails( + DatabaseConnectionDetails databaseConnectionDetails, + ConnectorDetails connectorDetails) { + super(databaseConnectionDetails, connectorDetails); + } + + @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("AutonomousDatabaseDiagnosticsAndManagementFeatureDetails("); + 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 AutonomousDatabaseDiagnosticsAndManagementFeatureDetails)) { + return false; + } + + AutonomousDatabaseDiagnosticsAndManagementFeatureDetails other = + (AutonomousDatabaseDiagnosticsAndManagementFeatureDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/AutonomousDatabaseFeatureDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/AutonomousDatabaseFeatureDetails.java new file mode 100644 index 00000000000..c2343b10ea7 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/AutonomousDatabaseFeatureDetails.java @@ -0,0 +1,114 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details required to enable the specified Database Management feature for an Autonomous + * Database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "feature", + defaultImpl = AutonomousDatabaseFeatureDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = AutonomousDatabaseSqlWatchFeatureDetails.class, + name = "SQLWATCH"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = AutonomousDatabaseDiagnosticsAndManagementFeatureDetails.class, + name = "DIAGNOSTICS_AND_MANAGEMENT") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class AutonomousDatabaseFeatureDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"databaseConnectionDetails", "connectorDetails"}) + protected AutonomousDatabaseFeatureDetails( + DatabaseConnectionDetails databaseConnectionDetails, + ConnectorDetails connectorDetails) { + super(); + this.databaseConnectionDetails = databaseConnectionDetails; + this.connectorDetails = connectorDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseConnectionDetails") + private final DatabaseConnectionDetails databaseConnectionDetails; + + public DatabaseConnectionDetails getDatabaseConnectionDetails() { + return databaseConnectionDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectorDetails") + private final ConnectorDetails connectorDetails; + + public ConnectorDetails getConnectorDetails() { + return connectorDetails; + } + + @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("AutonomousDatabaseFeatureDetails("); + sb.append("super=").append(super.toString()); + sb.append("databaseConnectionDetails=") + .append(String.valueOf(this.databaseConnectionDetails)); + sb.append(", connectorDetails=").append(String.valueOf(this.connectorDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AutonomousDatabaseFeatureDetails)) { + return false; + } + + AutonomousDatabaseFeatureDetails other = (AutonomousDatabaseFeatureDetails) o; + return java.util.Objects.equals( + this.databaseConnectionDetails, other.databaseConnectionDetails) + && java.util.Objects.equals(this.connectorDetails, other.connectorDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.databaseConnectionDetails == null + ? 43 + : this.databaseConnectionDetails.hashCode()); + result = + (result * PRIME) + + (this.connectorDetails == null ? 43 : this.connectorDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/AutonomousDatabaseSqlWatchFeatureDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/AutonomousDatabaseSqlWatchFeatureDetails.java new file mode 100644 index 00000000000..3aac902bc8e --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/AutonomousDatabaseSqlWatchFeatureDetails.java @@ -0,0 +1,130 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details required to enable the SQL Watch feature.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AutonomousDatabaseSqlWatchFeatureDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "feature") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AutonomousDatabaseSqlWatchFeatureDetails + extends AutonomousDatabaseFeatureDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("databaseConnectionDetails") + private DatabaseConnectionDetails databaseConnectionDetails; + + public Builder databaseConnectionDetails( + DatabaseConnectionDetails databaseConnectionDetails) { + this.databaseConnectionDetails = databaseConnectionDetails; + this.__explicitlySet__.add("databaseConnectionDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectorDetails") + private ConnectorDetails connectorDetails; + + public Builder connectorDetails(ConnectorDetails connectorDetails) { + this.connectorDetails = connectorDetails; + this.__explicitlySet__.add("connectorDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AutonomousDatabaseSqlWatchFeatureDetails build() { + AutonomousDatabaseSqlWatchFeatureDetails model = + new AutonomousDatabaseSqlWatchFeatureDetails( + this.databaseConnectionDetails, this.connectorDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AutonomousDatabaseSqlWatchFeatureDetails model) { + if (model.wasPropertyExplicitlySet("databaseConnectionDetails")) { + this.databaseConnectionDetails(model.getDatabaseConnectionDetails()); + } + if (model.wasPropertyExplicitlySet("connectorDetails")) { + this.connectorDetails(model.getConnectorDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public AutonomousDatabaseSqlWatchFeatureDetails( + DatabaseConnectionDetails databaseConnectionDetails, + ConnectorDetails connectorDetails) { + super(databaseConnectionDetails, connectorDetails); + } + + @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("AutonomousDatabaseSqlWatchFeatureDetails("); + 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 AutonomousDatabaseSqlWatchFeatureDetails)) { + return false; + } + + AutonomousDatabaseSqlWatchFeatureDetails other = + (AutonomousDatabaseSqlWatchFeatureDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ConnectorDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ConnectorDetails.java index 3d8c1f64782..0c1fad37f01 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ConnectorDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ConnectorDetails.java @@ -25,6 +25,9 @@ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = ExternalConnectorDetails.class, name = "EXTERNAL"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DirectConnectorDetails.class, + name = "DIRECT"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = MacsConnectorDetails.class, name = "MACS"), @@ -84,11 +87,14 @@ public int hashCode() { /** * The list of supported connection types: - PE: Private endpoint - MACS: Management agent - * EXTERNAL: External database connector + * + *

- DIRECT: Direct connection */ public enum ConnectorType implements com.oracle.bmc.http.internal.BmcEnum { Pe("PE"), Macs("MACS"), External("EXTERNAL"), + Direct("DIRECT"), /** * This value is used if a service returns a value for this enum that is not recognized by diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateDbManagementPrivateEndpointDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateDbManagementPrivateEndpointDetails.java index 8bf1a7fcaf9..0cc41c482af 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateDbManagementPrivateEndpointDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/CreateDbManagementPrivateEndpointDetails.java @@ -27,6 +27,7 @@ public final class CreateDbManagementPrivateEndpointDetails "name", "compartmentId", "isCluster", + "isDnsResolutionEnabled", "subnetId", "description", "nsgIds", @@ -37,6 +38,7 @@ public CreateDbManagementPrivateEndpointDetails( String name, String compartmentId, Boolean isCluster, + Boolean isDnsResolutionEnabled, String subnetId, String description, java.util.List nsgIds, @@ -46,6 +48,7 @@ public CreateDbManagementPrivateEndpointDetails( this.name = name; this.compartmentId = compartmentId; this.isCluster = isCluster; + this.isDnsResolutionEnabled = isDnsResolutionEnabled; this.subnetId = subnetId; this.description = description; this.nsgIds = nsgIds; @@ -108,6 +111,25 @@ public Builder isCluster(Boolean isCluster) { this.__explicitlySet__.add("isCluster"); return this; } + /** + * Specifies whether the Database Management private endpoint has DNS proxy server enabled + * to resolve private host name. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isDnsResolutionEnabled") + private Boolean isDnsResolutionEnabled; + + /** + * Specifies whether the Database Management private endpoint has DNS proxy server enabled + * to resolve private host name. + * + * @param isDnsResolutionEnabled the value to set + * @return this builder + */ + public Builder isDnsResolutionEnabled(Boolean isDnsResolutionEnabled) { + this.isDnsResolutionEnabled = isDnsResolutionEnabled; + this.__explicitlySet__.add("isDnsResolutionEnabled"); + return this; + } /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * subnet. @@ -218,6 +240,7 @@ public CreateDbManagementPrivateEndpointDetails build() { this.name, this.compartmentId, this.isCluster, + this.isDnsResolutionEnabled, this.subnetId, this.description, this.nsgIds, @@ -240,6 +263,9 @@ public Builder copy(CreateDbManagementPrivateEndpointDetails model) { if (model.wasPropertyExplicitlySet("isCluster")) { this.isCluster(model.getIsCluster()); } + if (model.wasPropertyExplicitlySet("isDnsResolutionEnabled")) { + this.isDnsResolutionEnabled(model.getIsDnsResolutionEnabled()); + } if (model.wasPropertyExplicitlySet("subnetId")) { this.subnetId(model.getSubnetId()); } @@ -315,6 +341,23 @@ public Boolean getIsCluster() { return isCluster; } + /** + * Specifies whether the Database Management private endpoint has DNS proxy server enabled to + * resolve private host name. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isDnsResolutionEnabled") + private final Boolean isDnsResolutionEnabled; + + /** + * Specifies whether the Database Management private endpoint has DNS proxy server enabled to + * resolve private host name. + * + * @return the value + */ + public Boolean getIsDnsResolutionEnabled() { + return isDnsResolutionEnabled; + } + /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * subnet. @@ -422,6 +465,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("name=").append(String.valueOf(this.name)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", isCluster=").append(String.valueOf(this.isCluster)); + sb.append(", isDnsResolutionEnabled=").append(String.valueOf(this.isDnsResolutionEnabled)); sb.append(", subnetId=").append(String.valueOf(this.subnetId)); sb.append(", description=").append(String.valueOf(this.description)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); @@ -445,6 +489,8 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.name, other.name) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.isCluster, other.isCluster) + && java.util.Objects.equals( + this.isDnsResolutionEnabled, other.isDnsResolutionEnabled) && java.util.Objects.equals(this.subnetId, other.subnetId) && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.nsgIds, other.nsgIds) @@ -462,6 +508,11 @@ public int hashCode() { (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.isCluster == null ? 43 : this.isCluster.hashCode()); + result = + (result * PRIME) + + (this.isDnsResolutionEnabled == null + ? 43 + : this.isDnsResolutionEnabled.hashCode()); result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DbManagementPrivateEndpoint.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DbManagementPrivateEndpoint.java index 87145b7e482..264e1077eba 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DbManagementPrivateEndpoint.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DbManagementPrivateEndpoint.java @@ -29,6 +29,7 @@ public final class DbManagementPrivateEndpoint "name", "compartmentId", "isCluster", + "isDnsResolutionEnabled", "vcnId", "subnetId", "privateIp", @@ -45,6 +46,7 @@ public DbManagementPrivateEndpoint( String name, String compartmentId, Boolean isCluster, + Boolean isDnsResolutionEnabled, String vcnId, String subnetId, String privateIp, @@ -60,6 +62,7 @@ public DbManagementPrivateEndpoint( this.name = name; this.compartmentId = compartmentId; this.isCluster = isCluster; + this.isDnsResolutionEnabled = isDnsResolutionEnabled; this.vcnId = vcnId; this.subnetId = subnetId; this.privateIp = privateIp; @@ -146,6 +149,25 @@ public Builder isCluster(Boolean isCluster) { this.__explicitlySet__.add("isCluster"); return this; } + /** + * Specifies whether the Database Management private endpoint has DNS proxy server enabled + * to resolve private host name. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isDnsResolutionEnabled") + private Boolean isDnsResolutionEnabled; + + /** + * Specifies whether the Database Management private endpoint has DNS proxy server enabled + * to resolve private host name. + * + * @param isDnsResolutionEnabled the value to set + * @return this builder + */ + public Builder isDnsResolutionEnabled(Boolean isDnsResolutionEnabled) { + this.isDnsResolutionEnabled = isDnsResolutionEnabled; + this.__explicitlySet__.add("isDnsResolutionEnabled"); + return this; + } /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * VCN. @@ -352,6 +374,7 @@ public DbManagementPrivateEndpoint build() { this.name, this.compartmentId, this.isCluster, + this.isDnsResolutionEnabled, this.vcnId, this.subnetId, this.privateIp, @@ -382,6 +405,9 @@ public Builder copy(DbManagementPrivateEndpoint model) { if (model.wasPropertyExplicitlySet("isCluster")) { this.isCluster(model.getIsCluster()); } + if (model.wasPropertyExplicitlySet("isDnsResolutionEnabled")) { + this.isDnsResolutionEnabled(model.getIsDnsResolutionEnabled()); + } if (model.wasPropertyExplicitlySet("vcnId")) { this.vcnId(model.getVcnId()); } @@ -489,6 +515,23 @@ public Boolean getIsCluster() { return isCluster; } + /** + * Specifies whether the Database Management private endpoint has DNS proxy server enabled to + * resolve private host name. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isDnsResolutionEnabled") + private final Boolean isDnsResolutionEnabled; + + /** + * Specifies whether the Database Management private endpoint has DNS proxy server enabled to + * resolve private host name. + * + * @return the value + */ + public Boolean getIsDnsResolutionEnabled() { + return isDnsResolutionEnabled; + } + /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * VCN. @@ -682,6 +725,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", name=").append(String.valueOf(this.name)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", isCluster=").append(String.valueOf(this.isCluster)); + sb.append(", isDnsResolutionEnabled=").append(String.valueOf(this.isDnsResolutionEnabled)); sb.append(", vcnId=").append(String.valueOf(this.vcnId)); sb.append(", subnetId=").append(String.valueOf(this.subnetId)); sb.append(", privateIp=").append(String.valueOf(this.privateIp)); @@ -710,6 +754,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.name, other.name) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.isCluster, other.isCluster) + && java.util.Objects.equals( + this.isDnsResolutionEnabled, other.isDnsResolutionEnabled) && java.util.Objects.equals(this.vcnId, other.vcnId) && java.util.Objects.equals(this.subnetId, other.subnetId) && java.util.Objects.equals(this.privateIp, other.privateIp) @@ -733,6 +779,11 @@ public int hashCode() { (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.isCluster == null ? 43 : this.isCluster.hashCode()); + result = + (result * PRIME) + + (this.isDnsResolutionEnabled == null + ? 43 + : this.isDnsResolutionEnabled.hashCode()); result = (result * PRIME) + (this.vcnId == null ? 43 : this.vcnId.hashCode()); result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); result = (result * PRIME) + (this.privateIp == null ? 43 : this.privateIp.hashCode()); diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DirectConnectorDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DirectConnectorDetails.java new file mode 100644 index 00000000000..66bba34ca37 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DirectConnectorDetails.java @@ -0,0 +1,100 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The connector details required to connect to an Autonomous Database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DirectConnectorDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "connectorType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DirectConnectorDetails extends ConnectorDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DirectConnectorDetails build() { + DirectConnectorDetails model = new DirectConnectorDetails(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DirectConnectorDetails model) { + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DirectConnectorDetails() { + 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("DirectConnectorDetails("); + 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 DirectConnectorDetails)) { + return false; + } + + DirectConnectorDetails other = (DirectConnectorDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableAutonomousDatabaseManagementFeatureDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableAutonomousDatabaseManagementFeatureDetails.java new file mode 100644 index 00000000000..a858743d7ed --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableAutonomousDatabaseManagementFeatureDetails.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.databasemanagement.model; + +/** + * The details required to disable a Database Management feature for an Autonomous Database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DisableAutonomousDatabaseManagementFeatureDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DisableAutonomousDatabaseManagementFeatureDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"feature"}) + public DisableAutonomousDatabaseManagementFeatureDetails(DbManagementFeature feature) { + super(); + this.feature = feature; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The name of the Database Management feature. */ + @com.fasterxml.jackson.annotation.JsonProperty("feature") + private DbManagementFeature feature; + + /** + * The name of the Database Management feature. + * + * @param feature the value to set + * @return this builder + */ + public Builder feature(DbManagementFeature feature) { + this.feature = feature; + this.__explicitlySet__.add("feature"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DisableAutonomousDatabaseManagementFeatureDetails build() { + DisableAutonomousDatabaseManagementFeatureDetails model = + new DisableAutonomousDatabaseManagementFeatureDetails(this.feature); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DisableAutonomousDatabaseManagementFeatureDetails model) { + if (model.wasPropertyExplicitlySet("feature")) { + this.feature(model.getFeature()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The name of the Database Management feature. */ + @com.fasterxml.jackson.annotation.JsonProperty("feature") + private final DbManagementFeature feature; + + /** + * The name of the Database Management feature. + * + * @return the value + */ + public DbManagementFeature getFeature() { + return feature; + } + + @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("DisableAutonomousDatabaseManagementFeatureDetails("); + sb.append("super=").append(super.toString()); + sb.append("feature=").append(String.valueOf(this.feature)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DisableAutonomousDatabaseManagementFeatureDetails)) { + return false; + } + + DisableAutonomousDatabaseManagementFeatureDetails other = + (DisableAutonomousDatabaseManagementFeatureDetails) o; + return java.util.Objects.equals(this.feature, other.feature) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.feature == null ? 43 : this.feature.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableAutonomousDatabaseManagementFeatureDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableAutonomousDatabaseManagementFeatureDetails.java new file mode 100644 index 00000000000..be89c99e675 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableAutonomousDatabaseManagementFeatureDetails.java @@ -0,0 +1,127 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details required to enable a Database Management feature for an Autonomous Database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = EnableAutonomousDatabaseManagementFeatureDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class EnableAutonomousDatabaseManagementFeatureDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"featureDetails"}) + public EnableAutonomousDatabaseManagementFeatureDetails( + AutonomousDatabaseFeatureDetails featureDetails) { + super(); + this.featureDetails = featureDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("featureDetails") + private AutonomousDatabaseFeatureDetails featureDetails; + + public Builder featureDetails(AutonomousDatabaseFeatureDetails featureDetails) { + this.featureDetails = featureDetails; + this.__explicitlySet__.add("featureDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public EnableAutonomousDatabaseManagementFeatureDetails build() { + EnableAutonomousDatabaseManagementFeatureDetails model = + new EnableAutonomousDatabaseManagementFeatureDetails(this.featureDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EnableAutonomousDatabaseManagementFeatureDetails model) { + if (model.wasPropertyExplicitlySet("featureDetails")) { + this.featureDetails(model.getFeatureDetails()); + } + 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("featureDetails") + private final AutonomousDatabaseFeatureDetails featureDetails; + + public AutonomousDatabaseFeatureDetails getFeatureDetails() { + return featureDetails; + } + + @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("EnableAutonomousDatabaseManagementFeatureDetails("); + sb.append("super=").append(super.toString()); + sb.append("featureDetails=").append(String.valueOf(this.featureDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof EnableAutonomousDatabaseManagementFeatureDetails)) { + return false; + } + + EnableAutonomousDatabaseManagementFeatureDetails other = + (EnableAutonomousDatabaseManagementFeatureDetails) o; + return java.util.Objects.equals(this.featureDetails, other.featureDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.featureDetails == null ? 43 : this.featureDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ModifyAutonomousDatabaseManagementFeatureDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ModifyAutonomousDatabaseManagementFeatureDetails.java new file mode 100644 index 00000000000..13a750121a3 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ModifyAutonomousDatabaseManagementFeatureDetails.java @@ -0,0 +1,127 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details required to modify a Database Management feature for an Autonomous Database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ModifyAutonomousDatabaseManagementFeatureDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ModifyAutonomousDatabaseManagementFeatureDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"featureDetails"}) + public ModifyAutonomousDatabaseManagementFeatureDetails( + AutonomousDatabaseFeatureDetails featureDetails) { + super(); + this.featureDetails = featureDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("featureDetails") + private AutonomousDatabaseFeatureDetails featureDetails; + + public Builder featureDetails(AutonomousDatabaseFeatureDetails featureDetails) { + this.featureDetails = featureDetails; + this.__explicitlySet__.add("featureDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ModifyAutonomousDatabaseManagementFeatureDetails build() { + ModifyAutonomousDatabaseManagementFeatureDetails model = + new ModifyAutonomousDatabaseManagementFeatureDetails(this.featureDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ModifyAutonomousDatabaseManagementFeatureDetails model) { + if (model.wasPropertyExplicitlySet("featureDetails")) { + this.featureDetails(model.getFeatureDetails()); + } + 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("featureDetails") + private final AutonomousDatabaseFeatureDetails featureDetails; + + public AutonomousDatabaseFeatureDetails getFeatureDetails() { + return featureDetails; + } + + @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("ModifyAutonomousDatabaseManagementFeatureDetails("); + sb.append("super=").append(super.toString()); + sb.append("featureDetails=").append(String.valueOf(this.featureDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ModifyAutonomousDatabaseManagementFeatureDetails)) { + return false; + } + + ModifyAutonomousDatabaseManagementFeatureDetails other = + (ModifyAutonomousDatabaseManagementFeatureDetails) o; + return java.util.Objects.equals(this.featureDetails, other.featureDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.featureDetails == null ? 43 : this.featureDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/OptimizerStatisticsCollectionOperation.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/OptimizerStatisticsCollectionOperation.java index 31bf1efd77f..66cd8c1059a 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/OptimizerStatisticsCollectionOperation.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/OptimizerStatisticsCollectionOperation.java @@ -466,6 +466,7 @@ public enum Status implements com.oracle.bmc.http.internal.BmcEnum { Completed("COMPLETED"), Failed("FAILED"), TimedOut("TIMED_OUT"), + Unknown("UNKNOWN"), /** * This value is used if a service returns a value for this enum that is not recognized by diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/OptimizerStatisticsCollectionOperationSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/OptimizerStatisticsCollectionOperationSummary.java index dcccc740d2a..e732ba603b4 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/OptimizerStatisticsCollectionOperationSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/OptimizerStatisticsCollectionOperationSummary.java @@ -407,6 +407,7 @@ public enum Status implements com.oracle.bmc.http.internal.BmcEnum { Completed("COMPLETED"), Failed("FAILED"), TimedOut("TIMED_OUT"), + Unknown("UNKNOWN"), /** * This value is used if a service returns a value for this enum that is not recognized by diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DisableAutonomousDatabaseManagementFeatureRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DisableAutonomousDatabaseManagementFeatureRequest.java new file mode 100644 index 00000000000..e3801630cce --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DisableAutonomousDatabaseManagementFeatureRequest.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.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use + * DisableAutonomousDatabaseManagementFeatureRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class DisableAutonomousDatabaseManagementFeatureRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasemanagement.model + .DisableAutonomousDatabaseManagementFeatureDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Autonomous Database. + */ + private String autonomousDatabaseId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Autonomous Database. + */ + public String getAutonomousDatabaseId() { + return autonomousDatabaseId; + } + /** The details required to disable a Database Management feature for an Autonomous Database. */ + private com.oracle.bmc.databasemanagement.model + .DisableAutonomousDatabaseManagementFeatureDetails + disableAutonomousDatabaseManagementFeatureDetails; + + /** The details required to disable a Database Management feature for an Autonomous Database. */ + public com.oracle.bmc.databasemanagement.model.DisableAutonomousDatabaseManagementFeatureDetails + getDisableAutonomousDatabaseManagementFeatureDetails() { + return disableAutonomousDatabaseManagementFeatureDetails; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasemanagement.model.DisableAutonomousDatabaseManagementFeatureDetails + getBody$() { + return disableAutonomousDatabaseManagementFeatureDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DisableAutonomousDatabaseManagementFeatureRequest, + com.oracle.bmc.databasemanagement.model + .DisableAutonomousDatabaseManagementFeatureDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Autonomous Database. + */ + private String autonomousDatabaseId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Autonomous Database. + * + * @param autonomousDatabaseId the value to set + * @return this builder instance + */ + public Builder autonomousDatabaseId(String autonomousDatabaseId) { + this.autonomousDatabaseId = autonomousDatabaseId; + return this; + } + + /** + * The details required to disable a Database Management feature for an Autonomous Database. + */ + private com.oracle.bmc.databasemanagement.model + .DisableAutonomousDatabaseManagementFeatureDetails + disableAutonomousDatabaseManagementFeatureDetails = null; + + /** + * The details required to disable a Database Management feature for an Autonomous Database. + * + * @param disableAutonomousDatabaseManagementFeatureDetails the value to set + * @return this builder instance + */ + public Builder disableAutonomousDatabaseManagementFeatureDetails( + com.oracle.bmc.databasemanagement.model + .DisableAutonomousDatabaseManagementFeatureDetails + disableAutonomousDatabaseManagementFeatureDetails) { + this.disableAutonomousDatabaseManagementFeatureDetails = + disableAutonomousDatabaseManagementFeatureDetails; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DisableAutonomousDatabaseManagementFeatureRequest o) { + autonomousDatabaseId(o.getAutonomousDatabaseId()); + disableAutonomousDatabaseManagementFeatureDetails( + o.getDisableAutonomousDatabaseManagementFeatureDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DisableAutonomousDatabaseManagementFeatureRequest 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 DisableAutonomousDatabaseManagementFeatureRequest + */ + public DisableAutonomousDatabaseManagementFeatureRequest build() { + DisableAutonomousDatabaseManagementFeatureRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.databasemanagement.model + .DisableAutonomousDatabaseManagementFeatureDetails + body) { + disableAutonomousDatabaseManagementFeatureDetails(body); + return this; + } + + /** + * Build the instance of DisableAutonomousDatabaseManagementFeatureRequest 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 DisableAutonomousDatabaseManagementFeatureRequest + */ + public DisableAutonomousDatabaseManagementFeatureRequest buildWithoutInvocationCallback() { + DisableAutonomousDatabaseManagementFeatureRequest request = + new DisableAutonomousDatabaseManagementFeatureRequest(); + request.autonomousDatabaseId = autonomousDatabaseId; + request.disableAutonomousDatabaseManagementFeatureDetails = + disableAutonomousDatabaseManagementFeatureDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + return request; + // new DisableAutonomousDatabaseManagementFeatureRequest(autonomousDatabaseId, + // disableAutonomousDatabaseManagementFeatureDetails, opcRequestId, opcRetryToken, + // ifMatch); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .autonomousDatabaseId(autonomousDatabaseId) + .disableAutonomousDatabaseManagementFeatureDetails( + disableAutonomousDatabaseManagementFeatureDetails) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken) + .ifMatch(ifMatch); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",autonomousDatabaseId=").append(String.valueOf(this.autonomousDatabaseId)); + sb.append(",disableAutonomousDatabaseManagementFeatureDetails=") + .append(String.valueOf(this.disableAutonomousDatabaseManagementFeatureDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DisableAutonomousDatabaseManagementFeatureRequest)) { + return false; + } + + DisableAutonomousDatabaseManagementFeatureRequest other = + (DisableAutonomousDatabaseManagementFeatureRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.autonomousDatabaseId, other.autonomousDatabaseId) + && java.util.Objects.equals( + this.disableAutonomousDatabaseManagementFeatureDetails, + other.disableAutonomousDatabaseManagementFeatureDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.autonomousDatabaseId == null + ? 43 + : this.autonomousDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.disableAutonomousDatabaseManagementFeatureDetails == null + ? 43 + : this.disableAutonomousDatabaseManagementFeatureDetails + .hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnableAutonomousDatabaseManagementFeatureRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnableAutonomousDatabaseManagementFeatureRequest.java new file mode 100644 index 00000000000..0dc111589a2 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnableAutonomousDatabaseManagementFeatureRequest.java @@ -0,0 +1,389 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use + * EnableAutonomousDatabaseManagementFeatureRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class EnableAutonomousDatabaseManagementFeatureRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasemanagement.model + .EnableAutonomousDatabaseManagementFeatureDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Autonomous Database. + */ + private String autonomousDatabaseId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Autonomous Database. + */ + public String getAutonomousDatabaseId() { + return autonomousDatabaseId; + } + /** The details required to enable a Database Management feature for an Autonomous Database. */ + private com.oracle.bmc.databasemanagement.model.EnableAutonomousDatabaseManagementFeatureDetails + enableAutonomousDatabaseManagementFeatureDetails; + + /** The details required to enable a Database Management feature for an Autonomous Database. */ + public com.oracle.bmc.databasemanagement.model.EnableAutonomousDatabaseManagementFeatureDetails + getEnableAutonomousDatabaseManagementFeatureDetails() { + return enableAutonomousDatabaseManagementFeatureDetails; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasemanagement.model.EnableAutonomousDatabaseManagementFeatureDetails + getBody$() { + return enableAutonomousDatabaseManagementFeatureDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + EnableAutonomousDatabaseManagementFeatureRequest, + com.oracle.bmc.databasemanagement.model + .EnableAutonomousDatabaseManagementFeatureDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Autonomous Database. + */ + private String autonomousDatabaseId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Autonomous Database. + * + * @param autonomousDatabaseId the value to set + * @return this builder instance + */ + public Builder autonomousDatabaseId(String autonomousDatabaseId) { + this.autonomousDatabaseId = autonomousDatabaseId; + return this; + } + + /** + * The details required to enable a Database Management feature for an Autonomous Database. + */ + private com.oracle.bmc.databasemanagement.model + .EnableAutonomousDatabaseManagementFeatureDetails + enableAutonomousDatabaseManagementFeatureDetails = null; + + /** + * The details required to enable a Database Management feature for an Autonomous Database. + * + * @param enableAutonomousDatabaseManagementFeatureDetails the value to set + * @return this builder instance + */ + public Builder enableAutonomousDatabaseManagementFeatureDetails( + com.oracle.bmc.databasemanagement.model + .EnableAutonomousDatabaseManagementFeatureDetails + enableAutonomousDatabaseManagementFeatureDetails) { + this.enableAutonomousDatabaseManagementFeatureDetails = + enableAutonomousDatabaseManagementFeatureDetails; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(EnableAutonomousDatabaseManagementFeatureRequest o) { + autonomousDatabaseId(o.getAutonomousDatabaseId()); + enableAutonomousDatabaseManagementFeatureDetails( + o.getEnableAutonomousDatabaseManagementFeatureDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of EnableAutonomousDatabaseManagementFeatureRequest 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 EnableAutonomousDatabaseManagementFeatureRequest + */ + public EnableAutonomousDatabaseManagementFeatureRequest build() { + EnableAutonomousDatabaseManagementFeatureRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.databasemanagement.model + .EnableAutonomousDatabaseManagementFeatureDetails + body) { + enableAutonomousDatabaseManagementFeatureDetails(body); + return this; + } + + /** + * Build the instance of EnableAutonomousDatabaseManagementFeatureRequest 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 EnableAutonomousDatabaseManagementFeatureRequest + */ + public EnableAutonomousDatabaseManagementFeatureRequest buildWithoutInvocationCallback() { + EnableAutonomousDatabaseManagementFeatureRequest request = + new EnableAutonomousDatabaseManagementFeatureRequest(); + request.autonomousDatabaseId = autonomousDatabaseId; + request.enableAutonomousDatabaseManagementFeatureDetails = + enableAutonomousDatabaseManagementFeatureDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + return request; + // new EnableAutonomousDatabaseManagementFeatureRequest(autonomousDatabaseId, + // enableAutonomousDatabaseManagementFeatureDetails, opcRequestId, opcRetryToken, + // ifMatch); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .autonomousDatabaseId(autonomousDatabaseId) + .enableAutonomousDatabaseManagementFeatureDetails( + enableAutonomousDatabaseManagementFeatureDetails) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken) + .ifMatch(ifMatch); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",autonomousDatabaseId=").append(String.valueOf(this.autonomousDatabaseId)); + sb.append(",enableAutonomousDatabaseManagementFeatureDetails=") + .append(String.valueOf(this.enableAutonomousDatabaseManagementFeatureDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof EnableAutonomousDatabaseManagementFeatureRequest)) { + return false; + } + + EnableAutonomousDatabaseManagementFeatureRequest other = + (EnableAutonomousDatabaseManagementFeatureRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.autonomousDatabaseId, other.autonomousDatabaseId) + && java.util.Objects.equals( + this.enableAutonomousDatabaseManagementFeatureDetails, + other.enableAutonomousDatabaseManagementFeatureDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.autonomousDatabaseId == null + ? 43 + : this.autonomousDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.enableAutonomousDatabaseManagementFeatureDetails == null + ? 43 + : this.enableAutonomousDatabaseManagementFeatureDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListDbManagementPrivateEndpointsRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListDbManagementPrivateEndpointsRequest.java index fc0735ccebe..0595c0c2829 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListDbManagementPrivateEndpointsRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListDbManagementPrivateEndpointsRequest.java @@ -61,6 +61,21 @@ public String getVcnId() { public Boolean getIsCluster() { return isCluster; } + /** + * The option to filter Database Management private endpoints which are endbled with DNS proxy + * server. This should be used along with the vcnId query parameter. Only one of this parameter + * and IsClusterDbManagementPrivateEndpointQueryParam should be set to true at one time. + */ + private Boolean isDnsResolutionEnabled; + + /** + * The option to filter Database Management private endpoints which are endbled with DNS proxy + * server. This should be used along with the vcnId query parameter. Only one of this parameter + * and IsClusterDbManagementPrivateEndpointQueryParam should be set to true at one time. + */ + public Boolean getIsDnsResolutionEnabled() { + return isDnsResolutionEnabled; + } /** The lifecycle state of a resource. */ private com.oracle.bmc.databasemanagement.model.LifecycleStates lifecycleState; @@ -236,6 +251,28 @@ public Builder isCluster(Boolean isCluster) { return this; } + /** + * The option to filter Database Management private endpoints which are endbled with DNS + * proxy server. This should be used along with the vcnId query parameter. Only one of this + * parameter and IsClusterDbManagementPrivateEndpointQueryParam should be set to true at one + * time. + */ + private Boolean isDnsResolutionEnabled = null; + + /** + * The option to filter Database Management private endpoints which are endbled with DNS + * proxy server. This should be used along with the vcnId query parameter. Only one of this + * parameter and IsClusterDbManagementPrivateEndpointQueryParam should be set to true at one + * time. + * + * @param isDnsResolutionEnabled the value to set + * @return this builder instance + */ + public Builder isDnsResolutionEnabled(Boolean isDnsResolutionEnabled) { + this.isDnsResolutionEnabled = isDnsResolutionEnabled; + return this; + } + /** The lifecycle state of a resource. */ private com.oracle.bmc.databasemanagement.model.LifecycleStates lifecycleState = null; @@ -369,6 +406,7 @@ public Builder copy(ListDbManagementPrivateEndpointsRequest o) { name(o.getName()); vcnId(o.getVcnId()); isCluster(o.getIsCluster()); + isDnsResolutionEnabled(o.getIsDnsResolutionEnabled()); lifecycleState(o.getLifecycleState()); limit(o.getLimit()); page(o.getPage()); @@ -416,6 +454,7 @@ public ListDbManagementPrivateEndpointsRequest buildWithoutInvocationCallback() request.name = name; request.vcnId = vcnId; request.isCluster = isCluster; + request.isDnsResolutionEnabled = isDnsResolutionEnabled; request.lifecycleState = lifecycleState; request.limit = limit; request.page = page; @@ -424,7 +463,8 @@ public ListDbManagementPrivateEndpointsRequest buildWithoutInvocationCallback() request.opcRequestId = opcRequestId; return request; // new ListDbManagementPrivateEndpointsRequest(compartmentId, name, vcnId, isCluster, - // lifecycleState, limit, page, sortOrder, sortBy, opcRequestId); + // isDnsResolutionEnabled, lifecycleState, limit, page, sortOrder, sortBy, + // opcRequestId); } } @@ -439,6 +479,7 @@ public Builder toBuilder() { .name(name) .vcnId(vcnId) .isCluster(isCluster) + .isDnsResolutionEnabled(isDnsResolutionEnabled) .lifecycleState(lifecycleState) .limit(limit) .page(page) @@ -465,6 +506,7 @@ public String toString() { sb.append(",name=").append(String.valueOf(this.name)); sb.append(",vcnId=").append(String.valueOf(this.vcnId)); sb.append(",isCluster=").append(String.valueOf(this.isCluster)); + sb.append(",isDnsResolutionEnabled=").append(String.valueOf(this.isDnsResolutionEnabled)); sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(",limit=").append(String.valueOf(this.limit)); sb.append(",page=").append(String.valueOf(this.page)); @@ -490,6 +532,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.name, other.name) && java.util.Objects.equals(this.vcnId, other.vcnId) && java.util.Objects.equals(this.isCluster, other.isCluster) + && java.util.Objects.equals( + this.isDnsResolutionEnabled, other.isDnsResolutionEnabled) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.limit, other.limit) && java.util.Objects.equals(this.page, other.page) @@ -508,6 +552,11 @@ public int hashCode() { result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); result = (result * PRIME) + (this.vcnId == null ? 43 : this.vcnId.hashCode()); result = (result * PRIME) + (this.isCluster == null ? 43 : this.isCluster.hashCode()); + result = + (result * PRIME) + + (this.isDnsResolutionEnabled == null + ? 43 + : this.isDnsResolutionEnabled.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ModifyAutonomousDatabaseManagementFeatureRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ModifyAutonomousDatabaseManagementFeatureRequest.java new file mode 100644 index 00000000000..65ddb2425b7 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ModifyAutonomousDatabaseManagementFeatureRequest.java @@ -0,0 +1,389 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use + * ModifyAutonomousDatabaseManagementFeatureRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class ModifyAutonomousDatabaseManagementFeatureRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasemanagement.model + .ModifyAutonomousDatabaseManagementFeatureDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Autonomous Database. + */ + private String autonomousDatabaseId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Autonomous Database. + */ + public String getAutonomousDatabaseId() { + return autonomousDatabaseId; + } + /** The details required to modify a Database Management feature for an Autonomous Database. */ + private com.oracle.bmc.databasemanagement.model.ModifyAutonomousDatabaseManagementFeatureDetails + modifyAutonomousDatabaseManagementFeatureDetails; + + /** The details required to modify a Database Management feature for an Autonomous Database. */ + public com.oracle.bmc.databasemanagement.model.ModifyAutonomousDatabaseManagementFeatureDetails + getModifyAutonomousDatabaseManagementFeatureDetails() { + return modifyAutonomousDatabaseManagementFeatureDetails; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasemanagement.model.ModifyAutonomousDatabaseManagementFeatureDetails + getBody$() { + return modifyAutonomousDatabaseManagementFeatureDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ModifyAutonomousDatabaseManagementFeatureRequest, + com.oracle.bmc.databasemanagement.model + .ModifyAutonomousDatabaseManagementFeatureDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Autonomous Database. + */ + private String autonomousDatabaseId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Autonomous Database. + * + * @param autonomousDatabaseId the value to set + * @return this builder instance + */ + public Builder autonomousDatabaseId(String autonomousDatabaseId) { + this.autonomousDatabaseId = autonomousDatabaseId; + return this; + } + + /** + * The details required to modify a Database Management feature for an Autonomous Database. + */ + private com.oracle.bmc.databasemanagement.model + .ModifyAutonomousDatabaseManagementFeatureDetails + modifyAutonomousDatabaseManagementFeatureDetails = null; + + /** + * The details required to modify a Database Management feature for an Autonomous Database. + * + * @param modifyAutonomousDatabaseManagementFeatureDetails the value to set + * @return this builder instance + */ + public Builder modifyAutonomousDatabaseManagementFeatureDetails( + com.oracle.bmc.databasemanagement.model + .ModifyAutonomousDatabaseManagementFeatureDetails + modifyAutonomousDatabaseManagementFeatureDetails) { + this.modifyAutonomousDatabaseManagementFeatureDetails = + modifyAutonomousDatabaseManagementFeatureDetails; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ModifyAutonomousDatabaseManagementFeatureRequest o) { + autonomousDatabaseId(o.getAutonomousDatabaseId()); + modifyAutonomousDatabaseManagementFeatureDetails( + o.getModifyAutonomousDatabaseManagementFeatureDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ModifyAutonomousDatabaseManagementFeatureRequest 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 ModifyAutonomousDatabaseManagementFeatureRequest + */ + public ModifyAutonomousDatabaseManagementFeatureRequest build() { + ModifyAutonomousDatabaseManagementFeatureRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.databasemanagement.model + .ModifyAutonomousDatabaseManagementFeatureDetails + body) { + modifyAutonomousDatabaseManagementFeatureDetails(body); + return this; + } + + /** + * Build the instance of ModifyAutonomousDatabaseManagementFeatureRequest 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 ModifyAutonomousDatabaseManagementFeatureRequest + */ + public ModifyAutonomousDatabaseManagementFeatureRequest buildWithoutInvocationCallback() { + ModifyAutonomousDatabaseManagementFeatureRequest request = + new ModifyAutonomousDatabaseManagementFeatureRequest(); + request.autonomousDatabaseId = autonomousDatabaseId; + request.modifyAutonomousDatabaseManagementFeatureDetails = + modifyAutonomousDatabaseManagementFeatureDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + return request; + // new ModifyAutonomousDatabaseManagementFeatureRequest(autonomousDatabaseId, + // modifyAutonomousDatabaseManagementFeatureDetails, opcRequestId, opcRetryToken, + // ifMatch); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .autonomousDatabaseId(autonomousDatabaseId) + .modifyAutonomousDatabaseManagementFeatureDetails( + modifyAutonomousDatabaseManagementFeatureDetails) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken) + .ifMatch(ifMatch); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",autonomousDatabaseId=").append(String.valueOf(this.autonomousDatabaseId)); + sb.append(",modifyAutonomousDatabaseManagementFeatureDetails=") + .append(String.valueOf(this.modifyAutonomousDatabaseManagementFeatureDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ModifyAutonomousDatabaseManagementFeatureRequest)) { + return false; + } + + ModifyAutonomousDatabaseManagementFeatureRequest other = + (ModifyAutonomousDatabaseManagementFeatureRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.autonomousDatabaseId, other.autonomousDatabaseId) + && java.util.Objects.equals( + this.modifyAutonomousDatabaseManagementFeatureDetails, + other.modifyAutonomousDatabaseManagementFeatureDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.autonomousDatabaseId == null + ? 43 + : this.autonomousDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.modifyAutonomousDatabaseManagementFeatureDetails == null + ? 43 + : this.modifyAutonomousDatabaseManagementFeatureDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DisableAutonomousDatabaseManagementFeatureResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DisableAutonomousDatabaseManagementFeatureResponse.java new file mode 100644 index 00000000000..594f41cf310 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DisableAutonomousDatabaseManagementFeatureResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class DisableAutonomousDatabaseManagementFeatureResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * 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 DisableAutonomousDatabaseManagementFeatureResponse( + 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< + DisableAutonomousDatabaseManagementFeatureResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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(DisableAutonomousDatabaseManagementFeatureResponse 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 DisableAutonomousDatabaseManagementFeatureResponse build() { + return new DisableAutonomousDatabaseManagementFeatureResponse( + __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 DisableAutonomousDatabaseManagementFeatureResponse)) { + return false; + } + + DisableAutonomousDatabaseManagementFeatureResponse other = + (DisableAutonomousDatabaseManagementFeatureResponse) 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/EnableAutonomousDatabaseManagementFeatureResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/EnableAutonomousDatabaseManagementFeatureResponse.java new file mode 100644 index 00000000000..2bfe7274c57 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/EnableAutonomousDatabaseManagementFeatureResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class EnableAutonomousDatabaseManagementFeatureResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * 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 EnableAutonomousDatabaseManagementFeatureResponse( + 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< + EnableAutonomousDatabaseManagementFeatureResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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(EnableAutonomousDatabaseManagementFeatureResponse 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 EnableAutonomousDatabaseManagementFeatureResponse build() { + return new EnableAutonomousDatabaseManagementFeatureResponse( + __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 EnableAutonomousDatabaseManagementFeatureResponse)) { + return false; + } + + EnableAutonomousDatabaseManagementFeatureResponse other = + (EnableAutonomousDatabaseManagementFeatureResponse) 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/ModifyAutonomousDatabaseManagementFeatureResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/ModifyAutonomousDatabaseManagementFeatureResponse.java new file mode 100644 index 00000000000..81e0698277d --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/ModifyAutonomousDatabaseManagementFeatureResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class ModifyAutonomousDatabaseManagementFeatureResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * 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 ModifyAutonomousDatabaseManagementFeatureResponse( + 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< + ModifyAutonomousDatabaseManagementFeatureResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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(ModifyAutonomousDatabaseManagementFeatureResponse 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 ModifyAutonomousDatabaseManagementFeatureResponse build() { + return new ModifyAutonomousDatabaseManagementFeatureResponse( + __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 ModifyAutonomousDatabaseManagementFeatureResponse)) { + return false; + } + + ModifyAutonomousDatabaseManagementFeatureResponse other = + (ModifyAutonomousDatabaseManagementFeatureResponse) 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-databasemanagement/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-databasemanagement/reflect-config.json b/bmc-databasemanagement/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-databasemanagement/reflect-config.json index f43e712f7dc..f92195d1b8b 100644 --- a/bmc-databasemanagement/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-databasemanagement/reflect-config.json +++ b/bmc-databasemanagement/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-databasemanagement/reflect-config.json @@ -486,6 +486,41 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.AutonomousDatabaseDiagnosticsAndManagementFeatureDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.AutonomousDatabaseDiagnosticsAndManagementFeatureDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.AutonomousDatabaseFeatureDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.AutonomousDatabaseSqlWatchFeatureDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.AutonomousDatabaseSqlWatchFeatureDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.AwrDbCollection", @@ -2222,6 +2257,20 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DirectConnectorDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DirectConnectorDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.DisableAutomaticInitialPlanCaptureDetails", @@ -2250,6 +2299,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DisableAutonomousDatabaseManagementFeatureDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DisableAutonomousDatabaseManagementFeatureDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.DisableDatabaseManagementFeatureDetails", @@ -2623,6 +2686,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.EnableAutonomousDatabaseManagementFeatureDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.EnableAutonomousDatabaseManagementFeatureDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.EnableDatabaseManagementFeatureDetails", @@ -5226,6 +5303,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ModifyAutonomousDatabaseManagementFeatureDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ModifyAutonomousDatabaseManagementFeatureDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.ModifyDatabaseManagementFeatureDetails", diff --git a/bmc-databasemigration/pom.xml b/bmc-databasemigration/pom.xml index 1174b5b326f..562eb6c5740 100644 --- a/bmc-databasemigration/pom.xml +++ b/bmc-databasemigration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-databasemigration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-databasetools/pom.xml b/bmc-databasetools/pom.xml index ea6b692d15d..5800c83f98a 100644 --- a/bmc-databasetools/pom.xml +++ b/bmc-databasetools/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-databasetools @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-datacatalog/pom.xml b/bmc-datacatalog/pom.xml index 95767fb3cf8..e43002a53a0 100644 --- a/bmc-datacatalog/pom.xml +++ b/bmc-datacatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-datacatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-dataflow/pom.xml b/bmc-dataflow/pom.xml index 610d9aefed4..d4c74ffaf35 100644 --- a/bmc-dataflow/pom.xml +++ b/bmc-dataflow/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-dataflow @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-dataintegration/pom.xml b/bmc-dataintegration/pom.xml index dcc1a5a7449..ba6923b5f40 100644 --- a/bmc-dataintegration/pom.xml +++ b/bmc-dataintegration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-dataintegration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-datalabelingservice/pom.xml b/bmc-datalabelingservice/pom.xml index 5eb54da05e5..b5b53d3c08b 100644 --- a/bmc-datalabelingservice/pom.xml +++ b/bmc-datalabelingservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-datalabelingservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-datalabelingservicedataplane/pom.xml b/bmc-datalabelingservicedataplane/pom.xml index 70595f41bf7..4a81f7c0a31 100644 --- a/bmc-datalabelingservicedataplane/pom.xml +++ b/bmc-datalabelingservicedataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-datalabelingservicedataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-datasafe/pom.xml b/bmc-datasafe/pom.xml index 1b24dc5dac4..ce07145fff8 100644 --- a/bmc-datasafe/pom.xml +++ b/bmc-datasafe/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-datasafe @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-datascience/pom.xml b/bmc-datascience/pom.xml index 131f830b549..db384bb237d 100644 --- a/bmc-datascience/pom.xml +++ b/bmc-datascience/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-datascience @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-delegateaccesscontrol/pom.xml b/bmc-delegateaccesscontrol/pom.xml new file mode 100644 index 00000000000..d816009a16a --- /dev/null +++ b/bmc-delegateaccesscontrol/pom.xml @@ -0,0 +1,21 @@ + + + 4.0.0 + + com.oracle.oci.sdk + oci-java-sdk + 3.48.0 + ../pom.xml + + oci-java-sdk-delegateaccesscontrol + Oracle Cloud Infrastructure SDK - Delegate Access Control + This project contains the SDK used for Oracle Cloud Infrastructure Delegate Access Control + https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm + + + com.oracle.oci.sdk + oci-java-sdk-common + 3.48.0 + + + \ No newline at end of file diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/DelegateAccessControl.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/DelegateAccessControl.java new file mode 100644 index 00000000000..f012e02ca10 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/DelegateAccessControl.java @@ -0,0 +1,536 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol; + +import com.oracle.bmc.delegateaccesscontrol.requests.*; +import com.oracle.bmc.delegateaccesscontrol.responses.*; + +/** + * Oracle Delegate Access Control allows ExaCC and ExaCS customers to delegate management of their + * Exadata resources operators outside their tenancies. With Delegate Access Control, Support + * Providers can deliver managed services using comprehensive and robust tooling built on the OCI + * platform. Customers maintain control over who has access to the delegated resources in their + * tenancy and what actions can be taken. Enterprises managing resources across multiple tenants can + * use Delegate Access Control to streamline management tasks. Using logging service, customers can + * view a near real-time audit report of all actions performed by a Service Provider operator. + * + *

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: 20230801") +public interface DelegateAccessControl 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); + + /** + * Approves a Delegated Resource Access 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 + * ApproveDelegatedResourceAccessRequest API. + */ + ApproveDelegatedResourceAccessRequestResponse approveDelegatedResourceAccessRequest( + ApproveDelegatedResourceAccessRequestRequest request); + + /** + * Moves the Delegation Control resource into a different compartment. When provided, 'If-Match' + * is checked against 'ETag' values of the resource. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * ChangeDelegationControlCompartment API. + */ + ChangeDelegationControlCompartmentResponse changeDelegationControlCompartment( + ChangeDelegationControlCompartmentRequest request); + + /** + * Moves the Delegation Subscription resource into a different compartment. When provided, + * 'If-Match' is checked against 'ETag' values of the resource. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * ChangeDelegationSubscriptionCompartment API. + */ + ChangeDelegationSubscriptionCompartmentResponse changeDelegationSubscriptionCompartment( + ChangeDelegationSubscriptionCompartmentRequest request); + + /** + * Creates a Delegation Control. + * + * @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 + * CreateDelegationControl API. + */ + CreateDelegationControlResponse createDelegationControl(CreateDelegationControlRequest request); + + /** + * Creates Delegation Subscription in Delegation Control. + * + * @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 + * CreateDelegationSubscription API. + */ + CreateDelegationSubscriptionResponse createDelegationSubscription( + CreateDelegationSubscriptionRequest request); + + /** + * Deletes a Delegation Control. You cannot delete a Delegation Control if it is assigned to + * govern any target resource currently or in the future. In that case, first, delete all of the + * current and future assignments before deleting the Delegation Control. A Delegation Control + * that was previously assigned to a target resource is marked as DELETED following a successful + * deletion. However, it is not completely deleted from the system. This is to ensure auditing + * information for the accesses done under the Delegation Control is preserved for future needs. + * The system purges the deleted Delegation Control only when all of the audit data associated + * with the Delegation Control are also deleted. Therefore, you cannot reuse the name of the + * deleted Delegation Control until the system purges the Delegation Control. + * + * @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 + * DeleteDelegationControl API. + */ + DeleteDelegationControlResponse deleteDelegationControl(DeleteDelegationControlRequest request); + + /** + * eletes an Delegation Subscription in Delegation Control. + * + * @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 + * DeleteDelegationSubscription API. + */ + DeleteDelegationSubscriptionResponse deleteDelegationSubscription( + DeleteDelegationSubscriptionRequest request); + + /** + * Gets details of a Delegated Resource Access 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 + * GetDelegatedResourceAccessRequest API. + */ + GetDelegatedResourceAccessRequestResponse getDelegatedResourceAccessRequest( + GetDelegatedResourceAccessRequestRequest request); + + /** + * Gets the audit log report for the given Delegated Resource Access 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 + * GetDelegatedResourceAccessRequestAuditLogReport API. + */ + GetDelegatedResourceAccessRequestAuditLogReportResponse + getDelegatedResourceAccessRequestAuditLogReport( + GetDelegatedResourceAccessRequestAuditLogReportRequest request); + + /** + * Gets the Delegation Control associated with the specified Delegation Control ID. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

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

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

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

Example: Click here to see how to use + * GetServiceProviderAction API. + */ + GetServiceProviderActionResponse getServiceProviderAction( + GetServiceProviderActionRequest request); + + /** + * Returns a history of all status associated with the Delegated Resource Access RequestId. + * + * @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 + * ListDelegatedResourceAccessRequestHistories API. + */ + ListDelegatedResourceAccessRequestHistoriesResponse listDelegatedResourceAccessRequestHistories( + ListDelegatedResourceAccessRequestHistoriesRequest request); + + /** + * Lists all Delegated Resource Access Requests in the compartment. Note that only one of + * lifecycleState or requestStatus query parameter can be used. + * + * @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 + * ListDelegatedResourceAccessRequests API. + */ + ListDelegatedResourceAccessRequestsResponse listDelegatedResourceAccessRequests( + ListDelegatedResourceAccessRequestsRequest request); + + /** + * Returns a list of resources associated with the Delegation Control. + * + * @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 + * ListDelegationControlResources API. + */ + ListDelegationControlResourcesResponse listDelegationControlResources( + ListDelegationControlResourcesRequest request); + + /** + * Lists the Delegation Controls in the 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 + * ListDelegationControls API. + */ + ListDelegationControlsResponse listDelegationControls(ListDelegationControlsRequest request); + + /** + * Lists the Delegation Subscriptions in Delegation Control. + * + * @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 + * ListDelegationSubscriptions API. + */ + ListDelegationSubscriptionsResponse listDelegationSubscriptions( + ListDelegationSubscriptionsRequest request); + + /** + * Lists all the ServiceProviderActions available in the system. + * + * @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 + * ListServiceProviderActions API. + */ + ListServiceProviderActionsResponse listServiceProviderActions( + ListServiceProviderActionsRequest request); + + /** + * Lists the MoreInformation interaction between customer and support operators. + * + * @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 + * ListServiceProviderInteractions API. + */ + ListServiceProviderInteractionsResponse listServiceProviderInteractions( + ListServiceProviderInteractionsRequest request); + + /** + * Lists the Service Providers. + * + * @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 + * ListServiceProviders API. + */ + ListServiceProvidersResponse listServiceProviders(ListServiceProvidersRequest request); + + /** + * Rejects a Delegated Resource Access 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 + * RejectDelegatedResourceAccessRequest API. + */ + RejectDelegatedResourceAccessRequestResponse rejectDelegatedResourceAccessRequest( + RejectDelegatedResourceAccessRequestRequest request); + + /** + * Revokes an already approved Delegated Resource Access 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 + * RevokeDelegatedResourceAccessRequest API. + */ + RevokeDelegatedResourceAccessRequestResponse revokeDelegatedResourceAccessRequest( + RevokeDelegatedResourceAccessRequestRequest request); + + /** + * Posts query for additional information for the given Delegated Resource Access 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 + * ServiceProviderInteractionRequest API. + */ + ServiceProviderInteractionRequestResponse serviceProviderInteractionRequest( + ServiceProviderInteractionRequestRequest request); + + /** + * Updates the existing DelegationControl for a given Delegation Control ID. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

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

Example: Click here to see how to use + * UpdateDelegationSubscription API. + */ + UpdateDelegationSubscriptionResponse updateDelegationSubscription( + UpdateDelegationSubscriptionRequest request); + + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + DelegateAccessControlWaiters 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. + */ + DelegateAccessControlPaginators getPaginators(); +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/DelegateAccessControlAsync.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/DelegateAccessControlAsync.java new file mode 100644 index 00000000000..8ddd9ca502c --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/DelegateAccessControlAsync.java @@ -0,0 +1,523 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol; + +import com.oracle.bmc.delegateaccesscontrol.requests.*; +import com.oracle.bmc.delegateaccesscontrol.responses.*; + +/** + * Oracle Delegate Access Control allows ExaCC and ExaCS customers to delegate management of their + * Exadata resources operators outside their tenancies. With Delegate Access Control, Support + * Providers can deliver managed services using comprehensive and robust tooling built on the OCI + * platform. Customers maintain control over who has access to the delegated resources in their + * tenancy and what actions can be taken. Enterprises managing resources across multiple tenants can + * use Delegate Access Control to streamline management tasks. Using logging service, customers can + * view a near real-time audit report of all actions performed by a Service Provider operator. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public interface DelegateAccessControlAsync 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); + + /** + * Approves a Delegated Resource Access 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 + approveDelegatedResourceAccessRequest( + ApproveDelegatedResourceAccessRequestRequest request, + com.oracle.bmc.responses.AsyncHandler< + ApproveDelegatedResourceAccessRequestRequest, + ApproveDelegatedResourceAccessRequestResponse> + handler); + + /** + * Moves the Delegation Control resource into a different compartment. When provided, 'If-Match' + * is checked against 'ETag' values of the resource. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + changeDelegationControlCompartment( + ChangeDelegationControlCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeDelegationControlCompartmentRequest, + ChangeDelegationControlCompartmentResponse> + handler); + + /** + * Moves the Delegation Subscription resource into a different compartment. When provided, + * 'If-Match' is checked against 'ETag' values of the resource. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + changeDelegationSubscriptionCompartment( + ChangeDelegationSubscriptionCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeDelegationSubscriptionCompartmentRequest, + ChangeDelegationSubscriptionCompartmentResponse> + handler); + + /** + * Creates a Delegation Control. + * + * @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 createDelegationControl( + CreateDelegationControlRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateDelegationControlRequest, CreateDelegationControlResponse> + handler); + + /** + * Creates Delegation Subscription in Delegation Control. + * + * @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 createDelegationSubscription( + CreateDelegationSubscriptionRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateDelegationSubscriptionRequest, + CreateDelegationSubscriptionResponse> + handler); + + /** + * Deletes a Delegation Control. You cannot delete a Delegation Control if it is assigned to + * govern any target resource currently or in the future. In that case, first, delete all of the + * current and future assignments before deleting the Delegation Control. A Delegation Control + * that was previously assigned to a target resource is marked as DELETED following a successful + * deletion. However, it is not completely deleted from the system. This is to ensure auditing + * information for the accesses done under the Delegation Control is preserved for future needs. + * The system purges the deleted Delegation Control only when all of the audit data associated + * with the Delegation Control are also deleted. Therefore, you cannot reuse the name of the + * deleted Delegation Control until the system purges the Delegation Control. + * + * @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 deleteDelegationControl( + DeleteDelegationControlRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteDelegationControlRequest, DeleteDelegationControlResponse> + handler); + + /** + * eletes an Delegation Subscription in Delegation Control. + * + * @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 deleteDelegationSubscription( + DeleteDelegationSubscriptionRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteDelegationSubscriptionRequest, + DeleteDelegationSubscriptionResponse> + handler); + + /** + * Gets details of a Delegated Resource Access 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 + getDelegatedResourceAccessRequest( + GetDelegatedResourceAccessRequestRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetDelegatedResourceAccessRequestRequest, + GetDelegatedResourceAccessRequestResponse> + handler); + + /** + * Gets the audit log report for the given Delegated Resource Access 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 + getDelegatedResourceAccessRequestAuditLogReport( + GetDelegatedResourceAccessRequestAuditLogReportRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetDelegatedResourceAccessRequestAuditLogReportRequest, + GetDelegatedResourceAccessRequestAuditLogReportResponse> + handler); + + /** + * Gets the Delegation Control associated with the specified Delegation Control 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 getDelegationControl( + GetDelegationControlRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetDelegationControlRequest, GetDelegationControlResponse> + handler); + + /** + * Gets a DelegationSubscription by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getDelegationSubscription( + GetDelegationSubscriptionRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetDelegationSubscriptionRequest, GetDelegationSubscriptionResponse> + handler); + + /** + * Gets a ServiceProvider by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getServiceProvider( + GetServiceProviderRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetServiceProviderRequest, GetServiceProviderResponse> + handler); + + /** + * Gets the Service Provider Action associated with the specified Service Provider Action 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 getServiceProviderAction( + GetServiceProviderActionRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetServiceProviderActionRequest, GetServiceProviderActionResponse> + handler); + + /** + * Returns a history of all status associated with the Delegated Resource Access RequestId. + * + * @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 + listDelegatedResourceAccessRequestHistories( + ListDelegatedResourceAccessRequestHistoriesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListDelegatedResourceAccessRequestHistoriesRequest, + ListDelegatedResourceAccessRequestHistoriesResponse> + handler); + + /** + * Lists all Delegated Resource Access Requests in the compartment. Note that only one of + * lifecycleState or requestStatus query parameter can be used. + * + * @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 + listDelegatedResourceAccessRequests( + ListDelegatedResourceAccessRequestsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListDelegatedResourceAccessRequestsRequest, + ListDelegatedResourceAccessRequestsResponse> + handler); + + /** + * Returns a list of resources associated with the Delegation Control. + * + * @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 + listDelegationControlResources( + ListDelegationControlResourcesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListDelegationControlResourcesRequest, + ListDelegationControlResourcesResponse> + handler); + + /** + * Lists the Delegation Controls in the 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 listDelegationControls( + ListDelegationControlsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListDelegationControlsRequest, ListDelegationControlsResponse> + handler); + + /** + * Lists the Delegation Subscriptions in Delegation Control. + * + * @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 listDelegationSubscriptions( + ListDelegationSubscriptionsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListDelegationSubscriptionsRequest, ListDelegationSubscriptionsResponse> + handler); + + /** + * Lists all the ServiceProviderActions available in the system. + * + * @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 listServiceProviderActions( + ListServiceProviderActionsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListServiceProviderActionsRequest, ListServiceProviderActionsResponse> + handler); + + /** + * Lists the MoreInformation interaction between customer and support operators. + * + * @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 + listServiceProviderInteractions( + ListServiceProviderInteractionsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListServiceProviderInteractionsRequest, + ListServiceProviderInteractionsResponse> + handler); + + /** + * Lists the Service Providers. + * + * @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 listServiceProviders( + ListServiceProvidersRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListServiceProvidersRequest, ListServiceProvidersResponse> + handler); + + /** + * Rejects a Delegated Resource Access 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 + rejectDelegatedResourceAccessRequest( + RejectDelegatedResourceAccessRequestRequest request, + com.oracle.bmc.responses.AsyncHandler< + RejectDelegatedResourceAccessRequestRequest, + RejectDelegatedResourceAccessRequestResponse> + handler); + + /** + * Revokes an already approved Delegated Resource Access 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 + revokeDelegatedResourceAccessRequest( + RevokeDelegatedResourceAccessRequestRequest request, + com.oracle.bmc.responses.AsyncHandler< + RevokeDelegatedResourceAccessRequestRequest, + RevokeDelegatedResourceAccessRequestResponse> + handler); + + /** + * Posts query for additional information for the given Delegated Resource Access 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 + serviceProviderInteractionRequest( + ServiceProviderInteractionRequestRequest request, + com.oracle.bmc.responses.AsyncHandler< + ServiceProviderInteractionRequestRequest, + ServiceProviderInteractionRequestResponse> + handler); + + /** + * Updates the existing DelegationControl for a given Delegation Control 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 updateDelegationControl( + UpdateDelegationControlRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateDelegationControlRequest, UpdateDelegationControlResponse> + handler); + + /** + * Updates the existing DelegationSubscription for a given Delegation Subscription 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 updateDelegationSubscription( + UpdateDelegationSubscriptionRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateDelegationSubscriptionRequest, + UpdateDelegationSubscriptionResponse> + handler); +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/DelegateAccessControlAsyncClient.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/DelegateAccessControlAsyncClient.java new file mode 100644 index 00000000000..7bd33b0044f --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/DelegateAccessControlAsyncClient.java @@ -0,0 +1,1236 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.delegateaccesscontrol.requests.*; +import com.oracle.bmc.delegateaccesscontrol.responses.*; + +import java.util.Objects; + +/** + * Async client implementation for DelegateAccessControl 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: 20230801") +public class DelegateAccessControlAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient + implements DelegateAccessControlAsync { + /** Service instance for DelegateAccessControl. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName("DELEGATEACCESSCONTROL") + .serviceEndpointPrefix("") + .serviceEndpointTemplate( + "https://delegate-access-control.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DelegateAccessControlAsyncClient.class); + + DelegateAccessControlAsyncClient( + 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< + Builder, DelegateAccessControlAsyncClient> { + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "delegateaccesscontrol"; + 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 DelegateAccessControlAsyncClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new DelegateAccessControlAsyncClient(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 + approveDelegatedResourceAccessRequest( + ApproveDelegatedResourceAccessRequestRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ApproveDelegatedResourceAccessRequestRequest, + ApproveDelegatedResourceAccessRequestResponse> + handler) { + + Validate.notBlank( + request.getDelegatedResourceAccessRequestId(), + "delegatedResourceAccessRequestId must not be blank"); + Objects.requireNonNull( + request.getApproveDelegatedResourceAccessRequestDetails(), + "approveDelegatedResourceAccessRequestDetails is required"); + + return clientCall(request, ApproveDelegatedResourceAccessRequestResponse::builder) + .logger(LOG, "approveDelegatedResourceAccessRequest") + .serviceDetails( + "DelegateAccessControl", "ApproveDelegatedResourceAccessRequest", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ApproveDelegatedResourceAccessRequestRequest::builder) + .basePath("/20230801") + .appendPathParam("delegatedResourceAccessRequests") + .appendPathParam(request.getDelegatedResourceAccessRequestId()) + .appendPathParam("actions") + .appendPathParam("approve") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ApproveDelegatedResourceAccessRequestResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ApproveDelegatedResourceAccessRequestResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + changeDelegationControlCompartment( + ChangeDelegationControlCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeDelegationControlCompartmentRequest, + ChangeDelegationControlCompartmentResponse> + handler) { + + Validate.notBlank( + request.getDelegationControlId(), "delegationControlId must not be blank"); + Objects.requireNonNull( + request.getChangeDelegationControlCompartmentDetails(), + "changeDelegationControlCompartmentDetails is required"); + + return clientCall(request, ChangeDelegationControlCompartmentResponse::builder) + .logger(LOG, "changeDelegationControlCompartment") + .serviceDetails("DelegateAccessControl", "ChangeDelegationControlCompartment", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeDelegationControlCompartmentRequest::builder) + .basePath("/20230801") + .appendPathParam("delegationControls") + .appendPathParam(request.getDelegationControlId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ChangeDelegationControlCompartmentResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + ChangeDelegationControlCompartmentResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + changeDelegationSubscriptionCompartment( + ChangeDelegationSubscriptionCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeDelegationSubscriptionCompartmentRequest, + ChangeDelegationSubscriptionCompartmentResponse> + handler) { + + Validate.notBlank( + request.getDelegationSubscriptionId(), + "delegationSubscriptionId must not be blank"); + Objects.requireNonNull( + request.getChangeDelegationSubscriptionCompartmentDetails(), + "changeDelegationSubscriptionCompartmentDetails is required"); + + return clientCall(request, ChangeDelegationSubscriptionCompartmentResponse::builder) + .logger(LOG, "changeDelegationSubscriptionCompartment") + .serviceDetails( + "DelegateAccessControl", "ChangeDelegationSubscriptionCompartment", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeDelegationSubscriptionCompartmentRequest::builder) + .basePath("/20230801") + .appendPathParam("delegationSubscriptions") + .appendPathParam(request.getDelegationSubscriptionId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ChangeDelegationSubscriptionCompartmentResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + ChangeDelegationSubscriptionCompartmentResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future createDelegationControl( + CreateDelegationControlRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateDelegationControlRequest, CreateDelegationControlResponse> + handler) { + Objects.requireNonNull( + request.getCreateDelegationControlDetails(), + "createDelegationControlDetails is required"); + + return clientCall(request, CreateDelegationControlResponse::builder) + .logger(LOG, "createDelegationControl") + .serviceDetails("DelegateAccessControl", "CreateDelegationControl", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateDelegationControlRequest::builder) + .basePath("/20230801") + .appendPathParam("delegationControls") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.delegateaccesscontrol.model.DelegationControl.class, + CreateDelegationControlResponse.Builder::delegationControl) + .handleResponseHeaderString( + "opc-work-request-id", + CreateDelegationControlResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateDelegationControlResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "location", CreateDelegationControlResponse.Builder::location) + .handleResponseHeaderString( + "content-location", + CreateDelegationControlResponse.Builder::contentLocation) + .handleResponseHeaderString("etag", CreateDelegationControlResponse.Builder::etag) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + createDelegationSubscription( + CreateDelegationSubscriptionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateDelegationSubscriptionRequest, + CreateDelegationSubscriptionResponse> + handler) { + Objects.requireNonNull( + request.getCreateDelegationSubscriptionDetails(), + "createDelegationSubscriptionDetails is required"); + + return clientCall(request, CreateDelegationSubscriptionResponse::builder) + .logger(LOG, "createDelegationSubscription") + .serviceDetails("DelegateAccessControl", "CreateDelegationSubscription", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateDelegationSubscriptionRequest::builder) + .basePath("/20230801") + .appendPathParam("delegationSubscriptions") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscription.class, + CreateDelegationSubscriptionResponse.Builder::delegationSubscription) + .handleResponseHeaderString( + "opc-work-request-id", + CreateDelegationSubscriptionResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + CreateDelegationSubscriptionResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "location", CreateDelegationSubscriptionResponse.Builder::location) + .handleResponseHeaderString( + "content-location", + CreateDelegationSubscriptionResponse.Builder::contentLocation) + .handleResponseHeaderString( + "etag", CreateDelegationSubscriptionResponse.Builder::etag) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future deleteDelegationControl( + DeleteDelegationControlRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteDelegationControlRequest, DeleteDelegationControlResponse> + handler) { + + Validate.notBlank( + request.getDelegationControlId(), "delegationControlId must not be blank"); + + return clientCall(request, DeleteDelegationControlResponse::builder) + .logger(LOG, "deleteDelegationControl") + .serviceDetails("DelegateAccessControl", "DeleteDelegationControl", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteDelegationControlRequest::builder) + .basePath("/20230801") + .appendPathParam("delegationControls") + .appendPathParam(request.getDelegationControlId()) + .appendQueryParam("description", request.getDescription()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", DeleteDelegationControlResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteDelegationControlResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + deleteDelegationSubscription( + DeleteDelegationSubscriptionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteDelegationSubscriptionRequest, + DeleteDelegationSubscriptionResponse> + handler) { + + Validate.notBlank( + request.getDelegationSubscriptionId(), + "delegationSubscriptionId must not be blank"); + + return clientCall(request, DeleteDelegationSubscriptionResponse::builder) + .logger(LOG, "deleteDelegationSubscription") + .serviceDetails("DelegateAccessControl", "DeleteDelegationSubscription", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteDelegationSubscriptionRequest::builder) + .basePath("/20230801") + .appendPathParam("delegationSubscriptions") + .appendPathParam(request.getDelegationSubscriptionId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteDelegationSubscriptionResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + DeleteDelegationSubscriptionResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + getDelegatedResourceAccessRequest( + GetDelegatedResourceAccessRequestRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDelegatedResourceAccessRequestRequest, + GetDelegatedResourceAccessRequestResponse> + handler) { + + Validate.notBlank( + request.getDelegatedResourceAccessRequestId(), + "delegatedResourceAccessRequestId must not be blank"); + + return clientCall(request, GetDelegatedResourceAccessRequestResponse::builder) + .logger(LOG, "getDelegatedResourceAccessRequest") + .serviceDetails("DelegateAccessControl", "GetDelegatedResourceAccessRequest", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDelegatedResourceAccessRequestRequest::builder) + .basePath("/20230801") + .appendPathParam("delegatedResourceAccessRequests") + .appendPathParam(request.getDelegatedResourceAccessRequestId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequest + .class, + GetDelegatedResourceAccessRequestResponse.Builder + ::delegatedResourceAccessRequest) + .handleResponseHeaderString( + "etag", GetDelegatedResourceAccessRequestResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + GetDelegatedResourceAccessRequestResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + getDelegatedResourceAccessRequestAuditLogReport( + GetDelegatedResourceAccessRequestAuditLogReportRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDelegatedResourceAccessRequestAuditLogReportRequest, + GetDelegatedResourceAccessRequestAuditLogReportResponse> + handler) { + + Validate.notBlank( + request.getDelegatedResourceAccessRequestId(), + "delegatedResourceAccessRequestId must not be blank"); + + return clientCall(request, GetDelegatedResourceAccessRequestAuditLogReportResponse::builder) + .logger(LOG, "getDelegatedResourceAccessRequestAuditLogReport") + .serviceDetails( + "DelegateAccessControl", + "GetDelegatedResourceAccessRequestAuditLogReport", + "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDelegatedResourceAccessRequestAuditLogReportRequest::builder) + .basePath("/20230801") + .appendPathParam("delegatedResourceAccessRequests") + .appendPathParam(request.getDelegatedResourceAccessRequestId()) + .appendPathParam("delegatedResourceAccessRequestAuditLogReport") + .appendQueryParam("isProcessTreeEnabled", request.getIsProcessTreeEnabled()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.delegateaccesscontrol.model + .DelegatedResourceAccessRequestAuditLogReport.class, + GetDelegatedResourceAccessRequestAuditLogReportResponse.Builder + ::delegatedResourceAccessRequestAuditLogReport) + .handleResponseHeaderString( + "opc-request-id", + GetDelegatedResourceAccessRequestAuditLogReportResponse.Builder + ::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getDelegationControl( + GetDelegationControlRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDelegationControlRequest, GetDelegationControlResponse> + handler) { + + Validate.notBlank( + request.getDelegationControlId(), "delegationControlId must not be blank"); + + return clientCall(request, GetDelegationControlResponse::builder) + .logger(LOG, "getDelegationControl") + .serviceDetails("DelegateAccessControl", "GetDelegationControl", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDelegationControlRequest::builder) + .basePath("/20230801") + .appendPathParam("delegationControls") + .appendPathParam(request.getDelegationControlId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.delegateaccesscontrol.model.DelegationControl.class, + GetDelegationControlResponse.Builder::delegationControl) + .handleResponseHeaderString("etag", GetDelegationControlResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetDelegationControlResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getDelegationSubscription( + GetDelegationSubscriptionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDelegationSubscriptionRequest, GetDelegationSubscriptionResponse> + handler) { + + Validate.notBlank( + request.getDelegationSubscriptionId(), + "delegationSubscriptionId must not be blank"); + + return clientCall(request, GetDelegationSubscriptionResponse::builder) + .logger(LOG, "getDelegationSubscription") + .serviceDetails("DelegateAccessControl", "GetDelegationSubscription", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDelegationSubscriptionRequest::builder) + .basePath("/20230801") + .appendPathParam("delegationSubscriptions") + .appendPathParam(request.getDelegationSubscriptionId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscription.class, + GetDelegationSubscriptionResponse.Builder::delegationSubscription) + .handleResponseHeaderString("etag", GetDelegationSubscriptionResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetDelegationSubscriptionResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getServiceProvider( + GetServiceProviderRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetServiceProviderRequest, GetServiceProviderResponse> + handler) { + + Validate.notBlank(request.getServiceProviderId(), "serviceProviderId must not be blank"); + + return clientCall(request, GetServiceProviderResponse::builder) + .logger(LOG, "getServiceProvider") + .serviceDetails("DelegateAccessControl", "GetServiceProvider", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetServiceProviderRequest::builder) + .basePath("/20230801") + .appendPathParam("serviceProviders") + .appendPathParam(request.getServiceProviderId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.delegateaccesscontrol.model.ServiceProvider.class, + GetServiceProviderResponse.Builder::serviceProvider) + .handleResponseHeaderString("etag", GetServiceProviderResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetServiceProviderResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getServiceProviderAction( + GetServiceProviderActionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetServiceProviderActionRequest, GetServiceProviderActionResponse> + handler) { + + Validate.notBlank( + request.getServiceProviderActionId(), "serviceProviderActionId must not be blank"); + + return clientCall(request, GetServiceProviderActionResponse::builder) + .logger(LOG, "getServiceProviderAction") + .serviceDetails("DelegateAccessControl", "GetServiceProviderAction", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetServiceProviderActionRequest::builder) + .basePath("/20230801") + .appendPathParam("serviceProviderActions") + .appendPathParam(request.getServiceProviderActionId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderAction.class, + GetServiceProviderActionResponse.Builder::serviceProviderAction) + .handleResponseHeaderString("etag", GetServiceProviderActionResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetServiceProviderActionResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listDelegatedResourceAccessRequestHistories( + ListDelegatedResourceAccessRequestHistoriesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDelegatedResourceAccessRequestHistoriesRequest, + ListDelegatedResourceAccessRequestHistoriesResponse> + handler) { + + Validate.notBlank( + request.getDelegatedResourceAccessRequestId(), + "delegatedResourceAccessRequestId must not be blank"); + + return clientCall(request, ListDelegatedResourceAccessRequestHistoriesResponse::builder) + .logger(LOG, "listDelegatedResourceAccessRequestHistories") + .serviceDetails( + "DelegateAccessControl", "ListDelegatedResourceAccessRequestHistories", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDelegatedResourceAccessRequestHistoriesRequest::builder) + .basePath("/20230801") + .appendPathParam("delegatedResourceAccessRequests") + .appendPathParam(request.getDelegatedResourceAccessRequestId()) + .appendPathParam("history") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.delegateaccesscontrol.model + .DelegatedResourceAccessRequestHistoryCollection.class, + ListDelegatedResourceAccessRequestHistoriesResponse.Builder + ::delegatedResourceAccessRequestHistoryCollection) + .handleResponseHeaderString( + "opc-request-id", + ListDelegatedResourceAccessRequestHistoriesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListDelegatedResourceAccessRequestHistoriesResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listDelegatedResourceAccessRequests( + ListDelegatedResourceAccessRequestsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDelegatedResourceAccessRequestsRequest, + ListDelegatedResourceAccessRequestsResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListDelegatedResourceAccessRequestsResponse::builder) + .logger(LOG, "listDelegatedResourceAccessRequests") + .serviceDetails("DelegateAccessControl", "ListDelegatedResourceAccessRequests", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDelegatedResourceAccessRequestsRequest::builder) + .basePath("/20230801") + .appendPathParam("delegatedResourceAccessRequests") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("delegationControlId", request.getDelegationControlId()) + .appendQueryParam("resourceId", request.getResourceId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendEnumQueryParam("requestStatus", request.getRequestStatus()) + .appendQueryParam("timeStart", request.getTimeStart()) + .appendQueryParam("timeEnd", request.getTimeEnd()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.delegateaccesscontrol.model + .DelegatedResourceAccessRequestSummaryCollection.class, + ListDelegatedResourceAccessRequestsResponse.Builder + ::delegatedResourceAccessRequestSummaryCollection) + .handleResponseHeaderString( + "opc-request-id", + ListDelegatedResourceAccessRequestsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListDelegatedResourceAccessRequestsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listDelegationControlResources( + ListDelegationControlResourcesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDelegationControlResourcesRequest, + ListDelegationControlResourcesResponse> + handler) { + + Validate.notBlank( + request.getDelegationControlId(), "delegationControlId must not be blank"); + + return clientCall(request, ListDelegationControlResourcesResponse::builder) + .logger(LOG, "listDelegationControlResources") + .serviceDetails("DelegateAccessControl", "ListDelegationControlResources", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDelegationControlResourcesRequest::builder) + .basePath("/20230801") + .appendPathParam("delegationControls") + .appendPathParam(request.getDelegationControlId()) + .appendPathParam("resources") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.delegateaccesscontrol.model + .DelegationControlResourceCollection.class, + ListDelegationControlResourcesResponse.Builder + ::delegationControlResourceCollection) + .handleResponseHeaderString( + "opc-request-id", + ListDelegationControlResourcesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListDelegationControlResourcesResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listDelegationControls( + ListDelegationControlsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDelegationControlsRequest, ListDelegationControlsResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListDelegationControlsResponse::builder) + .logger(LOG, "listDelegationControls") + .serviceDetails("DelegateAccessControl", "ListDelegationControls", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDelegationControlsRequest::builder) + .basePath("/20230801") + .appendPathParam("delegationControls") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendEnumQueryParam("resourceType", request.getResourceType()) + .appendQueryParam("resourceId", request.getResourceId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.delegateaccesscontrol.model + .DelegationControlSummaryCollection.class, + ListDelegationControlsResponse.Builder::delegationControlSummaryCollection) + .handleResponseHeaderString( + "opc-request-id", ListDelegationControlsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListDelegationControlsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listDelegationSubscriptions( + ListDelegationSubscriptionsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDelegationSubscriptionsRequest, + ListDelegationSubscriptionsResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListDelegationSubscriptionsResponse::builder) + .logger(LOG, "listDelegationSubscriptions") + .serviceDetails("DelegateAccessControl", "ListDelegationSubscriptions", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDelegationSubscriptionsRequest::builder) + .basePath("/20230801") + .appendPathParam("delegationSubscriptions") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.delegateaccesscontrol.model + .DelegationSubscriptionSummaryCollection.class, + ListDelegationSubscriptionsResponse.Builder + ::delegationSubscriptionSummaryCollection) + .handleResponseHeaderString( + "opc-request-id", ListDelegationSubscriptionsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListDelegationSubscriptionsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listServiceProviderActions( + ListServiceProviderActionsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListServiceProviderActionsRequest, + ListServiceProviderActionsResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListServiceProviderActionsResponse::builder) + .logger(LOG, "listServiceProviderActions") + .serviceDetails("DelegateAccessControl", "ListServiceProviderActions", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListServiceProviderActionsRequest::builder) + .basePath("/20230801") + .appendPathParam("serviceProviderActions") + .appendQueryParam("name", request.getName()) + .appendEnumQueryParam("resourceType", request.getResourceType()) + .appendListQueryParam( + "serviceProviderServiceType", + request.getServiceProviderServiceType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.delegateaccesscontrol.model + .ServiceProviderActionSummaryCollection.class, + ListServiceProviderActionsResponse.Builder + ::serviceProviderActionSummaryCollection) + .handleResponseHeaderString( + "opc-request-id", ListServiceProviderActionsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListServiceProviderActionsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listServiceProviderInteractions( + ListServiceProviderInteractionsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListServiceProviderInteractionsRequest, + ListServiceProviderInteractionsResponse> + handler) { + + Validate.notBlank( + request.getDelegatedResourceAccessRequestId(), + "delegatedResourceAccessRequestId must not be blank"); + + return clientCall(request, ListServiceProviderInteractionsResponse::builder) + .logger(LOG, "listServiceProviderInteractions") + .serviceDetails("DelegateAccessControl", "ListServiceProviderInteractions", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListServiceProviderInteractionsRequest::builder) + .basePath("/20230801") + .appendPathParam("delegatedResourceAccessRequests") + .appendPathParam(request.getDelegatedResourceAccessRequestId()) + .appendPathParam("serviceProviderInteractions") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.delegateaccesscontrol.model + .ServiceProviderInteractionCollection.class, + ListServiceProviderInteractionsResponse.Builder + ::serviceProviderInteractionCollection) + .handleResponseHeaderString( + "opc-request-id", + ListServiceProviderInteractionsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListServiceProviderInteractionsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listServiceProviders( + ListServiceProvidersRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListServiceProvidersRequest, ListServiceProvidersResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListServiceProvidersResponse::builder) + .logger(LOG, "listServiceProviders") + .serviceDetails("DelegateAccessControl", "ListServiceProviders", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListServiceProvidersRequest::builder) + .basePath("/20230801") + .appendPathParam("serviceProviders") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("name", request.getName()) + .appendEnumQueryParam("supportedResourceType", request.getSupportedResourceType()) + .appendEnumQueryParam("serviceProviderType", request.getServiceProviderType()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderSummaryCollection + .class, + ListServiceProvidersResponse.Builder::serviceProviderSummaryCollection) + .handleResponseHeaderString( + "opc-request-id", ListServiceProvidersResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListServiceProvidersResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + rejectDelegatedResourceAccessRequest( + RejectDelegatedResourceAccessRequestRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RejectDelegatedResourceAccessRequestRequest, + RejectDelegatedResourceAccessRequestResponse> + handler) { + + Validate.notBlank( + request.getDelegatedResourceAccessRequestId(), + "delegatedResourceAccessRequestId must not be blank"); + Objects.requireNonNull( + request.getRejectDelegatedResourceAccessRequestDetails(), + "rejectDelegatedResourceAccessRequestDetails is required"); + + return clientCall(request, RejectDelegatedResourceAccessRequestResponse::builder) + .logger(LOG, "rejectDelegatedResourceAccessRequest") + .serviceDetails("DelegateAccessControl", "RejectDelegatedResourceAccessRequest", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RejectDelegatedResourceAccessRequestRequest::builder) + .basePath("/20230801") + .appendPathParam("delegatedResourceAccessRequests") + .appendPathParam(request.getDelegatedResourceAccessRequestId()) + .appendPathParam("actions") + .appendPathParam("reject") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + RejectDelegatedResourceAccessRequestResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + RejectDelegatedResourceAccessRequestResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + revokeDelegatedResourceAccessRequest( + RevokeDelegatedResourceAccessRequestRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RevokeDelegatedResourceAccessRequestRequest, + RevokeDelegatedResourceAccessRequestResponse> + handler) { + + Validate.notBlank( + request.getDelegatedResourceAccessRequestId(), + "delegatedResourceAccessRequestId must not be blank"); + Objects.requireNonNull( + request.getRevokeDelegatedResourceAccessRequestDetails(), + "revokeDelegatedResourceAccessRequestDetails is required"); + + return clientCall(request, RevokeDelegatedResourceAccessRequestResponse::builder) + .logger(LOG, "revokeDelegatedResourceAccessRequest") + .serviceDetails("DelegateAccessControl", "RevokeDelegatedResourceAccessRequest", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RevokeDelegatedResourceAccessRequestRequest::builder) + .basePath("/20230801") + .appendPathParam("delegatedResourceAccessRequests") + .appendPathParam(request.getDelegatedResourceAccessRequestId()) + .appendPathParam("actions") + .appendPathParam("revoke") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + RevokeDelegatedResourceAccessRequestResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + RevokeDelegatedResourceAccessRequestResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + serviceProviderInteractionRequest( + ServiceProviderInteractionRequestRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ServiceProviderInteractionRequestRequest, + ServiceProviderInteractionRequestResponse> + handler) { + + Validate.notBlank( + request.getDelegatedResourceAccessRequestId(), + "delegatedResourceAccessRequestId must not be blank"); + Objects.requireNonNull( + request.getServiceProviderInteractionRequestDetails(), + "serviceProviderInteractionRequestDetails is required"); + + return clientCall(request, ServiceProviderInteractionRequestResponse::builder) + .logger(LOG, "serviceProviderInteractionRequest") + .serviceDetails("DelegateAccessControl", "ServiceProviderInteractionRequest", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ServiceProviderInteractionRequestRequest::builder) + .basePath("/20230801") + .appendPathParam("delegatedResourceAccessRequests") + .appendPathParam(request.getDelegatedResourceAccessRequestId()) + .appendPathParam("actions") + .appendPathParam("serviceProviderInteractionRequest") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ServiceProviderInteractionRequestResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future updateDelegationControl( + UpdateDelegationControlRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateDelegationControlRequest, UpdateDelegationControlResponse> + handler) { + + Validate.notBlank( + request.getDelegationControlId(), "delegationControlId must not be blank"); + Objects.requireNonNull( + request.getUpdateDelegationControlDetails(), + "updateDelegationControlDetails is required"); + + return clientCall(request, UpdateDelegationControlResponse::builder) + .logger(LOG, "updateDelegationControl") + .serviceDetails("DelegateAccessControl", "UpdateDelegationControl", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateDelegationControlRequest::builder) + .basePath("/20230801") + .appendPathParam("delegationControls") + .appendPathParam(request.getDelegationControlId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.delegateaccesscontrol.model.DelegationControl.class, + UpdateDelegationControlResponse.Builder::delegationControl) + .handleResponseHeaderString( + "opc-request-id", UpdateDelegationControlResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + UpdateDelegationControlResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "content-location", + UpdateDelegationControlResponse.Builder::contentLocation) + .handleResponseHeaderString("etag", UpdateDelegationControlResponse.Builder::etag) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + updateDelegationSubscription( + UpdateDelegationSubscriptionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateDelegationSubscriptionRequest, + UpdateDelegationSubscriptionResponse> + handler) { + + Validate.notBlank( + request.getDelegationSubscriptionId(), + "delegationSubscriptionId must not be blank"); + Objects.requireNonNull( + request.getUpdateDelegationSubscriptionDetails(), + "updateDelegationSubscriptionDetails is required"); + + return clientCall(request, UpdateDelegationSubscriptionResponse::builder) + .logger(LOG, "updateDelegationSubscription") + .serviceDetails("DelegateAccessControl", "UpdateDelegationSubscription", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateDelegationSubscriptionRequest::builder) + .basePath("/20230801") + .appendPathParam("delegationSubscriptions") + .appendPathParam(request.getDelegationSubscriptionId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscription.class, + UpdateDelegationSubscriptionResponse.Builder::delegationSubscription) + .handleResponseHeaderString( + "opc-request-id", + UpdateDelegationSubscriptionResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + UpdateDelegationSubscriptionResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "content-location", + UpdateDelegationSubscriptionResponse.Builder::contentLocation) + .handleResponseHeaderString( + "etag", UpdateDelegationSubscriptionResponse.Builder::etag) + .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 DelegateAccessControlAsyncClient( + 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 DelegateAccessControlAsyncClient( + 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 DelegateAccessControlAsyncClient( + 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 DelegateAccessControlAsyncClient( + 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 DelegateAccessControlAsyncClient( + 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 DelegateAccessControlAsyncClient( + 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 DelegateAccessControlAsyncClient( + 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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/DelegateAccessControlClient.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/DelegateAccessControlClient.java new file mode 100644 index 00000000000..5b28c774550 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/DelegateAccessControlClient.java @@ -0,0 +1,1233 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.delegateaccesscontrol.requests.*; +import com.oracle.bmc.delegateaccesscontrol.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: 20230801") +public class DelegateAccessControlClient extends com.oracle.bmc.http.internal.BaseSyncClient + implements DelegateAccessControl { + /** Service instance for DelegateAccessControl. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName("DELEGATEACCESSCONTROL") + .serviceEndpointPrefix("") + .serviceEndpointTemplate( + "https://delegate-access-control.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DelegateAccessControlClient.class); + + private final DelegateAccessControlWaiters waiters; + + private final DelegateAccessControlPaginators paginators; + + DelegateAccessControlClient( + 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("DelegateAccessControl-waiters-%d") + .build()); + threadPoolExecutor.allowCoreThreadTimeOut(true); + + executorService = threadPoolExecutor; + } + this.waiters = new DelegateAccessControlWaiters(executorService, this); + + this.paginators = new DelegateAccessControlPaginators(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< + Builder, DelegateAccessControlClient> { + private java.util.concurrent.ExecutorService executorService; + + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "delegateaccesscontrol"; + 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 DelegateAccessControlClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new DelegateAccessControlClient( + 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 ApproveDelegatedResourceAccessRequestResponse approveDelegatedResourceAccessRequest( + ApproveDelegatedResourceAccessRequestRequest request) { + + Validate.notBlank( + request.getDelegatedResourceAccessRequestId(), + "delegatedResourceAccessRequestId must not be blank"); + Objects.requireNonNull( + request.getApproveDelegatedResourceAccessRequestDetails(), + "approveDelegatedResourceAccessRequestDetails is required"); + + return clientCall(request, ApproveDelegatedResourceAccessRequestResponse::builder) + .logger(LOG, "approveDelegatedResourceAccessRequest") + .serviceDetails( + "DelegateAccessControl", "ApproveDelegatedResourceAccessRequest", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ApproveDelegatedResourceAccessRequestRequest::builder) + .basePath("/20230801") + .appendPathParam("delegatedResourceAccessRequests") + .appendPathParam(request.getDelegatedResourceAccessRequestId()) + .appendPathParam("actions") + .appendPathParam("approve") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ApproveDelegatedResourceAccessRequestResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ApproveDelegatedResourceAccessRequestResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ChangeDelegationControlCompartmentResponse changeDelegationControlCompartment( + ChangeDelegationControlCompartmentRequest request) { + + Validate.notBlank( + request.getDelegationControlId(), "delegationControlId must not be blank"); + Objects.requireNonNull( + request.getChangeDelegationControlCompartmentDetails(), + "changeDelegationControlCompartmentDetails is required"); + + return clientCall(request, ChangeDelegationControlCompartmentResponse::builder) + .logger(LOG, "changeDelegationControlCompartment") + .serviceDetails("DelegateAccessControl", "ChangeDelegationControlCompartment", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeDelegationControlCompartmentRequest::builder) + .basePath("/20230801") + .appendPathParam("delegationControls") + .appendPathParam(request.getDelegationControlId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ChangeDelegationControlCompartmentResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + ChangeDelegationControlCompartmentResponse.Builder::opcWorkRequestId) + .callSync(); + } + + @Override + public ChangeDelegationSubscriptionCompartmentResponse changeDelegationSubscriptionCompartment( + ChangeDelegationSubscriptionCompartmentRequest request) { + + Validate.notBlank( + request.getDelegationSubscriptionId(), + "delegationSubscriptionId must not be blank"); + Objects.requireNonNull( + request.getChangeDelegationSubscriptionCompartmentDetails(), + "changeDelegationSubscriptionCompartmentDetails is required"); + + return clientCall(request, ChangeDelegationSubscriptionCompartmentResponse::builder) + .logger(LOG, "changeDelegationSubscriptionCompartment") + .serviceDetails( + "DelegateAccessControl", "ChangeDelegationSubscriptionCompartment", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeDelegationSubscriptionCompartmentRequest::builder) + .basePath("/20230801") + .appendPathParam("delegationSubscriptions") + .appendPathParam(request.getDelegationSubscriptionId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ChangeDelegationSubscriptionCompartmentResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + ChangeDelegationSubscriptionCompartmentResponse.Builder::opcWorkRequestId) + .callSync(); + } + + @Override + public CreateDelegationControlResponse createDelegationControl( + CreateDelegationControlRequest request) { + Objects.requireNonNull( + request.getCreateDelegationControlDetails(), + "createDelegationControlDetails is required"); + + return clientCall(request, CreateDelegationControlResponse::builder) + .logger(LOG, "createDelegationControl") + .serviceDetails("DelegateAccessControl", "CreateDelegationControl", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateDelegationControlRequest::builder) + .basePath("/20230801") + .appendPathParam("delegationControls") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.delegateaccesscontrol.model.DelegationControl.class, + CreateDelegationControlResponse.Builder::delegationControl) + .handleResponseHeaderString( + "opc-work-request-id", + CreateDelegationControlResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateDelegationControlResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "location", CreateDelegationControlResponse.Builder::location) + .handleResponseHeaderString( + "content-location", + CreateDelegationControlResponse.Builder::contentLocation) + .handleResponseHeaderString("etag", CreateDelegationControlResponse.Builder::etag) + .callSync(); + } + + @Override + public CreateDelegationSubscriptionResponse createDelegationSubscription( + CreateDelegationSubscriptionRequest request) { + Objects.requireNonNull( + request.getCreateDelegationSubscriptionDetails(), + "createDelegationSubscriptionDetails is required"); + + return clientCall(request, CreateDelegationSubscriptionResponse::builder) + .logger(LOG, "createDelegationSubscription") + .serviceDetails("DelegateAccessControl", "CreateDelegationSubscription", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateDelegationSubscriptionRequest::builder) + .basePath("/20230801") + .appendPathParam("delegationSubscriptions") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscription.class, + CreateDelegationSubscriptionResponse.Builder::delegationSubscription) + .handleResponseHeaderString( + "opc-work-request-id", + CreateDelegationSubscriptionResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + CreateDelegationSubscriptionResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "location", CreateDelegationSubscriptionResponse.Builder::location) + .handleResponseHeaderString( + "content-location", + CreateDelegationSubscriptionResponse.Builder::contentLocation) + .handleResponseHeaderString( + "etag", CreateDelegationSubscriptionResponse.Builder::etag) + .callSync(); + } + + @Override + public DeleteDelegationControlResponse deleteDelegationControl( + DeleteDelegationControlRequest request) { + + Validate.notBlank( + request.getDelegationControlId(), "delegationControlId must not be blank"); + + return clientCall(request, DeleteDelegationControlResponse::builder) + .logger(LOG, "deleteDelegationControl") + .serviceDetails("DelegateAccessControl", "DeleteDelegationControl", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteDelegationControlRequest::builder) + .basePath("/20230801") + .appendPathParam("delegationControls") + .appendPathParam(request.getDelegationControlId()) + .appendQueryParam("description", request.getDescription()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-request-id", DeleteDelegationControlResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteDelegationControlResponse.Builder::opcWorkRequestId) + .callSync(); + } + + @Override + public DeleteDelegationSubscriptionResponse deleteDelegationSubscription( + DeleteDelegationSubscriptionRequest request) { + + Validate.notBlank( + request.getDelegationSubscriptionId(), + "delegationSubscriptionId must not be blank"); + + return clientCall(request, DeleteDelegationSubscriptionResponse::builder) + .logger(LOG, "deleteDelegationSubscription") + .serviceDetails("DelegateAccessControl", "DeleteDelegationSubscription", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteDelegationSubscriptionRequest::builder) + .basePath("/20230801") + .appendPathParam("delegationSubscriptions") + .appendPathParam(request.getDelegationSubscriptionId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + DeleteDelegationSubscriptionResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + DeleteDelegationSubscriptionResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetDelegatedResourceAccessRequestResponse getDelegatedResourceAccessRequest( + GetDelegatedResourceAccessRequestRequest request) { + + Validate.notBlank( + request.getDelegatedResourceAccessRequestId(), + "delegatedResourceAccessRequestId must not be blank"); + + return clientCall(request, GetDelegatedResourceAccessRequestResponse::builder) + .logger(LOG, "getDelegatedResourceAccessRequest") + .serviceDetails("DelegateAccessControl", "GetDelegatedResourceAccessRequest", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDelegatedResourceAccessRequestRequest::builder) + .basePath("/20230801") + .appendPathParam("delegatedResourceAccessRequests") + .appendPathParam(request.getDelegatedResourceAccessRequestId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequest + .class, + GetDelegatedResourceAccessRequestResponse.Builder + ::delegatedResourceAccessRequest) + .handleResponseHeaderString( + "etag", GetDelegatedResourceAccessRequestResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + GetDelegatedResourceAccessRequestResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetDelegatedResourceAccessRequestAuditLogReportResponse + getDelegatedResourceAccessRequestAuditLogReport( + GetDelegatedResourceAccessRequestAuditLogReportRequest request) { + + Validate.notBlank( + request.getDelegatedResourceAccessRequestId(), + "delegatedResourceAccessRequestId must not be blank"); + + return clientCall(request, GetDelegatedResourceAccessRequestAuditLogReportResponse::builder) + .logger(LOG, "getDelegatedResourceAccessRequestAuditLogReport") + .serviceDetails( + "DelegateAccessControl", + "GetDelegatedResourceAccessRequestAuditLogReport", + "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDelegatedResourceAccessRequestAuditLogReportRequest::builder) + .basePath("/20230801") + .appendPathParam("delegatedResourceAccessRequests") + .appendPathParam(request.getDelegatedResourceAccessRequestId()) + .appendPathParam("delegatedResourceAccessRequestAuditLogReport") + .appendQueryParam("isProcessTreeEnabled", request.getIsProcessTreeEnabled()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.delegateaccesscontrol.model + .DelegatedResourceAccessRequestAuditLogReport.class, + GetDelegatedResourceAccessRequestAuditLogReportResponse.Builder + ::delegatedResourceAccessRequestAuditLogReport) + .handleResponseHeaderString( + "opc-request-id", + GetDelegatedResourceAccessRequestAuditLogReportResponse.Builder + ::opcRequestId) + .callSync(); + } + + @Override + public GetDelegationControlResponse getDelegationControl(GetDelegationControlRequest request) { + + Validate.notBlank( + request.getDelegationControlId(), "delegationControlId must not be blank"); + + return clientCall(request, GetDelegationControlResponse::builder) + .logger(LOG, "getDelegationControl") + .serviceDetails("DelegateAccessControl", "GetDelegationControl", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDelegationControlRequest::builder) + .basePath("/20230801") + .appendPathParam("delegationControls") + .appendPathParam(request.getDelegationControlId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.delegateaccesscontrol.model.DelegationControl.class, + GetDelegationControlResponse.Builder::delegationControl) + .handleResponseHeaderString("etag", GetDelegationControlResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetDelegationControlResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetDelegationSubscriptionResponse getDelegationSubscription( + GetDelegationSubscriptionRequest request) { + + Validate.notBlank( + request.getDelegationSubscriptionId(), + "delegationSubscriptionId must not be blank"); + + return clientCall(request, GetDelegationSubscriptionResponse::builder) + .logger(LOG, "getDelegationSubscription") + .serviceDetails("DelegateAccessControl", "GetDelegationSubscription", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDelegationSubscriptionRequest::builder) + .basePath("/20230801") + .appendPathParam("delegationSubscriptions") + .appendPathParam(request.getDelegationSubscriptionId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscription.class, + GetDelegationSubscriptionResponse.Builder::delegationSubscription) + .handleResponseHeaderString("etag", GetDelegationSubscriptionResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetDelegationSubscriptionResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetServiceProviderResponse getServiceProvider(GetServiceProviderRequest request) { + + Validate.notBlank(request.getServiceProviderId(), "serviceProviderId must not be blank"); + + return clientCall(request, GetServiceProviderResponse::builder) + .logger(LOG, "getServiceProvider") + .serviceDetails("DelegateAccessControl", "GetServiceProvider", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetServiceProviderRequest::builder) + .basePath("/20230801") + .appendPathParam("serviceProviders") + .appendPathParam(request.getServiceProviderId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.delegateaccesscontrol.model.ServiceProvider.class, + GetServiceProviderResponse.Builder::serviceProvider) + .handleResponseHeaderString("etag", GetServiceProviderResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetServiceProviderResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetServiceProviderActionResponse getServiceProviderAction( + GetServiceProviderActionRequest request) { + + Validate.notBlank( + request.getServiceProviderActionId(), "serviceProviderActionId must not be blank"); + + return clientCall(request, GetServiceProviderActionResponse::builder) + .logger(LOG, "getServiceProviderAction") + .serviceDetails("DelegateAccessControl", "GetServiceProviderAction", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetServiceProviderActionRequest::builder) + .basePath("/20230801") + .appendPathParam("serviceProviderActions") + .appendPathParam(request.getServiceProviderActionId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderAction.class, + GetServiceProviderActionResponse.Builder::serviceProviderAction) + .handleResponseHeaderString("etag", GetServiceProviderActionResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetServiceProviderActionResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListDelegatedResourceAccessRequestHistoriesResponse + listDelegatedResourceAccessRequestHistories( + ListDelegatedResourceAccessRequestHistoriesRequest request) { + + Validate.notBlank( + request.getDelegatedResourceAccessRequestId(), + "delegatedResourceAccessRequestId must not be blank"); + + return clientCall(request, ListDelegatedResourceAccessRequestHistoriesResponse::builder) + .logger(LOG, "listDelegatedResourceAccessRequestHistories") + .serviceDetails( + "DelegateAccessControl", "ListDelegatedResourceAccessRequestHistories", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDelegatedResourceAccessRequestHistoriesRequest::builder) + .basePath("/20230801") + .appendPathParam("delegatedResourceAccessRequests") + .appendPathParam(request.getDelegatedResourceAccessRequestId()) + .appendPathParam("history") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.delegateaccesscontrol.model + .DelegatedResourceAccessRequestHistoryCollection.class, + ListDelegatedResourceAccessRequestHistoriesResponse.Builder + ::delegatedResourceAccessRequestHistoryCollection) + .handleResponseHeaderString( + "opc-request-id", + ListDelegatedResourceAccessRequestHistoriesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListDelegatedResourceAccessRequestHistoriesResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListDelegatedResourceAccessRequestsResponse listDelegatedResourceAccessRequests( + ListDelegatedResourceAccessRequestsRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListDelegatedResourceAccessRequestsResponse::builder) + .logger(LOG, "listDelegatedResourceAccessRequests") + .serviceDetails("DelegateAccessControl", "ListDelegatedResourceAccessRequests", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDelegatedResourceAccessRequestsRequest::builder) + .basePath("/20230801") + .appendPathParam("delegatedResourceAccessRequests") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("delegationControlId", request.getDelegationControlId()) + .appendQueryParam("resourceId", request.getResourceId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendEnumQueryParam("requestStatus", request.getRequestStatus()) + .appendQueryParam("timeStart", request.getTimeStart()) + .appendQueryParam("timeEnd", request.getTimeEnd()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.delegateaccesscontrol.model + .DelegatedResourceAccessRequestSummaryCollection.class, + ListDelegatedResourceAccessRequestsResponse.Builder + ::delegatedResourceAccessRequestSummaryCollection) + .handleResponseHeaderString( + "opc-request-id", + ListDelegatedResourceAccessRequestsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListDelegatedResourceAccessRequestsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListDelegationControlResourcesResponse listDelegationControlResources( + ListDelegationControlResourcesRequest request) { + + Validate.notBlank( + request.getDelegationControlId(), "delegationControlId must not be blank"); + + return clientCall(request, ListDelegationControlResourcesResponse::builder) + .logger(LOG, "listDelegationControlResources") + .serviceDetails("DelegateAccessControl", "ListDelegationControlResources", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDelegationControlResourcesRequest::builder) + .basePath("/20230801") + .appendPathParam("delegationControls") + .appendPathParam(request.getDelegationControlId()) + .appendPathParam("resources") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.delegateaccesscontrol.model + .DelegationControlResourceCollection.class, + ListDelegationControlResourcesResponse.Builder + ::delegationControlResourceCollection) + .handleResponseHeaderString( + "opc-request-id", + ListDelegationControlResourcesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListDelegationControlResourcesResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListDelegationControlsResponse listDelegationControls( + ListDelegationControlsRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListDelegationControlsResponse::builder) + .logger(LOG, "listDelegationControls") + .serviceDetails("DelegateAccessControl", "ListDelegationControls", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDelegationControlsRequest::builder) + .basePath("/20230801") + .appendPathParam("delegationControls") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendEnumQueryParam("resourceType", request.getResourceType()) + .appendQueryParam("resourceId", request.getResourceId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.delegateaccesscontrol.model + .DelegationControlSummaryCollection.class, + ListDelegationControlsResponse.Builder::delegationControlSummaryCollection) + .handleResponseHeaderString( + "opc-request-id", ListDelegationControlsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListDelegationControlsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListDelegationSubscriptionsResponse listDelegationSubscriptions( + ListDelegationSubscriptionsRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListDelegationSubscriptionsResponse::builder) + .logger(LOG, "listDelegationSubscriptions") + .serviceDetails("DelegateAccessControl", "ListDelegationSubscriptions", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDelegationSubscriptionsRequest::builder) + .basePath("/20230801") + .appendPathParam("delegationSubscriptions") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.delegateaccesscontrol.model + .DelegationSubscriptionSummaryCollection.class, + ListDelegationSubscriptionsResponse.Builder + ::delegationSubscriptionSummaryCollection) + .handleResponseHeaderString( + "opc-request-id", ListDelegationSubscriptionsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListDelegationSubscriptionsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListServiceProviderActionsResponse listServiceProviderActions( + ListServiceProviderActionsRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListServiceProviderActionsResponse::builder) + .logger(LOG, "listServiceProviderActions") + .serviceDetails("DelegateAccessControl", "ListServiceProviderActions", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListServiceProviderActionsRequest::builder) + .basePath("/20230801") + .appendPathParam("serviceProviderActions") + .appendQueryParam("name", request.getName()) + .appendEnumQueryParam("resourceType", request.getResourceType()) + .appendListQueryParam( + "serviceProviderServiceType", + request.getServiceProviderServiceType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.delegateaccesscontrol.model + .ServiceProviderActionSummaryCollection.class, + ListServiceProviderActionsResponse.Builder + ::serviceProviderActionSummaryCollection) + .handleResponseHeaderString( + "opc-request-id", ListServiceProviderActionsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListServiceProviderActionsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListServiceProviderInteractionsResponse listServiceProviderInteractions( + ListServiceProviderInteractionsRequest request) { + + Validate.notBlank( + request.getDelegatedResourceAccessRequestId(), + "delegatedResourceAccessRequestId must not be blank"); + + return clientCall(request, ListServiceProviderInteractionsResponse::builder) + .logger(LOG, "listServiceProviderInteractions") + .serviceDetails("DelegateAccessControl", "ListServiceProviderInteractions", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListServiceProviderInteractionsRequest::builder) + .basePath("/20230801") + .appendPathParam("delegatedResourceAccessRequests") + .appendPathParam(request.getDelegatedResourceAccessRequestId()) + .appendPathParam("serviceProviderInteractions") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.delegateaccesscontrol.model + .ServiceProviderInteractionCollection.class, + ListServiceProviderInteractionsResponse.Builder + ::serviceProviderInteractionCollection) + .handleResponseHeaderString( + "opc-request-id", + ListServiceProviderInteractionsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListServiceProviderInteractionsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListServiceProvidersResponse listServiceProviders(ListServiceProvidersRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListServiceProvidersResponse::builder) + .logger(LOG, "listServiceProviders") + .serviceDetails("DelegateAccessControl", "ListServiceProviders", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListServiceProvidersRequest::builder) + .basePath("/20230801") + .appendPathParam("serviceProviders") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("name", request.getName()) + .appendEnumQueryParam("supportedResourceType", request.getSupportedResourceType()) + .appendEnumQueryParam("serviceProviderType", request.getServiceProviderType()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderSummaryCollection + .class, + ListServiceProvidersResponse.Builder::serviceProviderSummaryCollection) + .handleResponseHeaderString( + "opc-request-id", ListServiceProvidersResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListServiceProvidersResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public RejectDelegatedResourceAccessRequestResponse rejectDelegatedResourceAccessRequest( + RejectDelegatedResourceAccessRequestRequest request) { + + Validate.notBlank( + request.getDelegatedResourceAccessRequestId(), + "delegatedResourceAccessRequestId must not be blank"); + Objects.requireNonNull( + request.getRejectDelegatedResourceAccessRequestDetails(), + "rejectDelegatedResourceAccessRequestDetails is required"); + + return clientCall(request, RejectDelegatedResourceAccessRequestResponse::builder) + .logger(LOG, "rejectDelegatedResourceAccessRequest") + .serviceDetails("DelegateAccessControl", "RejectDelegatedResourceAccessRequest", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RejectDelegatedResourceAccessRequestRequest::builder) + .basePath("/20230801") + .appendPathParam("delegatedResourceAccessRequests") + .appendPathParam(request.getDelegatedResourceAccessRequestId()) + .appendPathParam("actions") + .appendPathParam("reject") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + RejectDelegatedResourceAccessRequestResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + RejectDelegatedResourceAccessRequestResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public RevokeDelegatedResourceAccessRequestResponse revokeDelegatedResourceAccessRequest( + RevokeDelegatedResourceAccessRequestRequest request) { + + Validate.notBlank( + request.getDelegatedResourceAccessRequestId(), + "delegatedResourceAccessRequestId must not be blank"); + Objects.requireNonNull( + request.getRevokeDelegatedResourceAccessRequestDetails(), + "revokeDelegatedResourceAccessRequestDetails is required"); + + return clientCall(request, RevokeDelegatedResourceAccessRequestResponse::builder) + .logger(LOG, "revokeDelegatedResourceAccessRequest") + .serviceDetails("DelegateAccessControl", "RevokeDelegatedResourceAccessRequest", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RevokeDelegatedResourceAccessRequestRequest::builder) + .basePath("/20230801") + .appendPathParam("delegatedResourceAccessRequests") + .appendPathParam(request.getDelegatedResourceAccessRequestId()) + .appendPathParam("actions") + .appendPathParam("revoke") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + RevokeDelegatedResourceAccessRequestResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + RevokeDelegatedResourceAccessRequestResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ServiceProviderInteractionRequestResponse serviceProviderInteractionRequest( + ServiceProviderInteractionRequestRequest request) { + + Validate.notBlank( + request.getDelegatedResourceAccessRequestId(), + "delegatedResourceAccessRequestId must not be blank"); + Objects.requireNonNull( + request.getServiceProviderInteractionRequestDetails(), + "serviceProviderInteractionRequestDetails is required"); + + return clientCall(request, ServiceProviderInteractionRequestResponse::builder) + .logger(LOG, "serviceProviderInteractionRequest") + .serviceDetails("DelegateAccessControl", "ServiceProviderInteractionRequest", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ServiceProviderInteractionRequestRequest::builder) + .basePath("/20230801") + .appendPathParam("delegatedResourceAccessRequests") + .appendPathParam(request.getDelegatedResourceAccessRequestId()) + .appendPathParam("actions") + .appendPathParam("serviceProviderInteractionRequest") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ServiceProviderInteractionRequestResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public UpdateDelegationControlResponse updateDelegationControl( + UpdateDelegationControlRequest request) { + + Validate.notBlank( + request.getDelegationControlId(), "delegationControlId must not be blank"); + Objects.requireNonNull( + request.getUpdateDelegationControlDetails(), + "updateDelegationControlDetails is required"); + + return clientCall(request, UpdateDelegationControlResponse::builder) + .logger(LOG, "updateDelegationControl") + .serviceDetails("DelegateAccessControl", "UpdateDelegationControl", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateDelegationControlRequest::builder) + .basePath("/20230801") + .appendPathParam("delegationControls") + .appendPathParam(request.getDelegationControlId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.delegateaccesscontrol.model.DelegationControl.class, + UpdateDelegationControlResponse.Builder::delegationControl) + .handleResponseHeaderString( + "opc-request-id", UpdateDelegationControlResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + UpdateDelegationControlResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "content-location", + UpdateDelegationControlResponse.Builder::contentLocation) + .handleResponseHeaderString("etag", UpdateDelegationControlResponse.Builder::etag) + .callSync(); + } + + @Override + public UpdateDelegationSubscriptionResponse updateDelegationSubscription( + UpdateDelegationSubscriptionRequest request) { + + Validate.notBlank( + request.getDelegationSubscriptionId(), + "delegationSubscriptionId must not be blank"); + Objects.requireNonNull( + request.getUpdateDelegationSubscriptionDetails(), + "updateDelegationSubscriptionDetails is required"); + + return clientCall(request, UpdateDelegationSubscriptionResponse::builder) + .logger(LOG, "updateDelegationSubscription") + .serviceDetails("DelegateAccessControl", "UpdateDelegationSubscription", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateDelegationSubscriptionRequest::builder) + .basePath("/20230801") + .appendPathParam("delegationSubscriptions") + .appendPathParam(request.getDelegationSubscriptionId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscription.class, + UpdateDelegationSubscriptionResponse.Builder::delegationSubscription) + .handleResponseHeaderString( + "opc-request-id", + UpdateDelegationSubscriptionResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + UpdateDelegationSubscriptionResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "content-location", + UpdateDelegationSubscriptionResponse.Builder::contentLocation) + .handleResponseHeaderString( + "etag", UpdateDelegationSubscriptionResponse.Builder::etag) + .callSync(); + } + + @Override + public DelegateAccessControlWaiters getWaiters() { + return waiters; + } + + @Override + public DelegateAccessControlPaginators 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 DelegateAccessControlClient( + 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 DelegateAccessControlClient( + 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 DelegateAccessControlClient( + 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 DelegateAccessControlClient( + 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 DelegateAccessControlClient( + 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 DelegateAccessControlClient( + 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 DelegateAccessControlClient( + 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 DelegateAccessControlClient( + 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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/DelegateAccessControlPaginators.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/DelegateAccessControlPaginators.java new file mode 100644 index 00000000000..ac2738024b3 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/DelegateAccessControlPaginators.java @@ -0,0 +1,1088 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol; + +import com.oracle.bmc.delegateaccesscontrol.requests.*; +import com.oracle.bmc.delegateaccesscontrol.responses.*; + +/** + * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface + * to any list operations of DelegateAccessControl where multiple pages of data may be fetched. Two + * styles of iteration are supported: + * + *

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

As an example, if we were using the ListUsers operation in IdentityService, then the {@link + * java.lang.Iterable} returned by calling a ResponseIterator method would iterate over the + * ListUsersResponse objects returned by each ListUsers call, whereas the {@link java.lang.Iterable} + * returned by calling a RecordIterator method would iterate over the User records and we don't have + * to deal with ListUsersResponse objects at all. In either case, pagination will be automatically + * handled so we can iterate until there are no more responses or no more resources/records + * available. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class DelegateAccessControlPaginators { + private final DelegateAccessControl client; + + public DelegateAccessControlPaginators(DelegateAccessControl client) { + this.client = client; + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listDelegatedResourceAccessRequestHistories 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 + listDelegatedResourceAccessRequestHistoriesResponseIterator( + final ListDelegatedResourceAccessRequestHistoriesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListDelegatedResourceAccessRequestHistoriesRequest.Builder, + ListDelegatedResourceAccessRequestHistoriesRequest, + ListDelegatedResourceAccessRequestHistoriesResponse>( + new java.util.function.Supplier< + ListDelegatedResourceAccessRequestHistoriesRequest.Builder>() { + @Override + public ListDelegatedResourceAccessRequestHistoriesRequest.Builder get() { + return ListDelegatedResourceAccessRequestHistoriesRequest.builder() + .copy(request); + } + }, + new java.util.function.Function< + ListDelegatedResourceAccessRequestHistoriesResponse, String>() { + @Override + public String apply( + ListDelegatedResourceAccessRequestHistoriesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDelegatedResourceAccessRequestHistoriesRequest.Builder>, + ListDelegatedResourceAccessRequestHistoriesRequest>() { + @Override + public ListDelegatedResourceAccessRequestHistoriesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDelegatedResourceAccessRequestHistoriesRequest + .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< + ListDelegatedResourceAccessRequestHistoriesRequest, + ListDelegatedResourceAccessRequestHistoriesResponse>() { + @Override + public ListDelegatedResourceAccessRequestHistoriesResponse apply( + ListDelegatedResourceAccessRequestHistoriesRequest request) { + return client.listDelegatedResourceAccessRequestHistories(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequestHistorySummary} + * objects contained in responses from the listDelegatedResourceAccessRequestHistories + * 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.delegateaccesscontrol.model.DelegatedResourceAccessRequestHistorySummary} + * objects contained in responses received from the service. + */ + public Iterable< + com.oracle.bmc.delegateaccesscontrol.model + .DelegatedResourceAccessRequestHistorySummary> + listDelegatedResourceAccessRequestHistoriesRecordIterator( + final ListDelegatedResourceAccessRequestHistoriesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListDelegatedResourceAccessRequestHistoriesRequest.Builder, + ListDelegatedResourceAccessRequestHistoriesRequest, + ListDelegatedResourceAccessRequestHistoriesResponse, + com.oracle.bmc.delegateaccesscontrol.model + .DelegatedResourceAccessRequestHistorySummary>( + new java.util.function.Supplier< + ListDelegatedResourceAccessRequestHistoriesRequest.Builder>() { + @Override + public ListDelegatedResourceAccessRequestHistoriesRequest.Builder get() { + return ListDelegatedResourceAccessRequestHistoriesRequest.builder() + .copy(request); + } + }, + new java.util.function.Function< + ListDelegatedResourceAccessRequestHistoriesResponse, String>() { + @Override + public String apply( + ListDelegatedResourceAccessRequestHistoriesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDelegatedResourceAccessRequestHistoriesRequest.Builder>, + ListDelegatedResourceAccessRequestHistoriesRequest>() { + @Override + public ListDelegatedResourceAccessRequestHistoriesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDelegatedResourceAccessRequestHistoriesRequest + .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< + ListDelegatedResourceAccessRequestHistoriesRequest, + ListDelegatedResourceAccessRequestHistoriesResponse>() { + @Override + public ListDelegatedResourceAccessRequestHistoriesResponse apply( + ListDelegatedResourceAccessRequestHistoriesRequest request) { + return client.listDelegatedResourceAccessRequestHistories(request); + } + }, + new java.util.function.Function< + ListDelegatedResourceAccessRequestHistoriesResponse, + java.util.List< + com.oracle.bmc.delegateaccesscontrol.model + .DelegatedResourceAccessRequestHistorySummary>>() { + @Override + public java.util.List< + com.oracle.bmc.delegateaccesscontrol.model + .DelegatedResourceAccessRequestHistorySummary> + apply(ListDelegatedResourceAccessRequestHistoriesResponse response) { + return response.getDelegatedResourceAccessRequestHistoryCollection() + .getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listDelegatedResourceAccessRequests 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 + listDelegatedResourceAccessRequestsResponseIterator( + final ListDelegatedResourceAccessRequestsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListDelegatedResourceAccessRequestsRequest.Builder, + ListDelegatedResourceAccessRequestsRequest, + ListDelegatedResourceAccessRequestsResponse>( + new java.util.function.Supplier< + ListDelegatedResourceAccessRequestsRequest.Builder>() { + @Override + public ListDelegatedResourceAccessRequestsRequest.Builder get() { + return ListDelegatedResourceAccessRequestsRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListDelegatedResourceAccessRequestsResponse, String>() { + @Override + public String apply(ListDelegatedResourceAccessRequestsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDelegatedResourceAccessRequestsRequest.Builder>, + ListDelegatedResourceAccessRequestsRequest>() { + @Override + public ListDelegatedResourceAccessRequestsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDelegatedResourceAccessRequestsRequest.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< + ListDelegatedResourceAccessRequestsRequest, + ListDelegatedResourceAccessRequestsResponse>() { + @Override + public ListDelegatedResourceAccessRequestsResponse apply( + ListDelegatedResourceAccessRequestsRequest request) { + return client.listDelegatedResourceAccessRequests(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequestSummary} objects + * contained in responses from the listDelegatedResourceAccessRequests 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.delegateaccesscontrol.model.DelegatedResourceAccessRequestSummary} objects + * contained in responses received from the service. + */ + public Iterable< + com.oracle.bmc.delegateaccesscontrol.model + .DelegatedResourceAccessRequestSummary> + listDelegatedResourceAccessRequestsRecordIterator( + final ListDelegatedResourceAccessRequestsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListDelegatedResourceAccessRequestsRequest.Builder, + ListDelegatedResourceAccessRequestsRequest, + ListDelegatedResourceAccessRequestsResponse, + com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequestSummary>( + new java.util.function.Supplier< + ListDelegatedResourceAccessRequestsRequest.Builder>() { + @Override + public ListDelegatedResourceAccessRequestsRequest.Builder get() { + return ListDelegatedResourceAccessRequestsRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListDelegatedResourceAccessRequestsResponse, String>() { + @Override + public String apply(ListDelegatedResourceAccessRequestsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDelegatedResourceAccessRequestsRequest.Builder>, + ListDelegatedResourceAccessRequestsRequest>() { + @Override + public ListDelegatedResourceAccessRequestsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDelegatedResourceAccessRequestsRequest.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< + ListDelegatedResourceAccessRequestsRequest, + ListDelegatedResourceAccessRequestsResponse>() { + @Override + public ListDelegatedResourceAccessRequestsResponse apply( + ListDelegatedResourceAccessRequestsRequest request) { + return client.listDelegatedResourceAccessRequests(request); + } + }, + new java.util.function.Function< + ListDelegatedResourceAccessRequestsResponse, + java.util.List< + com.oracle.bmc.delegateaccesscontrol.model + .DelegatedResourceAccessRequestSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.delegateaccesscontrol.model + .DelegatedResourceAccessRequestSummary> + apply(ListDelegatedResourceAccessRequestsResponse response) { + return response.getDelegatedResourceAccessRequestSummaryCollection() + .getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listDelegationControlResources 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 + listDelegationControlResourcesResponseIterator( + final ListDelegationControlResourcesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListDelegationControlResourcesRequest.Builder, + ListDelegationControlResourcesRequest, + ListDelegationControlResourcesResponse>( + new java.util.function.Supplier() { + @Override + public ListDelegationControlResourcesRequest.Builder get() { + return ListDelegationControlResourcesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListDelegationControlResourcesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDelegationControlResourcesRequest.Builder>, + ListDelegationControlResourcesRequest>() { + @Override + public ListDelegationControlResourcesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDelegationControlResourcesRequest.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< + ListDelegationControlResourcesRequest, + ListDelegationControlResourcesResponse>() { + @Override + public ListDelegationControlResourcesResponse apply( + ListDelegationControlResourcesRequest request) { + return client.listDelegationControlResources(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.delegateaccesscontrol.model.DelegationControlResourceSummary} objects + * contained in responses from the listDelegationControlResources 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.delegateaccesscontrol.model.DelegationControlResourceSummary} objects + * contained in responses received from the service. + */ + public Iterable + listDelegationControlResourcesRecordIterator( + final ListDelegationControlResourcesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListDelegationControlResourcesRequest.Builder, + ListDelegationControlResourcesRequest, + ListDelegationControlResourcesResponse, + com.oracle.bmc.delegateaccesscontrol.model.DelegationControlResourceSummary>( + new java.util.function.Supplier() { + @Override + public ListDelegationControlResourcesRequest.Builder get() { + return ListDelegationControlResourcesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListDelegationControlResourcesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDelegationControlResourcesRequest.Builder>, + ListDelegationControlResourcesRequest>() { + @Override + public ListDelegationControlResourcesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDelegationControlResourcesRequest.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< + ListDelegationControlResourcesRequest, + ListDelegationControlResourcesResponse>() { + @Override + public ListDelegationControlResourcesResponse apply( + ListDelegationControlResourcesRequest request) { + return client.listDelegationControlResources(request); + } + }, + new java.util.function.Function< + ListDelegationControlResourcesResponse, + java.util.List< + com.oracle.bmc.delegateaccesscontrol.model + .DelegationControlResourceSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.delegateaccesscontrol.model + .DelegationControlResourceSummary> + apply(ListDelegationControlResourcesResponse response) { + return response.getDelegationControlResourceCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listDelegationControls 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 listDelegationControlsResponseIterator( + final ListDelegationControlsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListDelegationControlsRequest.Builder, + ListDelegationControlsRequest, + ListDelegationControlsResponse>( + new java.util.function.Supplier() { + @Override + public ListDelegationControlsRequest.Builder get() { + return ListDelegationControlsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListDelegationControlsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDelegationControlsRequest.Builder>, + ListDelegationControlsRequest>() { + @Override + public ListDelegationControlsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDelegationControlsRequest.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< + ListDelegationControlsRequest, ListDelegationControlsResponse>() { + @Override + public ListDelegationControlsResponse apply( + ListDelegationControlsRequest request) { + return client.listDelegationControls(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.delegateaccesscontrol.model.DelegationControlSummary} objects contained in + * responses from the listDelegationControls 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.delegateaccesscontrol.model.DelegationControlSummary} objects contained in + * responses received from the service. + */ + public Iterable + listDelegationControlsRecordIterator(final ListDelegationControlsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListDelegationControlsRequest.Builder, + ListDelegationControlsRequest, + ListDelegationControlsResponse, + com.oracle.bmc.delegateaccesscontrol.model.DelegationControlSummary>( + new java.util.function.Supplier() { + @Override + public ListDelegationControlsRequest.Builder get() { + return ListDelegationControlsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListDelegationControlsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDelegationControlsRequest.Builder>, + ListDelegationControlsRequest>() { + @Override + public ListDelegationControlsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDelegationControlsRequest.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< + ListDelegationControlsRequest, ListDelegationControlsResponse>() { + @Override + public ListDelegationControlsResponse apply( + ListDelegationControlsRequest request) { + return client.listDelegationControls(request); + } + }, + new java.util.function.Function< + ListDelegationControlsResponse, + java.util.List< + com.oracle.bmc.delegateaccesscontrol.model + .DelegationControlSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.delegateaccesscontrol.model + .DelegationControlSummary> + apply(ListDelegationControlsResponse response) { + return response.getDelegationControlSummaryCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listDelegationSubscriptions 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 + listDelegationSubscriptionsResponseIterator( + final ListDelegationSubscriptionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListDelegationSubscriptionsRequest.Builder, + ListDelegationSubscriptionsRequest, + ListDelegationSubscriptionsResponse>( + new java.util.function.Supplier() { + @Override + public ListDelegationSubscriptionsRequest.Builder get() { + return ListDelegationSubscriptionsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListDelegationSubscriptionsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDelegationSubscriptionsRequest.Builder>, + ListDelegationSubscriptionsRequest>() { + @Override + public ListDelegationSubscriptionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDelegationSubscriptionsRequest.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< + ListDelegationSubscriptionsRequest, ListDelegationSubscriptionsResponse>() { + @Override + public ListDelegationSubscriptionsResponse apply( + ListDelegationSubscriptionsRequest request) { + return client.listDelegationSubscriptions(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscriptionSummary} objects contained + * in responses from the listDelegationSubscriptions 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.delegateaccesscontrol.model.DelegationSubscriptionSummary} objects + * contained in responses received from the service. + */ + public Iterable + listDelegationSubscriptionsRecordIterator( + final ListDelegationSubscriptionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListDelegationSubscriptionsRequest.Builder, + ListDelegationSubscriptionsRequest, + ListDelegationSubscriptionsResponse, + com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscriptionSummary>( + new java.util.function.Supplier() { + @Override + public ListDelegationSubscriptionsRequest.Builder get() { + return ListDelegationSubscriptionsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListDelegationSubscriptionsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDelegationSubscriptionsRequest.Builder>, + ListDelegationSubscriptionsRequest>() { + @Override + public ListDelegationSubscriptionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDelegationSubscriptionsRequest.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< + ListDelegationSubscriptionsRequest, ListDelegationSubscriptionsResponse>() { + @Override + public ListDelegationSubscriptionsResponse apply( + ListDelegationSubscriptionsRequest request) { + return client.listDelegationSubscriptions(request); + } + }, + new java.util.function.Function< + ListDelegationSubscriptionsResponse, + java.util.List< + com.oracle.bmc.delegateaccesscontrol.model + .DelegationSubscriptionSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.delegateaccesscontrol.model + .DelegationSubscriptionSummary> + apply(ListDelegationSubscriptionsResponse response) { + return response.getDelegationSubscriptionSummaryCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listServiceProviderActions 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 listServiceProviderActionsResponseIterator( + final ListServiceProviderActionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListServiceProviderActionsRequest.Builder, + ListServiceProviderActionsRequest, + ListServiceProviderActionsResponse>( + new java.util.function.Supplier() { + @Override + public ListServiceProviderActionsRequest.Builder get() { + return ListServiceProviderActionsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListServiceProviderActionsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListServiceProviderActionsRequest.Builder>, + ListServiceProviderActionsRequest>() { + @Override + public ListServiceProviderActionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListServiceProviderActionsRequest.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< + ListServiceProviderActionsRequest, ListServiceProviderActionsResponse>() { + @Override + public ListServiceProviderActionsResponse apply( + ListServiceProviderActionsRequest request) { + return client.listServiceProviderActions(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderActionSummary} objects contained in + * responses from the listServiceProviderActions 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.delegateaccesscontrol.model.ServiceProviderActionSummary} objects + * contained in responses received from the service. + */ + public Iterable + listServiceProviderActionsRecordIterator( + final ListServiceProviderActionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListServiceProviderActionsRequest.Builder, + ListServiceProviderActionsRequest, + ListServiceProviderActionsResponse, + com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderActionSummary>( + new java.util.function.Supplier() { + @Override + public ListServiceProviderActionsRequest.Builder get() { + return ListServiceProviderActionsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListServiceProviderActionsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListServiceProviderActionsRequest.Builder>, + ListServiceProviderActionsRequest>() { + @Override + public ListServiceProviderActionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListServiceProviderActionsRequest.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< + ListServiceProviderActionsRequest, ListServiceProviderActionsResponse>() { + @Override + public ListServiceProviderActionsResponse apply( + ListServiceProviderActionsRequest request) { + return client.listServiceProviderActions(request); + } + }, + new java.util.function.Function< + ListServiceProviderActionsResponse, + java.util.List< + com.oracle.bmc.delegateaccesscontrol.model + .ServiceProviderActionSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.delegateaccesscontrol.model + .ServiceProviderActionSummary> + apply(ListServiceProviderActionsResponse response) { + return response.getServiceProviderActionSummaryCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listServiceProviderInteractions 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 + listServiceProviderInteractionsResponseIterator( + final ListServiceProviderInteractionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListServiceProviderInteractionsRequest.Builder, + ListServiceProviderInteractionsRequest, + ListServiceProviderInteractionsResponse>( + new java.util.function.Supplier() { + @Override + public ListServiceProviderInteractionsRequest.Builder get() { + return ListServiceProviderInteractionsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListServiceProviderInteractionsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListServiceProviderInteractionsRequest.Builder>, + ListServiceProviderInteractionsRequest>() { + @Override + public ListServiceProviderInteractionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListServiceProviderInteractionsRequest.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< + ListServiceProviderInteractionsRequest, + ListServiceProviderInteractionsResponse>() { + @Override + public ListServiceProviderInteractionsResponse apply( + ListServiceProviderInteractionsRequest request) { + return client.listServiceProviderInteractions(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderInteractionSummary} objects + * contained in responses from the listServiceProviderInteractions 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.delegateaccesscontrol.model.ServiceProviderInteractionSummary} objects + * contained in responses received from the service. + */ + public Iterable + listServiceProviderInteractionsRecordIterator( + final ListServiceProviderInteractionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListServiceProviderInteractionsRequest.Builder, + ListServiceProviderInteractionsRequest, + ListServiceProviderInteractionsResponse, + com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderInteractionSummary>( + new java.util.function.Supplier() { + @Override + public ListServiceProviderInteractionsRequest.Builder get() { + return ListServiceProviderInteractionsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListServiceProviderInteractionsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListServiceProviderInteractionsRequest.Builder>, + ListServiceProviderInteractionsRequest>() { + @Override + public ListServiceProviderInteractionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListServiceProviderInteractionsRequest.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< + ListServiceProviderInteractionsRequest, + ListServiceProviderInteractionsResponse>() { + @Override + public ListServiceProviderInteractionsResponse apply( + ListServiceProviderInteractionsRequest request) { + return client.listServiceProviderInteractions(request); + } + }, + new java.util.function.Function< + ListServiceProviderInteractionsResponse, + java.util.List< + com.oracle.bmc.delegateaccesscontrol.model + .ServiceProviderInteractionSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.delegateaccesscontrol.model + .ServiceProviderInteractionSummary> + apply(ListServiceProviderInteractionsResponse response) { + return response.getServiceProviderInteractionCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listServiceProviders 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 listServiceProvidersResponseIterator( + final ListServiceProvidersRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListServiceProvidersRequest.Builder, + ListServiceProvidersRequest, + ListServiceProvidersResponse>( + new java.util.function.Supplier() { + @Override + public ListServiceProvidersRequest.Builder get() { + return ListServiceProvidersRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListServiceProvidersResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListServiceProvidersRequest.Builder>, + ListServiceProvidersRequest>() { + @Override + public ListServiceProvidersRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListServiceProvidersRequest.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< + ListServiceProvidersRequest, ListServiceProvidersResponse>() { + @Override + public ListServiceProvidersResponse apply(ListServiceProvidersRequest request) { + return client.listServiceProviders(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderSummary} objects contained in + * responses from the listServiceProviders 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.delegateaccesscontrol.model.ServiceProviderSummary} objects contained in + * responses received from the service. + */ + public Iterable + listServiceProvidersRecordIterator(final ListServiceProvidersRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListServiceProvidersRequest.Builder, + ListServiceProvidersRequest, + ListServiceProvidersResponse, + com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderSummary>( + new java.util.function.Supplier() { + @Override + public ListServiceProvidersRequest.Builder get() { + return ListServiceProvidersRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListServiceProvidersResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListServiceProvidersRequest.Builder>, + ListServiceProvidersRequest>() { + @Override + public ListServiceProvidersRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListServiceProvidersRequest.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< + ListServiceProvidersRequest, ListServiceProvidersResponse>() { + @Override + public ListServiceProvidersResponse apply(ListServiceProvidersRequest request) { + return client.listServiceProviders(request); + } + }, + new java.util.function.Function< + ListServiceProvidersResponse, + java.util.List< + com.oracle.bmc.delegateaccesscontrol.model + .ServiceProviderSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.delegateaccesscontrol.model + .ServiceProviderSummary> + apply(ListServiceProvidersResponse response) { + return response.getServiceProviderSummaryCollection().getItems(); + } + }); + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/DelegateAccessControlWaiters.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/DelegateAccessControlWaiters.java new file mode 100644 index 00000000000..a5c916a9460 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/DelegateAccessControlWaiters.java @@ -0,0 +1,621 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol; + +import com.oracle.bmc.delegateaccesscontrol.requests.*; +import com.oracle.bmc.delegateaccesscontrol.responses.*; + +/** + * Collection of helper methods to produce {@link com.oracle.bmc.waiter.Waiter}s for different + * resources of DelegateAccessControl. + * + *

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: 20230801") +public class DelegateAccessControlWaiters { + private final java.util.concurrent.ExecutorService executorService; + private final DelegateAccessControl client; + + public DelegateAccessControlWaiters( + java.util.concurrent.ExecutorService executorService, DelegateAccessControl 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< + GetDelegatedResourceAccessRequestRequest, + GetDelegatedResourceAccessRequestResponse> + forDelegatedResourceAccessRequest( + GetDelegatedResourceAccessRequestRequest request, + com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequest + .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 forDelegatedResourceAccessRequest( + 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< + GetDelegatedResourceAccessRequestRequest, + GetDelegatedResourceAccessRequestResponse> + forDelegatedResourceAccessRequest( + GetDelegatedResourceAccessRequestRequest request, + com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequest + .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 forDelegatedResourceAccessRequest( + 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< + GetDelegatedResourceAccessRequestRequest, + GetDelegatedResourceAccessRequestResponse> + forDelegatedResourceAccessRequest( + GetDelegatedResourceAccessRequestRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequest + .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 forDelegatedResourceAccessRequest( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for DelegatedResourceAccessRequest. + private com.oracle.bmc.waiter.Waiter< + GetDelegatedResourceAccessRequestRequest, + GetDelegatedResourceAccessRequestResponse> + forDelegatedResourceAccessRequest( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetDelegatedResourceAccessRequestRequest request, + final com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequest + .LifecycleState + ... + targetStates) { + final java.util.Set< + com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequest + .LifecycleState> + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetDelegatedResourceAccessRequestRequest, + GetDelegatedResourceAccessRequestResponse>() { + @Override + public GetDelegatedResourceAccessRequestResponse apply( + GetDelegatedResourceAccessRequestRequest request) { + return client.getDelegatedResourceAccessRequest(request); + } + }, + new java.util.function.Predicate< + GetDelegatedResourceAccessRequestResponse>() { + @Override + public boolean test( + GetDelegatedResourceAccessRequestResponse response) { + return targetStatesSet.contains( + response.getDelegatedResourceAccessRequest() + .getLifecycleState()); + } + }, + false), + 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 + forDelegationControl( + GetDelegationControlRequest request, + com.oracle.bmc.delegateaccesscontrol.model.DelegationControl.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 forDelegationControl( + 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 + forDelegationControl( + GetDelegationControlRequest request, + com.oracle.bmc.delegateaccesscontrol.model.DelegationControl.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 forDelegationControl( + 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 + forDelegationControl( + GetDelegationControlRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.delegateaccesscontrol.model.DelegationControl.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 forDelegationControl( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for DelegationControl. + private com.oracle.bmc.waiter.Waiter + forDelegationControl( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetDelegationControlRequest request, + final com.oracle.bmc.delegateaccesscontrol.model.DelegationControl + .LifecycleState + ... + targetStates) { + final java.util.Set< + com.oracle.bmc.delegateaccesscontrol.model.DelegationControl.LifecycleState> + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetDelegationControlRequest, GetDelegationControlResponse>() { + @Override + public GetDelegationControlResponse apply( + GetDelegationControlRequest request) { + return client.getDelegationControl(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetDelegationControlResponse response) { + return targetStatesSet.contains( + response.getDelegationControl().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.delegateaccesscontrol.model.DelegationControl + .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< + GetDelegationSubscriptionRequest, GetDelegationSubscriptionResponse> + forDelegationSubscription( + GetDelegationSubscriptionRequest request, + com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscription.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 forDelegationSubscription( + 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< + GetDelegationSubscriptionRequest, GetDelegationSubscriptionResponse> + forDelegationSubscription( + GetDelegationSubscriptionRequest request, + com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscription.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 forDelegationSubscription( + 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< + GetDelegationSubscriptionRequest, GetDelegationSubscriptionResponse> + forDelegationSubscription( + GetDelegationSubscriptionRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscription.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 forDelegationSubscription( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for DelegationSubscription. + private com.oracle.bmc.waiter.Waiter< + GetDelegationSubscriptionRequest, GetDelegationSubscriptionResponse> + forDelegationSubscription( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetDelegationSubscriptionRequest request, + final com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscription + .LifecycleState + ... + targetStates) { + final java.util.Set< + com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscription + .LifecycleState> + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetDelegationSubscriptionRequest, + GetDelegationSubscriptionResponse>() { + @Override + public GetDelegationSubscriptionResponse apply( + GetDelegationSubscriptionRequest request) { + return client.getDelegationSubscription(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetDelegationSubscriptionResponse response) { + return targetStatesSet.contains( + response.getDelegationSubscription().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscription + .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 + forServiceProvider( + GetServiceProviderRequest request, + com.oracle.bmc.delegateaccesscontrol.model.ServiceProvider.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 forServiceProvider( + 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 + forServiceProvider( + GetServiceProviderRequest request, + com.oracle.bmc.delegateaccesscontrol.model.ServiceProvider.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 forServiceProvider( + 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 + forServiceProvider( + GetServiceProviderRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.delegateaccesscontrol.model.ServiceProvider.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 forServiceProvider( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for ServiceProvider. + private com.oracle.bmc.waiter.Waiter + forServiceProvider( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetServiceProviderRequest request, + final com.oracle.bmc.delegateaccesscontrol.model.ServiceProvider.LifecycleState + ... + targetStates) { + final java.util.Set< + com.oracle.bmc.delegateaccesscontrol.model.ServiceProvider.LifecycleState> + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetServiceProviderRequest, GetServiceProviderResponse>() { + @Override + public GetServiceProviderResponse apply( + GetServiceProviderRequest request) { + return client.getServiceProvider(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetServiceProviderResponse response) { + return targetStatesSet.contains( + response.getServiceProvider().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.delegateaccesscontrol.model.ServiceProvider + .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< + GetServiceProviderActionRequest, GetServiceProviderActionResponse> + forServiceProviderAction( + GetServiceProviderActionRequest request, + com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderAction.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 forServiceProviderAction( + 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< + GetServiceProviderActionRequest, GetServiceProviderActionResponse> + forServiceProviderAction( + GetServiceProviderActionRequest request, + com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderAction.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 forServiceProviderAction( + 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< + GetServiceProviderActionRequest, GetServiceProviderActionResponse> + forServiceProviderAction( + GetServiceProviderActionRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderAction.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 forServiceProviderAction( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for ServiceProviderAction. + private com.oracle.bmc.waiter.Waiter< + GetServiceProviderActionRequest, GetServiceProviderActionResponse> + forServiceProviderAction( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetServiceProviderActionRequest request, + final com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderAction + .LifecycleState + ... + targetStates) { + final java.util.Set< + com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderAction + .LifecycleState> + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetServiceProviderActionRequest, + GetServiceProviderActionResponse>() { + @Override + public GetServiceProviderActionResponse apply( + GetServiceProviderActionRequest request) { + return client.getServiceProviderAction(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetServiceProviderActionResponse response) { + return targetStatesSet.contains( + response.getServiceProviderAction().getLifecycleState()); + } + }, + false), + request); + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/WorkRequest.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/WorkRequest.java new file mode 100644 index 00000000000..92ccfc630cb --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/WorkRequest.java @@ -0,0 +1,152 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol; + +import com.oracle.bmc.delegateaccesscontrol.requests.*; +import com.oracle.bmc.delegateaccesscontrol.responses.*; + +/** + * Oracle Delegate Access Control allows ExaCC and ExaCS customers to delegate management of their + * Exadata resources operators outside their tenancies. With Delegate Access Control, Support + * Providers can deliver managed services using comprehensive and robust tooling built on the OCI + * platform. Customers maintain control over who has access to the delegated resources in their + * tenancy and what actions can be taken. Enterprises managing resources across multiple tenants can + * use Delegate Access Control to streamline management tasks. Using logging service, customers can + * view a near real-time audit report of all actions performed by a Service Provider operator. + * + *

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: 20230801") +public interface WorkRequest 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); + + /** + * Gets details of the work request with 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 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); + + /** + * Returns a (paginated) list of errors for the work request with 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 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); + + /** + * Returns a (paginated) list of logs for the work request with 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 uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

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

Example: Click here to see how to use ListWorkRequests + * API. + */ + ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request); + + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + WorkRequestWaiters 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. + */ + WorkRequestPaginators getPaginators(); +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/WorkRequestAsync.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/WorkRequestAsync.java new file mode 100644 index 00000000000..9cc6b3f7087 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/WorkRequestAsync.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.delegateaccesscontrol; + +import com.oracle.bmc.delegateaccesscontrol.requests.*; +import com.oracle.bmc.delegateaccesscontrol.responses.*; + +/** + * Oracle Delegate Access Control allows ExaCC and ExaCS customers to delegate management of their + * Exadata resources operators outside their tenancies. With Delegate Access Control, Support + * Providers can deliver managed services using comprehensive and robust tooling built on the OCI + * platform. Customers maintain control over who has access to the delegated resources in their + * tenancy and what actions can be taken. Enterprises managing resources across multiple tenants can + * use Delegate Access Control to streamline management tasks. Using logging service, customers can + * view a near real-time audit report of all actions performed by a Service Provider operator. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public interface WorkRequestAsync 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); + + /** + * Gets details of the work request with 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 getWorkRequest( + GetWorkRequestRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Returns a (paginated) list of errors for the work request with 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 listWorkRequestErrors( + ListWorkRequestErrorsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse> + handler); + + /** + * Returns a (paginated) list of logs for the work request with 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 listWorkRequestLogs( + ListWorkRequestLogsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse> + handler); + + /** + * Lists the work requests in a compartment. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listWorkRequests( + ListWorkRequestsRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/WorkRequestAsyncClient.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/WorkRequestAsyncClient.java new file mode 100644 index 00000000000..cb005cb7a23 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/WorkRequestAsyncClient.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.delegateaccesscontrol; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.delegateaccesscontrol.requests.*; +import com.oracle.bmc.delegateaccesscontrol.responses.*; + +import java.util.Objects; + +/** + * Async client implementation for WorkRequest 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: 20230801") +public class WorkRequestAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient + implements WorkRequestAsync { + /** Service instance for WorkRequest. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName("WORKREQUEST") + .serviceEndpointPrefix("") + .serviceEndpointTemplate( + "https://delegate-access-control.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(WorkRequestAsyncClient.class); + + WorkRequestAsyncClient( + 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 = "delegateaccesscontrol"; + 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 WorkRequestAsyncClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new WorkRequestAsyncClient(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 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("WorkRequest", "GetWorkRequest", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetWorkRequestRequest::builder) + .basePath("/20230801") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.delegateaccesscontrol.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 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("WorkRequest", "ListWorkRequestErrors", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestErrorsRequest::builder) + .basePath("/20230801") + .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.delegateaccesscontrol.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("WorkRequest", "ListWorkRequestLogs", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestLogsRequest::builder) + .basePath("/20230801") + .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.delegateaccesscontrol.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) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListWorkRequestsResponse::builder) + .logger(LOG, "listWorkRequests") + .serviceDetails("WorkRequest", "ListWorkRequests", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestsRequest::builder) + .basePath("/20230801") + .appendPathParam("workRequests") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("workRequestId", request.getWorkRequestId()) + .appendEnumQueryParam("status", request.getStatus()) + .appendQueryParam("resourceId", request.getResourceId()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.delegateaccesscontrol.model.WorkRequestSummaryCollection + .class, + ListWorkRequestsResponse.Builder::workRequestSummaryCollection) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public WorkRequestAsyncClient( + 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 WorkRequestAsyncClient( + 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 WorkRequestAsyncClient( + 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 WorkRequestAsyncClient( + 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 WorkRequestAsyncClient( + 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 WorkRequestAsyncClient( + 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 WorkRequestAsyncClient( + 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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/WorkRequestClient.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/WorkRequestClient.java new file mode 100644 index 00000000000..756ca1874ed --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/WorkRequestClient.java @@ -0,0 +1,463 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.delegateaccesscontrol.requests.*; +import com.oracle.bmc.delegateaccesscontrol.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: 20230801") +public class WorkRequestClient extends com.oracle.bmc.http.internal.BaseSyncClient + implements WorkRequest { + /** Service instance for WorkRequest. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName("WORKREQUEST") + .serviceEndpointPrefix("") + .serviceEndpointTemplate( + "https://delegate-access-control.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(WorkRequestClient.class); + + private final WorkRequestWaiters waiters; + + private final WorkRequestPaginators paginators; + + WorkRequestClient( + 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("WorkRequest-waiters-%d") + .build()); + threadPoolExecutor.allowCoreThreadTimeOut(true); + + executorService = threadPoolExecutor; + } + this.waiters = new WorkRequestWaiters(executorService, this); + + this.paginators = new WorkRequestPaginators(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 = "delegateaccesscontrol"; + 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 WorkRequestClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new WorkRequestClient(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 GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, GetWorkRequestResponse::builder) + .logger(LOG, "getWorkRequest") + .serviceDetails("WorkRequest", "GetWorkRequest", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetWorkRequestRequest::builder) + .basePath("/20230801") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.delegateaccesscontrol.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 ListWorkRequestErrorsResponse listWorkRequestErrors( + ListWorkRequestErrorsRequest request) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, ListWorkRequestErrorsResponse::builder) + .logger(LOG, "listWorkRequestErrors") + .serviceDetails("WorkRequest", "ListWorkRequestErrors", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestErrorsRequest::builder) + .basePath("/20230801") + .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.delegateaccesscontrol.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("WorkRequest", "ListWorkRequestLogs", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestLogsRequest::builder) + .basePath("/20230801") + .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.delegateaccesscontrol.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) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListWorkRequestsResponse::builder) + .logger(LOG, "listWorkRequests") + .serviceDetails("WorkRequest", "ListWorkRequests", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestsRequest::builder) + .basePath("/20230801") + .appendPathParam("workRequests") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("workRequestId", request.getWorkRequestId()) + .appendEnumQueryParam("status", request.getStatus()) + .appendQueryParam("resourceId", request.getResourceId()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.delegateaccesscontrol.model.WorkRequestSummaryCollection + .class, + ListWorkRequestsResponse.Builder::workRequestSummaryCollection) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public WorkRequestWaiters getWaiters() { + return waiters; + } + + @Override + public WorkRequestPaginators 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 WorkRequestClient( + 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 WorkRequestClient( + 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 WorkRequestClient( + 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 WorkRequestClient( + 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 WorkRequestClient( + 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 WorkRequestClient( + 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 WorkRequestClient( + 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 WorkRequestClient( + 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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/WorkRequestPaginators.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/WorkRequestPaginators.java new file mode 100644 index 00000000000..65e3d581a71 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/WorkRequestPaginators.java @@ -0,0 +1,407 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol; + +import com.oracle.bmc.delegateaccesscontrol.requests.*; +import com.oracle.bmc.delegateaccesscontrol.responses.*; + +/** + * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface + * to any list operations of WorkRequest where multiple pages of data may be fetched. Two styles of + * iteration are supported: + * + *

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

As an example, if we were using the ListUsers operation in IdentityService, then the {@link + * java.lang.Iterable} returned by calling a ResponseIterator method would iterate over the + * ListUsersResponse objects returned by each ListUsers call, whereas the {@link java.lang.Iterable} + * returned by calling a RecordIterator method would iterate over the User records and we don't have + * to deal with ListUsersResponse objects at all. In either case, pagination will be automatically + * handled so we can iterate until there are no more responses or no more resources/records + * available. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class WorkRequestPaginators { + private final WorkRequest client; + + public WorkRequestPaginators(WorkRequest client) { + this.client = client; + } + + /** + * 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.delegateaccesscontrol.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.delegateaccesscontrol.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.delegateaccesscontrol.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< + com.oracle.bmc.delegateaccesscontrol.model.WorkRequestError>>() { + @Override + public java.util.List< + com.oracle.bmc.delegateaccesscontrol.model.WorkRequestError> + 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.delegateaccesscontrol.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.delegateaccesscontrol.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.delegateaccesscontrol.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.delegateaccesscontrol.model.WorkRequestLogEntry>>() { + @Override + public java.util.List< + com.oracle.bmc.delegateaccesscontrol.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.delegateaccesscontrol.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.delegateaccesscontrol.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.delegateaccesscontrol.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.delegateaccesscontrol.model.WorkRequestSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.delegateaccesscontrol.model.WorkRequestSummary> + apply(ListWorkRequestsResponse response) { + return response.getWorkRequestSummaryCollection().getItems(); + } + }); + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/WorkRequestWaiters.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/WorkRequestWaiters.java new file mode 100644 index 00000000000..ebed177da17 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/WorkRequestWaiters.java @@ -0,0 +1,83 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol; + +import com.oracle.bmc.delegateaccesscontrol.requests.*; +import com.oracle.bmc.delegateaccesscontrol.responses.*; + +/** + * Collection of helper methods to produce {@link com.oracle.bmc.waiter.Waiter}s for different + * resources of WorkRequest. + * + *

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: 20230801") +public class WorkRequestWaiters { + private final java.util.concurrent.ExecutorService executorService; + private final WorkRequest client; + + public WorkRequestWaiters( + java.util.concurrent.ExecutorService executorService, WorkRequest client) { + this.executorService = executorService; + this.client = client; + } + + /** + * 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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ActionType.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ActionType.java new file mode 100644 index 00000000000..d695b2bd3e2 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/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.delegateaccesscontrol.model; + +/** Possible types of actions. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ApproveDelegatedResourceAccessRequestDetails.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ApproveDelegatedResourceAccessRequestDetails.java new file mode 100644 index 00000000000..516fab94e3a --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ApproveDelegatedResourceAccessRequestDetails.java @@ -0,0 +1,234 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** + * Details of the Delegated Resource Access Request approval.
+ * 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: 20230801") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ApproveDelegatedResourceAccessRequestDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ApproveDelegatedResourceAccessRequestDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "approverComment", + "additionalMessage", + "timeApprovedForAccess" + }) + public ApproveDelegatedResourceAccessRequestDetails( + String approverComment, + String additionalMessage, + java.util.Date timeApprovedForAccess) { + super(); + this.approverComment = approverComment; + this.additionalMessage = additionalMessage; + this.timeApprovedForAccess = timeApprovedForAccess; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Comment by the approver during approval. */ + @com.fasterxml.jackson.annotation.JsonProperty("approverComment") + private String approverComment; + + /** + * Comment by the approver during approval. + * + * @param approverComment the value to set + * @return this builder + */ + public Builder approverComment(String approverComment) { + this.approverComment = approverComment; + this.__explicitlySet__.add("approverComment"); + return this; + } + /** Message that needs to be displayed to the operator. */ + @com.fasterxml.jackson.annotation.JsonProperty("additionalMessage") + private String additionalMessage; + + /** + * Message that needs to be displayed to the operator. + * + * @param additionalMessage the value to set + * @return this builder + */ + public Builder additionalMessage(String additionalMessage) { + this.additionalMessage = additionalMessage; + this.__explicitlySet__.add("additionalMessage"); + return this; + } + /** + * Access start time that is actually approved by the customer in [RFC + * 3339](https://tools.ietf.org/html/rfc3339)timestamp format, e.g. + * '2020-05-22T21:10:29.600Z'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeApprovedForAccess") + private java.util.Date timeApprovedForAccess; + + /** + * Access start time that is actually approved by the customer in [RFC + * 3339](https://tools.ietf.org/html/rfc3339)timestamp format, e.g. + * '2020-05-22T21:10:29.600Z'. + * + * @param timeApprovedForAccess the value to set + * @return this builder + */ + public Builder timeApprovedForAccess(java.util.Date timeApprovedForAccess) { + this.timeApprovedForAccess = timeApprovedForAccess; + this.__explicitlySet__.add("timeApprovedForAccess"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ApproveDelegatedResourceAccessRequestDetails build() { + ApproveDelegatedResourceAccessRequestDetails model = + new ApproveDelegatedResourceAccessRequestDetails( + this.approverComment, + this.additionalMessage, + this.timeApprovedForAccess); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ApproveDelegatedResourceAccessRequestDetails model) { + if (model.wasPropertyExplicitlySet("approverComment")) { + this.approverComment(model.getApproverComment()); + } + if (model.wasPropertyExplicitlySet("additionalMessage")) { + this.additionalMessage(model.getAdditionalMessage()); + } + if (model.wasPropertyExplicitlySet("timeApprovedForAccess")) { + this.timeApprovedForAccess(model.getTimeApprovedForAccess()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Comment by the approver during approval. */ + @com.fasterxml.jackson.annotation.JsonProperty("approverComment") + private final String approverComment; + + /** + * Comment by the approver during approval. + * + * @return the value + */ + public String getApproverComment() { + return approverComment; + } + + /** Message that needs to be displayed to the operator. */ + @com.fasterxml.jackson.annotation.JsonProperty("additionalMessage") + private final String additionalMessage; + + /** + * Message that needs to be displayed to the operator. + * + * @return the value + */ + public String getAdditionalMessage() { + return additionalMessage; + } + + /** + * Access start time that is actually approved by the customer in [RFC + * 3339](https://tools.ietf.org/html/rfc3339)timestamp format, e.g. '2020-05-22T21:10:29.600Z'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeApprovedForAccess") + private final java.util.Date timeApprovedForAccess; + + /** + * Access start time that is actually approved by the customer in [RFC + * 3339](https://tools.ietf.org/html/rfc3339)timestamp format, e.g. '2020-05-22T21:10:29.600Z'. + * + * @return the value + */ + public java.util.Date getTimeApprovedForAccess() { + return timeApprovedForAccess; + } + + @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("ApproveDelegatedResourceAccessRequestDetails("); + sb.append("super=").append(super.toString()); + sb.append("approverComment=").append(String.valueOf(this.approverComment)); + sb.append(", additionalMessage=").append(String.valueOf(this.additionalMessage)); + sb.append(", timeApprovedForAccess=").append(String.valueOf(this.timeApprovedForAccess)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ApproveDelegatedResourceAccessRequestDetails)) { + return false; + } + + ApproveDelegatedResourceAccessRequestDetails other = + (ApproveDelegatedResourceAccessRequestDetails) o; + return java.util.Objects.equals(this.approverComment, other.approverComment) + && java.util.Objects.equals(this.additionalMessage, other.additionalMessage) + && java.util.Objects.equals(this.timeApprovedForAccess, other.timeApprovedForAccess) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.approverComment == null ? 43 : this.approverComment.hashCode()); + result = + (result * PRIME) + + (this.additionalMessage == null ? 43 : this.additionalMessage.hashCode()); + result = + (result * PRIME) + + (this.timeApprovedForAccess == null + ? 43 + : this.timeApprovedForAccess.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/AuditReportStatus.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/AuditReportStatus.java new file mode 100644 index 00000000000..630a1eeb032 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/AuditReportStatus.java @@ -0,0 +1,55 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** Audit Report status */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public enum AuditReportStatus implements com.oracle.bmc.http.internal.BmcEnum { + Notavailable("NOTAVAILABLE"), + Available("AVAILABLE"), + Expired("EXPIRED"), + 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(AuditReportStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AuditReportStatus v : AuditReportStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + AuditReportStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AuditReportStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'AuditReportStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ChangeDelegationControlCompartmentDetails.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ChangeDelegationControlCompartmentDetails.java new file mode 100644 index 00000000000..42c272ca39f --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ChangeDelegationControlCompartmentDetails.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** + * Details of the new compartment to contain the Delegation Control.
+ * 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: 20230801") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeDelegationControlCompartmentDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ChangeDelegationControlCompartmentDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId"}) + public ChangeDelegationControlCompartmentDetails(String compartmentId) { + super(); + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the new compartment to contain the Delegation Control. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the new compartment to contain the Delegation Control. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChangeDelegationControlCompartmentDetails build() { + ChangeDelegationControlCompartmentDetails model = + new ChangeDelegationControlCompartmentDetails(this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeDelegationControlCompartmentDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the new compartment to contain the Delegation Control. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the new compartment to contain the Delegation Control. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ChangeDelegationControlCompartmentDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeDelegationControlCompartmentDetails)) { + return false; + } + + ChangeDelegationControlCompartmentDetails other = + (ChangeDelegationControlCompartmentDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ChangeDelegationSubscriptionCompartmentDetails.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ChangeDelegationSubscriptionCompartmentDetails.java new file mode 100644 index 00000000000..1f33683a2b6 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ChangeDelegationSubscriptionCompartmentDetails.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** + * Details of the new compartment to contain the Delegation Subscription.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeDelegationSubscriptionCompartmentDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ChangeDelegationSubscriptionCompartmentDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId"}) + public ChangeDelegationSubscriptionCompartmentDetails(String compartmentId) { + super(); + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the new compartment to contain the Delegation Subscription. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the new compartment to contain the Delegation Subscription. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChangeDelegationSubscriptionCompartmentDetails build() { + ChangeDelegationSubscriptionCompartmentDetails model = + new ChangeDelegationSubscriptionCompartmentDetails(this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeDelegationSubscriptionCompartmentDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the new compartment to contain the Delegation Subscription. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the new compartment to contain the Delegation Subscription. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ChangeDelegationSubscriptionCompartmentDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeDelegationSubscriptionCompartmentDetails)) { + return false; + } + + ChangeDelegationSubscriptionCompartmentDetails other = + (ChangeDelegationSubscriptionCompartmentDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/CreateDelegationControlDetails.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/CreateDelegationControlDetails.java new file mode 100644 index 00000000000..9998be5b0a4 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/CreateDelegationControlDetails.java @@ -0,0 +1,844 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** + * While creating the Delegation Control, specify how Service Provider Actions are approved and the + * users who have the privilege of approving the Service Provider Actions associated with the + * Delegation Control. + * + *

You must specify which Service Provider Actions must be pre-approved. The rest of the Service + * Provider Actions associated with the Delegation Control will require an explicit approval from + * the users selected either through the approver groups or individually. + * + *

You must name your Delegation Control appropriately so it reflects the resources that will be + * governed by the Delegation Control. Neither the Delegation Controls nor their assignments to + * resources are visible to the support operators.
+ * 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: 20230801") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDelegationControlDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateDelegationControlDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "displayName", + "description", + "numApprovalsRequired", + "preApprovedServiceProviderActionNames", + "delegationSubscriptionIds", + "isAutoApproveDuringMaintenance", + "resourceIds", + "resourceType", + "notificationTopicId", + "notificationMessageFormat", + "vaultId", + "vaultKeyId", + "freeformTags", + "definedTags" + }) + public CreateDelegationControlDetails( + String compartmentId, + String displayName, + String description, + Integer numApprovalsRequired, + java.util.List preApprovedServiceProviderActionNames, + java.util.List delegationSubscriptionIds, + Boolean isAutoApproveDuringMaintenance, + java.util.List resourceIds, + DelegationControlResourceType resourceType, + String notificationTopicId, + DelegationControl.NotificationMessageFormat notificationMessageFormat, + String vaultId, + String vaultKeyId, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.compartmentId = compartmentId; + this.displayName = displayName; + this.description = description; + this.numApprovalsRequired = numApprovalsRequired; + this.preApprovedServiceProviderActionNames = preApprovedServiceProviderActionNames; + this.delegationSubscriptionIds = delegationSubscriptionIds; + this.isAutoApproveDuringMaintenance = isAutoApproveDuringMaintenance; + this.resourceIds = resourceIds; + this.resourceType = resourceType; + this.notificationTopicId = notificationTopicId; + this.notificationMessageFormat = notificationMessageFormat; + this.vaultId = vaultId; + this.vaultKeyId = vaultKeyId; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the compartment that contains this Delegation Control. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment that contains this Delegation Control. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Name of the Delegation Control. The name does not need to be unique. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Name of the Delegation Control. The name does not need to be unique. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Description of the Delegation Control. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Description of the Delegation Control. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** number of approvals required. */ + @com.fasterxml.jackson.annotation.JsonProperty("numApprovalsRequired") + private Integer numApprovalsRequired; + + /** + * number of approvals required. + * + * @param numApprovalsRequired the value to set + * @return this builder + */ + public Builder numApprovalsRequired(Integer numApprovalsRequired) { + this.numApprovalsRequired = numApprovalsRequired; + this.__explicitlySet__.add("numApprovalsRequired"); + return this; + } + /** + * List of pre-approved Service Provider Action names. The list of pre-defined Service + * Provider Actions can be obtained from the ListServiceProviderActions API. Delegated + * Resource Access Requests associated with a resource governed by this Delegation Control + * will be automatically approved if the Delegated Resource Access Request only contain + * Service Provider Actions in the pre-approved list. + */ + @com.fasterxml.jackson.annotation.JsonProperty("preApprovedServiceProviderActionNames") + private java.util.List preApprovedServiceProviderActionNames; + + /** + * List of pre-approved Service Provider Action names. The list of pre-defined Service + * Provider Actions can be obtained from the ListServiceProviderActions API. Delegated + * Resource Access Requests associated with a resource governed by this Delegation Control + * will be automatically approved if the Delegated Resource Access Request only contain + * Service Provider Actions in the pre-approved list. + * + * @param preApprovedServiceProviderActionNames the value to set + * @return this builder + */ + public Builder preApprovedServiceProviderActionNames( + java.util.List preApprovedServiceProviderActionNames) { + this.preApprovedServiceProviderActionNames = preApprovedServiceProviderActionNames; + this.__explicitlySet__.add("preApprovedServiceProviderActionNames"); + return this; + } + /** + * List of Delegation Subscription OCID that are allowed for this Delegation Control. The + * allowed subscriptions will determine the available Service Provider Actions. Only support + * operators for the allowed subscriptions are allowed to create Delegated Resource Access + * Request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("delegationSubscriptionIds") + private java.util.List delegationSubscriptionIds; + + /** + * List of Delegation Subscription OCID that are allowed for this Delegation Control. The + * allowed subscriptions will determine the available Service Provider Actions. Only support + * operators for the allowed subscriptions are allowed to create Delegated Resource Access + * Request. + * + * @param delegationSubscriptionIds the value to set + * @return this builder + */ + public Builder delegationSubscriptionIds(java.util.List delegationSubscriptionIds) { + this.delegationSubscriptionIds = delegationSubscriptionIds; + this.__explicitlySet__.add("delegationSubscriptionIds"); + return this; + } + /** + * Set to true to allow all Delegated Resource Access Request to be approved automatically + * during maintenance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoApproveDuringMaintenance") + private Boolean isAutoApproveDuringMaintenance; + + /** + * Set to true to allow all Delegated Resource Access Request to be approved automatically + * during maintenance. + * + * @param isAutoApproveDuringMaintenance the value to set + * @return this builder + */ + public Builder isAutoApproveDuringMaintenance(Boolean isAutoApproveDuringMaintenance) { + this.isAutoApproveDuringMaintenance = isAutoApproveDuringMaintenance; + this.__explicitlySet__.add("isAutoApproveDuringMaintenance"); + return this; + } + /** The OCID of the selected resources that this Delegation Control is applicable to. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceIds") + private java.util.List resourceIds; + + /** + * The OCID of the selected resources that this Delegation Control is applicable to. + * + * @param resourceIds the value to set + * @return this builder + */ + public Builder resourceIds(java.util.List resourceIds) { + this.resourceIds = resourceIds; + this.__explicitlySet__.add("resourceIds"); + return this; + } + /** Resource type for which the Delegation Control is applicable to. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceType") + private DelegationControlResourceType resourceType; + + /** + * Resource type for which the Delegation Control is applicable to. + * + * @param resourceType the value to set + * @return this builder + */ + public Builder resourceType(DelegationControlResourceType resourceType) { + this.resourceType = resourceType; + this.__explicitlySet__.add("resourceType"); + return this; + } + /** + * The OCID of the OCI Notification topic to publish messages related to this Delegation + * Control. + */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicId") + private String notificationTopicId; + + /** + * The OCID of the OCI Notification topic to publish messages related to this Delegation + * Control. + * + * @param notificationTopicId the value to set + * @return this builder + */ + public Builder notificationTopicId(String notificationTopicId) { + this.notificationTopicId = notificationTopicId; + this.__explicitlySet__.add("notificationTopicId"); + return this; + } + /** The format of the OCI Notification messages for this Delegation Control. */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationMessageFormat") + private DelegationControl.NotificationMessageFormat notificationMessageFormat; + + /** + * The format of the OCI Notification messages for this Delegation Control. + * + * @param notificationMessageFormat the value to set + * @return this builder + */ + public Builder notificationMessageFormat( + DelegationControl.NotificationMessageFormat notificationMessageFormat) { + this.notificationMessageFormat = notificationMessageFormat; + this.__explicitlySet__.add("notificationMessageFormat"); + return this; + } + /** + * The OCID of the OCI Vault that will store the secrets containing the SSH keys to access + * the resource governed by this Delegation Control by Delegate Access Control Service. This + * property is required when resourceType is CLOUDVMCLUSTER. Delegate Access Control Service + * will generate the SSH keys and store them as secrets in the OCI Vault. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + /** + * The OCID of the OCI Vault that will store the secrets containing the SSH keys to access + * the resource governed by this Delegation Control by Delegate Access Control Service. This + * property is required when resourceType is CLOUDVMCLUSTER. Delegate Access Control Service + * will generate the SSH keys and store them as secrets in the OCI Vault. + * + * @param vaultId the value to set + * @return this builder + */ + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + /** + * The OCID of the Master Encryption Key in the OCI Vault specified by vaultId. This key + * will be used to encrypt the SSH keys to access the resource governed by this Delegation + * Control by Delegate Access Control Service. This property is required when resourceType + * is CLOUDVMCLUSTER. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultKeyId") + private String vaultKeyId; + + /** + * The OCID of the Master Encryption Key in the OCI Vault specified by vaultId. This key + * will be used to encrypt the SSH keys to access the resource governed by this Delegation + * Control by Delegate Access Control Service. This property is required when resourceType + * is CLOUDVMCLUSTER. + * + * @param vaultKeyId the value to set + * @return this builder + */ + public Builder vaultKeyId(String vaultKeyId) { + this.vaultKeyId = vaultKeyId; + this.__explicitlySet__.add("vaultKeyId"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Department": "Finance"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.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; + } + /** + * 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; + + /** + * 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 CreateDelegationControlDetails build() { + CreateDelegationControlDetails model = + new CreateDelegationControlDetails( + this.compartmentId, + this.displayName, + this.description, + this.numApprovalsRequired, + this.preApprovedServiceProviderActionNames, + this.delegationSubscriptionIds, + this.isAutoApproveDuringMaintenance, + this.resourceIds, + this.resourceType, + this.notificationTopicId, + this.notificationMessageFormat, + this.vaultId, + this.vaultKeyId, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateDelegationControlDetails 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("numApprovalsRequired")) { + this.numApprovalsRequired(model.getNumApprovalsRequired()); + } + if (model.wasPropertyExplicitlySet("preApprovedServiceProviderActionNames")) { + this.preApprovedServiceProviderActionNames( + model.getPreApprovedServiceProviderActionNames()); + } + if (model.wasPropertyExplicitlySet("delegationSubscriptionIds")) { + this.delegationSubscriptionIds(model.getDelegationSubscriptionIds()); + } + if (model.wasPropertyExplicitlySet("isAutoApproveDuringMaintenance")) { + this.isAutoApproveDuringMaintenance(model.getIsAutoApproveDuringMaintenance()); + } + if (model.wasPropertyExplicitlySet("resourceIds")) { + this.resourceIds(model.getResourceIds()); + } + if (model.wasPropertyExplicitlySet("resourceType")) { + this.resourceType(model.getResourceType()); + } + if (model.wasPropertyExplicitlySet("notificationTopicId")) { + this.notificationTopicId(model.getNotificationTopicId()); + } + if (model.wasPropertyExplicitlySet("notificationMessageFormat")) { + this.notificationMessageFormat(model.getNotificationMessageFormat()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("vaultKeyId")) { + this.vaultKeyId(model.getVaultKeyId()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the compartment that contains this Delegation Control. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment that contains this Delegation Control. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Name of the Delegation Control. The name does not need to be unique. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Name of the Delegation Control. The name does not need to be unique. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Description of the Delegation Control. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the Delegation Control. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** number of approvals required. */ + @com.fasterxml.jackson.annotation.JsonProperty("numApprovalsRequired") + private final Integer numApprovalsRequired; + + /** + * number of approvals required. + * + * @return the value + */ + public Integer getNumApprovalsRequired() { + return numApprovalsRequired; + } + + /** + * List of pre-approved Service Provider Action names. The list of pre-defined Service Provider + * Actions can be obtained from the ListServiceProviderActions API. Delegated Resource Access + * Requests associated with a resource governed by this Delegation Control will be automatically + * approved if the Delegated Resource Access Request only contain Service Provider Actions in + * the pre-approved list. + */ + @com.fasterxml.jackson.annotation.JsonProperty("preApprovedServiceProviderActionNames") + private final java.util.List preApprovedServiceProviderActionNames; + + /** + * List of pre-approved Service Provider Action names. The list of pre-defined Service Provider + * Actions can be obtained from the ListServiceProviderActions API. Delegated Resource Access + * Requests associated with a resource governed by this Delegation Control will be automatically + * approved if the Delegated Resource Access Request only contain Service Provider Actions in + * the pre-approved list. + * + * @return the value + */ + public java.util.List getPreApprovedServiceProviderActionNames() { + return preApprovedServiceProviderActionNames; + } + + /** + * List of Delegation Subscription OCID that are allowed for this Delegation Control. The + * allowed subscriptions will determine the available Service Provider Actions. Only support + * operators for the allowed subscriptions are allowed to create Delegated Resource Access + * Request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("delegationSubscriptionIds") + private final java.util.List delegationSubscriptionIds; + + /** + * List of Delegation Subscription OCID that are allowed for this Delegation Control. The + * allowed subscriptions will determine the available Service Provider Actions. Only support + * operators for the allowed subscriptions are allowed to create Delegated Resource Access + * Request. + * + * @return the value + */ + public java.util.List getDelegationSubscriptionIds() { + return delegationSubscriptionIds; + } + + /** + * Set to true to allow all Delegated Resource Access Request to be approved automatically + * during maintenance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoApproveDuringMaintenance") + private final Boolean isAutoApproveDuringMaintenance; + + /** + * Set to true to allow all Delegated Resource Access Request to be approved automatically + * during maintenance. + * + * @return the value + */ + public Boolean getIsAutoApproveDuringMaintenance() { + return isAutoApproveDuringMaintenance; + } + + /** The OCID of the selected resources that this Delegation Control is applicable to. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceIds") + private final java.util.List resourceIds; + + /** + * The OCID of the selected resources that this Delegation Control is applicable to. + * + * @return the value + */ + public java.util.List getResourceIds() { + return resourceIds; + } + + /** Resource type for which the Delegation Control is applicable to. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceType") + private final DelegationControlResourceType resourceType; + + /** + * Resource type for which the Delegation Control is applicable to. + * + * @return the value + */ + public DelegationControlResourceType getResourceType() { + return resourceType; + } + + /** + * The OCID of the OCI Notification topic to publish messages related to this Delegation + * Control. + */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicId") + private final String notificationTopicId; + + /** + * The OCID of the OCI Notification topic to publish messages related to this Delegation + * Control. + * + * @return the value + */ + public String getNotificationTopicId() { + return notificationTopicId; + } + + /** The format of the OCI Notification messages for this Delegation Control. */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationMessageFormat") + private final DelegationControl.NotificationMessageFormat notificationMessageFormat; + + /** + * The format of the OCI Notification messages for this Delegation Control. + * + * @return the value + */ + public DelegationControl.NotificationMessageFormat getNotificationMessageFormat() { + return notificationMessageFormat; + } + + /** + * The OCID of the OCI Vault that will store the secrets containing the SSH keys to access the + * resource governed by this Delegation Control by Delegate Access Control Service. This + * property is required when resourceType is CLOUDVMCLUSTER. Delegate Access Control Service + * will generate the SSH keys and store them as secrets in the OCI Vault. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; + + /** + * The OCID of the OCI Vault that will store the secrets containing the SSH keys to access the + * resource governed by this Delegation Control by Delegate Access Control Service. This + * property is required when resourceType is CLOUDVMCLUSTER. Delegate Access Control Service + * will generate the SSH keys and store them as secrets in the OCI Vault. + * + * @return the value + */ + public String getVaultId() { + return vaultId; + } + + /** + * The OCID of the Master Encryption Key in the OCI Vault specified by vaultId. This key will be + * used to encrypt the SSH keys to access the resource governed by this Delegation Control by + * Delegate Access Control Service. This property is required when resourceType is + * CLOUDVMCLUSTER. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultKeyId") + private final String vaultKeyId; + + /** + * The OCID of the Master Encryption Key in the OCI Vault specified by vaultId. This key will be + * used to encrypt the SSH keys to access the resource governed by this Delegation Control by + * Delegate Access Control Service. This property is required when resourceType is + * CLOUDVMCLUSTER. + * + * @return the value + */ + public String getVaultKeyId() { + return vaultKeyId; + } + + /** + * 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; + + /** + * 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; + } + + /** + * 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; + + /** + * 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("CreateDelegationControlDetails("); + 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(", numApprovalsRequired=").append(String.valueOf(this.numApprovalsRequired)); + sb.append(", preApprovedServiceProviderActionNames=") + .append(String.valueOf(this.preApprovedServiceProviderActionNames)); + sb.append(", delegationSubscriptionIds=") + .append(String.valueOf(this.delegationSubscriptionIds)); + sb.append(", isAutoApproveDuringMaintenance=") + .append(String.valueOf(this.isAutoApproveDuringMaintenance)); + sb.append(", resourceIds=").append(String.valueOf(this.resourceIds)); + sb.append(", resourceType=").append(String.valueOf(this.resourceType)); + sb.append(", notificationTopicId=").append(String.valueOf(this.notificationTopicId)); + sb.append(", notificationMessageFormat=") + .append(String.valueOf(this.notificationMessageFormat)); + sb.append(", vaultId=").append(String.valueOf(this.vaultId)); + sb.append(", vaultKeyId=").append(String.valueOf(this.vaultKeyId)); + 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 CreateDelegationControlDetails)) { + return false; + } + + CreateDelegationControlDetails other = (CreateDelegationControlDetails) 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.numApprovalsRequired, other.numApprovalsRequired) + && java.util.Objects.equals( + this.preApprovedServiceProviderActionNames, + other.preApprovedServiceProviderActionNames) + && java.util.Objects.equals( + this.delegationSubscriptionIds, other.delegationSubscriptionIds) + && java.util.Objects.equals( + this.isAutoApproveDuringMaintenance, other.isAutoApproveDuringMaintenance) + && java.util.Objects.equals(this.resourceIds, other.resourceIds) + && java.util.Objects.equals(this.resourceType, other.resourceType) + && java.util.Objects.equals(this.notificationTopicId, other.notificationTopicId) + && java.util.Objects.equals( + this.notificationMessageFormat, other.notificationMessageFormat) + && java.util.Objects.equals(this.vaultId, other.vaultId) + && java.util.Objects.equals(this.vaultKeyId, other.vaultKeyId) + && 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.numApprovalsRequired == null + ? 43 + : this.numApprovalsRequired.hashCode()); + result = + (result * PRIME) + + (this.preApprovedServiceProviderActionNames == null + ? 43 + : this.preApprovedServiceProviderActionNames.hashCode()); + result = + (result * PRIME) + + (this.delegationSubscriptionIds == null + ? 43 + : this.delegationSubscriptionIds.hashCode()); + result = + (result * PRIME) + + (this.isAutoApproveDuringMaintenance == null + ? 43 + : this.isAutoApproveDuringMaintenance.hashCode()); + result = (result * PRIME) + (this.resourceIds == null ? 43 : this.resourceIds.hashCode()); + result = (result * PRIME) + (this.resourceType == null ? 43 : this.resourceType.hashCode()); + result = + (result * PRIME) + + (this.notificationTopicId == null + ? 43 + : this.notificationTopicId.hashCode()); + result = + (result * PRIME) + + (this.notificationMessageFormat == null + ? 43 + : this.notificationMessageFormat.hashCode()); + result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); + result = (result * PRIME) + (this.vaultKeyId == null ? 43 : this.vaultKeyId.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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/CreateDelegationSubscriptionDetails.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/CreateDelegationSubscriptionDetails.java new file mode 100644 index 00000000000..2f49c13bbc5 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/CreateDelegationSubscriptionDetails.java @@ -0,0 +1,378 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** + * Details for creating the Delegation Subscription.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDelegationSubscriptionDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateDelegationSubscriptionDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "serviceProviderId", + "description", + "subscribedServiceType", + "freeformTags", + "definedTags" + }) + public CreateDelegationSubscriptionDetails( + String compartmentId, + String serviceProviderId, + String description, + ServiceProviderServiceType subscribedServiceType, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.compartmentId = compartmentId; + this.serviceProviderId = serviceProviderId; + this.description = description; + this.subscribedServiceType = subscribedServiceType; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the compartment that contains the Delegation Control. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment that contains the Delegation Control. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Unique identifier of the Service Provider. */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceProviderId") + private String serviceProviderId; + + /** + * Unique identifier of the Service Provider. + * + * @param serviceProviderId the value to set + * @return this builder + */ + public Builder serviceProviderId(String serviceProviderId) { + this.serviceProviderId = serviceProviderId; + this.__explicitlySet__.add("serviceProviderId"); + return this; + } + /** Description of the Delegation Subscription. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Description of the Delegation Subscription. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** Subscribed Service Provider Service Type. */ + @com.fasterxml.jackson.annotation.JsonProperty("subscribedServiceType") + private ServiceProviderServiceType subscribedServiceType; + + /** + * Subscribed Service Provider Service Type. + * + * @param subscribedServiceType the value to set + * @return this builder + */ + public Builder subscribedServiceType(ServiceProviderServiceType subscribedServiceType) { + this.subscribedServiceType = subscribedServiceType; + this.__explicitlySet__.add("subscribedServiceType"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Department": "Finance"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.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; + } + /** + * 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; + + /** + * 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 CreateDelegationSubscriptionDetails build() { + CreateDelegationSubscriptionDetails model = + new CreateDelegationSubscriptionDetails( + this.compartmentId, + this.serviceProviderId, + this.description, + this.subscribedServiceType, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateDelegationSubscriptionDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("serviceProviderId")) { + this.serviceProviderId(model.getServiceProviderId()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("subscribedServiceType")) { + this.subscribedServiceType(model.getSubscribedServiceType()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the compartment that contains the Delegation Control. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment that contains the Delegation Control. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Unique identifier of the Service Provider. */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceProviderId") + private final String serviceProviderId; + + /** + * Unique identifier of the Service Provider. + * + * @return the value + */ + public String getServiceProviderId() { + return serviceProviderId; + } + + /** Description of the Delegation Subscription. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the Delegation Subscription. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** Subscribed Service Provider Service Type. */ + @com.fasterxml.jackson.annotation.JsonProperty("subscribedServiceType") + private final ServiceProviderServiceType subscribedServiceType; + + /** + * Subscribed Service Provider Service Type. + * + * @return the value + */ + public ServiceProviderServiceType getSubscribedServiceType() { + return subscribedServiceType; + } + + /** + * 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; + + /** + * 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; + } + + /** + * 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; + + /** + * 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("CreateDelegationSubscriptionDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", serviceProviderId=").append(String.valueOf(this.serviceProviderId)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", subscribedServiceType=").append(String.valueOf(this.subscribedServiceType)); + 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 CreateDelegationSubscriptionDetails)) { + return false; + } + + CreateDelegationSubscriptionDetails other = (CreateDelegationSubscriptionDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.serviceProviderId, other.serviceProviderId) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.subscribedServiceType, other.subscribedServiceType) + && 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.serviceProviderId == null ? 43 : this.serviceProviderId.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.subscribedServiceType == null + ? 43 + : this.subscribedServiceType.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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequest.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequest.java new file mode 100644 index 00000000000..68c0e706e26 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequest.java @@ -0,0 +1,1699 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** + * A support operator raises Delegated Resource Access Request when they need access to any + * infrastructure resource governed by Delegation Control. The Delegated Resource Access Request + * identifies the target resource and the set of Service Provider Actions. Delegated Resource Access + * Request handling depends upon the Delegation Control that governs the target resource, and the + * set of Service Provider Actions listed for approval in the Delegated Resource Access Request. If + * all of the Service Provider Actions listed in the Delegated Resource Access Request are in the + * pre-approved list in the Delegation Control that governs the target resource, then the Delegated + * Resource Access Request is automatically approved. If not, then the Delegated Resource Access + * Request requires explicit approval from the approver group specified by the Delegation Control + * governing the target resource. + * + *

You can approve or reject a Delegated Resource Access Request. You can also revoke the + * approval of an already approved Delegated Resource Access Request. While creating a Delegated + * Resource Access Request, the support operator specifies the duration of access. You have the + * option to approve the entire duration or reduce or even increase the time duration. A support + * operator can also request for an extension. The approval for such an extension is processed the + * same way the original Delegated Resource Access Request was processed.
+ * 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: 20230801") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DelegatedResourceAccessRequest.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DelegatedResourceAccessRequest + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "ticketNumbers", + "reasonForRequest", + "description", + "timeAccessRequested", + "resourceId", + "resourceName", + "resourceType", + "requesterType", + "requestedActionNames", + "databaseNameList", + "providedServiceTypes", + "delegationSubscriptionIds", + "severity", + "durationInHours", + "extendDurationInHours", + "isAutoApproved", + "lifecycleState", + "lifecycleStateDetails", + "requestStatus", + "timeCreated", + "timeUpdated", + "numInitialApprovals", + "numExtensionApprovals", + "approvalInfo", + "closureComment", + "delegationControlId", + "auditTypes", + "isPendingMoreInfo", + "freeformTags", + "definedTags", + "systemTags" + }) + public DelegatedResourceAccessRequest( + String id, + String compartmentId, + String displayName, + java.util.List ticketNumbers, + String reasonForRequest, + String description, + java.util.Date timeAccessRequested, + String resourceId, + String resourceName, + DelegationControlResourceType resourceType, + DelegatedResourceAccessRequesterType requesterType, + java.util.List requestedActionNames, + java.util.List databaseNameList, + java.util.List providedServiceTypes, + java.util.List delegationSubscriptionIds, + DelegatedResourceAccessRequestSeverity severity, + Integer durationInHours, + Integer extendDurationInHours, + Boolean isAutoApproved, + LifecycleState lifecycleState, + String lifecycleStateDetails, + DelegatedResourceAccessRequestStatus requestStatus, + java.util.Date timeCreated, + java.util.Date timeUpdated, + Integer numInitialApprovals, + Integer numExtensionApprovals, + java.util.List approvalInfo, + String closureComment, + String delegationControlId, + java.util.List auditTypes, + Boolean isPendingMoreInfo, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.ticketNumbers = ticketNumbers; + this.reasonForRequest = reasonForRequest; + this.description = description; + this.timeAccessRequested = timeAccessRequested; + this.resourceId = resourceId; + this.resourceName = resourceName; + this.resourceType = resourceType; + this.requesterType = requesterType; + this.requestedActionNames = requestedActionNames; + this.databaseNameList = databaseNameList; + this.providedServiceTypes = providedServiceTypes; + this.delegationSubscriptionIds = delegationSubscriptionIds; + this.severity = severity; + this.durationInHours = durationInHours; + this.extendDurationInHours = extendDurationInHours; + this.isAutoApproved = isAutoApproved; + this.lifecycleState = lifecycleState; + this.lifecycleStateDetails = lifecycleStateDetails; + this.requestStatus = requestStatus; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.numInitialApprovals = numInitialApprovals; + this.numExtensionApprovals = numExtensionApprovals; + this.approvalInfo = approvalInfo; + this.closureComment = closureComment; + this.delegationControlId = delegationControlId; + this.auditTypes = auditTypes; + this.isPendingMoreInfo = isPendingMoreInfo; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the Delegated Resource Access Request. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the Delegated Resource Access Request. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The OCID of the compartment that contains the Delegated Resource Access Request. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment that contains the Delegated Resource Access Request. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Display name. This is generated by the system automatically. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Display name. This is generated by the system automatically. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * A list of ticket numbers related to this Delegated Resource Access Request, e.g. Service + * Request (SR) number and JIRA ticket number. + */ + @com.fasterxml.jackson.annotation.JsonProperty("ticketNumbers") + private java.util.List ticketNumbers; + + /** + * A list of ticket numbers related to this Delegated Resource Access Request, e.g. Service + * Request (SR) number and JIRA ticket number. + * + * @param ticketNumbers the value to set + * @return this builder + */ + public Builder ticketNumbers(java.util.List ticketNumbers) { + this.ticketNumbers = ticketNumbers; + this.__explicitlySet__.add("ticketNumbers"); + return this; + } + /** + * A short description explaining why this Delegated Resource Access Request is needed by + * the support operator. + */ + @com.fasterxml.jackson.annotation.JsonProperty("reasonForRequest") + private String reasonForRequest; + + /** + * A short description explaining why this Delegated Resource Access Request is needed by + * the support operator. + * + * @param reasonForRequest the value to set + * @return this builder + */ + public Builder reasonForRequest(String reasonForRequest) { + this.reasonForRequest = reasonForRequest; + this.__explicitlySet__.add("reasonForRequest"); + return this; + } + /** Detailed description of this Delegated Resource Access Request. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Detailed description of this Delegated Resource Access Request. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** Requested access start time in UTC. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccessRequested") + private java.util.Date timeAccessRequested; + + /** + * Requested access start time in UTC. + * + * @param timeAccessRequested the value to set + * @return this builder + */ + public Builder timeAccessRequested(java.util.Date timeAccessRequested) { + this.timeAccessRequested = timeAccessRequested; + this.__explicitlySet__.add("timeAccessRequested"); + return this; + } + /** + * The OCID of the target resource associated with the Delegated Resource Access Request. + * The support operator raises a Delegated Resource Access Request to get approval to access + * the target resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private String resourceId; + + /** + * The OCID of the target resource associated with the Delegated Resource Access Request. + * The support operator raises a Delegated Resource Access Request to get approval to access + * the target resource. + * + * @param resourceId the value to set + * @return this builder + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + this.__explicitlySet__.add("resourceId"); + return this; + } + /** + * The name of the target resource associated with the Delegated Resource Access Request. + * The support operator raises a Delegated Resource Access Request to get approval to access + * the target resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceName") + private String resourceName; + + /** + * The name of the target resource associated with the Delegated Resource Access Request. + * The support operator raises a Delegated Resource Access Request to get approval to access + * the target resource. + * + * @param resourceName the value to set + * @return this builder + */ + public Builder resourceName(String resourceName) { + this.resourceName = resourceName; + this.__explicitlySet__.add("resourceName"); + return this; + } + /** Resource type for which the associated Delegation Control is applicable to. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceType") + private DelegationControlResourceType resourceType; + + /** + * Resource type for which the associated Delegation Control is applicable to. + * + * @param resourceType the value to set + * @return this builder + */ + public Builder resourceType(DelegationControlResourceType resourceType) { + this.resourceType = resourceType; + this.__explicitlySet__.add("resourceType"); + return this; + } + /** Requester type */ + @com.fasterxml.jackson.annotation.JsonProperty("requesterType") + private DelegatedResourceAccessRequesterType requesterType; + + /** + * Requester type + * + * @param requesterType the value to set + * @return this builder + */ + public Builder requesterType(DelegatedResourceAccessRequesterType requesterType) { + this.requesterType = requesterType; + this.__explicitlySet__.add("requesterType"); + return this; + } + /** + * List of Service Provider Action names for which approval is sought by the support + * operator user. The list of pre-defined Service Provider Actions can be obtained from the + * ListServiceProviderActions API. + */ + @com.fasterxml.jackson.annotation.JsonProperty("requestedActionNames") + private java.util.List requestedActionNames; + + /** + * List of Service Provider Action names for which approval is sought by the support + * operator user. The list of pre-defined Service Provider Actions can be obtained from the + * ListServiceProviderActions API. + * + * @param requestedActionNames the value to set + * @return this builder + */ + public Builder requestedActionNames(java.util.List requestedActionNames) { + this.requestedActionNames = requestedActionNames; + this.__explicitlySet__.add("requestedActionNames"); + return this; + } + /** + * List of Database unique names for which access is requested. This parameter is required + * for DLGT_MGMT_SYS_MAINT_ACCESS cage when database access in needed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseNameList") + private java.util.List databaseNameList; + + /** + * List of Database unique names for which access is requested. This parameter is required + * for DLGT_MGMT_SYS_MAINT_ACCESS cage when database access in needed. + * + * @param databaseNameList the value to set + * @return this builder + */ + public Builder databaseNameList(java.util.List databaseNameList) { + this.databaseNameList = databaseNameList; + this.__explicitlySet__.add("databaseNameList"); + return this; + } + /** List of Service Provider Service Types being provided by the support operator user. */ + @com.fasterxml.jackson.annotation.JsonProperty("providedServiceTypes") + private java.util.List providedServiceTypes; + + /** + * List of Service Provider Service Types being provided by the support operator user. + * + * @param providedServiceTypes the value to set + * @return this builder + */ + public Builder providedServiceTypes( + java.util.List providedServiceTypes) { + this.providedServiceTypes = providedServiceTypes; + this.__explicitlySet__.add("providedServiceTypes"); + return this; + } + /** + * List of Delegation Subscription OCID that are associated with this Delegated Resource + * Access Request based on the service types being requested. + */ + @com.fasterxml.jackson.annotation.JsonProperty("delegationSubscriptionIds") + private java.util.List delegationSubscriptionIds; + + /** + * List of Delegation Subscription OCID that are associated with this Delegated Resource + * Access Request based on the service types being requested. + * + * @param delegationSubscriptionIds the value to set + * @return this builder + */ + public Builder delegationSubscriptionIds(java.util.List delegationSubscriptionIds) { + this.delegationSubscriptionIds = delegationSubscriptionIds; + this.__explicitlySet__.add("delegationSubscriptionIds"); + return this; + } + /** Priority assigned to the Delegated Resource Access Request by the support operator */ + @com.fasterxml.jackson.annotation.JsonProperty("severity") + private DelegatedResourceAccessRequestSeverity severity; + + /** + * Priority assigned to the Delegated Resource Access Request by the support operator + * + * @param severity the value to set + * @return this builder + */ + public Builder severity(DelegatedResourceAccessRequestSeverity severity) { + this.severity = severity; + this.__explicitlySet__.add("severity"); + return this; + } + /** Duration in hours for which access is sought on the target resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("durationInHours") + private Integer durationInHours; + + /** + * Duration in hours for which access is sought on the target resource. + * + * @param durationInHours the value to set + * @return this builder + */ + public Builder durationInHours(Integer durationInHours) { + this.durationInHours = durationInHours; + this.__explicitlySet__.add("durationInHours"); + return this; + } + /** Duration in hours for which extension access is sought on the target resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("extendDurationInHours") + private Integer extendDurationInHours; + + /** + * Duration in hours for which extension access is sought on the target resource. + * + * @param extendDurationInHours the value to set + * @return this builder + */ + public Builder extendDurationInHours(Integer extendDurationInHours) { + this.extendDurationInHours = extendDurationInHours; + this.__explicitlySet__.add("extendDurationInHours"); + return this; + } + /** + * Set to true if the request is approved automatically based on + * preApprovedServiceProviderActionNames or isAutoApproveDuringMaintenance in the associated + * Delegation Control. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoApproved") + private Boolean isAutoApproved; + + /** + * Set to true if the request is approved automatically based on + * preApprovedServiceProviderActionNames or isAutoApproveDuringMaintenance in the associated + * Delegation Control. + * + * @param isAutoApproved the value to set + * @return this builder + */ + public Builder isAutoApproved(Boolean isAutoApproved) { + this.isAutoApproved = isAutoApproved; + this.__explicitlySet__.add("isAutoApproved"); + return this; + } + /** The current lifecycle state of the Delegated Resource Access Request. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current lifecycle state of the Delegated Resource Access Request. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** Description of the current lifecycle state in more detail. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStateDetails") + private String lifecycleStateDetails; + + /** + * Description of the current lifecycle state in more detail. + * + * @param lifecycleStateDetails the value to set + * @return this builder + */ + public Builder lifecycleStateDetails(String lifecycleStateDetails) { + this.lifecycleStateDetails = lifecycleStateDetails; + this.__explicitlySet__.add("lifecycleStateDetails"); + return this; + } + /** The current status of the Delegated Resource Access Request. */ + @com.fasterxml.jackson.annotation.JsonProperty("requestStatus") + private DelegatedResourceAccessRequestStatus requestStatus; + + /** + * The current status of the Delegated Resource Access Request. + * + * @param requestStatus the value to set + * @return this builder + */ + public Builder requestStatus(DelegatedResourceAccessRequestStatus requestStatus) { + this.requestStatus = requestStatus; + this.__explicitlySet__.add("requestStatus"); + return this; + } + /** + * Time when the Delegated Resource Access Request was created in [RFC + * 3339](https://tools.ietf.org/html/rfc3339)timestamp format, e.g. + * '2020-05-22T21:10:29.600Z'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * Time when the Delegated Resource Access Request was created in [RFC + * 3339](https://tools.ietf.org/html/rfc3339)timestamp format, e.g. + * '2020-05-22T21: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; + } + /** + * Time when the Delegated Resource Access Request was last modified in [RFC + * 3339](https://tools.ietf.org/html/rfc3339)timestamp format, e.g. + * '2020-05-22T21:10:29.600Z'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * Time when the Delegated Resource Access Request was last modified in [RFC + * 3339](https://tools.ietf.org/html/rfc3339)timestamp format, e.g. + * '2020-05-22T21: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; + } + /** Number of initial approvals that have been obtained so far. */ + @com.fasterxml.jackson.annotation.JsonProperty("numInitialApprovals") + private Integer numInitialApprovals; + + /** + * Number of initial approvals that have been obtained so far. + * + * @param numInitialApprovals the value to set + * @return this builder + */ + public Builder numInitialApprovals(Integer numInitialApprovals) { + this.numInitialApprovals = numInitialApprovals; + this.__explicitlySet__.add("numInitialApprovals"); + return this; + } + /** Number of extension approvals that have been obtained so far. */ + @com.fasterxml.jackson.annotation.JsonProperty("numExtensionApprovals") + private Integer numExtensionApprovals; + + /** + * Number of extension approvals that have been obtained so far. + * + * @param numExtensionApprovals the value to set + * @return this builder + */ + public Builder numExtensionApprovals(Integer numExtensionApprovals) { + this.numExtensionApprovals = numExtensionApprovals; + this.__explicitlySet__.add("numExtensionApprovals"); + return this; + } + /** In case of single approval, this will have only one item. Else, a list of approvals. */ + @com.fasterxml.jackson.annotation.JsonProperty("approvalInfo") + private java.util.List approvalInfo; + + /** + * In case of single approval, this will have only one item. Else, a list of approvals. + * + * @param approvalInfo the value to set + * @return this builder + */ + public Builder approvalInfo( + java.util.List approvalInfo) { + this.approvalInfo = approvalInfo; + this.__explicitlySet__.add("approvalInfo"); + return this; + } + /** The comment entered by the support operator while closing the request. */ + @com.fasterxml.jackson.annotation.JsonProperty("closureComment") + private String closureComment; + + /** + * The comment entered by the support operator while closing the request. + * + * @param closureComment the value to set + * @return this builder + */ + public Builder closureComment(String closureComment) { + this.closureComment = closureComment; + this.__explicitlySet__.add("closureComment"); + return this; + } + /** The OCID of the Delegation Control governing the target resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("delegationControlId") + private String delegationControlId; + + /** + * The OCID of the Delegation Control governing the target resource. + * + * @param delegationControlId the value to set + * @return this builder + */ + public Builder delegationControlId(String delegationControlId) { + this.delegationControlId = delegationControlId; + this.__explicitlySet__.add("delegationControlId"); + return this; + } + /** + * Specifies the type of auditing to be enabled. There are two levels of auditing: + * command-level and keystroke-level. By default, both command-level and keystroke-level + * auditing are enabled, i.e. commands and key strokes issued by the support operator are + * logged. + */ + @com.fasterxml.jackson.annotation.JsonProperty("auditTypes") + private java.util.List auditTypes; + + /** + * Specifies the type of auditing to be enabled. There are two levels of auditing: + * command-level and keystroke-level. By default, both command-level and keystroke-level + * auditing are enabled, i.e. commands and key strokes issued by the support operator are + * logged. + * + * @param auditTypes the value to set + * @return this builder + */ + public Builder auditTypes( + java.util.List auditTypes) { + this.auditTypes = auditTypes; + this.__explicitlySet__.add("auditTypes"); + return this; + } + /** + * Indicates if the delegated resource access request is waiting on more information from + * the operator + */ + @com.fasterxml.jackson.annotation.JsonProperty("isPendingMoreInfo") + private Boolean isPendingMoreInfo; + + /** + * Indicates if the delegated resource access request is waiting on more information from + * the operator + * + * @param isPendingMoreInfo the value to set + * @return this builder + */ + public Builder isPendingMoreInfo(Boolean isPendingMoreInfo) { + this.isPendingMoreInfo = isPendingMoreInfo; + this.__explicitlySet__.add("isPendingMoreInfo"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Department": "Finance"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.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; + } + /** + * 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; + + /** + * 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; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * + *

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

Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DelegatedResourceAccessRequest build() { + DelegatedResourceAccessRequest model = + new DelegatedResourceAccessRequest( + this.id, + this.compartmentId, + this.displayName, + this.ticketNumbers, + this.reasonForRequest, + this.description, + this.timeAccessRequested, + this.resourceId, + this.resourceName, + this.resourceType, + this.requesterType, + this.requestedActionNames, + this.databaseNameList, + this.providedServiceTypes, + this.delegationSubscriptionIds, + this.severity, + this.durationInHours, + this.extendDurationInHours, + this.isAutoApproved, + this.lifecycleState, + this.lifecycleStateDetails, + this.requestStatus, + this.timeCreated, + this.timeUpdated, + this.numInitialApprovals, + this.numExtensionApprovals, + this.approvalInfo, + this.closureComment, + this.delegationControlId, + this.auditTypes, + this.isPendingMoreInfo, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DelegatedResourceAccessRequest 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("ticketNumbers")) { + this.ticketNumbers(model.getTicketNumbers()); + } + if (model.wasPropertyExplicitlySet("reasonForRequest")) { + this.reasonForRequest(model.getReasonForRequest()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("timeAccessRequested")) { + this.timeAccessRequested(model.getTimeAccessRequested()); + } + if (model.wasPropertyExplicitlySet("resourceId")) { + this.resourceId(model.getResourceId()); + } + if (model.wasPropertyExplicitlySet("resourceName")) { + this.resourceName(model.getResourceName()); + } + if (model.wasPropertyExplicitlySet("resourceType")) { + this.resourceType(model.getResourceType()); + } + if (model.wasPropertyExplicitlySet("requesterType")) { + this.requesterType(model.getRequesterType()); + } + if (model.wasPropertyExplicitlySet("requestedActionNames")) { + this.requestedActionNames(model.getRequestedActionNames()); + } + if (model.wasPropertyExplicitlySet("databaseNameList")) { + this.databaseNameList(model.getDatabaseNameList()); + } + if (model.wasPropertyExplicitlySet("providedServiceTypes")) { + this.providedServiceTypes(model.getProvidedServiceTypes()); + } + if (model.wasPropertyExplicitlySet("delegationSubscriptionIds")) { + this.delegationSubscriptionIds(model.getDelegationSubscriptionIds()); + } + if (model.wasPropertyExplicitlySet("severity")) { + this.severity(model.getSeverity()); + } + if (model.wasPropertyExplicitlySet("durationInHours")) { + this.durationInHours(model.getDurationInHours()); + } + if (model.wasPropertyExplicitlySet("extendDurationInHours")) { + this.extendDurationInHours(model.getExtendDurationInHours()); + } + if (model.wasPropertyExplicitlySet("isAutoApproved")) { + this.isAutoApproved(model.getIsAutoApproved()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleStateDetails")) { + this.lifecycleStateDetails(model.getLifecycleStateDetails()); + } + if (model.wasPropertyExplicitlySet("requestStatus")) { + this.requestStatus(model.getRequestStatus()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("numInitialApprovals")) { + this.numInitialApprovals(model.getNumInitialApprovals()); + } + if (model.wasPropertyExplicitlySet("numExtensionApprovals")) { + this.numExtensionApprovals(model.getNumExtensionApprovals()); + } + if (model.wasPropertyExplicitlySet("approvalInfo")) { + this.approvalInfo(model.getApprovalInfo()); + } + if (model.wasPropertyExplicitlySet("closureComment")) { + this.closureComment(model.getClosureComment()); + } + if (model.wasPropertyExplicitlySet("delegationControlId")) { + this.delegationControlId(model.getDelegationControlId()); + } + if (model.wasPropertyExplicitlySet("auditTypes")) { + this.auditTypes(model.getAuditTypes()); + } + if (model.wasPropertyExplicitlySet("isPendingMoreInfo")) { + this.isPendingMoreInfo(model.getIsPendingMoreInfo()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the Delegated Resource Access Request. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the Delegated Resource Access Request. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The OCID of the compartment that contains the Delegated Resource Access Request. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment that contains the Delegated Resource Access Request. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Display name. This is generated by the system automatically. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Display name. This is generated by the system automatically. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * A list of ticket numbers related to this Delegated Resource Access Request, e.g. Service + * Request (SR) number and JIRA ticket number. + */ + @com.fasterxml.jackson.annotation.JsonProperty("ticketNumbers") + private final java.util.List ticketNumbers; + + /** + * A list of ticket numbers related to this Delegated Resource Access Request, e.g. Service + * Request (SR) number and JIRA ticket number. + * + * @return the value + */ + public java.util.List getTicketNumbers() { + return ticketNumbers; + } + + /** + * A short description explaining why this Delegated Resource Access Request is needed by the + * support operator. + */ + @com.fasterxml.jackson.annotation.JsonProperty("reasonForRequest") + private final String reasonForRequest; + + /** + * A short description explaining why this Delegated Resource Access Request is needed by the + * support operator. + * + * @return the value + */ + public String getReasonForRequest() { + return reasonForRequest; + } + + /** Detailed description of this Delegated Resource Access Request. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Detailed description of this Delegated Resource Access Request. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** Requested access start time in UTC. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccessRequested") + private final java.util.Date timeAccessRequested; + + /** + * Requested access start time in UTC. + * + * @return the value + */ + public java.util.Date getTimeAccessRequested() { + return timeAccessRequested; + } + + /** + * The OCID of the target resource associated with the Delegated Resource Access Request. The + * support operator raises a Delegated Resource Access Request to get approval to access the + * target resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private final String resourceId; + + /** + * The OCID of the target resource associated with the Delegated Resource Access Request. The + * support operator raises a Delegated Resource Access Request to get approval to access the + * target resource. + * + * @return the value + */ + public String getResourceId() { + return resourceId; + } + + /** + * The name of the target resource associated with the Delegated Resource Access Request. The + * support operator raises a Delegated Resource Access Request to get approval to access the + * target resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceName") + private final String resourceName; + + /** + * The name of the target resource associated with the Delegated Resource Access Request. The + * support operator raises a Delegated Resource Access Request to get approval to access the + * target resource. + * + * @return the value + */ + public String getResourceName() { + return resourceName; + } + + /** Resource type for which the associated Delegation Control is applicable to. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceType") + private final DelegationControlResourceType resourceType; + + /** + * Resource type for which the associated Delegation Control is applicable to. + * + * @return the value + */ + public DelegationControlResourceType getResourceType() { + return resourceType; + } + + /** Requester type */ + @com.fasterxml.jackson.annotation.JsonProperty("requesterType") + private final DelegatedResourceAccessRequesterType requesterType; + + /** + * Requester type + * + * @return the value + */ + public DelegatedResourceAccessRequesterType getRequesterType() { + return requesterType; + } + + /** + * List of Service Provider Action names for which approval is sought by the support operator + * user. The list of pre-defined Service Provider Actions can be obtained from the + * ListServiceProviderActions API. + */ + @com.fasterxml.jackson.annotation.JsonProperty("requestedActionNames") + private final java.util.List requestedActionNames; + + /** + * List of Service Provider Action names for which approval is sought by the support operator + * user. The list of pre-defined Service Provider Actions can be obtained from the + * ListServiceProviderActions API. + * + * @return the value + */ + public java.util.List getRequestedActionNames() { + return requestedActionNames; + } + + /** + * List of Database unique names for which access is requested. This parameter is required for + * DLGT_MGMT_SYS_MAINT_ACCESS cage when database access in needed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseNameList") + private final java.util.List databaseNameList; + + /** + * List of Database unique names for which access is requested. This parameter is required for + * DLGT_MGMT_SYS_MAINT_ACCESS cage when database access in needed. + * + * @return the value + */ + public java.util.List getDatabaseNameList() { + return databaseNameList; + } + + /** List of Service Provider Service Types being provided by the support operator user. */ + @com.fasterxml.jackson.annotation.JsonProperty("providedServiceTypes") + private final java.util.List providedServiceTypes; + + /** + * List of Service Provider Service Types being provided by the support operator user. + * + * @return the value + */ + public java.util.List getProvidedServiceTypes() { + return providedServiceTypes; + } + + /** + * List of Delegation Subscription OCID that are associated with this Delegated Resource Access + * Request based on the service types being requested. + */ + @com.fasterxml.jackson.annotation.JsonProperty("delegationSubscriptionIds") + private final java.util.List delegationSubscriptionIds; + + /** + * List of Delegation Subscription OCID that are associated with this Delegated Resource Access + * Request based on the service types being requested. + * + * @return the value + */ + public java.util.List getDelegationSubscriptionIds() { + return delegationSubscriptionIds; + } + + /** Priority assigned to the Delegated Resource Access Request by the support operator */ + @com.fasterxml.jackson.annotation.JsonProperty("severity") + private final DelegatedResourceAccessRequestSeverity severity; + + /** + * Priority assigned to the Delegated Resource Access Request by the support operator + * + * @return the value + */ + public DelegatedResourceAccessRequestSeverity getSeverity() { + return severity; + } + + /** Duration in hours for which access is sought on the target resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("durationInHours") + private final Integer durationInHours; + + /** + * Duration in hours for which access is sought on the target resource. + * + * @return the value + */ + public Integer getDurationInHours() { + return durationInHours; + } + + /** Duration in hours for which extension access is sought on the target resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("extendDurationInHours") + private final Integer extendDurationInHours; + + /** + * Duration in hours for which extension access is sought on the target resource. + * + * @return the value + */ + public Integer getExtendDurationInHours() { + return extendDurationInHours; + } + + /** + * Set to true if the request is approved automatically based on + * preApprovedServiceProviderActionNames or isAutoApproveDuringMaintenance in the associated + * Delegation Control. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoApproved") + private final Boolean isAutoApproved; + + /** + * Set to true if the request is approved automatically based on + * preApprovedServiceProviderActionNames or isAutoApproveDuringMaintenance in the associated + * Delegation Control. + * + * @return the value + */ + public Boolean getIsAutoApproved() { + return isAutoApproved; + } + + /** The current lifecycle state of the Delegated Resource Access Request. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Accepted("ACCEPTED"), + InProgress("IN_PROGRESS"), + Waiting("WAITING"), + Failed("FAILED"), + Succeeded("SUCCEEDED"), + Canceling("CANCELING"), + Canceled("CANCELED"), + NeedsAttention("NEEDS_ATTENTION"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The current lifecycle state of the Delegated Resource Access Request. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current lifecycle state of the Delegated Resource Access Request. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** Description of the current lifecycle state in more detail. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStateDetails") + private final String lifecycleStateDetails; + + /** + * Description of the current lifecycle state in more detail. + * + * @return the value + */ + public String getLifecycleStateDetails() { + return lifecycleStateDetails; + } + + /** The current status of the Delegated Resource Access Request. */ + @com.fasterxml.jackson.annotation.JsonProperty("requestStatus") + private final DelegatedResourceAccessRequestStatus requestStatus; + + /** + * The current status of the Delegated Resource Access Request. + * + * @return the value + */ + public DelegatedResourceAccessRequestStatus getRequestStatus() { + return requestStatus; + } + + /** + * Time when the Delegated Resource Access Request was created in [RFC + * 3339](https://tools.ietf.org/html/rfc3339)timestamp format, e.g. '2020-05-22T21:10:29.600Z'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * Time when the Delegated Resource Access Request was created in [RFC + * 3339](https://tools.ietf.org/html/rfc3339)timestamp format, e.g. '2020-05-22T21:10:29.600Z'. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * Time when the Delegated Resource Access Request was last modified in [RFC + * 3339](https://tools.ietf.org/html/rfc3339)timestamp format, e.g. '2020-05-22T21:10:29.600Z'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * Time when the Delegated Resource Access Request was last modified in [RFC + * 3339](https://tools.ietf.org/html/rfc3339)timestamp format, e.g. '2020-05-22T21:10:29.600Z'. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** Number of initial approvals that have been obtained so far. */ + @com.fasterxml.jackson.annotation.JsonProperty("numInitialApprovals") + private final Integer numInitialApprovals; + + /** + * Number of initial approvals that have been obtained so far. + * + * @return the value + */ + public Integer getNumInitialApprovals() { + return numInitialApprovals; + } + + /** Number of extension approvals that have been obtained so far. */ + @com.fasterxml.jackson.annotation.JsonProperty("numExtensionApprovals") + private final Integer numExtensionApprovals; + + /** + * Number of extension approvals that have been obtained so far. + * + * @return the value + */ + public Integer getNumExtensionApprovals() { + return numExtensionApprovals; + } + + /** In case of single approval, this will have only one item. Else, a list of approvals. */ + @com.fasterxml.jackson.annotation.JsonProperty("approvalInfo") + private final java.util.List approvalInfo; + + /** + * In case of single approval, this will have only one item. Else, a list of approvals. + * + * @return the value + */ + public java.util.List getApprovalInfo() { + return approvalInfo; + } + + /** The comment entered by the support operator while closing the request. */ + @com.fasterxml.jackson.annotation.JsonProperty("closureComment") + private final String closureComment; + + /** + * The comment entered by the support operator while closing the request. + * + * @return the value + */ + public String getClosureComment() { + return closureComment; + } + + /** The OCID of the Delegation Control governing the target resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("delegationControlId") + private final String delegationControlId; + + /** + * The OCID of the Delegation Control governing the target resource. + * + * @return the value + */ + public String getDelegationControlId() { + return delegationControlId; + } + + /** + * Specifies the type of auditing to be enabled. There are two levels of auditing: command-level + * and keystroke-level. By default, both command-level and keystroke-level auditing are enabled, + * i.e. commands and key strokes issued by the support operator are logged. + */ + @com.fasterxml.jackson.annotation.JsonProperty("auditTypes") + private final java.util.List auditTypes; + + /** + * Specifies the type of auditing to be enabled. There are two levels of auditing: command-level + * and keystroke-level. By default, both command-level and keystroke-level auditing are enabled, + * i.e. commands and key strokes issued by the support operator are logged. + * + * @return the value + */ + public java.util.List getAuditTypes() { + return auditTypes; + } + + /** + * Indicates if the delegated resource access request is waiting on more information from the + * operator + */ + @com.fasterxml.jackson.annotation.JsonProperty("isPendingMoreInfo") + private final Boolean isPendingMoreInfo; + + /** + * Indicates if the delegated resource access request is waiting on more information from the + * operator + * + * @return the value + */ + public Boolean getIsPendingMoreInfo() { + return isPendingMoreInfo; + } + + /** + * 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; + + /** + * 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; + } + + /** + * 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; + + /** + * 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; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * + *

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

Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DelegatedResourceAccessRequest("); + 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(", ticketNumbers=").append(String.valueOf(this.ticketNumbers)); + sb.append(", reasonForRequest=").append(String.valueOf(this.reasonForRequest)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", timeAccessRequested=").append(String.valueOf(this.timeAccessRequested)); + sb.append(", resourceId=").append(String.valueOf(this.resourceId)); + sb.append(", resourceName=").append(String.valueOf(this.resourceName)); + sb.append(", resourceType=").append(String.valueOf(this.resourceType)); + sb.append(", requesterType=").append(String.valueOf(this.requesterType)); + sb.append(", requestedActionNames=").append(String.valueOf(this.requestedActionNames)); + sb.append(", databaseNameList=").append(String.valueOf(this.databaseNameList)); + sb.append(", providedServiceTypes=").append(String.valueOf(this.providedServiceTypes)); + sb.append(", delegationSubscriptionIds=") + .append(String.valueOf(this.delegationSubscriptionIds)); + sb.append(", severity=").append(String.valueOf(this.severity)); + sb.append(", durationInHours=").append(String.valueOf(this.durationInHours)); + sb.append(", extendDurationInHours=").append(String.valueOf(this.extendDurationInHours)); + sb.append(", isAutoApproved=").append(String.valueOf(this.isAutoApproved)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleStateDetails=").append(String.valueOf(this.lifecycleStateDetails)); + sb.append(", requestStatus=").append(String.valueOf(this.requestStatus)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", numInitialApprovals=").append(String.valueOf(this.numInitialApprovals)); + sb.append(", numExtensionApprovals=").append(String.valueOf(this.numExtensionApprovals)); + sb.append(", approvalInfo=").append(String.valueOf(this.approvalInfo)); + sb.append(", closureComment=").append(String.valueOf(this.closureComment)); + sb.append(", delegationControlId=").append(String.valueOf(this.delegationControlId)); + sb.append(", auditTypes=").append(String.valueOf(this.auditTypes)); + sb.append(", isPendingMoreInfo=").append(String.valueOf(this.isPendingMoreInfo)); + 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 DelegatedResourceAccessRequest)) { + return false; + } + + DelegatedResourceAccessRequest other = (DelegatedResourceAccessRequest) 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.ticketNumbers, other.ticketNumbers) + && java.util.Objects.equals(this.reasonForRequest, other.reasonForRequest) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.timeAccessRequested, other.timeAccessRequested) + && java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.resourceName, other.resourceName) + && java.util.Objects.equals(this.resourceType, other.resourceType) + && java.util.Objects.equals(this.requesterType, other.requesterType) + && java.util.Objects.equals(this.requestedActionNames, other.requestedActionNames) + && java.util.Objects.equals(this.databaseNameList, other.databaseNameList) + && java.util.Objects.equals(this.providedServiceTypes, other.providedServiceTypes) + && java.util.Objects.equals( + this.delegationSubscriptionIds, other.delegationSubscriptionIds) + && java.util.Objects.equals(this.severity, other.severity) + && java.util.Objects.equals(this.durationInHours, other.durationInHours) + && java.util.Objects.equals(this.extendDurationInHours, other.extendDurationInHours) + && java.util.Objects.equals(this.isAutoApproved, other.isAutoApproved) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleStateDetails, other.lifecycleStateDetails) + && java.util.Objects.equals(this.requestStatus, other.requestStatus) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.numInitialApprovals, other.numInitialApprovals) + && java.util.Objects.equals(this.numExtensionApprovals, other.numExtensionApprovals) + && java.util.Objects.equals(this.approvalInfo, other.approvalInfo) + && java.util.Objects.equals(this.closureComment, other.closureComment) + && java.util.Objects.equals(this.delegationControlId, other.delegationControlId) + && java.util.Objects.equals(this.auditTypes, other.auditTypes) + && java.util.Objects.equals(this.isPendingMoreInfo, other.isPendingMoreInfo) + && 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.ticketNumbers == null ? 43 : this.ticketNumbers.hashCode()); + result = + (result * PRIME) + + (this.reasonForRequest == null ? 43 : this.reasonForRequest.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.timeAccessRequested == null + ? 43 + : this.timeAccessRequested.hashCode()); + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); + result = (result * PRIME) + (this.resourceName == null ? 43 : this.resourceName.hashCode()); + result = (result * PRIME) + (this.resourceType == null ? 43 : this.resourceType.hashCode()); + result = + (result * PRIME) + + (this.requesterType == null ? 43 : this.requesterType.hashCode()); + result = + (result * PRIME) + + (this.requestedActionNames == null + ? 43 + : this.requestedActionNames.hashCode()); + result = + (result * PRIME) + + (this.databaseNameList == null ? 43 : this.databaseNameList.hashCode()); + result = + (result * PRIME) + + (this.providedServiceTypes == null + ? 43 + : this.providedServiceTypes.hashCode()); + result = + (result * PRIME) + + (this.delegationSubscriptionIds == null + ? 43 + : this.delegationSubscriptionIds.hashCode()); + result = (result * PRIME) + (this.severity == null ? 43 : this.severity.hashCode()); + result = + (result * PRIME) + + (this.durationInHours == null ? 43 : this.durationInHours.hashCode()); + result = + (result * PRIME) + + (this.extendDurationInHours == null + ? 43 + : this.extendDurationInHours.hashCode()); + result = + (result * PRIME) + + (this.isAutoApproved == null ? 43 : this.isAutoApproved.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleStateDetails == null + ? 43 + : this.lifecycleStateDetails.hashCode()); + result = + (result * PRIME) + + (this.requestStatus == null ? 43 : this.requestStatus.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.numInitialApprovals == null + ? 43 + : this.numInitialApprovals.hashCode()); + result = + (result * PRIME) + + (this.numExtensionApprovals == null + ? 43 + : this.numExtensionApprovals.hashCode()); + result = (result * PRIME) + (this.approvalInfo == null ? 43 : this.approvalInfo.hashCode()); + result = + (result * PRIME) + + (this.closureComment == null ? 43 : this.closureComment.hashCode()); + result = + (result * PRIME) + + (this.delegationControlId == null + ? 43 + : this.delegationControlId.hashCode()); + result = (result * PRIME) + (this.auditTypes == null ? 43 : this.auditTypes.hashCode()); + result = + (result * PRIME) + + (this.isPendingMoreInfo == null ? 43 : this.isPendingMoreInfo.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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestApprovalDetails.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestApprovalDetails.java new file mode 100644 index 00000000000..31886829b12 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestApprovalDetails.java @@ -0,0 +1,446 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** + * Approval info for initial access or extension of a Delegated Resource Access 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: 20230801") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DelegatedResourceAccessRequestApprovalDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DelegatedResourceAccessRequestApprovalDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "approvalAction", + "timeApprovedForAccess", + "approvalType", + "approverComment", + "approverId", + "approverAdditionalMessage" + }) + public DelegatedResourceAccessRequestApprovalDetails( + ApprovalAction approvalAction, + java.util.Date timeApprovedForAccess, + ApprovalType approvalType, + String approverComment, + String approverId, + String approverAdditionalMessage) { + super(); + this.approvalAction = approvalAction; + this.timeApprovedForAccess = timeApprovedForAccess; + this.approvalType = approvalType; + this.approverComment = approverComment; + this.approverId = approverId; + this.approverAdditionalMessage = approverAdditionalMessage; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Indicated whether the request is approved or rejected. */ + @com.fasterxml.jackson.annotation.JsonProperty("approvalAction") + private ApprovalAction approvalAction; + + /** + * Indicated whether the request is approved or rejected. + * + * @param approvalAction the value to set + * @return this builder + */ + public Builder approvalAction(ApprovalAction approvalAction) { + this.approvalAction = approvalAction; + this.__explicitlySet__.add("approvalAction"); + return this; + } + /** + * Access start time that is actually approved by the customer in [RFC + * 3339](https://tools.ietf.org/html/rfc3339)timestamp format, e.g. + * '2020-05-22T21:10:29.600Z'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeApprovedForAccess") + private java.util.Date timeApprovedForAccess; + + /** + * Access start time that is actually approved by the customer in [RFC + * 3339](https://tools.ietf.org/html/rfc3339)timestamp format, e.g. + * '2020-05-22T21:10:29.600Z'. + * + * @param timeApprovedForAccess the value to set + * @return this builder + */ + public Builder timeApprovedForAccess(java.util.Date timeApprovedForAccess) { + this.timeApprovedForAccess = timeApprovedForAccess; + this.__explicitlySet__.add("timeApprovedForAccess"); + return this; + } + /** approval type, initial or extension */ + @com.fasterxml.jackson.annotation.JsonProperty("approvalType") + private ApprovalType approvalType; + + /** + * approval type, initial or extension + * + * @param approvalType the value to set + * @return this builder + */ + public Builder approvalType(ApprovalType approvalType) { + this.approvalType = approvalType; + this.__explicitlySet__.add("approvalType"); + return this; + } + /** Comment specified by the approver of the request. */ + @com.fasterxml.jackson.annotation.JsonProperty("approverComment") + private String approverComment; + + /** + * Comment specified by the approver of the request. + * + * @param approverComment the value to set + * @return this builder + */ + public Builder approverComment(String approverComment) { + this.approverComment = approverComment; + this.__explicitlySet__.add("approverComment"); + return this; + } + /** User ID of the approver. */ + @com.fasterxml.jackson.annotation.JsonProperty("approverId") + private String approverId; + + /** + * User ID of the approver. + * + * @param approverId the value to set + * @return this builder + */ + public Builder approverId(String approverId) { + this.approverId = approverId; + this.__explicitlySet__.add("approverId"); + return this; + } + /** Additional message specified by the approver of the request. */ + @com.fasterxml.jackson.annotation.JsonProperty("approverAdditionalMessage") + private String approverAdditionalMessage; + + /** + * Additional message specified by the approver of the request. + * + * @param approverAdditionalMessage the value to set + * @return this builder + */ + public Builder approverAdditionalMessage(String approverAdditionalMessage) { + this.approverAdditionalMessage = approverAdditionalMessage; + this.__explicitlySet__.add("approverAdditionalMessage"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DelegatedResourceAccessRequestApprovalDetails build() { + DelegatedResourceAccessRequestApprovalDetails model = + new DelegatedResourceAccessRequestApprovalDetails( + this.approvalAction, + this.timeApprovedForAccess, + this.approvalType, + this.approverComment, + this.approverId, + this.approverAdditionalMessage); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DelegatedResourceAccessRequestApprovalDetails model) { + if (model.wasPropertyExplicitlySet("approvalAction")) { + this.approvalAction(model.getApprovalAction()); + } + if (model.wasPropertyExplicitlySet("timeApprovedForAccess")) { + this.timeApprovedForAccess(model.getTimeApprovedForAccess()); + } + if (model.wasPropertyExplicitlySet("approvalType")) { + this.approvalType(model.getApprovalType()); + } + if (model.wasPropertyExplicitlySet("approverComment")) { + this.approverComment(model.getApproverComment()); + } + if (model.wasPropertyExplicitlySet("approverId")) { + this.approverId(model.getApproverId()); + } + if (model.wasPropertyExplicitlySet("approverAdditionalMessage")) { + this.approverAdditionalMessage(model.getApproverAdditionalMessage()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Indicated whether the request is approved or rejected. */ + public enum ApprovalAction implements com.oracle.bmc.http.internal.BmcEnum { + Approve("APPROVE"), + Reject("REJECT"), + + /** + * 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(ApprovalAction.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ApprovalAction v : ApprovalAction.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ApprovalAction(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ApprovalAction create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ApprovalAction', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Indicated whether the request is approved or rejected. */ + @com.fasterxml.jackson.annotation.JsonProperty("approvalAction") + private final ApprovalAction approvalAction; + + /** + * Indicated whether the request is approved or rejected. + * + * @return the value + */ + public ApprovalAction getApprovalAction() { + return approvalAction; + } + + /** + * Access start time that is actually approved by the customer in [RFC + * 3339](https://tools.ietf.org/html/rfc3339)timestamp format, e.g. '2020-05-22T21:10:29.600Z'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeApprovedForAccess") + private final java.util.Date timeApprovedForAccess; + + /** + * Access start time that is actually approved by the customer in [RFC + * 3339](https://tools.ietf.org/html/rfc3339)timestamp format, e.g. '2020-05-22T21:10:29.600Z'. + * + * @return the value + */ + public java.util.Date getTimeApprovedForAccess() { + return timeApprovedForAccess; + } + + /** approval type, initial or extension */ + public enum ApprovalType implements com.oracle.bmc.http.internal.BmcEnum { + Initial("INITIAL"), + Extension("EXTENSION"), + + /** + * 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(ApprovalType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ApprovalType v : ApprovalType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ApprovalType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ApprovalType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ApprovalType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** approval type, initial or extension */ + @com.fasterxml.jackson.annotation.JsonProperty("approvalType") + private final ApprovalType approvalType; + + /** + * approval type, initial or extension + * + * @return the value + */ + public ApprovalType getApprovalType() { + return approvalType; + } + + /** Comment specified by the approver of the request. */ + @com.fasterxml.jackson.annotation.JsonProperty("approverComment") + private final String approverComment; + + /** + * Comment specified by the approver of the request. + * + * @return the value + */ + public String getApproverComment() { + return approverComment; + } + + /** User ID of the approver. */ + @com.fasterxml.jackson.annotation.JsonProperty("approverId") + private final String approverId; + + /** + * User ID of the approver. + * + * @return the value + */ + public String getApproverId() { + return approverId; + } + + /** Additional message specified by the approver of the request. */ + @com.fasterxml.jackson.annotation.JsonProperty("approverAdditionalMessage") + private final String approverAdditionalMessage; + + /** + * Additional message specified by the approver of the request. + * + * @return the value + */ + public String getApproverAdditionalMessage() { + return approverAdditionalMessage; + } + + @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("DelegatedResourceAccessRequestApprovalDetails("); + sb.append("super=").append(super.toString()); + sb.append("approvalAction=").append(String.valueOf(this.approvalAction)); + sb.append(", timeApprovedForAccess=").append(String.valueOf(this.timeApprovedForAccess)); + sb.append(", approvalType=").append(String.valueOf(this.approvalType)); + sb.append(", approverComment=").append(String.valueOf(this.approverComment)); + sb.append(", approverId=").append(String.valueOf(this.approverId)); + sb.append(", approverAdditionalMessage=") + .append(String.valueOf(this.approverAdditionalMessage)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DelegatedResourceAccessRequestApprovalDetails)) { + return false; + } + + DelegatedResourceAccessRequestApprovalDetails other = + (DelegatedResourceAccessRequestApprovalDetails) o; + return java.util.Objects.equals(this.approvalAction, other.approvalAction) + && java.util.Objects.equals(this.timeApprovedForAccess, other.timeApprovedForAccess) + && java.util.Objects.equals(this.approvalType, other.approvalType) + && java.util.Objects.equals(this.approverComment, other.approverComment) + && java.util.Objects.equals(this.approverId, other.approverId) + && java.util.Objects.equals( + this.approverAdditionalMessage, other.approverAdditionalMessage) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.approvalAction == null ? 43 : this.approvalAction.hashCode()); + result = + (result * PRIME) + + (this.timeApprovedForAccess == null + ? 43 + : this.timeApprovedForAccess.hashCode()); + result = (result * PRIME) + (this.approvalType == null ? 43 : this.approvalType.hashCode()); + result = + (result * PRIME) + + (this.approverComment == null ? 43 : this.approverComment.hashCode()); + result = (result * PRIME) + (this.approverId == null ? 43 : this.approverId.hashCode()); + result = + (result * PRIME) + + (this.approverAdditionalMessage == null + ? 43 + : this.approverAdditionalMessage.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestAuditLogReport.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestAuditLogReport.java new file mode 100644 index 00000000000..ee753c85fa2 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestAuditLogReport.java @@ -0,0 +1,268 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** + * The audit log report details.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DelegatedResourceAccessRequestAuditLogReport.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DelegatedResourceAccessRequestAuditLogReport + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "report", + "processTree", + "auditReportStatus", + "timeReportGenerated" + }) + public DelegatedResourceAccessRequestAuditLogReport( + String report, + String processTree, + AuditReportStatus auditReportStatus, + java.util.Date timeReportGenerated) { + super(); + this.report = report; + this.processTree = processTree; + this.auditReportStatus = auditReportStatus; + this.timeReportGenerated = timeReportGenerated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Audit log report. */ + @com.fasterxml.jackson.annotation.JsonProperty("report") + private String report; + + /** + * Audit log report. + * + * @param report the value to set + * @return this builder + */ + public Builder report(String report) { + this.report = report; + this.__explicitlySet__.add("report"); + return this; + } + /** The process tree data */ + @com.fasterxml.jackson.annotation.JsonProperty("processTree") + private String processTree; + + /** + * The process tree data + * + * @param processTree the value to set + * @return this builder + */ + public Builder processTree(String processTree) { + this.processTree = processTree; + this.__explicitlySet__.add("processTree"); + return this; + } + /** Status of the audit report */ + @com.fasterxml.jackson.annotation.JsonProperty("auditReportStatus") + private AuditReportStatus auditReportStatus; + + /** + * Status of the audit report + * + * @param auditReportStatus the value to set + * @return this builder + */ + public Builder auditReportStatus(AuditReportStatus auditReportStatus) { + this.auditReportStatus = auditReportStatus; + this.__explicitlySet__.add("auditReportStatus"); + return this; + } + /** + * Time when the audit report was generated [RFC 3339](https://tools.ietf.org/html/rfc3339) + * timestamp format, e.g. '2020-05-22T21:10:29.600Z' + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeReportGenerated") + private java.util.Date timeReportGenerated; + + /** + * Time when the audit report was generated [RFC 3339](https://tools.ietf.org/html/rfc3339) + * timestamp format, e.g. '2020-05-22T21:10:29.600Z' + * + * @param timeReportGenerated the value to set + * @return this builder + */ + public Builder timeReportGenerated(java.util.Date timeReportGenerated) { + this.timeReportGenerated = timeReportGenerated; + this.__explicitlySet__.add("timeReportGenerated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DelegatedResourceAccessRequestAuditLogReport build() { + DelegatedResourceAccessRequestAuditLogReport model = + new DelegatedResourceAccessRequestAuditLogReport( + this.report, + this.processTree, + this.auditReportStatus, + this.timeReportGenerated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DelegatedResourceAccessRequestAuditLogReport model) { + if (model.wasPropertyExplicitlySet("report")) { + this.report(model.getReport()); + } + if (model.wasPropertyExplicitlySet("processTree")) { + this.processTree(model.getProcessTree()); + } + if (model.wasPropertyExplicitlySet("auditReportStatus")) { + this.auditReportStatus(model.getAuditReportStatus()); + } + if (model.wasPropertyExplicitlySet("timeReportGenerated")) { + this.timeReportGenerated(model.getTimeReportGenerated()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Audit log report. */ + @com.fasterxml.jackson.annotation.JsonProperty("report") + private final String report; + + /** + * Audit log report. + * + * @return the value + */ + public String getReport() { + return report; + } + + /** The process tree data */ + @com.fasterxml.jackson.annotation.JsonProperty("processTree") + private final String processTree; + + /** + * The process tree data + * + * @return the value + */ + public String getProcessTree() { + return processTree; + } + + /** Status of the audit report */ + @com.fasterxml.jackson.annotation.JsonProperty("auditReportStatus") + private final AuditReportStatus auditReportStatus; + + /** + * Status of the audit report + * + * @return the value + */ + public AuditReportStatus getAuditReportStatus() { + return auditReportStatus; + } + + /** + * Time when the audit report was generated [RFC 3339](https://tools.ietf.org/html/rfc3339) + * timestamp format, e.g. '2020-05-22T21:10:29.600Z' + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeReportGenerated") + private final java.util.Date timeReportGenerated; + + /** + * Time when the audit report was generated [RFC 3339](https://tools.ietf.org/html/rfc3339) + * timestamp format, e.g. '2020-05-22T21:10:29.600Z' + * + * @return the value + */ + public java.util.Date getTimeReportGenerated() { + return timeReportGenerated; + } + + @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("DelegatedResourceAccessRequestAuditLogReport("); + sb.append("super=").append(super.toString()); + sb.append("report=").append(String.valueOf(this.report)); + sb.append(", processTree=").append(String.valueOf(this.processTree)); + sb.append(", auditReportStatus=").append(String.valueOf(this.auditReportStatus)); + sb.append(", timeReportGenerated=").append(String.valueOf(this.timeReportGenerated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DelegatedResourceAccessRequestAuditLogReport)) { + return false; + } + + DelegatedResourceAccessRequestAuditLogReport other = + (DelegatedResourceAccessRequestAuditLogReport) o; + return java.util.Objects.equals(this.report, other.report) + && java.util.Objects.equals(this.processTree, other.processTree) + && java.util.Objects.equals(this.auditReportStatus, other.auditReportStatus) + && java.util.Objects.equals(this.timeReportGenerated, other.timeReportGenerated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.report == null ? 43 : this.report.hashCode()); + result = (result * PRIME) + (this.processTree == null ? 43 : this.processTree.hashCode()); + result = + (result * PRIME) + + (this.auditReportStatus == null ? 43 : this.auditReportStatus.hashCode()); + result = + (result * PRIME) + + (this.timeReportGenerated == null + ? 43 + : this.timeReportGenerated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestAuditType.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestAuditType.java new file mode 100644 index 00000000000..f1bcfe18f42 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestAuditType.java @@ -0,0 +1,55 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** Possible audit type for Delegated Resource Access Request. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public enum DelegatedResourceAccessRequestAuditType + implements com.oracle.bmc.http.internal.BmcEnum { + CommandAudit("COMMAND_AUDIT"), + CommandKeystrokeAudit("COMMAND_KEYSTROKE_AUDIT"), + + /** + * 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(DelegatedResourceAccessRequestAuditType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DelegatedResourceAccessRequestAuditType v : + DelegatedResourceAccessRequestAuditType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DelegatedResourceAccessRequestAuditType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DelegatedResourceAccessRequestAuditType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DelegatedResourceAccessRequestAuditType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestHistoryCollection.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestHistoryCollection.java new file mode 100644 index 00000000000..ef9345f3f15 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestHistoryCollection.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.delegateaccesscontrol.model; + +/** + * List of Delegated Resource Access Request status transitions.
+ * 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: 20230801") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DelegatedResourceAccessRequestHistoryCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DelegatedResourceAccessRequestHistoryCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public DelegatedResourceAccessRequestHistoryCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of DelegatedResourceAccessRequestHistorySummary objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of DelegatedResourceAccessRequestHistorySummary objects. + * + * @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 DelegatedResourceAccessRequestHistoryCollection build() { + DelegatedResourceAccessRequestHistoryCollection model = + new DelegatedResourceAccessRequestHistoryCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DelegatedResourceAccessRequestHistoryCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of DelegatedResourceAccessRequestHistorySummary objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of DelegatedResourceAccessRequestHistorySummary objects. + * + * @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("DelegatedResourceAccessRequestHistoryCollection("); + 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 DelegatedResourceAccessRequestHistoryCollection)) { + return false; + } + + DelegatedResourceAccessRequestHistoryCollection other = + (DelegatedResourceAccessRequestHistoryCollection) 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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestHistorySummary.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestHistorySummary.java new file mode 100644 index 00000000000..6e6727851e3 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestHistorySummary.java @@ -0,0 +1,315 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** + * Summary of Delegated Resource Access Request status changes.
+ * 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: 20230801") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DelegatedResourceAccessRequestHistorySummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DelegatedResourceAccessRequestHistorySummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "lifecycleState", + "requestStatus", + "userId", + "comment", + "timestamp" + }) + public DelegatedResourceAccessRequestHistorySummary( + DelegatedResourceAccessRequest.LifecycleState lifecycleState, + DelegatedResourceAccessRequestStatus requestStatus, + String userId, + String comment, + java.util.Date timestamp) { + super(); + this.lifecycleState = lifecycleState; + this.requestStatus = requestStatus; + this.userId = userId; + this.comment = comment; + this.timestamp = timestamp; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The current lifecycle state of the Delegated Resource Access Request. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private DelegatedResourceAccessRequest.LifecycleState lifecycleState; + + /** + * The current lifecycle state of the Delegated Resource Access Request. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState( + DelegatedResourceAccessRequest.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** The current status of the Delegated Resource Access Request. */ + @com.fasterxml.jackson.annotation.JsonProperty("requestStatus") + private DelegatedResourceAccessRequestStatus requestStatus; + + /** + * The current status of the Delegated Resource Access Request. + * + * @param requestStatus the value to set + * @return this builder + */ + public Builder requestStatus(DelegatedResourceAccessRequestStatus requestStatus) { + this.requestStatus = requestStatus; + this.__explicitlySet__.add("requestStatus"); + return this; + } + /** + * ID of user who modified the Delegated Resource Access Request. For operator, this field + * is "Operator". + */ + @com.fasterxml.jackson.annotation.JsonProperty("userId") + private String userId; + + /** + * ID of user who modified the Delegated Resource Access Request. For operator, this field + * is "Operator". + * + * @param userId the value to set + * @return this builder + */ + public Builder userId(String userId) { + this.userId = userId; + this.__explicitlySet__.add("userId"); + return this; + } + /** Comment about the status change. */ + @com.fasterxml.jackson.annotation.JsonProperty("comment") + private String comment; + + /** + * Comment about the status change. + * + * @param comment the value to set + * @return this builder + */ + public Builder comment(String comment) { + this.comment = comment; + this.__explicitlySet__.add("comment"); + return this; + } + /** + * Time when the respective action happened in [RFC + * 3339](https://tools.ietf.org/html/rfc3339)timestamp format, e.g. + * '2020-05-22T21:10:29.600Z'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private java.util.Date timestamp; + + /** + * Time when the respective action happened in [RFC + * 3339](https://tools.ietf.org/html/rfc3339)timestamp format, e.g. + * '2020-05-22T21:10:29.600Z'. + * + * @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 DelegatedResourceAccessRequestHistorySummary build() { + DelegatedResourceAccessRequestHistorySummary model = + new DelegatedResourceAccessRequestHistorySummary( + this.lifecycleState, + this.requestStatus, + this.userId, + this.comment, + this.timestamp); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DelegatedResourceAccessRequestHistorySummary model) { + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("requestStatus")) { + this.requestStatus(model.getRequestStatus()); + } + if (model.wasPropertyExplicitlySet("userId")) { + this.userId(model.getUserId()); + } + if (model.wasPropertyExplicitlySet("comment")) { + this.comment(model.getComment()); + } + 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); + } + + /** The current lifecycle state of the Delegated Resource Access Request. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final DelegatedResourceAccessRequest.LifecycleState lifecycleState; + + /** + * The current lifecycle state of the Delegated Resource Access Request. + * + * @return the value + */ + public DelegatedResourceAccessRequest.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** The current status of the Delegated Resource Access Request. */ + @com.fasterxml.jackson.annotation.JsonProperty("requestStatus") + private final DelegatedResourceAccessRequestStatus requestStatus; + + /** + * The current status of the Delegated Resource Access Request. + * + * @return the value + */ + public DelegatedResourceAccessRequestStatus getRequestStatus() { + return requestStatus; + } + + /** + * ID of user who modified the Delegated Resource Access Request. For operator, this field is + * "Operator". + */ + @com.fasterxml.jackson.annotation.JsonProperty("userId") + private final String userId; + + /** + * ID of user who modified the Delegated Resource Access Request. For operator, this field is + * "Operator". + * + * @return the value + */ + public String getUserId() { + return userId; + } + + /** Comment about the status change. */ + @com.fasterxml.jackson.annotation.JsonProperty("comment") + private final String comment; + + /** + * Comment about the status change. + * + * @return the value + */ + public String getComment() { + return comment; + } + + /** + * Time when the respective action happened in [RFC + * 3339](https://tools.ietf.org/html/rfc3339)timestamp format, e.g. '2020-05-22T21:10:29.600Z'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private final java.util.Date timestamp; + + /** + * Time when the respective action happened in [RFC + * 3339](https://tools.ietf.org/html/rfc3339)timestamp format, e.g. '2020-05-22T21:10:29.600Z'. + * + * @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("DelegatedResourceAccessRequestHistorySummary("); + sb.append("super=").append(super.toString()); + sb.append("lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", requestStatus=").append(String.valueOf(this.requestStatus)); + sb.append(", userId=").append(String.valueOf(this.userId)); + sb.append(", comment=").append(String.valueOf(this.comment)); + 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 DelegatedResourceAccessRequestHistorySummary)) { + return false; + } + + DelegatedResourceAccessRequestHistorySummary other = + (DelegatedResourceAccessRequestHistorySummary) o; + return java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.requestStatus, other.requestStatus) + && java.util.Objects.equals(this.userId, other.userId) + && java.util.Objects.equals(this.comment, other.comment) + && 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.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.requestStatus == null ? 43 : this.requestStatus.hashCode()); + result = (result * PRIME) + (this.userId == null ? 43 : this.userId.hashCode()); + result = (result * PRIME) + (this.comment == null ? 43 : this.comment.hashCode()); + result = (result * PRIME) + (this.timestamp == null ? 43 : this.timestamp.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestSeverity.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestSeverity.java new file mode 100644 index 00000000000..f587aac7ce4 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestSeverity.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.delegateaccesscontrol.model; + +/** Levels of severities associated with a Delegated Resource Access Request */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public enum DelegatedResourceAccessRequestSeverity implements com.oracle.bmc.http.internal.BmcEnum { + S1("S1"), + S2("S2"), + S3("S3"), + S4("S4"), + + /** + * 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(DelegatedResourceAccessRequestSeverity.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DelegatedResourceAccessRequestSeverity v : + DelegatedResourceAccessRequestSeverity.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DelegatedResourceAccessRequestSeverity(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DelegatedResourceAccessRequestSeverity create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DelegatedResourceAccessRequestSeverity', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestStatus.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestStatus.java new file mode 100644 index 00000000000..7bc1064b95c --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestStatus.java @@ -0,0 +1,75 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** Possible status for a Delegated Resource Access Request. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public enum DelegatedResourceAccessRequestStatus implements com.oracle.bmc.http.internal.BmcEnum { + Created("CREATED"), + ApprovalWaiting("APPROVAL_WAITING"), + OperatorAssignmentWaiting("OPERATOR_ASSIGNMENT_WAITING"), + Preapproved("PREAPPROVED"), + Approved("APPROVED"), + ApprovedForFuture("APPROVED_FOR_FUTURE"), + Rejected("REJECTED"), + Deployed("DEPLOYED"), + DeployFailed("DEPLOY_FAILED"), + Undeployed("UNDEPLOYED"), + UndeployFailed("UNDEPLOY_FAILED"), + CloseFailed("CLOSE_FAILED"), + RevokeFailed("REVOKE_FAILED"), + ExpiryFailed("EXPIRY_FAILED"), + Revoking("REVOKING"), + Revoked("REVOKED"), + Extending("EXTENDING"), + Extended("EXTENDED"), + ExtensionRejected("EXTENSION_REJECTED"), + ExtensionFailed("EXTENSION_FAILED"), + Completing("COMPLETING"), + Completed("COMPLETED"), + Expired("EXPIRED"), + + /** + * 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(DelegatedResourceAccessRequestStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DelegatedResourceAccessRequestStatus v : + DelegatedResourceAccessRequestStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DelegatedResourceAccessRequestStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DelegatedResourceAccessRequestStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DelegatedResourceAccessRequestStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestSummary.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestSummary.java new file mode 100644 index 00000000000..b1fb9369e92 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestSummary.java @@ -0,0 +1,1189 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** + * Summary of Delegated Resource Access 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: 20230801") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DelegatedResourceAccessRequestSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DelegatedResourceAccessRequestSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "ticketNumbers", + "reasonForRequest", + "timeAccessRequested", + "resourceId", + "resourceName", + "resourceType", + "requestedActionNames", + "requesterType", + "delegationControlId", + "severity", + "durationInHours", + "extendDurationInHours", + "isAutoApproved", + "lifecycleState", + "lifecycleStateDetails", + "requestStatus", + "timeCreated", + "timeUpdated", + "freeformTags", + "definedTags", + "systemTags" + }) + public DelegatedResourceAccessRequestSummary( + String id, + String compartmentId, + String displayName, + java.util.List ticketNumbers, + String reasonForRequest, + java.util.Date timeAccessRequested, + String resourceId, + String resourceName, + DelegationControlResourceType resourceType, + java.util.List requestedActionNames, + DelegatedResourceAccessRequesterType requesterType, + String delegationControlId, + DelegatedResourceAccessRequestSeverity severity, + Integer durationInHours, + Integer extendDurationInHours, + Boolean isAutoApproved, + DelegatedResourceAccessRequest.LifecycleState lifecycleState, + String lifecycleStateDetails, + DelegatedResourceAccessRequestStatus requestStatus, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.ticketNumbers = ticketNumbers; + this.reasonForRequest = reasonForRequest; + this.timeAccessRequested = timeAccessRequested; + this.resourceId = resourceId; + this.resourceName = resourceName; + this.resourceType = resourceType; + this.requestedActionNames = requestedActionNames; + this.requesterType = requesterType; + this.delegationControlId = delegationControlId; + this.severity = severity; + this.durationInHours = durationInHours; + this.extendDurationInHours = extendDurationInHours; + this.isAutoApproved = isAutoApproved; + this.lifecycleState = lifecycleState; + this.lifecycleStateDetails = lifecycleStateDetails; + this.requestStatus = requestStatus; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the Delegated Resource Access Request. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the Delegated Resource Access Request. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The OCID of the compartment that contains the Delegated Resource Access Request. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment that contains the Delegated Resource Access Request. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Display name. This is generated by the system automatically. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Display name. This is generated by the system automatically. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * A list of ticket numbers related to this Delegated Resource Access Request, e.g. Service + * Request (SR) number and JIRA ticket number. + */ + @com.fasterxml.jackson.annotation.JsonProperty("ticketNumbers") + private java.util.List ticketNumbers; + + /** + * A list of ticket numbers related to this Delegated Resource Access Request, e.g. Service + * Request (SR) number and JIRA ticket number. + * + * @param ticketNumbers the value to set + * @return this builder + */ + public Builder ticketNumbers(java.util.List ticketNumbers) { + this.ticketNumbers = ticketNumbers; + this.__explicitlySet__.add("ticketNumbers"); + return this; + } + /** + * A short description explaining why this Delegated Resource Access Request is needed by + * the support operator. + */ + @com.fasterxml.jackson.annotation.JsonProperty("reasonForRequest") + private String reasonForRequest; + + /** + * A short description explaining why this Delegated Resource Access Request is needed by + * the support operator. + * + * @param reasonForRequest the value to set + * @return this builder + */ + public Builder reasonForRequest(String reasonForRequest) { + this.reasonForRequest = reasonForRequest; + this.__explicitlySet__.add("reasonForRequest"); + return this; + } + /** Requested access start time in UTC. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccessRequested") + private java.util.Date timeAccessRequested; + + /** + * Requested access start time in UTC. + * + * @param timeAccessRequested the value to set + * @return this builder + */ + public Builder timeAccessRequested(java.util.Date timeAccessRequested) { + this.timeAccessRequested = timeAccessRequested; + this.__explicitlySet__.add("timeAccessRequested"); + return this; + } + /** + * The OCID of the target resource associated with the Delegated Resource Access Request. + * The support operator raises a Delegated Resource Access Request to get approval to access + * the target resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private String resourceId; + + /** + * The OCID of the target resource associated with the Delegated Resource Access Request. + * The support operator raises a Delegated Resource Access Request to get approval to access + * the target resource. + * + * @param resourceId the value to set + * @return this builder + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + this.__explicitlySet__.add("resourceId"); + return this; + } + /** + * The name of the target resource associated with the Delegated Resource Access Request. + * The support operator raises a Delegated Resource Access Request to get approval to access + * the target resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceName") + private String resourceName; + + /** + * The name of the target resource associated with the Delegated Resource Access Request. + * The support operator raises a Delegated Resource Access Request to get approval to access + * the target resource. + * + * @param resourceName the value to set + * @return this builder + */ + public Builder resourceName(String resourceName) { + this.resourceName = resourceName; + this.__explicitlySet__.add("resourceName"); + return this; + } + /** Resource type for which the associated Delegation Control is applicable to. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceType") + private DelegationControlResourceType resourceType; + + /** + * Resource type for which the associated Delegation Control is applicable to. + * + * @param resourceType the value to set + * @return this builder + */ + public Builder resourceType(DelegationControlResourceType resourceType) { + this.resourceType = resourceType; + this.__explicitlySet__.add("resourceType"); + return this; + } + /** + * List of Service Provider Action names for which approval is sought by the support + * operator user. The list of pre-defined Service Provider Actions can be obtained from the + * ListServiceProviderActions API. + */ + @com.fasterxml.jackson.annotation.JsonProperty("requestedActionNames") + private java.util.List requestedActionNames; + + /** + * List of Service Provider Action names for which approval is sought by the support + * operator user. The list of pre-defined Service Provider Actions can be obtained from the + * ListServiceProviderActions API. + * + * @param requestedActionNames the value to set + * @return this builder + */ + public Builder requestedActionNames(java.util.List requestedActionNames) { + this.requestedActionNames = requestedActionNames; + this.__explicitlySet__.add("requestedActionNames"); + return this; + } + /** Requester type */ + @com.fasterxml.jackson.annotation.JsonProperty("requesterType") + private DelegatedResourceAccessRequesterType requesterType; + + /** + * Requester type + * + * @param requesterType the value to set + * @return this builder + */ + public Builder requesterType(DelegatedResourceAccessRequesterType requesterType) { + this.requesterType = requesterType; + this.__explicitlySet__.add("requesterType"); + return this; + } + /** The OCID of the Delegation Control governing the target resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("delegationControlId") + private String delegationControlId; + + /** + * The OCID of the Delegation Control governing the target resource. + * + * @param delegationControlId the value to set + * @return this builder + */ + public Builder delegationControlId(String delegationControlId) { + this.delegationControlId = delegationControlId; + this.__explicitlySet__.add("delegationControlId"); + return this; + } + /** Priority assigned to the Delegated Resource Access Request by the support operator */ + @com.fasterxml.jackson.annotation.JsonProperty("severity") + private DelegatedResourceAccessRequestSeverity severity; + + /** + * Priority assigned to the Delegated Resource Access Request by the support operator + * + * @param severity the value to set + * @return this builder + */ + public Builder severity(DelegatedResourceAccessRequestSeverity severity) { + this.severity = severity; + this.__explicitlySet__.add("severity"); + return this; + } + /** Duration in hours for which access is sought on the target resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("durationInHours") + private Integer durationInHours; + + /** + * Duration in hours for which access is sought on the target resource. + * + * @param durationInHours the value to set + * @return this builder + */ + public Builder durationInHours(Integer durationInHours) { + this.durationInHours = durationInHours; + this.__explicitlySet__.add("durationInHours"); + return this; + } + /** Duration in hours for which extension access is sought on the target resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("extendDurationInHours") + private Integer extendDurationInHours; + + /** + * Duration in hours for which extension access is sought on the target resource. + * + * @param extendDurationInHours the value to set + * @return this builder + */ + public Builder extendDurationInHours(Integer extendDurationInHours) { + this.extendDurationInHours = extendDurationInHours; + this.__explicitlySet__.add("extendDurationInHours"); + return this; + } + /** + * Set to true if the request is approved automatically based on + * preApprovedServiceProviderActionNames or isAutoApproveDuringMaintenance in the associated + * Delegation Control. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoApproved") + private Boolean isAutoApproved; + + /** + * Set to true if the request is approved automatically based on + * preApprovedServiceProviderActionNames or isAutoApproveDuringMaintenance in the associated + * Delegation Control. + * + * @param isAutoApproved the value to set + * @return this builder + */ + public Builder isAutoApproved(Boolean isAutoApproved) { + this.isAutoApproved = isAutoApproved; + this.__explicitlySet__.add("isAutoApproved"); + return this; + } + /** The current lifecycle state of the Delegated Resource Access Request. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private DelegatedResourceAccessRequest.LifecycleState lifecycleState; + + /** + * The current lifecycle state of the Delegated Resource Access Request. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState( + DelegatedResourceAccessRequest.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** Description of the current lifecycle state in more detail. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStateDetails") + private String lifecycleStateDetails; + + /** + * Description of the current lifecycle state in more detail. + * + * @param lifecycleStateDetails the value to set + * @return this builder + */ + public Builder lifecycleStateDetails(String lifecycleStateDetails) { + this.lifecycleStateDetails = lifecycleStateDetails; + this.__explicitlySet__.add("lifecycleStateDetails"); + return this; + } + /** The current status of the Delegated Resource Access Request. */ + @com.fasterxml.jackson.annotation.JsonProperty("requestStatus") + private DelegatedResourceAccessRequestStatus requestStatus; + + /** + * The current status of the Delegated Resource Access Request. + * + * @param requestStatus the value to set + * @return this builder + */ + public Builder requestStatus(DelegatedResourceAccessRequestStatus requestStatus) { + this.requestStatus = requestStatus; + this.__explicitlySet__.add("requestStatus"); + return this; + } + /** + * Time when the Delegated Resource Access Request was created by the support operator user + * in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. + * '2020-05-22T21:10:29.600Z'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * Time when the Delegated Resource Access Request was created by the support operator user + * in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. + * '2020-05-22T21: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; + } + /** + * Time when the Delegated Resource Access Request was last modified in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. + * '2020-05-22T21:10:29.600Z'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * Time when the Delegated Resource Access Request was last modified in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. + * '2020-05-22T21:10:29.600Z'. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Department": "Finance"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.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; + } + /** + * 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; + + /** + * 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; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * + *

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

Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DelegatedResourceAccessRequestSummary build() { + DelegatedResourceAccessRequestSummary model = + new DelegatedResourceAccessRequestSummary( + this.id, + this.compartmentId, + this.displayName, + this.ticketNumbers, + this.reasonForRequest, + this.timeAccessRequested, + this.resourceId, + this.resourceName, + this.resourceType, + this.requestedActionNames, + this.requesterType, + this.delegationControlId, + this.severity, + this.durationInHours, + this.extendDurationInHours, + this.isAutoApproved, + this.lifecycleState, + this.lifecycleStateDetails, + this.requestStatus, + this.timeCreated, + this.timeUpdated, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DelegatedResourceAccessRequestSummary 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("ticketNumbers")) { + this.ticketNumbers(model.getTicketNumbers()); + } + if (model.wasPropertyExplicitlySet("reasonForRequest")) { + this.reasonForRequest(model.getReasonForRequest()); + } + if (model.wasPropertyExplicitlySet("timeAccessRequested")) { + this.timeAccessRequested(model.getTimeAccessRequested()); + } + if (model.wasPropertyExplicitlySet("resourceId")) { + this.resourceId(model.getResourceId()); + } + if (model.wasPropertyExplicitlySet("resourceName")) { + this.resourceName(model.getResourceName()); + } + if (model.wasPropertyExplicitlySet("resourceType")) { + this.resourceType(model.getResourceType()); + } + if (model.wasPropertyExplicitlySet("requestedActionNames")) { + this.requestedActionNames(model.getRequestedActionNames()); + } + if (model.wasPropertyExplicitlySet("requesterType")) { + this.requesterType(model.getRequesterType()); + } + if (model.wasPropertyExplicitlySet("delegationControlId")) { + this.delegationControlId(model.getDelegationControlId()); + } + if (model.wasPropertyExplicitlySet("severity")) { + this.severity(model.getSeverity()); + } + if (model.wasPropertyExplicitlySet("durationInHours")) { + this.durationInHours(model.getDurationInHours()); + } + if (model.wasPropertyExplicitlySet("extendDurationInHours")) { + this.extendDurationInHours(model.getExtendDurationInHours()); + } + if (model.wasPropertyExplicitlySet("isAutoApproved")) { + this.isAutoApproved(model.getIsAutoApproved()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleStateDetails")) { + this.lifecycleStateDetails(model.getLifecycleStateDetails()); + } + if (model.wasPropertyExplicitlySet("requestStatus")) { + this.requestStatus(model.getRequestStatus()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the Delegated Resource Access Request. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the Delegated Resource Access Request. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The OCID of the compartment that contains the Delegated Resource Access Request. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment that contains the Delegated Resource Access Request. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Display name. This is generated by the system automatically. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Display name. This is generated by the system automatically. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * A list of ticket numbers related to this Delegated Resource Access Request, e.g. Service + * Request (SR) number and JIRA ticket number. + */ + @com.fasterxml.jackson.annotation.JsonProperty("ticketNumbers") + private final java.util.List ticketNumbers; + + /** + * A list of ticket numbers related to this Delegated Resource Access Request, e.g. Service + * Request (SR) number and JIRA ticket number. + * + * @return the value + */ + public java.util.List getTicketNumbers() { + return ticketNumbers; + } + + /** + * A short description explaining why this Delegated Resource Access Request is needed by the + * support operator. + */ + @com.fasterxml.jackson.annotation.JsonProperty("reasonForRequest") + private final String reasonForRequest; + + /** + * A short description explaining why this Delegated Resource Access Request is needed by the + * support operator. + * + * @return the value + */ + public String getReasonForRequest() { + return reasonForRequest; + } + + /** Requested access start time in UTC. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccessRequested") + private final java.util.Date timeAccessRequested; + + /** + * Requested access start time in UTC. + * + * @return the value + */ + public java.util.Date getTimeAccessRequested() { + return timeAccessRequested; + } + + /** + * The OCID of the target resource associated with the Delegated Resource Access Request. The + * support operator raises a Delegated Resource Access Request to get approval to access the + * target resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private final String resourceId; + + /** + * The OCID of the target resource associated with the Delegated Resource Access Request. The + * support operator raises a Delegated Resource Access Request to get approval to access the + * target resource. + * + * @return the value + */ + public String getResourceId() { + return resourceId; + } + + /** + * The name of the target resource associated with the Delegated Resource Access Request. The + * support operator raises a Delegated Resource Access Request to get approval to access the + * target resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceName") + private final String resourceName; + + /** + * The name of the target resource associated with the Delegated Resource Access Request. The + * support operator raises a Delegated Resource Access Request to get approval to access the + * target resource. + * + * @return the value + */ + public String getResourceName() { + return resourceName; + } + + /** Resource type for which the associated Delegation Control is applicable to. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceType") + private final DelegationControlResourceType resourceType; + + /** + * Resource type for which the associated Delegation Control is applicable to. + * + * @return the value + */ + public DelegationControlResourceType getResourceType() { + return resourceType; + } + + /** + * List of Service Provider Action names for which approval is sought by the support operator + * user. The list of pre-defined Service Provider Actions can be obtained from the + * ListServiceProviderActions API. + */ + @com.fasterxml.jackson.annotation.JsonProperty("requestedActionNames") + private final java.util.List requestedActionNames; + + /** + * List of Service Provider Action names for which approval is sought by the support operator + * user. The list of pre-defined Service Provider Actions can be obtained from the + * ListServiceProviderActions API. + * + * @return the value + */ + public java.util.List getRequestedActionNames() { + return requestedActionNames; + } + + /** Requester type */ + @com.fasterxml.jackson.annotation.JsonProperty("requesterType") + private final DelegatedResourceAccessRequesterType requesterType; + + /** + * Requester type + * + * @return the value + */ + public DelegatedResourceAccessRequesterType getRequesterType() { + return requesterType; + } + + /** The OCID of the Delegation Control governing the target resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("delegationControlId") + private final String delegationControlId; + + /** + * The OCID of the Delegation Control governing the target resource. + * + * @return the value + */ + public String getDelegationControlId() { + return delegationControlId; + } + + /** Priority assigned to the Delegated Resource Access Request by the support operator */ + @com.fasterxml.jackson.annotation.JsonProperty("severity") + private final DelegatedResourceAccessRequestSeverity severity; + + /** + * Priority assigned to the Delegated Resource Access Request by the support operator + * + * @return the value + */ + public DelegatedResourceAccessRequestSeverity getSeverity() { + return severity; + } + + /** Duration in hours for which access is sought on the target resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("durationInHours") + private final Integer durationInHours; + + /** + * Duration in hours for which access is sought on the target resource. + * + * @return the value + */ + public Integer getDurationInHours() { + return durationInHours; + } + + /** Duration in hours for which extension access is sought on the target resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("extendDurationInHours") + private final Integer extendDurationInHours; + + /** + * Duration in hours for which extension access is sought on the target resource. + * + * @return the value + */ + public Integer getExtendDurationInHours() { + return extendDurationInHours; + } + + /** + * Set to true if the request is approved automatically based on + * preApprovedServiceProviderActionNames or isAutoApproveDuringMaintenance in the associated + * Delegation Control. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoApproved") + private final Boolean isAutoApproved; + + /** + * Set to true if the request is approved automatically based on + * preApprovedServiceProviderActionNames or isAutoApproveDuringMaintenance in the associated + * Delegation Control. + * + * @return the value + */ + public Boolean getIsAutoApproved() { + return isAutoApproved; + } + + /** The current lifecycle state of the Delegated Resource Access Request. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final DelegatedResourceAccessRequest.LifecycleState lifecycleState; + + /** + * The current lifecycle state of the Delegated Resource Access Request. + * + * @return the value + */ + public DelegatedResourceAccessRequest.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** Description of the current lifecycle state in more detail. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStateDetails") + private final String lifecycleStateDetails; + + /** + * Description of the current lifecycle state in more detail. + * + * @return the value + */ + public String getLifecycleStateDetails() { + return lifecycleStateDetails; + } + + /** The current status of the Delegated Resource Access Request. */ + @com.fasterxml.jackson.annotation.JsonProperty("requestStatus") + private final DelegatedResourceAccessRequestStatus requestStatus; + + /** + * The current status of the Delegated Resource Access Request. + * + * @return the value + */ + public DelegatedResourceAccessRequestStatus getRequestStatus() { + return requestStatus; + } + + /** + * Time when the Delegated Resource Access Request was created by the support operator user in + * [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. + * '2020-05-22T21:10:29.600Z'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * Time when the Delegated Resource Access Request was created by the support operator user in + * [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. + * '2020-05-22T21:10:29.600Z'. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * Time when the Delegated Resource Access Request was last modified in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-22T21:10:29.600Z'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * Time when the Delegated Resource Access Request was last modified in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-22T21:10:29.600Z'. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.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; + + /** + * 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; + } + + /** + * 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; + + /** + * 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; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * + *

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

Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DelegatedResourceAccessRequestSummary("); + 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(", ticketNumbers=").append(String.valueOf(this.ticketNumbers)); + sb.append(", reasonForRequest=").append(String.valueOf(this.reasonForRequest)); + sb.append(", timeAccessRequested=").append(String.valueOf(this.timeAccessRequested)); + sb.append(", resourceId=").append(String.valueOf(this.resourceId)); + sb.append(", resourceName=").append(String.valueOf(this.resourceName)); + sb.append(", resourceType=").append(String.valueOf(this.resourceType)); + sb.append(", requestedActionNames=").append(String.valueOf(this.requestedActionNames)); + sb.append(", requesterType=").append(String.valueOf(this.requesterType)); + sb.append(", delegationControlId=").append(String.valueOf(this.delegationControlId)); + sb.append(", severity=").append(String.valueOf(this.severity)); + sb.append(", durationInHours=").append(String.valueOf(this.durationInHours)); + sb.append(", extendDurationInHours=").append(String.valueOf(this.extendDurationInHours)); + sb.append(", isAutoApproved=").append(String.valueOf(this.isAutoApproved)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleStateDetails=").append(String.valueOf(this.lifecycleStateDetails)); + sb.append(", requestStatus=").append(String.valueOf(this.requestStatus)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DelegatedResourceAccessRequestSummary)) { + return false; + } + + DelegatedResourceAccessRequestSummary other = (DelegatedResourceAccessRequestSummary) 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.ticketNumbers, other.ticketNumbers) + && java.util.Objects.equals(this.reasonForRequest, other.reasonForRequest) + && java.util.Objects.equals(this.timeAccessRequested, other.timeAccessRequested) + && java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.resourceName, other.resourceName) + && java.util.Objects.equals(this.resourceType, other.resourceType) + && java.util.Objects.equals(this.requestedActionNames, other.requestedActionNames) + && java.util.Objects.equals(this.requesterType, other.requesterType) + && java.util.Objects.equals(this.delegationControlId, other.delegationControlId) + && java.util.Objects.equals(this.severity, other.severity) + && java.util.Objects.equals(this.durationInHours, other.durationInHours) + && java.util.Objects.equals(this.extendDurationInHours, other.extendDurationInHours) + && java.util.Objects.equals(this.isAutoApproved, other.isAutoApproved) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleStateDetails, other.lifecycleStateDetails) + && java.util.Objects.equals(this.requestStatus, other.requestStatus) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.ticketNumbers == null ? 43 : this.ticketNumbers.hashCode()); + result = + (result * PRIME) + + (this.reasonForRequest == null ? 43 : this.reasonForRequest.hashCode()); + result = + (result * PRIME) + + (this.timeAccessRequested == null + ? 43 + : this.timeAccessRequested.hashCode()); + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); + result = (result * PRIME) + (this.resourceName == null ? 43 : this.resourceName.hashCode()); + result = (result * PRIME) + (this.resourceType == null ? 43 : this.resourceType.hashCode()); + result = + (result * PRIME) + + (this.requestedActionNames == null + ? 43 + : this.requestedActionNames.hashCode()); + result = + (result * PRIME) + + (this.requesterType == null ? 43 : this.requesterType.hashCode()); + result = + (result * PRIME) + + (this.delegationControlId == null + ? 43 + : this.delegationControlId.hashCode()); + result = (result * PRIME) + (this.severity == null ? 43 : this.severity.hashCode()); + result = + (result * PRIME) + + (this.durationInHours == null ? 43 : this.durationInHours.hashCode()); + result = + (result * PRIME) + + (this.extendDurationInHours == null + ? 43 + : this.extendDurationInHours.hashCode()); + result = + (result * PRIME) + + (this.isAutoApproved == null ? 43 : this.isAutoApproved.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleStateDetails == null + ? 43 + : this.lifecycleStateDetails.hashCode()); + result = + (result * PRIME) + + (this.requestStatus == null ? 43 : this.requestStatus.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestSummaryCollection.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestSummaryCollection.java new file mode 100644 index 00000000000..cb17c98dcc0 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequestSummaryCollection.java @@ -0,0 +1,137 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** + * Results of Delegated Resource Access Request search, which contains summary of Delegated Resource + * Access 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: 20230801") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DelegatedResourceAccessRequestSummaryCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DelegatedResourceAccessRequestSummaryCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public DelegatedResourceAccessRequestSummaryCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** contains DelegatedResourceAccessRequestSummary */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * contains DelegatedResourceAccessRequestSummary + * + * @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 DelegatedResourceAccessRequestSummaryCollection build() { + DelegatedResourceAccessRequestSummaryCollection model = + new DelegatedResourceAccessRequestSummaryCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DelegatedResourceAccessRequestSummaryCollection 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); + } + + /** contains DelegatedResourceAccessRequestSummary */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * contains DelegatedResourceAccessRequestSummary + * + * @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("DelegatedResourceAccessRequestSummaryCollection("); + 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 DelegatedResourceAccessRequestSummaryCollection)) { + return false; + } + + DelegatedResourceAccessRequestSummaryCollection other = + (DelegatedResourceAccessRequestSummaryCollection) 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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequesterType.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequesterType.java new file mode 100644 index 00000000000..5864ed11cc8 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegatedResourceAccessRequesterType.java @@ -0,0 +1,55 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** Requester types */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public enum DelegatedResourceAccessRequesterType implements com.oracle.bmc.http.internal.BmcEnum { + Operator("OPERATOR"), + Customer("CUSTOMER"), + System("SYSTEM"), + + /** + * 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(DelegatedResourceAccessRequesterType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DelegatedResourceAccessRequesterType v : + DelegatedResourceAccessRequesterType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DelegatedResourceAccessRequesterType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DelegatedResourceAccessRequesterType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DelegatedResourceAccessRequesterType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationControl.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationControl.java new file mode 100644 index 00000000000..143bee3a7a1 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationControl.java @@ -0,0 +1,1257 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** + * Delegation Control enables you to grant, audit, or revoke the access Oracle has to your Exadata + * Cloud infrastructure, and obtain audit reports of all actions taken by a human operator, in a + * near real-time manner.
+ * 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: 20230801") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DelegationControl.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DelegationControl + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "description", + "numApprovalsRequired", + "preApprovedServiceProviderActionNames", + "delegationSubscriptionIds", + "isAutoApproveDuringMaintenance", + "resourceIds", + "resourceType", + "notificationTopicId", + "notificationMessageFormat", + "vaultId", + "vaultKeyId", + "lifecycleState", + "lifecycleStateDetails", + "timeCreated", + "timeUpdated", + "timeDeleted", + "freeformTags", + "definedTags", + "systemTags" + }) + public DelegationControl( + String id, + String compartmentId, + String displayName, + String description, + Integer numApprovalsRequired, + java.util.List preApprovedServiceProviderActionNames, + java.util.List delegationSubscriptionIds, + Boolean isAutoApproveDuringMaintenance, + java.util.List resourceIds, + DelegationControlResourceType resourceType, + String notificationTopicId, + NotificationMessageFormat notificationMessageFormat, + String vaultId, + String vaultKeyId, + LifecycleState lifecycleState, + String lifecycleStateDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Date timeDeleted, + 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.numApprovalsRequired = numApprovalsRequired; + this.preApprovedServiceProviderActionNames = preApprovedServiceProviderActionNames; + this.delegationSubscriptionIds = delegationSubscriptionIds; + this.isAutoApproveDuringMaintenance = isAutoApproveDuringMaintenance; + this.resourceIds = resourceIds; + this.resourceType = resourceType; + this.notificationTopicId = notificationTopicId; + this.notificationMessageFormat = notificationMessageFormat; + this.vaultId = vaultId; + this.vaultKeyId = vaultKeyId; + this.lifecycleState = lifecycleState; + this.lifecycleStateDetails = lifecycleStateDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.timeDeleted = timeDeleted; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the Delegation Control. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the Delegation Control. + * + * @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 compartment that contains the Delegation Control. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment that contains the Delegation Control. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Name of the Delegation Control. The name does not need to be unique. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Name of the Delegation Control. The name does not need to be unique. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Description of the Delegation Control. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Description of the Delegation Control. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** number of approvals required. */ + @com.fasterxml.jackson.annotation.JsonProperty("numApprovalsRequired") + private Integer numApprovalsRequired; + + /** + * number of approvals required. + * + * @param numApprovalsRequired the value to set + * @return this builder + */ + public Builder numApprovalsRequired(Integer numApprovalsRequired) { + this.numApprovalsRequired = numApprovalsRequired; + this.__explicitlySet__.add("numApprovalsRequired"); + return this; + } + /** + * List of pre-approved Service Provider Action names. The list of pre-defined Service + * Provider Actions can be obtained from the ListServiceProviderActions API. Delegated + * Resource Access Requests associated with a resource governed by this Delegation Control + * will be automatically approved if the Delegated Resource Access Request only contain + * Service Provider Actions in the pre-approved list. + */ + @com.fasterxml.jackson.annotation.JsonProperty("preApprovedServiceProviderActionNames") + private java.util.List preApprovedServiceProviderActionNames; + + /** + * List of pre-approved Service Provider Action names. The list of pre-defined Service + * Provider Actions can be obtained from the ListServiceProviderActions API. Delegated + * Resource Access Requests associated with a resource governed by this Delegation Control + * will be automatically approved if the Delegated Resource Access Request only contain + * Service Provider Actions in the pre-approved list. + * + * @param preApprovedServiceProviderActionNames the value to set + * @return this builder + */ + public Builder preApprovedServiceProviderActionNames( + java.util.List preApprovedServiceProviderActionNames) { + this.preApprovedServiceProviderActionNames = preApprovedServiceProviderActionNames; + this.__explicitlySet__.add("preApprovedServiceProviderActionNames"); + return this; + } + /** + * List of Delegation Subscription OCID that are allowed for this Delegation Control. The + * allowed subscriptions will determine the available Service Provider Actions. Only support + * operators for the allowed subscriptions are allowed to create Delegated Resource Access + * Request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("delegationSubscriptionIds") + private java.util.List delegationSubscriptionIds; + + /** + * List of Delegation Subscription OCID that are allowed for this Delegation Control. The + * allowed subscriptions will determine the available Service Provider Actions. Only support + * operators for the allowed subscriptions are allowed to create Delegated Resource Access + * Request. + * + * @param delegationSubscriptionIds the value to set + * @return this builder + */ + public Builder delegationSubscriptionIds(java.util.List delegationSubscriptionIds) { + this.delegationSubscriptionIds = delegationSubscriptionIds; + this.__explicitlySet__.add("delegationSubscriptionIds"); + return this; + } + /** + * Set to true to allow all Delegated Resource Access Request to be approved automatically + * during maintenance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoApproveDuringMaintenance") + private Boolean isAutoApproveDuringMaintenance; + + /** + * Set to true to allow all Delegated Resource Access Request to be approved automatically + * during maintenance. + * + * @param isAutoApproveDuringMaintenance the value to set + * @return this builder + */ + public Builder isAutoApproveDuringMaintenance(Boolean isAutoApproveDuringMaintenance) { + this.isAutoApproveDuringMaintenance = isAutoApproveDuringMaintenance; + this.__explicitlySet__.add("isAutoApproveDuringMaintenance"); + return this; + } + /** The OCID of the selected resources that this Delegation Control is applicable to. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceIds") + private java.util.List resourceIds; + + /** + * The OCID of the selected resources that this Delegation Control is applicable to. + * + * @param resourceIds the value to set + * @return this builder + */ + public Builder resourceIds(java.util.List resourceIds) { + this.resourceIds = resourceIds; + this.__explicitlySet__.add("resourceIds"); + return this; + } + /** Resource type for which the Delegation Control is applicable to. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceType") + private DelegationControlResourceType resourceType; + + /** + * Resource type for which the Delegation Control is applicable to. + * + * @param resourceType the value to set + * @return this builder + */ + public Builder resourceType(DelegationControlResourceType resourceType) { + this.resourceType = resourceType; + this.__explicitlySet__.add("resourceType"); + return this; + } + /** + * The OCID of the OCI Notification topic to publish messages related to this Delegation + * Control. + */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicId") + private String notificationTopicId; + + /** + * The OCID of the OCI Notification topic to publish messages related to this Delegation + * Control. + * + * @param notificationTopicId the value to set + * @return this builder + */ + public Builder notificationTopicId(String notificationTopicId) { + this.notificationTopicId = notificationTopicId; + this.__explicitlySet__.add("notificationTopicId"); + return this; + } + /** The format of the OCI Notification messages for this Delegation Control. */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationMessageFormat") + private NotificationMessageFormat notificationMessageFormat; + + /** + * The format of the OCI Notification messages for this Delegation Control. + * + * @param notificationMessageFormat the value to set + * @return this builder + */ + public Builder notificationMessageFormat( + NotificationMessageFormat notificationMessageFormat) { + this.notificationMessageFormat = notificationMessageFormat; + this.__explicitlySet__.add("notificationMessageFormat"); + return this; + } + /** + * The OCID of the OCI Vault that will store the secrets containing the SSH keys to access + * the resource governed by this Delegation Control by Delegate Access Control Service. This + * property is required when resourceType is CLOUDVMCLUSTER. Delegate Access Control Service + * will generate the SSH keys and store them as secrets in the OCI Vault. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + /** + * The OCID of the OCI Vault that will store the secrets containing the SSH keys to access + * the resource governed by this Delegation Control by Delegate Access Control Service. This + * property is required when resourceType is CLOUDVMCLUSTER. Delegate Access Control Service + * will generate the SSH keys and store them as secrets in the OCI Vault. + * + * @param vaultId the value to set + * @return this builder + */ + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + /** + * The OCID of the Master Encryption Key in the OCI Vault specified by vaultId. This key + * will be used to encrypt the SSH keys to access the resource governed by this Delegation + * Control by Delegate Access Control Service. This property is required when resourceType + * is CLOUDVMCLUSTER. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultKeyId") + private String vaultKeyId; + + /** + * The OCID of the Master Encryption Key in the OCI Vault specified by vaultId. This key + * will be used to encrypt the SSH keys to access the resource governed by this Delegation + * Control by Delegate Access Control Service. This property is required when resourceType + * is CLOUDVMCLUSTER. + * + * @param vaultKeyId the value to set + * @return this builder + */ + public Builder vaultKeyId(String vaultKeyId) { + this.vaultKeyId = vaultKeyId; + this.__explicitlySet__.add("vaultKeyId"); + return this; + } + /** The current lifecycle state of the Delegation Control. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current lifecycle state of the Delegation Control. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** Description of the current lifecycle state in more detail. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStateDetails") + private String lifecycleStateDetails; + + /** + * Description of the current lifecycle state in more detail. + * + * @param lifecycleStateDetails the value to set + * @return this builder + */ + public Builder lifecycleStateDetails(String lifecycleStateDetails) { + this.lifecycleStateDetails = lifecycleStateDetails; + this.__explicitlySet__.add("lifecycleStateDetails"); + return this; + } + /** + * Time when the Delegation Control was created expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. + * '2020-05-22T21:10:29.600Z' + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * Time when the Delegation Control was created expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. + * '2020-05-22T21: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; + } + /** + * Time when the Delegation Control was last modified expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. + * '2020-05-22T21:10:29.600Z' + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * Time when the Delegation Control was last modified expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. + * '2020-05-22T21: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; + } + /** + * Time when the Delegation Control was deleted expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339)timestamp format, e.g. + * '2020-05-22T21:10:29.600Z'. Note a deleted Delegation Control still stays in the system, + * so that you can still audit Service Provider Actions associated with Delegated Resource + * Access Requests raised on target resources governed by the deleted Delegation Control. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeDeleted") + private java.util.Date timeDeleted; + + /** + * Time when the Delegation Control was deleted expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339)timestamp format, e.g. + * '2020-05-22T21:10:29.600Z'. Note a deleted Delegation Control still stays in the system, + * so that you can still audit Service Provider Actions associated with Delegated Resource + * Access Requests raised on target resources governed by the deleted Delegation Control. + * + * @param timeDeleted the value to set + * @return this builder + */ + public Builder timeDeleted(java.util.Date timeDeleted) { + this.timeDeleted = timeDeleted; + this.__explicitlySet__.add("timeDeleted"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Department": "Finance"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.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; + } + /** + * 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; + + /** + * 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; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * + *

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

Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DelegationControl build() { + DelegationControl model = + new DelegationControl( + this.id, + this.compartmentId, + this.displayName, + this.description, + this.numApprovalsRequired, + this.preApprovedServiceProviderActionNames, + this.delegationSubscriptionIds, + this.isAutoApproveDuringMaintenance, + this.resourceIds, + this.resourceType, + this.notificationTopicId, + this.notificationMessageFormat, + this.vaultId, + this.vaultKeyId, + this.lifecycleState, + this.lifecycleStateDetails, + this.timeCreated, + this.timeUpdated, + this.timeDeleted, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DelegationControl 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("numApprovalsRequired")) { + this.numApprovalsRequired(model.getNumApprovalsRequired()); + } + if (model.wasPropertyExplicitlySet("preApprovedServiceProviderActionNames")) { + this.preApprovedServiceProviderActionNames( + model.getPreApprovedServiceProviderActionNames()); + } + if (model.wasPropertyExplicitlySet("delegationSubscriptionIds")) { + this.delegationSubscriptionIds(model.getDelegationSubscriptionIds()); + } + if (model.wasPropertyExplicitlySet("isAutoApproveDuringMaintenance")) { + this.isAutoApproveDuringMaintenance(model.getIsAutoApproveDuringMaintenance()); + } + if (model.wasPropertyExplicitlySet("resourceIds")) { + this.resourceIds(model.getResourceIds()); + } + if (model.wasPropertyExplicitlySet("resourceType")) { + this.resourceType(model.getResourceType()); + } + if (model.wasPropertyExplicitlySet("notificationTopicId")) { + this.notificationTopicId(model.getNotificationTopicId()); + } + if (model.wasPropertyExplicitlySet("notificationMessageFormat")) { + this.notificationMessageFormat(model.getNotificationMessageFormat()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("vaultKeyId")) { + this.vaultKeyId(model.getVaultKeyId()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleStateDetails")) { + this.lifecycleStateDetails(model.getLifecycleStateDetails()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("timeDeleted")) { + this.timeDeleted(model.getTimeDeleted()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the Delegation Control. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the Delegation Control. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The OCID of the compartment that contains the Delegation Control. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment that contains the Delegation Control. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Name of the Delegation Control. The name does not need to be unique. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Name of the Delegation Control. The name does not need to be unique. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Description of the Delegation Control. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the Delegation Control. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** number of approvals required. */ + @com.fasterxml.jackson.annotation.JsonProperty("numApprovalsRequired") + private final Integer numApprovalsRequired; + + /** + * number of approvals required. + * + * @return the value + */ + public Integer getNumApprovalsRequired() { + return numApprovalsRequired; + } + + /** + * List of pre-approved Service Provider Action names. The list of pre-defined Service Provider + * Actions can be obtained from the ListServiceProviderActions API. Delegated Resource Access + * Requests associated with a resource governed by this Delegation Control will be automatically + * approved if the Delegated Resource Access Request only contain Service Provider Actions in + * the pre-approved list. + */ + @com.fasterxml.jackson.annotation.JsonProperty("preApprovedServiceProviderActionNames") + private final java.util.List preApprovedServiceProviderActionNames; + + /** + * List of pre-approved Service Provider Action names. The list of pre-defined Service Provider + * Actions can be obtained from the ListServiceProviderActions API. Delegated Resource Access + * Requests associated with a resource governed by this Delegation Control will be automatically + * approved if the Delegated Resource Access Request only contain Service Provider Actions in + * the pre-approved list. + * + * @return the value + */ + public java.util.List getPreApprovedServiceProviderActionNames() { + return preApprovedServiceProviderActionNames; + } + + /** + * List of Delegation Subscription OCID that are allowed for this Delegation Control. The + * allowed subscriptions will determine the available Service Provider Actions. Only support + * operators for the allowed subscriptions are allowed to create Delegated Resource Access + * Request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("delegationSubscriptionIds") + private final java.util.List delegationSubscriptionIds; + + /** + * List of Delegation Subscription OCID that are allowed for this Delegation Control. The + * allowed subscriptions will determine the available Service Provider Actions. Only support + * operators for the allowed subscriptions are allowed to create Delegated Resource Access + * Request. + * + * @return the value + */ + public java.util.List getDelegationSubscriptionIds() { + return delegationSubscriptionIds; + } + + /** + * Set to true to allow all Delegated Resource Access Request to be approved automatically + * during maintenance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoApproveDuringMaintenance") + private final Boolean isAutoApproveDuringMaintenance; + + /** + * Set to true to allow all Delegated Resource Access Request to be approved automatically + * during maintenance. + * + * @return the value + */ + public Boolean getIsAutoApproveDuringMaintenance() { + return isAutoApproveDuringMaintenance; + } + + /** The OCID of the selected resources that this Delegation Control is applicable to. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceIds") + private final java.util.List resourceIds; + + /** + * The OCID of the selected resources that this Delegation Control is applicable to. + * + * @return the value + */ + public java.util.List getResourceIds() { + return resourceIds; + } + + /** Resource type for which the Delegation Control is applicable to. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceType") + private final DelegationControlResourceType resourceType; + + /** + * Resource type for which the Delegation Control is applicable to. + * + * @return the value + */ + public DelegationControlResourceType getResourceType() { + return resourceType; + } + + /** + * The OCID of the OCI Notification topic to publish messages related to this Delegation + * Control. + */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicId") + private final String notificationTopicId; + + /** + * The OCID of the OCI Notification topic to publish messages related to this Delegation + * Control. + * + * @return the value + */ + public String getNotificationTopicId() { + return notificationTopicId; + } + + /** The format of the OCI Notification messages for this Delegation Control. */ + public enum NotificationMessageFormat implements com.oracle.bmc.http.internal.BmcEnum { + Json("JSON"), + Html("HTML"), + + /** + * 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(NotificationMessageFormat.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (NotificationMessageFormat v : NotificationMessageFormat.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + NotificationMessageFormat(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static NotificationMessageFormat create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'NotificationMessageFormat', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The format of the OCI Notification messages for this Delegation Control. */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationMessageFormat") + private final NotificationMessageFormat notificationMessageFormat; + + /** + * The format of the OCI Notification messages for this Delegation Control. + * + * @return the value + */ + public NotificationMessageFormat getNotificationMessageFormat() { + return notificationMessageFormat; + } + + /** + * The OCID of the OCI Vault that will store the secrets containing the SSH keys to access the + * resource governed by this Delegation Control by Delegate Access Control Service. This + * property is required when resourceType is CLOUDVMCLUSTER. Delegate Access Control Service + * will generate the SSH keys and store them as secrets in the OCI Vault. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; + + /** + * The OCID of the OCI Vault that will store the secrets containing the SSH keys to access the + * resource governed by this Delegation Control by Delegate Access Control Service. This + * property is required when resourceType is CLOUDVMCLUSTER. Delegate Access Control Service + * will generate the SSH keys and store them as secrets in the OCI Vault. + * + * @return the value + */ + public String getVaultId() { + return vaultId; + } + + /** + * The OCID of the Master Encryption Key in the OCI Vault specified by vaultId. This key will be + * used to encrypt the SSH keys to access the resource governed by this Delegation Control by + * Delegate Access Control Service. This property is required when resourceType is + * CLOUDVMCLUSTER. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultKeyId") + private final String vaultKeyId; + + /** + * The OCID of the Master Encryption Key in the OCI Vault specified by vaultId. This key will be + * used to encrypt the SSH keys to access the resource governed by this Delegation Control by + * Delegate Access Control Service. This property is required when resourceType is + * CLOUDVMCLUSTER. + * + * @return the value + */ + public String getVaultKeyId() { + return vaultKeyId; + } + + /** The current lifecycle state of the Delegation Control. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + Active("ACTIVE"), + Updating("UPDATING"), + Deleting("DELETING"), + Deleted("DELETED"), + Failed("FAILED"), + NeedsAttention("NEEDS_ATTENTION"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The current lifecycle state of the Delegation Control. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current lifecycle state of the Delegation Control. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** Description of the current lifecycle state in more detail. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStateDetails") + private final String lifecycleStateDetails; + + /** + * Description of the current lifecycle state in more detail. + * + * @return the value + */ + public String getLifecycleStateDetails() { + return lifecycleStateDetails; + } + + /** + * Time when the Delegation Control was created expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-22T21:10:29.600Z' + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * Time when the Delegation Control was created expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-22T21:10:29.600Z' + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * Time when the Delegation Control was last modified expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-22T21:10:29.600Z' + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * Time when the Delegation Control was last modified expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-22T21:10:29.600Z' + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Time when the Delegation Control was deleted expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339)timestamp format, e.g. '2020-05-22T21:10:29.600Z'. + * Note a deleted Delegation Control still stays in the system, so that you can still audit + * Service Provider Actions associated with Delegated Resource Access Requests raised on target + * resources governed by the deleted Delegation Control. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeDeleted") + private final java.util.Date timeDeleted; + + /** + * Time when the Delegation Control was deleted expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339)timestamp format, e.g. '2020-05-22T21:10:29.600Z'. + * Note a deleted Delegation Control still stays in the system, so that you can still audit + * Service Provider Actions associated with Delegated Resource Access Requests raised on target + * resources governed by the deleted Delegation Control. + * + * @return the value + */ + public java.util.Date getTimeDeleted() { + return timeDeleted; + } + + /** + * 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; + + /** + * 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; + } + + /** + * 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; + + /** + * 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; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * + *

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

Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DelegationControl("); + 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(", numApprovalsRequired=").append(String.valueOf(this.numApprovalsRequired)); + sb.append(", preApprovedServiceProviderActionNames=") + .append(String.valueOf(this.preApprovedServiceProviderActionNames)); + sb.append(", delegationSubscriptionIds=") + .append(String.valueOf(this.delegationSubscriptionIds)); + sb.append(", isAutoApproveDuringMaintenance=") + .append(String.valueOf(this.isAutoApproveDuringMaintenance)); + sb.append(", resourceIds=").append(String.valueOf(this.resourceIds)); + sb.append(", resourceType=").append(String.valueOf(this.resourceType)); + sb.append(", notificationTopicId=").append(String.valueOf(this.notificationTopicId)); + sb.append(", notificationMessageFormat=") + .append(String.valueOf(this.notificationMessageFormat)); + sb.append(", vaultId=").append(String.valueOf(this.vaultId)); + sb.append(", vaultKeyId=").append(String.valueOf(this.vaultKeyId)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleStateDetails=").append(String.valueOf(this.lifecycleStateDetails)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", timeDeleted=").append(String.valueOf(this.timeDeleted)); + 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 DelegationControl)) { + return false; + } + + DelegationControl other = (DelegationControl) 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.numApprovalsRequired, other.numApprovalsRequired) + && java.util.Objects.equals( + this.preApprovedServiceProviderActionNames, + other.preApprovedServiceProviderActionNames) + && java.util.Objects.equals( + this.delegationSubscriptionIds, other.delegationSubscriptionIds) + && java.util.Objects.equals( + this.isAutoApproveDuringMaintenance, other.isAutoApproveDuringMaintenance) + && java.util.Objects.equals(this.resourceIds, other.resourceIds) + && java.util.Objects.equals(this.resourceType, other.resourceType) + && java.util.Objects.equals(this.notificationTopicId, other.notificationTopicId) + && java.util.Objects.equals( + this.notificationMessageFormat, other.notificationMessageFormat) + && java.util.Objects.equals(this.vaultId, other.vaultId) + && java.util.Objects.equals(this.vaultKeyId, other.vaultKeyId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleStateDetails, other.lifecycleStateDetails) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.timeDeleted, other.timeDeleted) + && 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.numApprovalsRequired == null + ? 43 + : this.numApprovalsRequired.hashCode()); + result = + (result * PRIME) + + (this.preApprovedServiceProviderActionNames == null + ? 43 + : this.preApprovedServiceProviderActionNames.hashCode()); + result = + (result * PRIME) + + (this.delegationSubscriptionIds == null + ? 43 + : this.delegationSubscriptionIds.hashCode()); + result = + (result * PRIME) + + (this.isAutoApproveDuringMaintenance == null + ? 43 + : this.isAutoApproveDuringMaintenance.hashCode()); + result = (result * PRIME) + (this.resourceIds == null ? 43 : this.resourceIds.hashCode()); + result = (result * PRIME) + (this.resourceType == null ? 43 : this.resourceType.hashCode()); + result = + (result * PRIME) + + (this.notificationTopicId == null + ? 43 + : this.notificationTopicId.hashCode()); + result = + (result * PRIME) + + (this.notificationMessageFormat == null + ? 43 + : this.notificationMessageFormat.hashCode()); + result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); + result = (result * PRIME) + (this.vaultKeyId == null ? 43 : this.vaultKeyId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleStateDetails == null + ? 43 + : this.lifecycleStateDetails.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.timeDeleted == null ? 43 : this.timeDeleted.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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationControlResourceCollection.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationControlResourceCollection.java new file mode 100644 index 00000000000..396e9b5cf0d --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationControlResourceCollection.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.delegateaccesscontrol.model; + +/** + * List of DelegationControlResourceSummary objects.
+ * 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: 20230801") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DelegationControlResourceCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DelegationControlResourceCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public DelegationControlResourceCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of DelegationControlResourceSummary objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of DelegationControlResourceSummary objects. + * + * @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 DelegationControlResourceCollection build() { + DelegationControlResourceCollection model = + new DelegationControlResourceCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DelegationControlResourceCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of DelegationControlResourceSummary objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of DelegationControlResourceSummary objects. + * + * @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("DelegationControlResourceCollection("); + 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 DelegationControlResourceCollection)) { + return false; + } + + DelegationControlResourceCollection other = (DelegationControlResourceCollection) 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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationControlResourceSummary.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationControlResourceSummary.java new file mode 100644 index 00000000000..27cc053c437 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationControlResourceSummary.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.delegateaccesscontrol.model; + +/** + * Details of the resources that this Delegation Control is applicable 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: 20230801") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DelegationControlResourceSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DelegationControlResourceSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"id", "resourceStatus"}) + public DelegationControlResourceSummary(String id, ResourceStatus resourceStatus) { + super(); + this.id = id; + this.resourceStatus = resourceStatus; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * OCID of the resource. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The current status of the resource in Delegation Control. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceStatus") + private ResourceStatus resourceStatus; + + /** + * The current status of the resource in Delegation Control. + * + * @param resourceStatus the value to set + * @return this builder + */ + public Builder resourceStatus(ResourceStatus resourceStatus) { + this.resourceStatus = resourceStatus; + this.__explicitlySet__.add("resourceStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DelegationControlResourceSummary build() { + DelegationControlResourceSummary model = + new DelegationControlResourceSummary(this.id, this.resourceStatus); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DelegationControlResourceSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("resourceStatus")) { + this.resourceStatus(model.getResourceStatus()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * OCID of the resource. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The current status of the resource in Delegation Control. */ + public enum ResourceStatus implements com.oracle.bmc.http.internal.BmcEnum { + Created("CREATED"), + Applying("APPLYING"), + Applied("APPLIED"), + ApplyFailed("APPLY_FAILED"), + Updating("UPDATING"), + UpdateFailed("UPDATE_FAILED"), + Deleting("DELETING"), + Deleted("DELETED"), + DeletionFailed("DELETION_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(ResourceStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ResourceStatus v : ResourceStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ResourceStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ResourceStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ResourceStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The current status of the resource in Delegation Control. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceStatus") + private final ResourceStatus resourceStatus; + + /** + * The current status of the resource in Delegation Control. + * + * @return the value + */ + public ResourceStatus getResourceStatus() { + return resourceStatus; + } + + @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("DelegationControlResourceSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", resourceStatus=").append(String.valueOf(this.resourceStatus)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DelegationControlResourceSummary)) { + return false; + } + + DelegationControlResourceSummary other = (DelegationControlResourceSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.resourceStatus, other.resourceStatus) + && 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.resourceStatus == null ? 43 : this.resourceStatus.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationControlResourceType.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationControlResourceType.java new file mode 100644 index 00000000000..ce9d3a4f26f --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationControlResourceType.java @@ -0,0 +1,53 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** Resource types available to be governed under Delegation Control */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public enum DelegationControlResourceType implements com.oracle.bmc.http.internal.BmcEnum { + Vmcluster("VMCLUSTER"), + Cloudvmcluster("CLOUDVMCLUSTER"), + + /** + * 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(DelegationControlResourceType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DelegationControlResourceType v : DelegationControlResourceType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DelegationControlResourceType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DelegationControlResourceType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DelegationControlResourceType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationControlSummary.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationControlSummary.java new file mode 100644 index 00000000000..7176adf9cd0 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationControlSummary.java @@ -0,0 +1,644 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** + * Summary of the Delegation Control.
+ * 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: 20230801") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DelegationControlSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DelegationControlSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "compartmentId", + "resourceType", + "timeCreated", + "timeUpdated", + "timeDeleted", + "lifecycleState", + "lifecycleStateDetails", + "freeformTags", + "definedTags", + "systemTags" + }) + public DelegationControlSummary( + String id, + String displayName, + String compartmentId, + DelegationControlResourceType resourceType, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Date timeDeleted, + DelegationControl.LifecycleState lifecycleState, + String lifecycleStateDetails, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.compartmentId = compartmentId; + this.resourceType = resourceType; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.timeDeleted = timeDeleted; + this.lifecycleState = lifecycleState; + this.lifecycleStateDetails = lifecycleStateDetails; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the Delegation Control. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the Delegation Control. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Name of the Delegation Control. The name does not need to be unique. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Name of the Delegation Control. The name does not need to be unique. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The OCID of the compartment that contains the Delegation Control. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment that contains the Delegation Control. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** resourceType for which the Delegation Control is applicable */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceType") + private DelegationControlResourceType resourceType; + + /** + * resourceType for which the Delegation Control is applicable + * + * @param resourceType the value to set + * @return this builder + */ + public Builder resourceType(DelegationControlResourceType resourceType) { + this.resourceType = resourceType; + this.__explicitlySet__.add("resourceType"); + return this; + } + /** + * Time when the Delegation Control was created, expressed in [RFC 3339] + * (https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-22T21:10:29.600Z'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * Time when the Delegation Control was created, expressed in [RFC 3339] + * (https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-22T21: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; + } + /** + * Time when the Delegation Control was last modified, expressed in [RFC 3339] + * (https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-22T21:10:29.600Z'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * Time when the Delegation Control was last modified, expressed in [RFC 3339] + * (https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-22T21: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; + } + /** + * Time when the Delegation Control was deleted, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. + * '2020-05-22T21:10:29.600Z'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeDeleted") + private java.util.Date timeDeleted; + + /** + * Time when the Delegation Control was deleted, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. + * '2020-05-22T21:10:29.600Z'. + * + * @param timeDeleted the value to set + * @return this builder + */ + public Builder timeDeleted(java.util.Date timeDeleted) { + this.timeDeleted = timeDeleted; + this.__explicitlySet__.add("timeDeleted"); + return this; + } + /** The current lifecycle state of the Delegation Control. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private DelegationControl.LifecycleState lifecycleState; + + /** + * The current lifecycle state of the Delegation Control. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(DelegationControl.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** Description of the current lifecycle state in more detail. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStateDetails") + private String lifecycleStateDetails; + + /** + * Description of the current lifecycle state in more detail. + * + * @param lifecycleStateDetails the value to set + * @return this builder + */ + public Builder lifecycleStateDetails(String lifecycleStateDetails) { + this.lifecycleStateDetails = lifecycleStateDetails; + this.__explicitlySet__.add("lifecycleStateDetails"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Department": "Finance"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.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; + } + /** + * 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; + + /** + * 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; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * + *

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

Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DelegationControlSummary build() { + DelegationControlSummary model = + new DelegationControlSummary( + this.id, + this.displayName, + this.compartmentId, + this.resourceType, + this.timeCreated, + this.timeUpdated, + this.timeDeleted, + this.lifecycleState, + this.lifecycleStateDetails, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DelegationControlSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("resourceType")) { + this.resourceType(model.getResourceType()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("timeDeleted")) { + this.timeDeleted(model.getTimeDeleted()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleStateDetails")) { + this.lifecycleStateDetails(model.getLifecycleStateDetails()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the Delegation Control. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the Delegation Control. + * + * @return the value + */ + public String getId() { + return id; + } + + /** Name of the Delegation Control. The name does not need to be unique. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Name of the Delegation Control. The name does not need to be unique. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The OCID of the compartment that contains the Delegation Control. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment that contains the Delegation Control. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** resourceType for which the Delegation Control is applicable */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceType") + private final DelegationControlResourceType resourceType; + + /** + * resourceType for which the Delegation Control is applicable + * + * @return the value + */ + public DelegationControlResourceType getResourceType() { + return resourceType; + } + + /** + * Time when the Delegation Control was created, expressed in [RFC 3339] + * (https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-22T21:10:29.600Z'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * Time when the Delegation Control was created, expressed in [RFC 3339] + * (https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-22T21:10:29.600Z'. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * Time when the Delegation Control was last modified, expressed in [RFC 3339] + * (https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-22T21:10:29.600Z'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * Time when the Delegation Control was last modified, expressed in [RFC 3339] + * (https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-22T21:10:29.600Z'. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Time when the Delegation Control was deleted, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-22T21:10:29.600Z'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeDeleted") + private final java.util.Date timeDeleted; + + /** + * Time when the Delegation Control was deleted, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-22T21:10:29.600Z'. + * + * @return the value + */ + public java.util.Date getTimeDeleted() { + return timeDeleted; + } + + /** The current lifecycle state of the Delegation Control. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final DelegationControl.LifecycleState lifecycleState; + + /** + * The current lifecycle state of the Delegation Control. + * + * @return the value + */ + public DelegationControl.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** Description of the current lifecycle state in more detail. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStateDetails") + private final String lifecycleStateDetails; + + /** + * Description of the current lifecycle state in more detail. + * + * @return the value + */ + public String getLifecycleStateDetails() { + return lifecycleStateDetails; + } + + /** + * 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; + + /** + * 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; + } + + /** + * 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; + + /** + * 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; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * + *

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

Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DelegationControlSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", resourceType=").append(String.valueOf(this.resourceType)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", timeDeleted=").append(String.valueOf(this.timeDeleted)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleStateDetails=").append(String.valueOf(this.lifecycleStateDetails)); + 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 DelegationControlSummary)) { + return false; + } + + DelegationControlSummary other = (DelegationControlSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.resourceType, other.resourceType) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.timeDeleted, other.timeDeleted) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleStateDetails, other.lifecycleStateDetails) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.resourceType == null ? 43 : this.resourceType.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.timeDeleted == null ? 43 : this.timeDeleted.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleStateDetails == null + ? 43 + : this.lifecycleStateDetails.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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationControlSummaryCollection.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationControlSummaryCollection.java new file mode 100644 index 00000000000..4b1c8994734 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationControlSummaryCollection.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.delegateaccesscontrol.model; + +/** + * Results of Delegation Control search, which contains summary of the Delegation Control.
+ * 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: 20230801") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DelegationControlSummaryCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DelegationControlSummaryCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public DelegationControlSummaryCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** contains DelegationControlSummary */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * contains DelegationControlSummary + * + * @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 DelegationControlSummaryCollection build() { + DelegationControlSummaryCollection model = + new DelegationControlSummaryCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DelegationControlSummaryCollection 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); + } + + /** contains DelegationControlSummary */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * contains DelegationControlSummary + * + * @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("DelegationControlSummaryCollection("); + 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 DelegationControlSummaryCollection)) { + return false; + } + + DelegationControlSummaryCollection other = (DelegationControlSummaryCollection) 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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationSubscription.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationSubscription.java new file mode 100644 index 00000000000..44bbfd48331 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationSubscription.java @@ -0,0 +1,732 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** + * Details of the Delegation Subscription.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DelegationSubscription.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DelegationSubscription + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "serviceProviderId", + "description", + "subscribedServiceType", + "lifecycleState", + "lifecycleStateDetails", + "timeCreated", + "timeUpdated", + "freeformTags", + "definedTags", + "systemTags" + }) + public DelegationSubscription( + String id, + String compartmentId, + String displayName, + String serviceProviderId, + String description, + ServiceProviderServiceType subscribedServiceType, + LifecycleState lifecycleState, + String lifecycleStateDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.serviceProviderId = serviceProviderId; + this.description = description; + this.subscribedServiceType = subscribedServiceType; + this.lifecycleState = lifecycleState; + this.lifecycleStateDetails = lifecycleStateDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Unique identifier for the Delegation Subscription. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Unique identifier for the Delegation Subscription. + * + * @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 compartment that contains the Delegation Subscription. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment that contains the Delegation Subscription. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Display name */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Display name + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Unique identifier of the Service Provider. */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceProviderId") + private String serviceProviderId; + + /** + * Unique identifier of the Service Provider. + * + * @param serviceProviderId the value to set + * @return this builder + */ + public Builder serviceProviderId(String serviceProviderId) { + this.serviceProviderId = serviceProviderId; + this.__explicitlySet__.add("serviceProviderId"); + return this; + } + /** Description of the Delegation Subscription. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Description of the Delegation Subscription. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** Subscribed Service Provider Service Type. */ + @com.fasterxml.jackson.annotation.JsonProperty("subscribedServiceType") + private ServiceProviderServiceType subscribedServiceType; + + /** + * Subscribed Service Provider Service Type. + * + * @param subscribedServiceType the value to set + * @return this builder + */ + public Builder subscribedServiceType(ServiceProviderServiceType subscribedServiceType) { + this.subscribedServiceType = subscribedServiceType; + this.__explicitlySet__.add("subscribedServiceType"); + return this; + } + /** The current lifecycle state of the Service Provider. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current lifecycle state of the Service Provider. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** Description of the current lifecycle state in more detail. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStateDetails") + private String lifecycleStateDetails; + + /** + * Description of the current lifecycle state in more detail. + * + * @param lifecycleStateDetails the value to set + * @return this builder + */ + public Builder lifecycleStateDetails(String lifecycleStateDetails) { + this.lifecycleStateDetails = lifecycleStateDetails; + this.__explicitlySet__.add("lifecycleStateDetails"); + return this; + } + /** + * Time when the Service Provider was created expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. + * '2020-05-22T21:10:29.600Z' + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * Time when the Service Provider was created expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. + * '2020-05-22T21: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; + } + /** + * Time when the Service Provider was last modified expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. + * '2020-05-22T21:10:29.600Z' + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * Time when the Service Provider was last modified expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. + * '2020-05-22T21:10:29.600Z' + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Department": "Finance"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.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; + } + /** + * 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; + + /** + * 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; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * + *

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

Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DelegationSubscription build() { + DelegationSubscription model = + new DelegationSubscription( + this.id, + this.compartmentId, + this.displayName, + this.serviceProviderId, + this.description, + this.subscribedServiceType, + this.lifecycleState, + this.lifecycleStateDetails, + this.timeCreated, + this.timeUpdated, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DelegationSubscription 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("serviceProviderId")) { + this.serviceProviderId(model.getServiceProviderId()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("subscribedServiceType")) { + this.subscribedServiceType(model.getSubscribedServiceType()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleStateDetails")) { + this.lifecycleStateDetails(model.getLifecycleStateDetails()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Unique identifier for the Delegation Subscription. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Unique identifier for the Delegation Subscription. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The OCID of the compartment that contains the Delegation Subscription. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment that contains the Delegation Subscription. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Display name */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Display name + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Unique identifier of the Service Provider. */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceProviderId") + private final String serviceProviderId; + + /** + * Unique identifier of the Service Provider. + * + * @return the value + */ + public String getServiceProviderId() { + return serviceProviderId; + } + + /** Description of the Delegation Subscription. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the Delegation Subscription. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** Subscribed Service Provider Service Type. */ + @com.fasterxml.jackson.annotation.JsonProperty("subscribedServiceType") + private final ServiceProviderServiceType subscribedServiceType; + + /** + * Subscribed Service Provider Service Type. + * + * @return the value + */ + public ServiceProviderServiceType getSubscribedServiceType() { + return subscribedServiceType; + } + + /** The current lifecycle state of the Service Provider. */ + 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 current lifecycle state of the Service Provider. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current lifecycle state of the Service Provider. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** Description of the current lifecycle state in more detail. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStateDetails") + private final String lifecycleStateDetails; + + /** + * Description of the current lifecycle state in more detail. + * + * @return the value + */ + public String getLifecycleStateDetails() { + return lifecycleStateDetails; + } + + /** + * Time when the Service Provider was created expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-22T21:10:29.600Z' + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * Time when the Service Provider was created expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-22T21:10:29.600Z' + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * Time when the Service Provider was last modified expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-22T21:10:29.600Z' + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * Time when the Service Provider was last modified expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-22T21:10:29.600Z' + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.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; + + /** + * 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; + } + + /** + * 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; + + /** + * 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; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * + *

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

Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DelegationSubscription("); + 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(", serviceProviderId=").append(String.valueOf(this.serviceProviderId)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", subscribedServiceType=").append(String.valueOf(this.subscribedServiceType)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleStateDetails=").append(String.valueOf(this.lifecycleStateDetails)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DelegationSubscription)) { + return false; + } + + DelegationSubscription other = (DelegationSubscription) 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.serviceProviderId, other.serviceProviderId) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.subscribedServiceType, other.subscribedServiceType) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleStateDetails, other.lifecycleStateDetails) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.serviceProviderId == null ? 43 : this.serviceProviderId.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.subscribedServiceType == null + ? 43 + : this.subscribedServiceType.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleStateDetails == null + ? 43 + : this.lifecycleStateDetails.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationSubscriptionSummary.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationSubscriptionSummary.java new file mode 100644 index 00000000000..bb7baa47c9b --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationSubscriptionSummary.java @@ -0,0 +1,644 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** + * Summary of the Delegation Subscription.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DelegationSubscriptionSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DelegationSubscriptionSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "serviceProviderId", + "subscribedServiceType", + "lifecycleState", + "lifecycleStateDetails", + "timeCreated", + "timeUpdated", + "freeformTags", + "definedTags", + "systemTags" + }) + public DelegationSubscriptionSummary( + String id, + String compartmentId, + String displayName, + String serviceProviderId, + ServiceProviderServiceType subscribedServiceType, + DelegationSubscription.LifecycleState lifecycleState, + String lifecycleStateDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.serviceProviderId = serviceProviderId; + this.subscribedServiceType = subscribedServiceType; + this.lifecycleState = lifecycleState; + this.lifecycleStateDetails = lifecycleStateDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Unique identifier for the Delegation Subscription. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Unique identifier for the Delegation Subscription. + * + * @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 compartment that contains the Delegation Subscription. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment that contains the Delegation Subscription. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Display name */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Display name + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Unique identifier of the Service Provider. */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceProviderId") + private String serviceProviderId; + + /** + * Unique identifier of the Service Provider. + * + * @param serviceProviderId the value to set + * @return this builder + */ + public Builder serviceProviderId(String serviceProviderId) { + this.serviceProviderId = serviceProviderId; + this.__explicitlySet__.add("serviceProviderId"); + return this; + } + /** Subscribed Service Provider Service Type. */ + @com.fasterxml.jackson.annotation.JsonProperty("subscribedServiceType") + private ServiceProviderServiceType subscribedServiceType; + + /** + * Subscribed Service Provider Service Type. + * + * @param subscribedServiceType the value to set + * @return this builder + */ + public Builder subscribedServiceType(ServiceProviderServiceType subscribedServiceType) { + this.subscribedServiceType = subscribedServiceType; + this.__explicitlySet__.add("subscribedServiceType"); + return this; + } + /** The current lifecycle state of the Service Provider. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private DelegationSubscription.LifecycleState lifecycleState; + + /** + * The current lifecycle state of the Service Provider. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(DelegationSubscription.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** Description of the current lifecycle state in more detail. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStateDetails") + private String lifecycleStateDetails; + + /** + * Description of the current lifecycle state in more detail. + * + * @param lifecycleStateDetails the value to set + * @return this builder + */ + public Builder lifecycleStateDetails(String lifecycleStateDetails) { + this.lifecycleStateDetails = lifecycleStateDetails; + this.__explicitlySet__.add("lifecycleStateDetails"); + return this; + } + /** + * Time when the Service Provider was created expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. + * '2020-05-22T21:10:29.600Z' + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * Time when the Service Provider was created expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. + * '2020-05-22T21: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; + } + /** + * Time when the Service Provider was last modified expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. + * '2020-05-22T21:10:29.600Z' + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * Time when the Service Provider was last modified expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. + * '2020-05-22T21:10:29.600Z' + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Department": "Finance"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.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; + } + /** + * 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; + + /** + * 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; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * + *

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

Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DelegationSubscriptionSummary build() { + DelegationSubscriptionSummary model = + new DelegationSubscriptionSummary( + this.id, + this.compartmentId, + this.displayName, + this.serviceProviderId, + this.subscribedServiceType, + this.lifecycleState, + this.lifecycleStateDetails, + this.timeCreated, + this.timeUpdated, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DelegationSubscriptionSummary 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("serviceProviderId")) { + this.serviceProviderId(model.getServiceProviderId()); + } + if (model.wasPropertyExplicitlySet("subscribedServiceType")) { + this.subscribedServiceType(model.getSubscribedServiceType()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleStateDetails")) { + this.lifecycleStateDetails(model.getLifecycleStateDetails()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Unique identifier for the Delegation Subscription. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Unique identifier for the Delegation Subscription. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The OCID of the compartment that contains the Delegation Subscription. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment that contains the Delegation Subscription. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Display name */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Display name + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Unique identifier of the Service Provider. */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceProviderId") + private final String serviceProviderId; + + /** + * Unique identifier of the Service Provider. + * + * @return the value + */ + public String getServiceProviderId() { + return serviceProviderId; + } + + /** Subscribed Service Provider Service Type. */ + @com.fasterxml.jackson.annotation.JsonProperty("subscribedServiceType") + private final ServiceProviderServiceType subscribedServiceType; + + /** + * Subscribed Service Provider Service Type. + * + * @return the value + */ + public ServiceProviderServiceType getSubscribedServiceType() { + return subscribedServiceType; + } + + /** The current lifecycle state of the Service Provider. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final DelegationSubscription.LifecycleState lifecycleState; + + /** + * The current lifecycle state of the Service Provider. + * + * @return the value + */ + public DelegationSubscription.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** Description of the current lifecycle state in more detail. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStateDetails") + private final String lifecycleStateDetails; + + /** + * Description of the current lifecycle state in more detail. + * + * @return the value + */ + public String getLifecycleStateDetails() { + return lifecycleStateDetails; + } + + /** + * Time when the Service Provider was created expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-22T21:10:29.600Z' + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * Time when the Service Provider was created expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-22T21:10:29.600Z' + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * Time when the Service Provider was last modified expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-22T21:10:29.600Z' + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * Time when the Service Provider was last modified expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-22T21:10:29.600Z' + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.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; + + /** + * 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; + } + + /** + * 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; + + /** + * 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; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * + *

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

Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DelegationSubscriptionSummary("); + 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(", serviceProviderId=").append(String.valueOf(this.serviceProviderId)); + sb.append(", subscribedServiceType=").append(String.valueOf(this.subscribedServiceType)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleStateDetails=").append(String.valueOf(this.lifecycleStateDetails)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DelegationSubscriptionSummary)) { + return false; + } + + DelegationSubscriptionSummary other = (DelegationSubscriptionSummary) 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.serviceProviderId, other.serviceProviderId) + && java.util.Objects.equals(this.subscribedServiceType, other.subscribedServiceType) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleStateDetails, other.lifecycleStateDetails) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.serviceProviderId == null ? 43 : this.serviceProviderId.hashCode()); + result = + (result * PRIME) + + (this.subscribedServiceType == null + ? 43 + : this.subscribedServiceType.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleStateDetails == null + ? 43 + : this.lifecycleStateDetails.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationSubscriptionSummaryCollection.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationSubscriptionSummaryCollection.java new file mode 100644 index 00000000000..b82bdf282bb --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/DelegationSubscriptionSummaryCollection.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.delegateaccesscontrol.model; + +/** + * List of DelegationSubscriptionSummary objects.
+ * 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: 20230801") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DelegationSubscriptionSummaryCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DelegationSubscriptionSummaryCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public DelegationSubscriptionSummaryCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of DelegationSubscriptionSummary objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of DelegationSubscriptionSummary objects. + * + * @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 DelegationSubscriptionSummaryCollection build() { + DelegationSubscriptionSummaryCollection model = + new DelegationSubscriptionSummaryCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DelegationSubscriptionSummaryCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of DelegationSubscriptionSummary objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of DelegationSubscriptionSummary objects. + * + * @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("DelegationSubscriptionSummaryCollection("); + 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 DelegationSubscriptionSummaryCollection)) { + return false; + } + + DelegationSubscriptionSummaryCollection other = (DelegationSubscriptionSummaryCollection) 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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/OperationStatus.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/OperationStatus.java new file mode 100644 index 00000000000..f2eea8c87a5 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/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.delegateaccesscontrol.model; + +/** Possible operation status. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/OperationType.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/OperationType.java new file mode 100644 index 00000000000..b9520886390 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/OperationType.java @@ -0,0 +1,63 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** Possible operation types. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { + CreateDelegationControl("CREATE_DELEGATION_CONTROL"), + UpdateDelegationControl("UPDATE_DELEGATION_CONTROL"), + DeleteDelegationControl("DELETE_DELEGATION_CONTROL"), + MoveDelegationControl("MOVE_DELEGATION_CONTROL"), + CreateDelegatedResourceAccessRequest("CREATE_DELEGATED_RESOURCE_ACCESS_REQUEST"), + ApproveDelegatedResourceAccessRequest("APPROVE_DELEGATED_RESOURCE_ACCESS_REQUEST"), + RejectDelegatedResourceAccessRequest("REJECT_DELEGATED_RESOURCE_ACCESS_REQUEST"), + RevokeDelegatedResourceAccessRequest("REVOKE_DELEGATED_RESOURCE_ACCESS_REQUEST"), + CreateDelegationSubscription("CREATE_DELEGATION_SUBSCRIPTION"), + UpdateDelegationSubscription("UPDATE_DELEGATION_SUBSCRIPTION"), + DeleteDelegationSubscription("DELETE_DELEGATION_SUBSCRIPTION"), + MoveDelegationSubscription("MOVE_DELEGATION_SUBSCRIPTION"), + + /** + * 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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/RejectDelegatedResourceAccessRequestDetails.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/RejectDelegatedResourceAccessRequestDetails.java new file mode 100644 index 00000000000..a37fed3a8f7 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/RejectDelegatedResourceAccessRequestDetails.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** + * Summary of why the Delegated Resource Access Request was rejected.
+ * 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: 20230801") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RejectDelegatedResourceAccessRequestDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RejectDelegatedResourceAccessRequestDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"approverComment"}) + public RejectDelegatedResourceAccessRequestDetails(String approverComment) { + super(); + this.approverComment = approverComment; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Comment by the approver explaining why the request is rejected. */ + @com.fasterxml.jackson.annotation.JsonProperty("approverComment") + private String approverComment; + + /** + * Comment by the approver explaining why the request is rejected. + * + * @param approverComment the value to set + * @return this builder + */ + public Builder approverComment(String approverComment) { + this.approverComment = approverComment; + this.__explicitlySet__.add("approverComment"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RejectDelegatedResourceAccessRequestDetails build() { + RejectDelegatedResourceAccessRequestDetails model = + new RejectDelegatedResourceAccessRequestDetails(this.approverComment); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RejectDelegatedResourceAccessRequestDetails model) { + if (model.wasPropertyExplicitlySet("approverComment")) { + this.approverComment(model.getApproverComment()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Comment by the approver explaining why the request is rejected. */ + @com.fasterxml.jackson.annotation.JsonProperty("approverComment") + private final String approverComment; + + /** + * Comment by the approver explaining why the request is rejected. + * + * @return the value + */ + public String getApproverComment() { + return approverComment; + } + + @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("RejectDelegatedResourceAccessRequestDetails("); + sb.append("super=").append(super.toString()); + sb.append("approverComment=").append(String.valueOf(this.approverComment)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RejectDelegatedResourceAccessRequestDetails)) { + return false; + } + + RejectDelegatedResourceAccessRequestDetails other = + (RejectDelegatedResourceAccessRequestDetails) o; + return java.util.Objects.equals(this.approverComment, other.approverComment) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.approverComment == null ? 43 : this.approverComment.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/RevokeDelegatedResourceAccessRequestDetails.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/RevokeDelegatedResourceAccessRequestDetails.java new file mode 100644 index 00000000000..702244e7607 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/RevokeDelegatedResourceAccessRequestDetails.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** + * Summary of why the already approved Delegated Resource Access Request was revoked.
+ * 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: 20230801") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RevokeDelegatedResourceAccessRequestDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RevokeDelegatedResourceAccessRequestDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"approverComment"}) + public RevokeDelegatedResourceAccessRequestDetails(String approverComment) { + super(); + this.approverComment = approverComment; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Comment specified by the approver explaining why the approval is revoked. */ + @com.fasterxml.jackson.annotation.JsonProperty("approverComment") + private String approverComment; + + /** + * Comment specified by the approver explaining why the approval is revoked. + * + * @param approverComment the value to set + * @return this builder + */ + public Builder approverComment(String approverComment) { + this.approverComment = approverComment; + this.__explicitlySet__.add("approverComment"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RevokeDelegatedResourceAccessRequestDetails build() { + RevokeDelegatedResourceAccessRequestDetails model = + new RevokeDelegatedResourceAccessRequestDetails(this.approverComment); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RevokeDelegatedResourceAccessRequestDetails model) { + if (model.wasPropertyExplicitlySet("approverComment")) { + this.approverComment(model.getApproverComment()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Comment specified by the approver explaining why the approval is revoked. */ + @com.fasterxml.jackson.annotation.JsonProperty("approverComment") + private final String approverComment; + + /** + * Comment specified by the approver explaining why the approval is revoked. + * + * @return the value + */ + public String getApproverComment() { + return approverComment; + } + + @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("RevokeDelegatedResourceAccessRequestDetails("); + sb.append("super=").append(super.toString()); + sb.append("approverComment=").append(String.valueOf(this.approverComment)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RevokeDelegatedResourceAccessRequestDetails)) { + return false; + } + + RevokeDelegatedResourceAccessRequestDetails other = + (RevokeDelegatedResourceAccessRequestDetails) o; + return java.util.Objects.equals(this.approverComment, other.approverComment) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.approverComment == null ? 43 : this.approverComment.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProvider.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProvider.java new file mode 100644 index 00000000000..cdc5b099929 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProvider.java @@ -0,0 +1,825 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** + * Details of the Service Provider. Service provider offers services to the customer to support the + * delegated resources.
+ * 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: 20230801") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ServiceProvider.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ServiceProvider + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "name", + "description", + "serviceProviderType", + "serviceTypes", + "supportedResourceTypes", + "lifecycleState", + "lifecycleStateDetails", + "timeCreated", + "timeUpdated", + "freeformTags", + "definedTags", + "systemTags" + }) + public ServiceProvider( + String id, + String compartmentId, + String name, + String description, + ServiceProviderType serviceProviderType, + java.util.List serviceTypes, + java.util.List supportedResourceTypes, + LifecycleState lifecycleState, + String lifecycleStateDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.name = name; + this.description = description; + this.serviceProviderType = serviceProviderType; + this.serviceTypes = serviceTypes; + this.supportedResourceTypes = supportedResourceTypes; + this.lifecycleState = lifecycleState; + this.lifecycleStateDetails = lifecycleStateDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Unique identifier for the Service Provider. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Unique identifier for the Service Provider. + * + * @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 compartment that contains the Delegation Control. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment that contains the Delegation Control. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Unique name of the Service Provider. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * Unique name of the Service Provider. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** Description of the Service Provider. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Description of the Service Provider. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** Service Provider type. */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceProviderType") + private ServiceProviderType serviceProviderType; + + /** + * Service Provider type. + * + * @param serviceProviderType the value to set + * @return this builder + */ + public Builder serviceProviderType(ServiceProviderType serviceProviderType) { + this.serviceProviderType = serviceProviderType; + this.__explicitlySet__.add("serviceProviderType"); + return this; + } + /** Types of services offered by this provider. */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceTypes") + private java.util.List serviceTypes; + + /** + * Types of services offered by this provider. + * + * @param serviceTypes the value to set + * @return this builder + */ + public Builder serviceTypes(java.util.List serviceTypes) { + this.serviceTypes = serviceTypes; + this.__explicitlySet__.add("serviceTypes"); + return this; + } + /** + * Resource types for which this provider will provide service. Default to all if not + * specified. + */ + @com.fasterxml.jackson.annotation.JsonProperty("supportedResourceTypes") + private java.util.List supportedResourceTypes; + + /** + * Resource types for which this provider will provide service. Default to all if not + * specified. + * + * @param supportedResourceTypes the value to set + * @return this builder + */ + public Builder supportedResourceTypes( + java.util.List supportedResourceTypes) { + this.supportedResourceTypes = supportedResourceTypes; + this.__explicitlySet__.add("supportedResourceTypes"); + return this; + } + /** The current lifecycle state of the Service Provider. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current lifecycle state of the Service Provider. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** Description of the current lifecycle state in more detail. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStateDetails") + private String lifecycleStateDetails; + + /** + * Description of the current lifecycle state in more detail. + * + * @param lifecycleStateDetails the value to set + * @return this builder + */ + public Builder lifecycleStateDetails(String lifecycleStateDetails) { + this.lifecycleStateDetails = lifecycleStateDetails; + this.__explicitlySet__.add("lifecycleStateDetails"); + return this; + } + /** + * Time when the Service Provider was created expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. + * '2020-05-22T21:10:29.600Z' + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * Time when the Service Provider was created expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. + * '2020-05-22T21: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; + } + /** + * Time when the Service Provider was last modified expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. + * '2020-05-22T21:10:29.600Z' + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * Time when the Service Provider was last modified expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. + * '2020-05-22T21:10:29.600Z' + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Department": "Finance"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.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; + } + /** + * 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; + + /** + * 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; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * + *

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

Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ServiceProvider build() { + ServiceProvider model = + new ServiceProvider( + this.id, + this.compartmentId, + this.name, + this.description, + this.serviceProviderType, + this.serviceTypes, + this.supportedResourceTypes, + this.lifecycleState, + this.lifecycleStateDetails, + this.timeCreated, + this.timeUpdated, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ServiceProvider model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("serviceProviderType")) { + this.serviceProviderType(model.getServiceProviderType()); + } + if (model.wasPropertyExplicitlySet("serviceTypes")) { + this.serviceTypes(model.getServiceTypes()); + } + if (model.wasPropertyExplicitlySet("supportedResourceTypes")) { + this.supportedResourceTypes(model.getSupportedResourceTypes()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleStateDetails")) { + this.lifecycleStateDetails(model.getLifecycleStateDetails()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Unique identifier for the Service Provider. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Unique identifier for the Service Provider. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The OCID of the compartment that contains the Delegation Control. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment that contains the Delegation Control. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Unique name of the Service Provider. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * Unique name of the Service Provider. + * + * @return the value + */ + public String getName() { + return name; + } + + /** Description of the Service Provider. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the Service Provider. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** Service Provider type. */ + public enum ServiceProviderType implements com.oracle.bmc.http.internal.BmcEnum { + OracleProvided("ORACLE_PROVIDED"), + + /** + * 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(ServiceProviderType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ServiceProviderType v : ServiceProviderType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ServiceProviderType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ServiceProviderType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ServiceProviderType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Service Provider type. */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceProviderType") + private final ServiceProviderType serviceProviderType; + + /** + * Service Provider type. + * + * @return the value + */ + public ServiceProviderType getServiceProviderType() { + return serviceProviderType; + } + + /** Types of services offered by this provider. */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceTypes") + private final java.util.List serviceTypes; + + /** + * Types of services offered by this provider. + * + * @return the value + */ + public java.util.List getServiceTypes() { + return serviceTypes; + } + + /** + * Resource types for which this provider will provide service. Default to all if not specified. + */ + @com.fasterxml.jackson.annotation.JsonProperty("supportedResourceTypes") + private final java.util.List supportedResourceTypes; + + /** + * Resource types for which this provider will provide service. Default to all if not specified. + * + * @return the value + */ + public java.util.List getSupportedResourceTypes() { + return supportedResourceTypes; + } + + /** The current lifecycle state of the Service Provider. */ + 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 current lifecycle state of the Service Provider. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current lifecycle state of the Service Provider. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** Description of the current lifecycle state in more detail. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStateDetails") + private final String lifecycleStateDetails; + + /** + * Description of the current lifecycle state in more detail. + * + * @return the value + */ + public String getLifecycleStateDetails() { + return lifecycleStateDetails; + } + + /** + * Time when the Service Provider was created expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-22T21:10:29.600Z' + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * Time when the Service Provider was created expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-22T21:10:29.600Z' + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * Time when the Service Provider was last modified expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-22T21:10:29.600Z' + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * Time when the Service Provider was last modified expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-22T21:10:29.600Z' + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.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; + + /** + * 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; + } + + /** + * 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; + + /** + * 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; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * + *

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

Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ServiceProvider("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", serviceProviderType=").append(String.valueOf(this.serviceProviderType)); + sb.append(", serviceTypes=").append(String.valueOf(this.serviceTypes)); + sb.append(", supportedResourceTypes=").append(String.valueOf(this.supportedResourceTypes)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleStateDetails=").append(String.valueOf(this.lifecycleStateDetails)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ServiceProvider)) { + return false; + } + + ServiceProvider other = (ServiceProvider) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.serviceProviderType, other.serviceProviderType) + && java.util.Objects.equals(this.serviceTypes, other.serviceTypes) + && java.util.Objects.equals( + this.supportedResourceTypes, other.supportedResourceTypes) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleStateDetails, other.lifecycleStateDetails) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.serviceProviderType == null + ? 43 + : this.serviceProviderType.hashCode()); + result = (result * PRIME) + (this.serviceTypes == null ? 43 : this.serviceTypes.hashCode()); + result = + (result * PRIME) + + (this.supportedResourceTypes == null + ? 43 + : this.supportedResourceTypes.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleStateDetails == null + ? 43 + : this.lifecycleStateDetails.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderAction.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderAction.java new file mode 100644 index 00000000000..a5fac3c6b18 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderAction.java @@ -0,0 +1,523 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** + * Details of the Service Provider Action. Service provider actions are a pre-defined set of + * commands available to the support operator on different layers of the infrastructure. Although + * the groupings may differ depending on the infrastructure layers, the groups are designed to + * enable the support operator access to commands to resolve a specific set of issues.
+ * 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: 20230801") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ServiceProviderAction.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ServiceProviderAction + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "name", + "customerDisplayName", + "component", + "resourceType", + "serviceProviderServiceTypes", + "lifecycleState", + "description", + "properties" + }) + public ServiceProviderAction( + String id, + String name, + String customerDisplayName, + String component, + DelegationControlResourceType resourceType, + java.util.List serviceProviderServiceTypes, + LifecycleState lifecycleState, + String description, + java.util.List properties) { + super(); + this.id = id; + this.name = name; + this.customerDisplayName = customerDisplayName; + this.component = component; + this.resourceType = resourceType; + this.serviceProviderServiceTypes = serviceProviderServiceTypes; + this.lifecycleState = lifecycleState; + this.description = description; + this.properties = properties; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Unique Oracle assigned identifier for the Service Provider Action. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Unique Oracle assigned identifier for the Service Provider Action. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Unique name of the Service Provider Action. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * Unique name of the Service Provider Action. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** Display Name of the Service Provider Action. */ + @com.fasterxml.jackson.annotation.JsonProperty("customerDisplayName") + private String customerDisplayName; + + /** + * Display Name of the Service Provider Action. + * + * @param customerDisplayName the value to set + * @return this builder + */ + public Builder customerDisplayName(String customerDisplayName) { + this.customerDisplayName = customerDisplayName; + this.__explicitlySet__.add("customerDisplayName"); + return this; + } + /** Name of the infrastructure layer associated with the Service Provider Action. */ + @com.fasterxml.jackson.annotation.JsonProperty("component") + private String component; + + /** + * Name of the infrastructure layer associated with the Service Provider Action. + * + * @param component the value to set + * @return this builder + */ + public Builder component(String component) { + this.component = component; + this.__explicitlySet__.add("component"); + return this; + } + /** resourceType for which the ServiceProviderAction is applicable */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceType") + private DelegationControlResourceType resourceType; + + /** + * resourceType for which the ServiceProviderAction is applicable + * + * @param resourceType the value to set + * @return this builder + */ + public Builder resourceType(DelegationControlResourceType resourceType) { + this.resourceType = resourceType; + this.__explicitlySet__.add("resourceType"); + return this; + } + /** + * List of Service Provider Service Types that this Service Provider Action is applicable + * to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceProviderServiceTypes") + private java.util.List serviceProviderServiceTypes; + + /** + * List of Service Provider Service Types that this Service Provider Action is applicable + * to. + * + * @param serviceProviderServiceTypes the value to set + * @return this builder + */ + public Builder serviceProviderServiceTypes( + java.util.List serviceProviderServiceTypes) { + this.serviceProviderServiceTypes = serviceProviderServiceTypes; + this.__explicitlySet__.add("serviceProviderServiceTypes"); + return this; + } + /** The current lifecycle state of the Service Provider Action. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current lifecycle state of the Service Provider Action. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Description of the Service Provider Action in terms of associated risk profile, and + * characteristics of the operating system commands made available to the support operator + * under this Service Provider Action. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Description of the Service Provider Action in terms of associated risk profile, and + * characteristics of the operating system commands made available to the support operator + * under this Service Provider Action. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** Fine grained properties associated with the Delegation Control. */ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private java.util.List properties; + + /** + * Fine grained properties associated with the Delegation Control. + * + * @param properties the value to set + * @return this builder + */ + public Builder properties(java.util.List properties) { + this.properties = properties; + this.__explicitlySet__.add("properties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ServiceProviderAction build() { + ServiceProviderAction model = + new ServiceProviderAction( + this.id, + this.name, + this.customerDisplayName, + this.component, + this.resourceType, + this.serviceProviderServiceTypes, + this.lifecycleState, + this.description, + this.properties); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ServiceProviderAction model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("customerDisplayName")) { + this.customerDisplayName(model.getCustomerDisplayName()); + } + if (model.wasPropertyExplicitlySet("component")) { + this.component(model.getComponent()); + } + if (model.wasPropertyExplicitlySet("resourceType")) { + this.resourceType(model.getResourceType()); + } + if (model.wasPropertyExplicitlySet("serviceProviderServiceTypes")) { + this.serviceProviderServiceTypes(model.getServiceProviderServiceTypes()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("properties")) { + this.properties(model.getProperties()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Unique Oracle assigned identifier for the Service Provider Action. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Unique Oracle assigned identifier for the Service Provider Action. + * + * @return the value + */ + public String getId() { + return id; + } + + /** Unique name of the Service Provider Action. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * Unique name of the Service Provider Action. + * + * @return the value + */ + public String getName() { + return name; + } + + /** Display Name of the Service Provider Action. */ + @com.fasterxml.jackson.annotation.JsonProperty("customerDisplayName") + private final String customerDisplayName; + + /** + * Display Name of the Service Provider Action. + * + * @return the value + */ + public String getCustomerDisplayName() { + return customerDisplayName; + } + + /** Name of the infrastructure layer associated with the Service Provider Action. */ + @com.fasterxml.jackson.annotation.JsonProperty("component") + private final String component; + + /** + * Name of the infrastructure layer associated with the Service Provider Action. + * + * @return the value + */ + public String getComponent() { + return component; + } + + /** resourceType for which the ServiceProviderAction is applicable */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceType") + private final DelegationControlResourceType resourceType; + + /** + * resourceType for which the ServiceProviderAction is applicable + * + * @return the value + */ + public DelegationControlResourceType getResourceType() { + return resourceType; + } + + /** + * List of Service Provider Service Types that this Service Provider Action is applicable to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceProviderServiceTypes") + private final java.util.List serviceProviderServiceTypes; + + /** + * List of Service Provider Service Types that this Service Provider Action is applicable to. + * + * @return the value + */ + public java.util.List getServiceProviderServiceTypes() { + return serviceProviderServiceTypes; + } + + /** The current lifecycle state of the Service Provider Action. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Active("ACTIVE"), + Inactive("INACTIVE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The current lifecycle state of the Service Provider Action. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current lifecycle state of the Service Provider Action. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Description of the Service Provider Action in terms of associated risk profile, and + * characteristics of the operating system commands made available to the support operator under + * this Service Provider Action. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the Service Provider Action in terms of associated risk profile, and + * characteristics of the operating system commands made available to the support operator under + * this Service Provider Action. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** Fine grained properties associated with the Delegation Control. */ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private final java.util.List properties; + + /** + * Fine grained properties associated with the Delegation Control. + * + * @return the value + */ + public java.util.List getProperties() { + return properties; + } + + @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("ServiceProviderAction("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", customerDisplayName=").append(String.valueOf(this.customerDisplayName)); + sb.append(", component=").append(String.valueOf(this.component)); + sb.append(", resourceType=").append(String.valueOf(this.resourceType)); + sb.append(", serviceProviderServiceTypes=") + .append(String.valueOf(this.serviceProviderServiceTypes)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", properties=").append(String.valueOf(this.properties)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ServiceProviderAction)) { + return false; + } + + ServiceProviderAction other = (ServiceProviderAction) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.customerDisplayName, other.customerDisplayName) + && java.util.Objects.equals(this.component, other.component) + && java.util.Objects.equals(this.resourceType, other.resourceType) + && java.util.Objects.equals( + this.serviceProviderServiceTypes, other.serviceProviderServiceTypes) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.properties, other.properties) + && 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.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.customerDisplayName == null + ? 43 + : this.customerDisplayName.hashCode()); + result = (result * PRIME) + (this.component == null ? 43 : this.component.hashCode()); + result = (result * PRIME) + (this.resourceType == null ? 43 : this.resourceType.hashCode()); + result = + (result * PRIME) + + (this.serviceProviderServiceTypes == null + ? 43 + : this.serviceProviderServiceTypes.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.properties == null ? 43 : this.properties.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderActionProperties.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderActionProperties.java new file mode 100644 index 00000000000..d13277e8508 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderActionProperties.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.delegateaccesscontrol.model; + +/** + * Details of the properties of Service Provider Action.
+ * 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: 20230801") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ServiceProviderActionProperties.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ServiceProviderActionProperties + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "value"}) + public ServiceProviderActionProperties(String name, String value) { + super(); + this.name = name; + this.value = value; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Name of the property */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * Name of the property + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** value of the property */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private String value; + + /** + * value of the property + * + * @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 ServiceProviderActionProperties build() { + ServiceProviderActionProperties model = + new ServiceProviderActionProperties(this.name, this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ServiceProviderActionProperties model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("value")) { + this.value(model.getValue()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Name of the property */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * Name of the property + * + * @return the value + */ + public String getName() { + return name; + } + + /** value of the property */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final String value; + + /** + * value of the property + * + * @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("ServiceProviderActionProperties("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", value=").append(String.valueOf(this.value)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ServiceProviderActionProperties)) { + return false; + } + + ServiceProviderActionProperties other = (ServiceProviderActionProperties) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.value, other.value) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderActionSummary.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderActionSummary.java new file mode 100644 index 00000000000..22420fbe6f5 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderActionSummary.java @@ -0,0 +1,437 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** + * Details of the Service Provider Action. Service provider actions are pre-defined set of commands + * available to the support operator on different layers of the infrastructure.
+ * 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: 20230801") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ServiceProviderActionSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ServiceProviderActionSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "name", + "customerDisplayName", + "component", + "resourceType", + "serviceProviderServiceTypes", + "lifecycleState", + "description" + }) + public ServiceProviderActionSummary( + String id, + String name, + String customerDisplayName, + String component, + DelegationControlResourceType resourceType, + java.util.List serviceProviderServiceTypes, + ServiceProviderAction.LifecycleState lifecycleState, + String description) { + super(); + this.id = id; + this.name = name; + this.customerDisplayName = customerDisplayName; + this.component = component; + this.resourceType = resourceType; + this.serviceProviderServiceTypes = serviceProviderServiceTypes; + this.lifecycleState = lifecycleState; + this.description = description; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Unique identifier assigned by Oracle to a Service Provider Action. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Unique identifier assigned by Oracle to a Service Provider Action. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Name of the Service Provider Action. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * Name of the Service Provider Action. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** Display Name of the Service Provider Action. */ + @com.fasterxml.jackson.annotation.JsonProperty("customerDisplayName") + private String customerDisplayName; + + /** + * Display Name of the Service Provider Action. + * + * @param customerDisplayName the value to set + * @return this builder + */ + public Builder customerDisplayName(String customerDisplayName) { + this.customerDisplayName = customerDisplayName; + this.__explicitlySet__.add("customerDisplayName"); + return this; + } + /** Name of the component for which the Service Provider Action is applicable. */ + @com.fasterxml.jackson.annotation.JsonProperty("component") + private String component; + + /** + * Name of the component for which the Service Provider Action is applicable. + * + * @param component the value to set + * @return this builder + */ + public Builder component(String component) { + this.component = component; + this.__explicitlySet__.add("component"); + return this; + } + /** resourceType for which the ServiceProviderAction is applicable */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceType") + private DelegationControlResourceType resourceType; + + /** + * resourceType for which the ServiceProviderAction is applicable + * + * @param resourceType the value to set + * @return this builder + */ + public Builder resourceType(DelegationControlResourceType resourceType) { + this.resourceType = resourceType; + this.__explicitlySet__.add("resourceType"); + return this; + } + /** + * List of Service Provider Service Types that this Service Provider Action is applicable + * to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceProviderServiceTypes") + private java.util.List serviceProviderServiceTypes; + + /** + * List of Service Provider Service Types that this Service Provider Action is applicable + * to. + * + * @param serviceProviderServiceTypes the value to set + * @return this builder + */ + public Builder serviceProviderServiceTypes( + java.util.List serviceProviderServiceTypes) { + this.serviceProviderServiceTypes = serviceProviderServiceTypes; + this.__explicitlySet__.add("serviceProviderServiceTypes"); + return this; + } + /** The current lifecycle state of the Service Provider Action. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private ServiceProviderAction.LifecycleState lifecycleState; + + /** + * The current lifecycle state of the Service Provider Action. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(ServiceProviderAction.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Description of the Service Provider Action in terms of associated risk profile, and + * characteristics of the operating system commands made available to the support operator + * under this Service Provider Action. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Description of the Service Provider Action in terms of associated risk profile, and + * characteristics of the operating system commands made available to the support operator + * under this Service Provider Action. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ServiceProviderActionSummary build() { + ServiceProviderActionSummary model = + new ServiceProviderActionSummary( + this.id, + this.name, + this.customerDisplayName, + this.component, + this.resourceType, + this.serviceProviderServiceTypes, + this.lifecycleState, + this.description); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ServiceProviderActionSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("customerDisplayName")) { + this.customerDisplayName(model.getCustomerDisplayName()); + } + if (model.wasPropertyExplicitlySet("component")) { + this.component(model.getComponent()); + } + if (model.wasPropertyExplicitlySet("resourceType")) { + this.resourceType(model.getResourceType()); + } + if (model.wasPropertyExplicitlySet("serviceProviderServiceTypes")) { + this.serviceProviderServiceTypes(model.getServiceProviderServiceTypes()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Unique identifier assigned by Oracle to a Service Provider Action. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Unique identifier assigned by Oracle to a Service Provider Action. + * + * @return the value + */ + public String getId() { + return id; + } + + /** Name of the Service Provider Action. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * Name of the Service Provider Action. + * + * @return the value + */ + public String getName() { + return name; + } + + /** Display Name of the Service Provider Action. */ + @com.fasterxml.jackson.annotation.JsonProperty("customerDisplayName") + private final String customerDisplayName; + + /** + * Display Name of the Service Provider Action. + * + * @return the value + */ + public String getCustomerDisplayName() { + return customerDisplayName; + } + + /** Name of the component for which the Service Provider Action is applicable. */ + @com.fasterxml.jackson.annotation.JsonProperty("component") + private final String component; + + /** + * Name of the component for which the Service Provider Action is applicable. + * + * @return the value + */ + public String getComponent() { + return component; + } + + /** resourceType for which the ServiceProviderAction is applicable */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceType") + private final DelegationControlResourceType resourceType; + + /** + * resourceType for which the ServiceProviderAction is applicable + * + * @return the value + */ + public DelegationControlResourceType getResourceType() { + return resourceType; + } + + /** + * List of Service Provider Service Types that this Service Provider Action is applicable to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceProviderServiceTypes") + private final java.util.List serviceProviderServiceTypes; + + /** + * List of Service Provider Service Types that this Service Provider Action is applicable to. + * + * @return the value + */ + public java.util.List getServiceProviderServiceTypes() { + return serviceProviderServiceTypes; + } + + /** The current lifecycle state of the Service Provider Action. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final ServiceProviderAction.LifecycleState lifecycleState; + + /** + * The current lifecycle state of the Service Provider Action. + * + * @return the value + */ + public ServiceProviderAction.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Description of the Service Provider Action in terms of associated risk profile, and + * characteristics of the operating system commands made available to the support operator under + * this Service Provider Action. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the Service Provider Action in terms of associated risk profile, and + * characteristics of the operating system commands made available to the support operator under + * this Service Provider Action. + * + * @return the value + */ + public String getDescription() { + return description; + } + + @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("ServiceProviderActionSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", customerDisplayName=").append(String.valueOf(this.customerDisplayName)); + sb.append(", component=").append(String.valueOf(this.component)); + sb.append(", resourceType=").append(String.valueOf(this.resourceType)); + sb.append(", serviceProviderServiceTypes=") + .append(String.valueOf(this.serviceProviderServiceTypes)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ServiceProviderActionSummary)) { + return false; + } + + ServiceProviderActionSummary other = (ServiceProviderActionSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.customerDisplayName, other.customerDisplayName) + && java.util.Objects.equals(this.component, other.component) + && java.util.Objects.equals(this.resourceType, other.resourceType) + && java.util.Objects.equals( + this.serviceProviderServiceTypes, other.serviceProviderServiceTypes) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.description, other.description) + && 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.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.customerDisplayName == null + ? 43 + : this.customerDisplayName.hashCode()); + result = (result * PRIME) + (this.component == null ? 43 : this.component.hashCode()); + result = (result * PRIME) + (this.resourceType == null ? 43 : this.resourceType.hashCode()); + result = + (result * PRIME) + + (this.serviceProviderServiceTypes == null + ? 43 + : this.serviceProviderServiceTypes.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderActionSummaryCollection.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderActionSummaryCollection.java new file mode 100644 index 00000000000..9fff7bef9df --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderActionSummaryCollection.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.delegateaccesscontrol.model; + +/** + * List of ServiceProviderActionSummary resources.
+ * 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: 20230801") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ServiceProviderActionSummaryCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ServiceProviderActionSummaryCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public ServiceProviderActionSummaryCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** contains ServiceProviderActionSummary */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * contains ServiceProviderActionSummary + * + * @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 ServiceProviderActionSummaryCollection build() { + ServiceProviderActionSummaryCollection model = + new ServiceProviderActionSummaryCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ServiceProviderActionSummaryCollection 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); + } + + /** contains ServiceProviderActionSummary */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * contains ServiceProviderActionSummary + * + * @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("ServiceProviderActionSummaryCollection("); + 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 ServiceProviderActionSummaryCollection)) { + return false; + } + + ServiceProviderActionSummaryCollection other = (ServiceProviderActionSummaryCollection) 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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderInteractionCollection.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderInteractionCollection.java new file mode 100644 index 00000000000..b549eb74eb5 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderInteractionCollection.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.delegateaccesscontrol.model; + +/** + * Results of access request additionalInfo search, which contains details of the conversation + * between customer and operator.
+ * 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: 20230801") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ServiceProviderInteractionCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ServiceProviderInteractionCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public ServiceProviderInteractionCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** contains ServiceProviderInteractionSummary */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * contains ServiceProviderInteractionSummary + * + * @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 ServiceProviderInteractionCollection build() { + ServiceProviderInteractionCollection model = + new ServiceProviderInteractionCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ServiceProviderInteractionCollection 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); + } + + /** contains ServiceProviderInteractionSummary */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * contains ServiceProviderInteractionSummary + * + * @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("ServiceProviderInteractionCollection("); + 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 ServiceProviderInteractionCollection)) { + return false; + } + + ServiceProviderInteractionCollection other = (ServiceProviderInteractionCollection) 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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderInteractionRequestDetails.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderInteractionRequestDetails.java new file mode 100644 index 00000000000..8182ba2f43a --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderInteractionRequestDetails.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** + * Details for asking operator to provide more information.
+ * 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: 20230801") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ServiceProviderInteractionRequestDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ServiceProviderInteractionRequestDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"moreInfoDetails"}) + public ServiceProviderInteractionRequestDetails(String moreInfoDetails) { + super(); + this.moreInfoDetails = moreInfoDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Questions for operator to provide more information. */ + @com.fasterxml.jackson.annotation.JsonProperty("moreInfoDetails") + private String moreInfoDetails; + + /** + * Questions for operator to provide more information. + * + * @param moreInfoDetails the value to set + * @return this builder + */ + public Builder moreInfoDetails(String moreInfoDetails) { + this.moreInfoDetails = moreInfoDetails; + this.__explicitlySet__.add("moreInfoDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ServiceProviderInteractionRequestDetails build() { + ServiceProviderInteractionRequestDetails model = + new ServiceProviderInteractionRequestDetails(this.moreInfoDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ServiceProviderInteractionRequestDetails model) { + if (model.wasPropertyExplicitlySet("moreInfoDetails")) { + this.moreInfoDetails(model.getMoreInfoDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Questions for operator to provide more information. */ + @com.fasterxml.jackson.annotation.JsonProperty("moreInfoDetails") + private final String moreInfoDetails; + + /** + * Questions for operator to provide more information. + * + * @return the value + */ + public String getMoreInfoDetails() { + return moreInfoDetails; + } + + @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("ServiceProviderInteractionRequestDetails("); + sb.append("super=").append(super.toString()); + sb.append("moreInfoDetails=").append(String.valueOf(this.moreInfoDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ServiceProviderInteractionRequestDetails)) { + return false; + } + + ServiceProviderInteractionRequestDetails other = + (ServiceProviderInteractionRequestDetails) o; + return java.util.Objects.equals(this.moreInfoDetails, other.moreInfoDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.moreInfoDetails == null ? 43 : this.moreInfoDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderInteractionSummary.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderInteractionSummary.java new file mode 100644 index 00000000000..5e9f0b0087a --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderInteractionSummary.java @@ -0,0 +1,405 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** + * Summary of customer and operator conversation.
+ * 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: 20230801") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ServiceProviderInteractionSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ServiceProviderInteractionSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "messageIdentifier", + "userId", + "userName", + "message", + "userType", + "timestamp" + }) + public ServiceProviderInteractionSummary( + String messageIdentifier, + String userId, + String userName, + String message, + UserType userType, + java.util.Date timestamp) { + super(); + this.messageIdentifier = messageIdentifier; + this.userId = userId; + this.userName = userName; + this.message = message; + this.userType = userType; + this.timestamp = timestamp; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The unique identifier of the message within the scope of the associated access request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("messageIdentifier") + private String messageIdentifier; + + /** + * The unique identifier of the message within the scope of the associated access request. + * + * @param messageIdentifier the value to set + * @return this builder + */ + public Builder messageIdentifier(String messageIdentifier) { + this.messageIdentifier = messageIdentifier; + this.__explicitlySet__.add("messageIdentifier"); + return this; + } + /** + * ID of the customer or operator who is part of this conversation. For operator, this field + * is null. + */ + @com.fasterxml.jackson.annotation.JsonProperty("userId") + private String userId; + + /** + * ID of the customer or operator who is part of this conversation. For operator, this field + * is null. + * + * @param userId the value to set + * @return this builder + */ + public Builder userId(String userId) { + this.userId = userId; + this.__explicitlySet__.add("userId"); + return this; + } + /** + * Name of the customer or operator who is part of this conversation. For operator, the name + * is "Operator". + */ + @com.fasterxml.jackson.annotation.JsonProperty("userName") + private String userName; + + /** + * Name of the customer or operator who is part of this conversation. For operator, the name + * is "Operator". + * + * @param userName the value to set + * @return this builder + */ + public Builder userName(String userName) { + this.userName = userName; + this.__explicitlySet__.add("userName"); + return this; + } + /** The information exchanged between the customer and the operator. */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + /** + * The information exchanged between the customer and the operator. + * + * @param message the value to set + * @return this builder + */ + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + /** Indicates whether the user is a customer or an operator. */ + @com.fasterxml.jackson.annotation.JsonProperty("userType") + private UserType userType; + + /** + * Indicates whether the user is a customer or an operator. + * + * @param userType the value to set + * @return this builder + */ + public Builder userType(UserType userType) { + this.userType = userType; + this.__explicitlySet__.add("userType"); + return this; + } + /** + * Time when the conversation happened in [RFC + * 3339](https://tools.ietf.org/html/rfc3339)timestamp format, e.g. + * '2020-05-22T21:10:29.600Z'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private java.util.Date timestamp; + + /** + * Time when the conversation happened in [RFC + * 3339](https://tools.ietf.org/html/rfc3339)timestamp format, e.g. + * '2020-05-22T21:10:29.600Z'. + * + * @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 ServiceProviderInteractionSummary build() { + ServiceProviderInteractionSummary model = + new ServiceProviderInteractionSummary( + this.messageIdentifier, + this.userId, + this.userName, + this.message, + this.userType, + this.timestamp); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ServiceProviderInteractionSummary model) { + if (model.wasPropertyExplicitlySet("messageIdentifier")) { + this.messageIdentifier(model.getMessageIdentifier()); + } + if (model.wasPropertyExplicitlySet("userId")) { + this.userId(model.getUserId()); + } + if (model.wasPropertyExplicitlySet("userName")) { + this.userName(model.getUserName()); + } + if (model.wasPropertyExplicitlySet("message")) { + this.message(model.getMessage()); + } + if (model.wasPropertyExplicitlySet("userType")) { + this.userType(model.getUserType()); + } + 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); + } + + /** The unique identifier of the message within the scope of the associated access request. */ + @com.fasterxml.jackson.annotation.JsonProperty("messageIdentifier") + private final String messageIdentifier; + + /** + * The unique identifier of the message within the scope of the associated access request. + * + * @return the value + */ + public String getMessageIdentifier() { + return messageIdentifier; + } + + /** + * ID of the customer or operator who is part of this conversation. For operator, this field is + * null. + */ + @com.fasterxml.jackson.annotation.JsonProperty("userId") + private final String userId; + + /** + * ID of the customer or operator who is part of this conversation. For operator, this field is + * null. + * + * @return the value + */ + public String getUserId() { + return userId; + } + + /** + * Name of the customer or operator who is part of this conversation. For operator, the name is + * "Operator". + */ + @com.fasterxml.jackson.annotation.JsonProperty("userName") + private final String userName; + + /** + * Name of the customer or operator who is part of this conversation. For operator, the name is + * "Operator". + * + * @return the value + */ + public String getUserName() { + return userName; + } + + /** The information exchanged between the customer and the operator. */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private final String message; + + /** + * The information exchanged between the customer and the operator. + * + * @return the value + */ + public String getMessage() { + return message; + } + + /** Indicates whether the user is a customer or an operator. */ + public enum UserType implements com.oracle.bmc.http.internal.BmcEnum { + Customer("CUSTOMER"), + Operator("OPERATOR"), + + /** + * 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(UserType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (UserType v : UserType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + UserType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static UserType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'UserType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Indicates whether the user is a customer or an operator. */ + @com.fasterxml.jackson.annotation.JsonProperty("userType") + private final UserType userType; + + /** + * Indicates whether the user is a customer or an operator. + * + * @return the value + */ + public UserType getUserType() { + return userType; + } + + /** + * Time when the conversation happened in [RFC + * 3339](https://tools.ietf.org/html/rfc3339)timestamp format, e.g. '2020-05-22T21:10:29.600Z'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private final java.util.Date timestamp; + + /** + * Time when the conversation happened in [RFC + * 3339](https://tools.ietf.org/html/rfc3339)timestamp format, e.g. '2020-05-22T21:10:29.600Z'. + * + * @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("ServiceProviderInteractionSummary("); + sb.append("super=").append(super.toString()); + sb.append("messageIdentifier=").append(String.valueOf(this.messageIdentifier)); + sb.append(", userId=").append(String.valueOf(this.userId)); + sb.append(", userName=").append(String.valueOf(this.userName)); + sb.append(", message=").append(String.valueOf(this.message)); + sb.append(", userType=").append(String.valueOf(this.userType)); + 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 ServiceProviderInteractionSummary)) { + return false; + } + + ServiceProviderInteractionSummary other = (ServiceProviderInteractionSummary) o; + return java.util.Objects.equals(this.messageIdentifier, other.messageIdentifier) + && java.util.Objects.equals(this.userId, other.userId) + && java.util.Objects.equals(this.userName, other.userName) + && java.util.Objects.equals(this.message, other.message) + && java.util.Objects.equals(this.userType, other.userType) + && 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.messageIdentifier == null ? 43 : this.messageIdentifier.hashCode()); + result = (result * PRIME) + (this.userId == null ? 43 : this.userId.hashCode()); + result = (result * PRIME) + (this.userName == null ? 43 : this.userName.hashCode()); + result = (result * PRIME) + (this.message == null ? 43 : this.message.hashCode()); + result = (result * PRIME) + (this.userType == null ? 43 : this.userType.hashCode()); + result = (result * PRIME) + (this.timestamp == null ? 43 : this.timestamp.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderServiceType.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderServiceType.java new file mode 100644 index 00000000000..ac7baf849c3 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderServiceType.java @@ -0,0 +1,53 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** Types of service provided by the Service Provider. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public enum ServiceProviderServiceType implements com.oracle.bmc.http.internal.BmcEnum { + Troubleshooting("TROUBLESHOOTING"), + AssistedPatching("ASSISTED_PATCHING"), + + /** + * 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(ServiceProviderServiceType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ServiceProviderServiceType v : ServiceProviderServiceType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ServiceProviderServiceType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ServiceProviderServiceType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ServiceProviderServiceType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderSummary.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderSummary.java new file mode 100644 index 00000000000..29685e0a4c9 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderSummary.java @@ -0,0 +1,694 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** + * Summary of the Service Provider. Service provider offers services to the customer to support the + * delegated resources.
+ * 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: 20230801") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ServiceProviderSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ServiceProviderSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "name", + "serviceProviderType", + "serviceTypes", + "supportedResourceTypes", + "lifecycleState", + "lifecycleStateDetails", + "timeCreated", + "timeUpdated", + "freeformTags", + "definedTags", + "systemTags" + }) + public ServiceProviderSummary( + String id, + String compartmentId, + String name, + ServiceProvider.ServiceProviderType serviceProviderType, + java.util.List serviceTypes, + java.util.List supportedResourceTypes, + ServiceProvider.LifecycleState lifecycleState, + String lifecycleStateDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.name = name; + this.serviceProviderType = serviceProviderType; + this.serviceTypes = serviceTypes; + this.supportedResourceTypes = supportedResourceTypes; + this.lifecycleState = lifecycleState; + this.lifecycleStateDetails = lifecycleStateDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Unique identifier for the Service Provider. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Unique identifier for the Service Provider. + * + * @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 compartment that contains the Delegation Control. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment that contains the Delegation Control. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Unique name of the Service Provider. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * Unique name of the Service Provider. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** Service Provider type. */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceProviderType") + private ServiceProvider.ServiceProviderType serviceProviderType; + + /** + * Service Provider type. + * + * @param serviceProviderType the value to set + * @return this builder + */ + public Builder serviceProviderType( + ServiceProvider.ServiceProviderType serviceProviderType) { + this.serviceProviderType = serviceProviderType; + this.__explicitlySet__.add("serviceProviderType"); + return this; + } + /** Types of services offered by this provider. */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceTypes") + private java.util.List serviceTypes; + + /** + * Types of services offered by this provider. + * + * @param serviceTypes the value to set + * @return this builder + */ + public Builder serviceTypes(java.util.List serviceTypes) { + this.serviceTypes = serviceTypes; + this.__explicitlySet__.add("serviceTypes"); + return this; + } + /** + * Resource types for which this provider will provide service. Default to all if not + * specified. + */ + @com.fasterxml.jackson.annotation.JsonProperty("supportedResourceTypes") + private java.util.List supportedResourceTypes; + + /** + * Resource types for which this provider will provide service. Default to all if not + * specified. + * + * @param supportedResourceTypes the value to set + * @return this builder + */ + public Builder supportedResourceTypes( + java.util.List supportedResourceTypes) { + this.supportedResourceTypes = supportedResourceTypes; + this.__explicitlySet__.add("supportedResourceTypes"); + return this; + } + /** The current lifecycle state of the Service Provider. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private ServiceProvider.LifecycleState lifecycleState; + + /** + * The current lifecycle state of the Service Provider. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(ServiceProvider.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** Description of the current lifecycle state in more detail. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStateDetails") + private String lifecycleStateDetails; + + /** + * Description of the current lifecycle state in more detail. + * + * @param lifecycleStateDetails the value to set + * @return this builder + */ + public Builder lifecycleStateDetails(String lifecycleStateDetails) { + this.lifecycleStateDetails = lifecycleStateDetails; + this.__explicitlySet__.add("lifecycleStateDetails"); + return this; + } + /** + * Time when the Service Provider was created expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. + * '2020-05-22T21:10:29.600Z' + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * Time when the Service Provider was created expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. + * '2020-05-22T21: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; + } + /** + * Time when the Service Provider was last modified expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. + * '2020-05-22T21:10:29.600Z' + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * Time when the Service Provider was last modified expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. + * '2020-05-22T21:10:29.600Z' + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Department": "Finance"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.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; + } + /** + * 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; + + /** + * 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; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * + *

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

Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ServiceProviderSummary build() { + ServiceProviderSummary model = + new ServiceProviderSummary( + this.id, + this.compartmentId, + this.name, + this.serviceProviderType, + this.serviceTypes, + this.supportedResourceTypes, + this.lifecycleState, + this.lifecycleStateDetails, + this.timeCreated, + this.timeUpdated, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ServiceProviderSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("serviceProviderType")) { + this.serviceProviderType(model.getServiceProviderType()); + } + if (model.wasPropertyExplicitlySet("serviceTypes")) { + this.serviceTypes(model.getServiceTypes()); + } + if (model.wasPropertyExplicitlySet("supportedResourceTypes")) { + this.supportedResourceTypes(model.getSupportedResourceTypes()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleStateDetails")) { + this.lifecycleStateDetails(model.getLifecycleStateDetails()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Unique identifier for the Service Provider. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Unique identifier for the Service Provider. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The OCID of the compartment that contains the Delegation Control. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment that contains the Delegation Control. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Unique name of the Service Provider. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * Unique name of the Service Provider. + * + * @return the value + */ + public String getName() { + return name; + } + + /** Service Provider type. */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceProviderType") + private final ServiceProvider.ServiceProviderType serviceProviderType; + + /** + * Service Provider type. + * + * @return the value + */ + public ServiceProvider.ServiceProviderType getServiceProviderType() { + return serviceProviderType; + } + + /** Types of services offered by this provider. */ + @com.fasterxml.jackson.annotation.JsonProperty("serviceTypes") + private final java.util.List serviceTypes; + + /** + * Types of services offered by this provider. + * + * @return the value + */ + public java.util.List getServiceTypes() { + return serviceTypes; + } + + /** + * Resource types for which this provider will provide service. Default to all if not specified. + */ + @com.fasterxml.jackson.annotation.JsonProperty("supportedResourceTypes") + private final java.util.List supportedResourceTypes; + + /** + * Resource types for which this provider will provide service. Default to all if not specified. + * + * @return the value + */ + public java.util.List getSupportedResourceTypes() { + return supportedResourceTypes; + } + + /** The current lifecycle state of the Service Provider. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final ServiceProvider.LifecycleState lifecycleState; + + /** + * The current lifecycle state of the Service Provider. + * + * @return the value + */ + public ServiceProvider.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** Description of the current lifecycle state in more detail. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStateDetails") + private final String lifecycleStateDetails; + + /** + * Description of the current lifecycle state in more detail. + * + * @return the value + */ + public String getLifecycleStateDetails() { + return lifecycleStateDetails; + } + + /** + * Time when the Service Provider was created expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-22T21:10:29.600Z' + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * Time when the Service Provider was created expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-22T21:10:29.600Z' + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * Time when the Service Provider was last modified expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-22T21:10:29.600Z' + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * Time when the Service Provider was last modified expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, e.g. '2020-05-22T21:10:29.600Z' + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.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; + + /** + * 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; + } + + /** + * 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; + + /** + * 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; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * + *

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

Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ServiceProviderSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", serviceProviderType=").append(String.valueOf(this.serviceProviderType)); + sb.append(", serviceTypes=").append(String.valueOf(this.serviceTypes)); + sb.append(", supportedResourceTypes=").append(String.valueOf(this.supportedResourceTypes)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleStateDetails=").append(String.valueOf(this.lifecycleStateDetails)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ServiceProviderSummary)) { + return false; + } + + ServiceProviderSummary other = (ServiceProviderSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.serviceProviderType, other.serviceProviderType) + && java.util.Objects.equals(this.serviceTypes, other.serviceTypes) + && java.util.Objects.equals( + this.supportedResourceTypes, other.supportedResourceTypes) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleStateDetails, other.lifecycleStateDetails) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.serviceProviderType == null + ? 43 + : this.serviceProviderType.hashCode()); + result = (result * PRIME) + (this.serviceTypes == null ? 43 : this.serviceTypes.hashCode()); + result = + (result * PRIME) + + (this.supportedResourceTypes == null + ? 43 + : this.supportedResourceTypes.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleStateDetails == null + ? 43 + : this.lifecycleStateDetails.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderSummaryCollection.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderSummaryCollection.java new file mode 100644 index 00000000000..3bb2d85af0c --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/ServiceProviderSummaryCollection.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.delegateaccesscontrol.model; + +/** + * List of ServiceProviderSummary objects.
+ * 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: 20230801") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ServiceProviderSummaryCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ServiceProviderSummaryCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public ServiceProviderSummaryCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of ServiceProviderSummary objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of ServiceProviderSummary objects. + * + * @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 ServiceProviderSummaryCollection build() { + ServiceProviderSummaryCollection model = + new ServiceProviderSummaryCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ServiceProviderSummaryCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of ServiceProviderSummary objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of ServiceProviderSummary objects. + * + * @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("ServiceProviderSummaryCollection("); + 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 ServiceProviderSummaryCollection)) { + return false; + } + + ServiceProviderSummaryCollection other = (ServiceProviderSummaryCollection) 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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/SortOrders.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/SortOrders.java new file mode 100644 index 00000000000..b1a97c09225 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/SortOrders.java @@ -0,0 +1,40 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** Sort orders. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public enum SortOrders 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 (SortOrders v : SortOrders.values()) { + map.put(v.getValue(), v); + } + } + + SortOrders(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrders create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortOrders: " + key); + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/UpdateDelegationControlDetails.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/UpdateDelegationControlDetails.java new file mode 100644 index 00000000000..4224dfc5c80 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/UpdateDelegationControlDetails.java @@ -0,0 +1,648 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** + * Information about the new Delegation Control.
+ * 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: 20230801") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateDelegationControlDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateDelegationControlDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "description", + "numApprovalsRequired", + "delegationSubscriptionIds", + "isAutoApproveDuringMaintenance", + "resourceIds", + "preApprovedServiceProviderActionNames", + "notificationTopicId", + "notificationMessageFormat", + "freeformTags", + "definedTags" + }) + public UpdateDelegationControlDetails( + String displayName, + String description, + Integer numApprovalsRequired, + java.util.List delegationSubscriptionIds, + Boolean isAutoApproveDuringMaintenance, + java.util.List resourceIds, + java.util.List preApprovedServiceProviderActionNames, + String notificationTopicId, + DelegationControl.NotificationMessageFormat notificationMessageFormat, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.description = description; + this.numApprovalsRequired = numApprovalsRequired; + this.delegationSubscriptionIds = delegationSubscriptionIds; + this.isAutoApproveDuringMaintenance = isAutoApproveDuringMaintenance; + this.resourceIds = resourceIds; + this.preApprovedServiceProviderActionNames = preApprovedServiceProviderActionNames; + this.notificationTopicId = notificationTopicId; + this.notificationMessageFormat = notificationMessageFormat; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Name of the Delegation Control. The name does not need to be unique. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Name of the Delegation Control. The name does not need to be unique. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Description of the Delegation Control. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Description of the Delegation Control. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** number of approvals required. */ + @com.fasterxml.jackson.annotation.JsonProperty("numApprovalsRequired") + private Integer numApprovalsRequired; + + /** + * number of approvals required. + * + * @param numApprovalsRequired the value to set + * @return this builder + */ + public Builder numApprovalsRequired(Integer numApprovalsRequired) { + this.numApprovalsRequired = numApprovalsRequired; + this.__explicitlySet__.add("numApprovalsRequired"); + return this; + } + /** + * List of Delegation Subscription OCID that are allowed for this Delegation Control. The + * allowed subscriptions will determine the available Service Provider Actions. Only support + * operators for the allowed subscriptions are allowed to create Delegated Resource Access + * Request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("delegationSubscriptionIds") + private java.util.List delegationSubscriptionIds; + + /** + * List of Delegation Subscription OCID that are allowed for this Delegation Control. The + * allowed subscriptions will determine the available Service Provider Actions. Only support + * operators for the allowed subscriptions are allowed to create Delegated Resource Access + * Request. + * + * @param delegationSubscriptionIds the value to set + * @return this builder + */ + public Builder delegationSubscriptionIds(java.util.List delegationSubscriptionIds) { + this.delegationSubscriptionIds = delegationSubscriptionIds; + this.__explicitlySet__.add("delegationSubscriptionIds"); + return this; + } + /** + * Set to true to allow all Delegated Resource Access Request to be approved automatically + * during maintenance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoApproveDuringMaintenance") + private Boolean isAutoApproveDuringMaintenance; + + /** + * Set to true to allow all Delegated Resource Access Request to be approved automatically + * during maintenance. + * + * @param isAutoApproveDuringMaintenance the value to set + * @return this builder + */ + public Builder isAutoApproveDuringMaintenance(Boolean isAutoApproveDuringMaintenance) { + this.isAutoApproveDuringMaintenance = isAutoApproveDuringMaintenance; + this.__explicitlySet__.add("isAutoApproveDuringMaintenance"); + return this; + } + /** The OCID of the selected resources that this Delegation Control is applicable to. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceIds") + private java.util.List resourceIds; + + /** + * The OCID of the selected resources that this Delegation Control is applicable to. + * + * @param resourceIds the value to set + * @return this builder + */ + public Builder resourceIds(java.util.List resourceIds) { + this.resourceIds = resourceIds; + this.__explicitlySet__.add("resourceIds"); + return this; + } + /** + * List of pre-approved Service Provider Action names. The list of pre-defined Service + * Provider Actions can be obtained from the ListServiceProviderActions API. Delegated + * Resource Access Requests associated with a resource governed by this Delegation Control + * will be automatically approved if the Delegated Resource Access Request only contain + * Service Provider Actions in the pre-approved list. + */ + @com.fasterxml.jackson.annotation.JsonProperty("preApprovedServiceProviderActionNames") + private java.util.List preApprovedServiceProviderActionNames; + + /** + * List of pre-approved Service Provider Action names. The list of pre-defined Service + * Provider Actions can be obtained from the ListServiceProviderActions API. Delegated + * Resource Access Requests associated with a resource governed by this Delegation Control + * will be automatically approved if the Delegated Resource Access Request only contain + * Service Provider Actions in the pre-approved list. + * + * @param preApprovedServiceProviderActionNames the value to set + * @return this builder + */ + public Builder preApprovedServiceProviderActionNames( + java.util.List preApprovedServiceProviderActionNames) { + this.preApprovedServiceProviderActionNames = preApprovedServiceProviderActionNames; + this.__explicitlySet__.add("preApprovedServiceProviderActionNames"); + return this; + } + /** + * The OCID of the OCI Notification topic to publish messages related to this Delegation + * Control. + */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicId") + private String notificationTopicId; + + /** + * The OCID of the OCI Notification topic to publish messages related to this Delegation + * Control. + * + * @param notificationTopicId the value to set + * @return this builder + */ + public Builder notificationTopicId(String notificationTopicId) { + this.notificationTopicId = notificationTopicId; + this.__explicitlySet__.add("notificationTopicId"); + return this; + } + /** The format of the OCI Notification messages for this Delegation Control. */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationMessageFormat") + private DelegationControl.NotificationMessageFormat notificationMessageFormat; + + /** + * The format of the OCI Notification messages for this Delegation Control. + * + * @param notificationMessageFormat the value to set + * @return this builder + */ + public Builder notificationMessageFormat( + DelegationControl.NotificationMessageFormat notificationMessageFormat) { + this.notificationMessageFormat = notificationMessageFormat; + this.__explicitlySet__.add("notificationMessageFormat"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Department": "Finance"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.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; + } + /** + * 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; + + /** + * 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 UpdateDelegationControlDetails build() { + UpdateDelegationControlDetails model = + new UpdateDelegationControlDetails( + this.displayName, + this.description, + this.numApprovalsRequired, + this.delegationSubscriptionIds, + this.isAutoApproveDuringMaintenance, + this.resourceIds, + this.preApprovedServiceProviderActionNames, + this.notificationTopicId, + this.notificationMessageFormat, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateDelegationControlDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("numApprovalsRequired")) { + this.numApprovalsRequired(model.getNumApprovalsRequired()); + } + if (model.wasPropertyExplicitlySet("delegationSubscriptionIds")) { + this.delegationSubscriptionIds(model.getDelegationSubscriptionIds()); + } + if (model.wasPropertyExplicitlySet("isAutoApproveDuringMaintenance")) { + this.isAutoApproveDuringMaintenance(model.getIsAutoApproveDuringMaintenance()); + } + if (model.wasPropertyExplicitlySet("resourceIds")) { + this.resourceIds(model.getResourceIds()); + } + if (model.wasPropertyExplicitlySet("preApprovedServiceProviderActionNames")) { + this.preApprovedServiceProviderActionNames( + model.getPreApprovedServiceProviderActionNames()); + } + if (model.wasPropertyExplicitlySet("notificationTopicId")) { + this.notificationTopicId(model.getNotificationTopicId()); + } + if (model.wasPropertyExplicitlySet("notificationMessageFormat")) { + this.notificationMessageFormat(model.getNotificationMessageFormat()); + } + 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); + } + + /** Name of the Delegation Control. The name does not need to be unique. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Name of the Delegation Control. The name does not need to be unique. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Description of the Delegation Control. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the Delegation Control. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** number of approvals required. */ + @com.fasterxml.jackson.annotation.JsonProperty("numApprovalsRequired") + private final Integer numApprovalsRequired; + + /** + * number of approvals required. + * + * @return the value + */ + public Integer getNumApprovalsRequired() { + return numApprovalsRequired; + } + + /** + * List of Delegation Subscription OCID that are allowed for this Delegation Control. The + * allowed subscriptions will determine the available Service Provider Actions. Only support + * operators for the allowed subscriptions are allowed to create Delegated Resource Access + * Request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("delegationSubscriptionIds") + private final java.util.List delegationSubscriptionIds; + + /** + * List of Delegation Subscription OCID that are allowed for this Delegation Control. The + * allowed subscriptions will determine the available Service Provider Actions. Only support + * operators for the allowed subscriptions are allowed to create Delegated Resource Access + * Request. + * + * @return the value + */ + public java.util.List getDelegationSubscriptionIds() { + return delegationSubscriptionIds; + } + + /** + * Set to true to allow all Delegated Resource Access Request to be approved automatically + * during maintenance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoApproveDuringMaintenance") + private final Boolean isAutoApproveDuringMaintenance; + + /** + * Set to true to allow all Delegated Resource Access Request to be approved automatically + * during maintenance. + * + * @return the value + */ + public Boolean getIsAutoApproveDuringMaintenance() { + return isAutoApproveDuringMaintenance; + } + + /** The OCID of the selected resources that this Delegation Control is applicable to. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceIds") + private final java.util.List resourceIds; + + /** + * The OCID of the selected resources that this Delegation Control is applicable to. + * + * @return the value + */ + public java.util.List getResourceIds() { + return resourceIds; + } + + /** + * List of pre-approved Service Provider Action names. The list of pre-defined Service Provider + * Actions can be obtained from the ListServiceProviderActions API. Delegated Resource Access + * Requests associated with a resource governed by this Delegation Control will be automatically + * approved if the Delegated Resource Access Request only contain Service Provider Actions in + * the pre-approved list. + */ + @com.fasterxml.jackson.annotation.JsonProperty("preApprovedServiceProviderActionNames") + private final java.util.List preApprovedServiceProviderActionNames; + + /** + * List of pre-approved Service Provider Action names. The list of pre-defined Service Provider + * Actions can be obtained from the ListServiceProviderActions API. Delegated Resource Access + * Requests associated with a resource governed by this Delegation Control will be automatically + * approved if the Delegated Resource Access Request only contain Service Provider Actions in + * the pre-approved list. + * + * @return the value + */ + public java.util.List getPreApprovedServiceProviderActionNames() { + return preApprovedServiceProviderActionNames; + } + + /** + * The OCID of the OCI Notification topic to publish messages related to this Delegation + * Control. + */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicId") + private final String notificationTopicId; + + /** + * The OCID of the OCI Notification topic to publish messages related to this Delegation + * Control. + * + * @return the value + */ + public String getNotificationTopicId() { + return notificationTopicId; + } + + /** The format of the OCI Notification messages for this Delegation Control. */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationMessageFormat") + private final DelegationControl.NotificationMessageFormat notificationMessageFormat; + + /** + * The format of the OCI Notification messages for this Delegation Control. + * + * @return the value + */ + public DelegationControl.NotificationMessageFormat getNotificationMessageFormat() { + return notificationMessageFormat; + } + + /** + * 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; + + /** + * 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; + } + + /** + * 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; + + /** + * 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("UpdateDelegationControlDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", numApprovalsRequired=").append(String.valueOf(this.numApprovalsRequired)); + sb.append(", delegationSubscriptionIds=") + .append(String.valueOf(this.delegationSubscriptionIds)); + sb.append(", isAutoApproveDuringMaintenance=") + .append(String.valueOf(this.isAutoApproveDuringMaintenance)); + sb.append(", resourceIds=").append(String.valueOf(this.resourceIds)); + sb.append(", preApprovedServiceProviderActionNames=") + .append(String.valueOf(this.preApprovedServiceProviderActionNames)); + sb.append(", notificationTopicId=").append(String.valueOf(this.notificationTopicId)); + sb.append(", notificationMessageFormat=") + .append(String.valueOf(this.notificationMessageFormat)); + 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 UpdateDelegationControlDetails)) { + return false; + } + + UpdateDelegationControlDetails other = (UpdateDelegationControlDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.numApprovalsRequired, other.numApprovalsRequired) + && java.util.Objects.equals( + this.delegationSubscriptionIds, other.delegationSubscriptionIds) + && java.util.Objects.equals( + this.isAutoApproveDuringMaintenance, other.isAutoApproveDuringMaintenance) + && java.util.Objects.equals(this.resourceIds, other.resourceIds) + && java.util.Objects.equals( + this.preApprovedServiceProviderActionNames, + other.preApprovedServiceProviderActionNames) + && java.util.Objects.equals(this.notificationTopicId, other.notificationTopicId) + && java.util.Objects.equals( + this.notificationMessageFormat, other.notificationMessageFormat) + && 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.numApprovalsRequired == null + ? 43 + : this.numApprovalsRequired.hashCode()); + result = + (result * PRIME) + + (this.delegationSubscriptionIds == null + ? 43 + : this.delegationSubscriptionIds.hashCode()); + result = + (result * PRIME) + + (this.isAutoApproveDuringMaintenance == null + ? 43 + : this.isAutoApproveDuringMaintenance.hashCode()); + result = (result * PRIME) + (this.resourceIds == null ? 43 : this.resourceIds.hashCode()); + result = + (result * PRIME) + + (this.preApprovedServiceProviderActionNames == null + ? 43 + : this.preApprovedServiceProviderActionNames.hashCode()); + result = + (result * PRIME) + + (this.notificationTopicId == null + ? 43 + : this.notificationTopicId.hashCode()); + result = + (result * PRIME) + + (this.notificationMessageFormat == null + ? 43 + : this.notificationMessageFormat.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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/UpdateDelegationSubscriptionDetails.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/UpdateDelegationSubscriptionDetails.java new file mode 100644 index 00000000000..bf1ffe81d6d --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/UpdateDelegationSubscriptionDetails.java @@ -0,0 +1,250 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** + * Details for updating the Delegation Subscription.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateDelegationSubscriptionDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateDelegationSubscriptionDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"description", "freeformTags", "definedTags"}) + public UpdateDelegationSubscriptionDetails( + String description, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.description = description; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Description of the Delegation Subscription. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Description of the Delegation Subscription. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Department": "Finance"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.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; + } + /** + * 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; + + /** + * 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 UpdateDelegationSubscriptionDetails build() { + UpdateDelegationSubscriptionDetails model = + new UpdateDelegationSubscriptionDetails( + this.description, this.freeformTags, this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateDelegationSubscriptionDetails model) { + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Description of the Delegation Subscription. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the Delegation Subscription. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.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; + + /** + * 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("UpdateDelegationSubscriptionDetails("); + sb.append("super=").append(super.toString()); + sb.append("description=").append(String.valueOf(this.description)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDelegationSubscriptionDetails)) { + return false; + } + + UpdateDelegationSubscriptionDetails other = (UpdateDelegationSubscriptionDetails) o; + return java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/WorkRequest.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/WorkRequest.java new file mode 100644 index 00000000000..85eba5e5576 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/WorkRequest.java @@ -0,0 +1,489 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** + * A description of workrequest status
+ * 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: 20230801") +@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" + }) + 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) { + 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; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Type of the work request */ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private OperationType operationType; + + /** + * Type of the 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; + } + /** Status of current work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private OperationStatus status; + + /** + * Status of current 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 id of the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The id 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 of the compartment that contains the work request. Work requests should be + * scoped to the same compartment as the resource the work request affects. If the work + * request affects multiple resources, and those resources are not in the same compartment, + * it is up to the service team to pick the primary resource whose compartment should be + * used + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The ocid of the compartment that contains the work request. Work requests should be + * scoped to the same compartment as the resource the work request affects. If the work + * request affects multiple resources, and those resources are not in the same compartment, + * it is up to the service team to pick the primary resource whose compartment should be + * used + * + * @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 affected by this work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private java.util.List resources; + + /** + * The resources 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; + } + /** Percentage of the request completed. */ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private Float percentComplete; + + /** + * Percentage of the request completed. + * + * @param percentComplete the value to set + * @return this builder + */ + public Builder percentComplete(Float percentComplete) { + this.percentComplete = percentComplete; + this.__explicitlySet__.add("percentComplete"); + return this; + } + /** + * The date and time the request was created, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private java.util.Date timeAccepted; + + /** + * The date and time the request was created, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + * @param timeAccepted the value to set + * @return this builder + */ + public Builder timeAccepted(java.util.Date timeAccepted) { + this.timeAccepted = timeAccepted; + this.__explicitlySet__.add("timeAccepted"); + return this; + } + /** + * The date and time the request was started, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * The date and time the request was started, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + * @param timeStarted the value to set + * @return this builder + */ + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + /** + * The date and time the object was finished, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private java.util.Date timeFinished; + + /** + * The date and time the object was finished, as described in [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; + } + + @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); + 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()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Type of the work request */ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private final OperationType operationType; + + /** + * Type of the work request + * + * @return the value + */ + public OperationType getOperationType() { + return operationType; + } + + /** Status of current work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final OperationStatus status; + + /** + * Status of current work request. + * + * @return the value + */ + public OperationStatus getStatus() { + return status; + } + + /** The id of the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The id of the work request. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The ocid of the compartment that contains the work request. Work requests should be scoped to + * the same compartment as the resource the work request affects. If the work request affects + * multiple resources, and those resources are not in the same compartment, it is up to the + * service team to pick the primary resource whose compartment should be used + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The ocid of the compartment that contains the work request. Work requests should be scoped to + * the same compartment as the resource the work request affects. If the work request affects + * multiple resources, and those resources are not in the same compartment, it is up to the + * service team to pick the primary resource whose compartment should be used + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The resources affected by this work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private final java.util.List resources; + + /** + * The resources affected by this work request. + * + * @return the value + */ + public java.util.List getResources() { + return resources; + } + + /** Percentage of the request completed. */ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private final Float percentComplete; + + /** + * Percentage of the request completed. + * + * @return the value + */ + public Float getPercentComplete() { + return percentComplete; + } + + /** + * The date and time the request was created, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private final java.util.Date timeAccepted; + + /** + * The date and time the request was created, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + * @return the value + */ + public java.util.Date getTimeAccepted() { + return timeAccepted; + } + + /** + * The date and time the request was started, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * The date and time the request was started, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + * @return the value + */ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** + * The date and time the object was finished, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private final java.util.Date timeFinished; + + /** + * The date and time the object was finished, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeFinished() { + return timeFinished; + } + + @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(")"); + 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) + && 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) + super.hashCode(); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/WorkRequestError.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/WorkRequestError.java new file mode 100644 index 00000000000..d1660de30a3 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/WorkRequestError.java @@ -0,0 +1,211 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** + * An error encountered while executing 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: 20230801") +@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 occured. Error codes are listed on + * (https://docs.cloud.oracle.com/Content/API/References/apierrors.htm) + */ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private String code; + + /** + * A machine-usable code for the error that occured. Error codes are listed on + * (https://docs.cloud.oracle.com/Content/API/References/apierrors.htm) + * + * @param code the value to set + * @return this builder + */ + public Builder code(String code) { + this.code = code; + this.__explicitlySet__.add("code"); + return this; + } + /** A human readable description of the issue encountered. */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + /** + * A human readable description of the issue encountered. + * + * @param message the value to set + * @return this builder + */ + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + /** The time the error occured. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private java.util.Date timestamp; + + /** + * The time the error occured. An RFC3339 formatted datetime string. + * + * @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 occured. Error codes are listed on + * (https://docs.cloud.oracle.com/Content/API/References/apierrors.htm) + */ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private final String code; + + /** + * A machine-usable code for the error that occured. Error codes are listed on + * (https://docs.cloud.oracle.com/Content/API/References/apierrors.htm) + * + * @return the value + */ + public String getCode() { + return code; + } + + /** A human readable description of the issue encountered. */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private final String message; + + /** + * A human readable description of the issue encountered. + * + * @return the value + */ + public String getMessage() { + return message; + } + + /** The time the error occured. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private final java.util.Date timestamp; + + /** + * The time the error occured. An RFC3339 formatted datetime string. + * + * @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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/WorkRequestErrorCollection.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/WorkRequestErrorCollection.java new file mode 100644 index 00000000000..9a66cf37635 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/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.delegateaccesscontrol.model; + +/** + * Results of a workRequestError search. Contains both WorkRequestError items and other information, + * such as metadata.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +@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 { + /** List of workRequestError objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of workRequestError objects. + * + * @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); + } + + /** List of workRequestError objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of workRequestError objects. + * + * @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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/WorkRequestLogEntry.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/WorkRequestLogEntry.java new file mode 100644 index 00000000000..9e016ca98c3 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/WorkRequestLogEntry.java @@ -0,0 +1,169 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** + * A log message from the execution of 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: 20230801") +@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 { + /** Human-readable log message. */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + /** + * Human-readable log message. + * + * @param message the value to set + * @return this builder + */ + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + /** The time the log message was written. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private java.util.Date timestamp; + + /** + * The time the log message was written. An RFC3339 formatted datetime string + * + * @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); + } + + /** Human-readable log message. */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private final String message; + + /** + * Human-readable log message. + * + * @return the value + */ + public String getMessage() { + return message; + } + + /** The time the log message was written. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private final java.util.Date timestamp; + + /** + * The time the log message was written. An RFC3339 formatted datetime string + * + * @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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/WorkRequestLogEntryCollection.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/WorkRequestLogEntryCollection.java new file mode 100644 index 00000000000..8c054772399 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/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.delegateaccesscontrol.model; + +/** + * Results of a workRequestLog search. Contains both workRequestLog items and other information, + * such as metadata.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +@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 { + /** List of workRequestLogEntries. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of workRequestLogEntries. + * + * @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); + } + + /** List of workRequestLogEntries. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of workRequestLogEntries. + * + * @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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/WorkRequestResource.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/WorkRequestResource.java new file mode 100644 index 00000000000..2a1bf8c06e9 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/WorkRequestResource.java @@ -0,0 +1,307 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** + * A resource created or operated on by a work request.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestResource.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestResource + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "entityType", + "actionType", + "identifier", + "entityUri", + "metadata" + }) + public WorkRequestResource( + String entityType, + ActionType actionType, + String identifier, + String entityUri, + java.util.Map metadata) { + super(); + this.entityType = entityType; + this.actionType = actionType; + this.identifier = identifier; + this.entityUri = entityUri; + this.metadata = metadata; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The resource type the work request affects. */ + @com.fasterxml.jackson.annotation.JsonProperty("entityType") + private String entityType; + + /** + * The resource type 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 work tracked in the work request. A + * resource being created, updated, or deleted will remain in the IN_PROGRESS state until + * work is complete for that resource at which point it will transition 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 work tracked in the work request. A + * resource being created, updated, or deleted will remain in the IN_PROGRESS state until + * work is complete for that resource at which point it will transition 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; + } + /** The identifier of the resource the work request affects. */ + @com.fasterxml.jackson.annotation.JsonProperty("identifier") + private String identifier; + + /** + * The identifier of the resource the work request affects. + * + * @param identifier the value to set + * @return this builder + */ + public Builder identifier(String identifier) { + this.identifier = identifier; + this.__explicitlySet__.add("identifier"); + return this; + } + /** The URI path that the user can do a GET on to access the resource metadata */ + @com.fasterxml.jackson.annotation.JsonProperty("entityUri") + private String entityUri; + + /** + * The URI path that the user can do a GET on to access the resource metadata + * + * @param entityUri the value to set + * @return this builder + */ + public Builder entityUri(String entityUri) { + this.entityUri = entityUri; + this.__explicitlySet__.add("entityUri"); + return this; + } + /** Additional information that helps to explain the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private java.util.Map metadata; + + /** + * Additional information that helps to explain the resource. + * + * @param metadata the value to set + * @return this builder + */ + public Builder metadata(java.util.Map metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestResource build() { + WorkRequestResource model = + new WorkRequestResource( + this.entityType, + this.actionType, + this.identifier, + this.entityUri, + this.metadata); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestResource model) { + if (model.wasPropertyExplicitlySet("entityType")) { + this.entityType(model.getEntityType()); + } + if (model.wasPropertyExplicitlySet("actionType")) { + this.actionType(model.getActionType()); + } + if (model.wasPropertyExplicitlySet("identifier")) { + this.identifier(model.getIdentifier()); + } + if (model.wasPropertyExplicitlySet("entityUri")) { + this.entityUri(model.getEntityUri()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The resource type the work request affects. */ + @com.fasterxml.jackson.annotation.JsonProperty("entityType") + private final String entityType; + + /** + * The resource type the work request affects. + * + * @return the value + */ + public String getEntityType() { + return entityType; + } + + /** + * The way in which this resource is affected by the work tracked in the work request. A + * resource being created, updated, or deleted will remain in the IN_PROGRESS state until work + * is complete for that resource at which point it will transition 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 work tracked in the work request. A + * resource being created, updated, or deleted will remain in the IN_PROGRESS state until work + * is complete for that resource at which point it will transition to CREATED, UPDATED, or + * DELETED, respectively. + * + * @return the value + */ + public ActionType getActionType() { + return actionType; + } + + /** The identifier of the resource the work request affects. */ + @com.fasterxml.jackson.annotation.JsonProperty("identifier") + private final String identifier; + + /** + * The identifier of the resource the work request affects. + * + * @return the value + */ + public String getIdentifier() { + return identifier; + } + + /** The URI path that the user can do a GET on to access the resource metadata */ + @com.fasterxml.jackson.annotation.JsonProperty("entityUri") + private final String entityUri; + + /** + * The URI path that the user can do a GET on to access the resource metadata + * + * @return the value + */ + public String getEntityUri() { + return entityUri; + } + + /** Additional information that helps to explain the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final java.util.Map metadata; + + /** + * Additional information that helps to explain the resource. + * + * @return the value + */ + public java.util.Map getMetadata() { + return metadata; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestResource("); + sb.append("super=").append(super.toString()); + sb.append("entityType=").append(String.valueOf(this.entityType)); + sb.append(", actionType=").append(String.valueOf(this.actionType)); + sb.append(", identifier=").append(String.valueOf(this.identifier)); + sb.append(", entityUri=").append(String.valueOf(this.entityUri)); + sb.append(", metadata=").append(String.valueOf(this.metadata)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestResource)) { + return false; + } + + WorkRequestResource other = (WorkRequestResource) o; + return java.util.Objects.equals(this.entityType, other.entityType) + && java.util.Objects.equals(this.actionType, other.actionType) + && java.util.Objects.equals(this.identifier, other.identifier) + && java.util.Objects.equals(this.entityUri, other.entityUri) + && java.util.Objects.equals(this.metadata, other.metadata) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.entityType == null ? 43 : this.entityType.hashCode()); + result = (result * PRIME) + (this.actionType == null ? 43 : this.actionType.hashCode()); + result = (result * PRIME) + (this.identifier == null ? 43 : this.identifier.hashCode()); + result = (result * PRIME) + (this.entityUri == null ? 43 : this.entityUri.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/WorkRequestResourceMetadataKey.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/WorkRequestResourceMetadataKey.java new file mode 100644 index 00000000000..b43e38f4146 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/WorkRequestResourceMetadataKey.java @@ -0,0 +1,55 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** Possible Metadata keys for workRequest resource metadata */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public enum WorkRequestResourceMetadataKey implements com.oracle.bmc.http.internal.BmcEnum { + VmClusterId("VM_CLUSTER_ID"), + Hostnames("HOSTNAMES"), + Commands("COMMANDS"), + ResultLocation("RESULT_LOCATION"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(WorkRequestResourceMetadataKey.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (WorkRequestResourceMetadataKey v : WorkRequestResourceMetadataKey.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + WorkRequestResourceMetadataKey(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static WorkRequestResourceMetadataKey create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'WorkRequestResourceMetadataKey', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/WorkRequestSummary.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/WorkRequestSummary.java new file mode 100644 index 00000000000..9d1716f408e --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/WorkRequestSummary.java @@ -0,0 +1,491 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.model; + +/** + * A summary of the status of 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: 20230801") +@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" + }) + 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) { + 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; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Type of the work request */ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private OperationType operationType; + + /** + * Type of the 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; + } + /** Status of current work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private OperationStatus status; + + /** + * Status of current 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 id of the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The id 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 of the compartment that contains the work request. Work requests should be + * scoped to the same compartment as the resource the work request affects. If the work + * request affects multiple resources, and those resources are not in the same compartment, + * it is up to the service team to pick the primary resource whose compartment should be + * used + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The ocid of the compartment that contains the work request. Work requests should be + * scoped to the same compartment as the resource the work request affects. If the work + * request affects multiple resources, and those resources are not in the same compartment, + * it is up to the service team to pick the primary resource whose compartment should be + * used + * + * @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 affected by this work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private java.util.List resources; + + /** + * The resources 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; + } + /** Percentage of the request completed. */ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private Float percentComplete; + + /** + * Percentage of the request completed. + * + * @param percentComplete the value to set + * @return this builder + */ + public Builder percentComplete(Float percentComplete) { + this.percentComplete = percentComplete; + this.__explicitlySet__.add("percentComplete"); + return this; + } + /** + * The date and time the request was created, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private java.util.Date timeAccepted; + + /** + * The date and time the request was created, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + * @param timeAccepted the value to set + * @return this builder + */ + public Builder timeAccepted(java.util.Date timeAccepted) { + this.timeAccepted = timeAccepted; + this.__explicitlySet__.add("timeAccepted"); + return this; + } + /** + * The date and time the request was started, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * The date and time the request was started, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + * @param timeStarted the value to set + * @return this builder + */ + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + /** + * The date and time the object was finished, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private java.util.Date timeFinished; + + /** + * The date and time the object was finished, as described in [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; + } + + @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); + 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()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Type of the work request */ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private final OperationType operationType; + + /** + * Type of the work request + * + * @return the value + */ + public OperationType getOperationType() { + return operationType; + } + + /** Status of current work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final OperationStatus status; + + /** + * Status of current work request. + * + * @return the value + */ + public OperationStatus getStatus() { + return status; + } + + /** The id of the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The id of the work request. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The ocid of the compartment that contains the work request. Work requests should be scoped to + * the same compartment as the resource the work request affects. If the work request affects + * multiple resources, and those resources are not in the same compartment, it is up to the + * service team to pick the primary resource whose compartment should be used + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The ocid of the compartment that contains the work request. Work requests should be scoped to + * the same compartment as the resource the work request affects. If the work request affects + * multiple resources, and those resources are not in the same compartment, it is up to the + * service team to pick the primary resource whose compartment should be used + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The resources affected by this work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private final java.util.List resources; + + /** + * The resources affected by this work request. + * + * @return the value + */ + public java.util.List getResources() { + return resources; + } + + /** Percentage of the request completed. */ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private final Float percentComplete; + + /** + * Percentage of the request completed. + * + * @return the value + */ + public Float getPercentComplete() { + return percentComplete; + } + + /** + * The date and time the request was created, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private final java.util.Date timeAccepted; + + /** + * The date and time the request was created, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + * @return the value + */ + public java.util.Date getTimeAccepted() { + return timeAccepted; + } + + /** + * The date and time the request was started, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * The date and time the request was started, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + * @return the value + */ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** + * The date and time the object was finished, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private final java.util.Date timeFinished; + + /** + * The date and time the object was finished, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeFinished() { + return timeFinished; + } + + @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(")"); + 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) + && 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) + super.hashCode(); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/WorkRequestSummaryCollection.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/model/WorkRequestSummaryCollection.java new file mode 100644 index 00000000000..1a92d81cb10 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/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.delegateaccesscontrol.model; + +/** + * Results of a workRequest search. Contains both WorkRequest items and other information, such as + * metadata.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +@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 { + /** List of workRequestSummary objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of workRequestSummary objects. + * + * @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); + } + + /** List of workRequestSummary objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of workRequestSummary objects. + * + * @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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ApproveDelegatedResourceAccessRequestRequest.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ApproveDelegatedResourceAccessRequestRequest.java new file mode 100644 index 00000000000..af1d0638e14 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ApproveDelegatedResourceAccessRequestRequest.java @@ -0,0 +1,388 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.requests; + +import com.oracle.bmc.delegateaccesscontrol.model.*; +/** + * Example: Click here to see how to use + * ApproveDelegatedResourceAccessRequestRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class ApproveDelegatedResourceAccessRequestRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.delegateaccesscontrol.model + .ApproveDelegatedResourceAccessRequestDetails> { + + /** Unique Delegated Resource Access Request identifier */ + private String delegatedResourceAccessRequestId; + + /** Unique Delegated Resource Access Request identifier */ + public String getDelegatedResourceAccessRequestId() { + return delegatedResourceAccessRequestId; + } + /** + * Details regarding the approval of a Delegated Resource Access Request created by the support + * operator. + */ + private com.oracle.bmc.delegateaccesscontrol.model.ApproveDelegatedResourceAccessRequestDetails + approveDelegatedResourceAccessRequestDetails; + + /** + * Details regarding the approval of a Delegated Resource Access Request created by the support + * operator. + */ + public com.oracle.bmc.delegateaccesscontrol.model.ApproveDelegatedResourceAccessRequestDetails + getApproveDelegatedResourceAccessRequestDetails() { + return approveDelegatedResourceAccessRequestDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.delegateaccesscontrol.model.ApproveDelegatedResourceAccessRequestDetails + getBody$() { + return approveDelegatedResourceAccessRequestDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ApproveDelegatedResourceAccessRequestRequest, + com.oracle.bmc.delegateaccesscontrol.model + .ApproveDelegatedResourceAccessRequestDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Unique Delegated Resource Access Request identifier */ + private String delegatedResourceAccessRequestId = null; + + /** + * Unique Delegated Resource Access Request identifier + * + * @param delegatedResourceAccessRequestId the value to set + * @return this builder instance + */ + public Builder delegatedResourceAccessRequestId(String delegatedResourceAccessRequestId) { + this.delegatedResourceAccessRequestId = delegatedResourceAccessRequestId; + return this; + } + + /** + * Details regarding the approval of a Delegated Resource Access Request created by the + * support operator. + */ + private com.oracle.bmc.delegateaccesscontrol.model + .ApproveDelegatedResourceAccessRequestDetails + approveDelegatedResourceAccessRequestDetails = null; + + /** + * Details regarding the approval of a Delegated Resource Access Request created by the + * support operator. + * + * @param approveDelegatedResourceAccessRequestDetails the value to set + * @return this builder instance + */ + public Builder approveDelegatedResourceAccessRequestDetails( + com.oracle.bmc.delegateaccesscontrol.model + .ApproveDelegatedResourceAccessRequestDetails + approveDelegatedResourceAccessRequestDetails) { + this.approveDelegatedResourceAccessRequestDetails = + approveDelegatedResourceAccessRequestDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** 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(ApproveDelegatedResourceAccessRequestRequest o) { + delegatedResourceAccessRequestId(o.getDelegatedResourceAccessRequestId()); + approveDelegatedResourceAccessRequestDetails( + o.getApproveDelegatedResourceAccessRequestDetails()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ApproveDelegatedResourceAccessRequestRequest 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 ApproveDelegatedResourceAccessRequestRequest + */ + public ApproveDelegatedResourceAccessRequestRequest build() { + ApproveDelegatedResourceAccessRequestRequest 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.delegateaccesscontrol.model + .ApproveDelegatedResourceAccessRequestDetails + body) { + approveDelegatedResourceAccessRequestDetails(body); + return this; + } + + /** + * Build the instance of ApproveDelegatedResourceAccessRequestRequest 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 ApproveDelegatedResourceAccessRequestRequest + */ + public ApproveDelegatedResourceAccessRequestRequest buildWithoutInvocationCallback() { + ApproveDelegatedResourceAccessRequestRequest request = + new ApproveDelegatedResourceAccessRequestRequest(); + request.delegatedResourceAccessRequestId = delegatedResourceAccessRequestId; + request.approveDelegatedResourceAccessRequestDetails = + approveDelegatedResourceAccessRequestDetails; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new ApproveDelegatedResourceAccessRequestRequest(delegatedResourceAccessRequestId, + // approveDelegatedResourceAccessRequestDetails, opcRetryToken, 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() + .delegatedResourceAccessRequestId(delegatedResourceAccessRequestId) + .approveDelegatedResourceAccessRequestDetails( + approveDelegatedResourceAccessRequestDetails) + .opcRetryToken(opcRetryToken) + .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(",delegatedResourceAccessRequestId=") + .append(String.valueOf(this.delegatedResourceAccessRequestId)); + sb.append(",approveDelegatedResourceAccessRequestDetails=") + .append(String.valueOf(this.approveDelegatedResourceAccessRequestDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + 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 ApproveDelegatedResourceAccessRequestRequest)) { + return false; + } + + ApproveDelegatedResourceAccessRequestRequest other = + (ApproveDelegatedResourceAccessRequestRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.delegatedResourceAccessRequestId, + other.delegatedResourceAccessRequestId) + && java.util.Objects.equals( + this.approveDelegatedResourceAccessRequestDetails, + other.approveDelegatedResourceAccessRequestDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && 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.delegatedResourceAccessRequestId == null + ? 43 + : this.delegatedResourceAccessRequestId.hashCode()); + result = + (result * PRIME) + + (this.approveDelegatedResourceAccessRequestDetails == null + ? 43 + : this.approveDelegatedResourceAccessRequestDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ChangeDelegationControlCompartmentRequest.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ChangeDelegationControlCompartmentRequest.java new file mode 100644 index 00000000000..ef8f5ddc157 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ChangeDelegationControlCompartmentRequest.java @@ -0,0 +1,372 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.requests; + +import com.oracle.bmc.delegateaccesscontrol.model.*; +/** + * Example: Click here to see how to use + * ChangeDelegationControlCompartmentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class ChangeDelegationControlCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.delegateaccesscontrol.model + .ChangeDelegationControlCompartmentDetails> { + + /** unique Delegation Control identifier */ + private String delegationControlId; + + /** unique Delegation Control identifier */ + public String getDelegationControlId() { + return delegationControlId; + } + /** Moves the Delegation Control resource into a different compartment. */ + private com.oracle.bmc.delegateaccesscontrol.model.ChangeDelegationControlCompartmentDetails + changeDelegationControlCompartmentDetails; + + /** Moves the Delegation Control resource into a different compartment. */ + public com.oracle.bmc.delegateaccesscontrol.model.ChangeDelegationControlCompartmentDetails + getChangeDelegationControlCompartmentDetails() { + return changeDelegationControlCompartmentDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.delegateaccesscontrol.model.ChangeDelegationControlCompartmentDetails + getBody$() { + return changeDelegationControlCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeDelegationControlCompartmentRequest, + com.oracle.bmc.delegateaccesscontrol.model + .ChangeDelegationControlCompartmentDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Delegation Control identifier */ + private String delegationControlId = null; + + /** + * unique Delegation Control identifier + * + * @param delegationControlId the value to set + * @return this builder instance + */ + public Builder delegationControlId(String delegationControlId) { + this.delegationControlId = delegationControlId; + return this; + } + + /** Moves the Delegation Control resource into a different compartment. */ + private com.oracle.bmc.delegateaccesscontrol.model.ChangeDelegationControlCompartmentDetails + changeDelegationControlCompartmentDetails = null; + + /** + * Moves the Delegation Control resource into a different compartment. + * + * @param changeDelegationControlCompartmentDetails the value to set + * @return this builder instance + */ + public Builder changeDelegationControlCompartmentDetails( + com.oracle.bmc.delegateaccesscontrol.model.ChangeDelegationControlCompartmentDetails + changeDelegationControlCompartmentDetails) { + this.changeDelegationControlCompartmentDetails = + changeDelegationControlCompartmentDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** 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(ChangeDelegationControlCompartmentRequest o) { + delegationControlId(o.getDelegationControlId()); + changeDelegationControlCompartmentDetails( + o.getChangeDelegationControlCompartmentDetails()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeDelegationControlCompartmentRequest 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 ChangeDelegationControlCompartmentRequest + */ + public ChangeDelegationControlCompartmentRequest build() { + ChangeDelegationControlCompartmentRequest 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.delegateaccesscontrol.model.ChangeDelegationControlCompartmentDetails + body) { + changeDelegationControlCompartmentDetails(body); + return this; + } + + /** + * Build the instance of ChangeDelegationControlCompartmentRequest 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 ChangeDelegationControlCompartmentRequest + */ + public ChangeDelegationControlCompartmentRequest buildWithoutInvocationCallback() { + ChangeDelegationControlCompartmentRequest request = + new ChangeDelegationControlCompartmentRequest(); + request.delegationControlId = delegationControlId; + request.changeDelegationControlCompartmentDetails = + changeDelegationControlCompartmentDetails; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new ChangeDelegationControlCompartmentRequest(delegationControlId, + // changeDelegationControlCompartmentDetails, opcRetryToken, 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() + .delegationControlId(delegationControlId) + .changeDelegationControlCompartmentDetails( + changeDelegationControlCompartmentDetails) + .opcRetryToken(opcRetryToken) + .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(",delegationControlId=").append(String.valueOf(this.delegationControlId)); + sb.append(",changeDelegationControlCompartmentDetails=") + .append(String.valueOf(this.changeDelegationControlCompartmentDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + 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 ChangeDelegationControlCompartmentRequest)) { + return false; + } + + ChangeDelegationControlCompartmentRequest other = + (ChangeDelegationControlCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.delegationControlId, other.delegationControlId) + && java.util.Objects.equals( + this.changeDelegationControlCompartmentDetails, + other.changeDelegationControlCompartmentDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && 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.delegationControlId == null + ? 43 + : this.delegationControlId.hashCode()); + result = + (result * PRIME) + + (this.changeDelegationControlCompartmentDetails == null + ? 43 + : this.changeDelegationControlCompartmentDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ChangeDelegationSubscriptionCompartmentRequest.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ChangeDelegationSubscriptionCompartmentRequest.java new file mode 100644 index 00000000000..cd445c22aa9 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ChangeDelegationSubscriptionCompartmentRequest.java @@ -0,0 +1,380 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.requests; + +import com.oracle.bmc.delegateaccesscontrol.model.*; +/** + * Example: Click here to see how to use + * ChangeDelegationSubscriptionCompartmentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class ChangeDelegationSubscriptionCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.delegateaccesscontrol.model + .ChangeDelegationSubscriptionCompartmentDetails> { + + /** unique Delegation Subscription identifier */ + private String delegationSubscriptionId; + + /** unique Delegation Subscription identifier */ + public String getDelegationSubscriptionId() { + return delegationSubscriptionId; + } + /** Moves the Delegation Subscription resource into a different compartment. */ + private com.oracle.bmc.delegateaccesscontrol.model + .ChangeDelegationSubscriptionCompartmentDetails + changeDelegationSubscriptionCompartmentDetails; + + /** Moves the Delegation Subscription resource into a different compartment. */ + public com.oracle.bmc.delegateaccesscontrol.model.ChangeDelegationSubscriptionCompartmentDetails + getChangeDelegationSubscriptionCompartmentDetails() { + return changeDelegationSubscriptionCompartmentDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.delegateaccesscontrol.model.ChangeDelegationSubscriptionCompartmentDetails + getBody$() { + return changeDelegationSubscriptionCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeDelegationSubscriptionCompartmentRequest, + com.oracle.bmc.delegateaccesscontrol.model + .ChangeDelegationSubscriptionCompartmentDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Delegation Subscription identifier */ + private String delegationSubscriptionId = null; + + /** + * unique Delegation Subscription identifier + * + * @param delegationSubscriptionId the value to set + * @return this builder instance + */ + public Builder delegationSubscriptionId(String delegationSubscriptionId) { + this.delegationSubscriptionId = delegationSubscriptionId; + return this; + } + + /** Moves the Delegation Subscription resource into a different compartment. */ + private com.oracle.bmc.delegateaccesscontrol.model + .ChangeDelegationSubscriptionCompartmentDetails + changeDelegationSubscriptionCompartmentDetails = null; + + /** + * Moves the Delegation Subscription resource into a different compartment. + * + * @param changeDelegationSubscriptionCompartmentDetails the value to set + * @return this builder instance + */ + public Builder changeDelegationSubscriptionCompartmentDetails( + com.oracle.bmc.delegateaccesscontrol.model + .ChangeDelegationSubscriptionCompartmentDetails + changeDelegationSubscriptionCompartmentDetails) { + this.changeDelegationSubscriptionCompartmentDetails = + changeDelegationSubscriptionCompartmentDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** 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(ChangeDelegationSubscriptionCompartmentRequest o) { + delegationSubscriptionId(o.getDelegationSubscriptionId()); + changeDelegationSubscriptionCompartmentDetails( + o.getChangeDelegationSubscriptionCompartmentDetails()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeDelegationSubscriptionCompartmentRequest 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 ChangeDelegationSubscriptionCompartmentRequest + */ + public ChangeDelegationSubscriptionCompartmentRequest build() { + ChangeDelegationSubscriptionCompartmentRequest 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.delegateaccesscontrol.model + .ChangeDelegationSubscriptionCompartmentDetails + body) { + changeDelegationSubscriptionCompartmentDetails(body); + return this; + } + + /** + * Build the instance of ChangeDelegationSubscriptionCompartmentRequest 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 ChangeDelegationSubscriptionCompartmentRequest + */ + public ChangeDelegationSubscriptionCompartmentRequest buildWithoutInvocationCallback() { + ChangeDelegationSubscriptionCompartmentRequest request = + new ChangeDelegationSubscriptionCompartmentRequest(); + request.delegationSubscriptionId = delegationSubscriptionId; + request.changeDelegationSubscriptionCompartmentDetails = + changeDelegationSubscriptionCompartmentDetails; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new ChangeDelegationSubscriptionCompartmentRequest(delegationSubscriptionId, + // changeDelegationSubscriptionCompartmentDetails, opcRetryToken, 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() + .delegationSubscriptionId(delegationSubscriptionId) + .changeDelegationSubscriptionCompartmentDetails( + changeDelegationSubscriptionCompartmentDetails) + .opcRetryToken(opcRetryToken) + .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(",delegationSubscriptionId=") + .append(String.valueOf(this.delegationSubscriptionId)); + sb.append(",changeDelegationSubscriptionCompartmentDetails=") + .append(String.valueOf(this.changeDelegationSubscriptionCompartmentDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + 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 ChangeDelegationSubscriptionCompartmentRequest)) { + return false; + } + + ChangeDelegationSubscriptionCompartmentRequest other = + (ChangeDelegationSubscriptionCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.delegationSubscriptionId, other.delegationSubscriptionId) + && java.util.Objects.equals( + this.changeDelegationSubscriptionCompartmentDetails, + other.changeDelegationSubscriptionCompartmentDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && 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.delegationSubscriptionId == null + ? 43 + : this.delegationSubscriptionId.hashCode()); + result = + (result * PRIME) + + (this.changeDelegationSubscriptionCompartmentDetails == null + ? 43 + : this.changeDelegationSubscriptionCompartmentDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/CreateDelegationControlRequest.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/CreateDelegationControlRequest.java new file mode 100644 index 00000000000..81b7373fc37 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/CreateDelegationControlRequest.java @@ -0,0 +1,283 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.requests; + +import com.oracle.bmc.delegateaccesscontrol.model.*; +/** + * Example: Click here to see how to use + * CreateDelegationControlRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class CreateDelegationControlRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.delegateaccesscontrol.model.CreateDelegationControlDetails> { + + /** Details for the new Delegation Control. */ + private com.oracle.bmc.delegateaccesscontrol.model.CreateDelegationControlDetails + createDelegationControlDetails; + + /** Details for the new Delegation Control. */ + public com.oracle.bmc.delegateaccesscontrol.model.CreateDelegationControlDetails + getCreateDelegationControlDetails() { + return createDelegationControlDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.delegateaccesscontrol.model.CreateDelegationControlDetails getBody$() { + return createDelegationControlDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateDelegationControlRequest, + com.oracle.bmc.delegateaccesscontrol.model.CreateDelegationControlDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details for the new Delegation Control. */ + private com.oracle.bmc.delegateaccesscontrol.model.CreateDelegationControlDetails + createDelegationControlDetails = null; + + /** + * Details for the new Delegation Control. + * + * @param createDelegationControlDetails the value to set + * @return this builder instance + */ + public Builder createDelegationControlDetails( + com.oracle.bmc.delegateaccesscontrol.model.CreateDelegationControlDetails + createDelegationControlDetails) { + this.createDelegationControlDetails = createDelegationControlDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(CreateDelegationControlRequest o) { + createDelegationControlDetails(o.getCreateDelegationControlDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateDelegationControlRequest 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 CreateDelegationControlRequest + */ + public CreateDelegationControlRequest build() { + CreateDelegationControlRequest 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.delegateaccesscontrol.model.CreateDelegationControlDetails body) { + createDelegationControlDetails(body); + return this; + } + + /** + * Build the instance of CreateDelegationControlRequest 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 CreateDelegationControlRequest + */ + public CreateDelegationControlRequest buildWithoutInvocationCallback() { + CreateDelegationControlRequest request = new CreateDelegationControlRequest(); + request.createDelegationControlDetails = createDelegationControlDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateDelegationControlRequest(createDelegationControlDetails, 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() + .createDelegationControlDetails(createDelegationControlDetails) + .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(",createDelegationControlDetails=") + .append(String.valueOf(this.createDelegationControlDetails)); + 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 CreateDelegationControlRequest)) { + return false; + } + + CreateDelegationControlRequest other = (CreateDelegationControlRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createDelegationControlDetails, other.createDelegationControlDetails) + && 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.createDelegationControlDetails == null + ? 43 + : this.createDelegationControlDetails.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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/CreateDelegationSubscriptionRequest.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/CreateDelegationSubscriptionRequest.java new file mode 100644 index 00000000000..0566c6a64ec --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/CreateDelegationSubscriptionRequest.java @@ -0,0 +1,287 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.requests; + +import com.oracle.bmc.delegateaccesscontrol.model.*; +/** + * Example: Click here to see how to use + * CreateDelegationSubscriptionRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class CreateDelegationSubscriptionRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.delegateaccesscontrol.model.CreateDelegationSubscriptionDetails> { + + /** Details for creating Delegation Subscription in Delegation Control. */ + private com.oracle.bmc.delegateaccesscontrol.model.CreateDelegationSubscriptionDetails + createDelegationSubscriptionDetails; + + /** Details for creating Delegation Subscription in Delegation Control. */ + public com.oracle.bmc.delegateaccesscontrol.model.CreateDelegationSubscriptionDetails + getCreateDelegationSubscriptionDetails() { + return createDelegationSubscriptionDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.delegateaccesscontrol.model.CreateDelegationSubscriptionDetails + getBody$() { + return createDelegationSubscriptionDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateDelegationSubscriptionRequest, + com.oracle.bmc.delegateaccesscontrol.model + .CreateDelegationSubscriptionDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details for creating Delegation Subscription in Delegation Control. */ + private com.oracle.bmc.delegateaccesscontrol.model.CreateDelegationSubscriptionDetails + createDelegationSubscriptionDetails = null; + + /** + * Details for creating Delegation Subscription in Delegation Control. + * + * @param createDelegationSubscriptionDetails the value to set + * @return this builder instance + */ + public Builder createDelegationSubscriptionDetails( + com.oracle.bmc.delegateaccesscontrol.model.CreateDelegationSubscriptionDetails + createDelegationSubscriptionDetails) { + this.createDelegationSubscriptionDetails = createDelegationSubscriptionDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(CreateDelegationSubscriptionRequest o) { + createDelegationSubscriptionDetails(o.getCreateDelegationSubscriptionDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateDelegationSubscriptionRequest 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 CreateDelegationSubscriptionRequest + */ + public CreateDelegationSubscriptionRequest build() { + CreateDelegationSubscriptionRequest 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.delegateaccesscontrol.model.CreateDelegationSubscriptionDetails + body) { + createDelegationSubscriptionDetails(body); + return this; + } + + /** + * Build the instance of CreateDelegationSubscriptionRequest 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 CreateDelegationSubscriptionRequest + */ + public CreateDelegationSubscriptionRequest buildWithoutInvocationCallback() { + CreateDelegationSubscriptionRequest request = new CreateDelegationSubscriptionRequest(); + request.createDelegationSubscriptionDetails = createDelegationSubscriptionDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateDelegationSubscriptionRequest(createDelegationSubscriptionDetails, + // 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() + .createDelegationSubscriptionDetails(createDelegationSubscriptionDetails) + .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(",createDelegationSubscriptionDetails=") + .append(String.valueOf(this.createDelegationSubscriptionDetails)); + 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 CreateDelegationSubscriptionRequest)) { + return false; + } + + CreateDelegationSubscriptionRequest other = (CreateDelegationSubscriptionRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createDelegationSubscriptionDetails, + other.createDelegationSubscriptionDetails) + && 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.createDelegationSubscriptionDetails == null + ? 43 + : this.createDelegationSubscriptionDetails.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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/DeleteDelegationControlRequest.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/DeleteDelegationControlRequest.java new file mode 100644 index 00000000000..a9f3b3f74d0 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/DeleteDelegationControlRequest.java @@ -0,0 +1,271 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.requests; + +import com.oracle.bmc.delegateaccesscontrol.model.*; +/** + * Example: Click here to see how to use + * DeleteDelegationControlRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class DeleteDelegationControlRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** unique Delegation Control identifier */ + private String delegationControlId; + + /** unique Delegation Control identifier */ + public String getDelegationControlId() { + return delegationControlId; + } + /** Reason why this Delegation Control is deleted. */ + private String description; + + /** Reason why this Delegation Control is deleted. */ + public String getDescription() { + return description; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteDelegationControlRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Delegation Control identifier */ + private String delegationControlId = null; + + /** + * unique Delegation Control identifier + * + * @param delegationControlId the value to set + * @return this builder instance + */ + public Builder delegationControlId(String delegationControlId) { + this.delegationControlId = delegationControlId; + return this; + } + + /** Reason why this Delegation Control is deleted. */ + private String description = null; + + /** + * Reason why this Delegation Control is deleted. + * + * @param description the value to set + * @return this builder instance + */ + public Builder description(String description) { + this.description = description; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DeleteDelegationControlRequest o) { + delegationControlId(o.getDelegationControlId()); + description(o.getDescription()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteDelegationControlRequest 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 DeleteDelegationControlRequest + */ + public DeleteDelegationControlRequest build() { + DeleteDelegationControlRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteDelegationControlRequest 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 DeleteDelegationControlRequest + */ + public DeleteDelegationControlRequest buildWithoutInvocationCallback() { + DeleteDelegationControlRequest request = new DeleteDelegationControlRequest(); + request.delegationControlId = delegationControlId; + request.description = description; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteDelegationControlRequest(delegationControlId, description, 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() + .delegationControlId(delegationControlId) + .description(description) + .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(",delegationControlId=").append(String.valueOf(this.delegationControlId)); + sb.append(",description=").append(String.valueOf(this.description)); + 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 DeleteDelegationControlRequest)) { + return false; + } + + DeleteDelegationControlRequest other = (DeleteDelegationControlRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.delegationControlId, other.delegationControlId) + && java.util.Objects.equals(this.description, other.description) + && 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.delegationControlId == null + ? 43 + : this.delegationControlId.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/DeleteDelegationSubscriptionRequest.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/DeleteDelegationSubscriptionRequest.java new file mode 100644 index 00000000000..f7f481e0197 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/DeleteDelegationSubscriptionRequest.java @@ -0,0 +1,246 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.requests; + +import com.oracle.bmc.delegateaccesscontrol.model.*; +/** + * Example: Click here to see how to use + * DeleteDelegationSubscriptionRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class DeleteDelegationSubscriptionRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** unique Delegation Subscription identifier */ + private String delegationSubscriptionId; + + /** unique Delegation Subscription identifier */ + public String getDelegationSubscriptionId() { + return delegationSubscriptionId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteDelegationSubscriptionRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Delegation Subscription identifier */ + private String delegationSubscriptionId = null; + + /** + * unique Delegation Subscription identifier + * + * @param delegationSubscriptionId the value to set + * @return this builder instance + */ + public Builder delegationSubscriptionId(String delegationSubscriptionId) { + this.delegationSubscriptionId = delegationSubscriptionId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DeleteDelegationSubscriptionRequest o) { + delegationSubscriptionId(o.getDelegationSubscriptionId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteDelegationSubscriptionRequest 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 DeleteDelegationSubscriptionRequest + */ + public DeleteDelegationSubscriptionRequest build() { + DeleteDelegationSubscriptionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteDelegationSubscriptionRequest 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 DeleteDelegationSubscriptionRequest + */ + public DeleteDelegationSubscriptionRequest buildWithoutInvocationCallback() { + DeleteDelegationSubscriptionRequest request = new DeleteDelegationSubscriptionRequest(); + request.delegationSubscriptionId = delegationSubscriptionId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteDelegationSubscriptionRequest(delegationSubscriptionId, 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() + .delegationSubscriptionId(delegationSubscriptionId) + .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(",delegationSubscriptionId=") + .append(String.valueOf(this.delegationSubscriptionId)); + 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 DeleteDelegationSubscriptionRequest)) { + return false; + } + + DeleteDelegationSubscriptionRequest other = (DeleteDelegationSubscriptionRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.delegationSubscriptionId, other.delegationSubscriptionId) + && 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.delegationSubscriptionId == null + ? 43 + : this.delegationSubscriptionId.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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/GetDelegatedResourceAccessRequestAuditLogReportRequest.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/GetDelegatedResourceAccessRequestAuditLogReportRequest.java new file mode 100644 index 00000000000..8308e767313 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/GetDelegatedResourceAccessRequestAuditLogReportRequest.java @@ -0,0 +1,239 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.requests; + +import com.oracle.bmc.delegateaccesscontrol.model.*; +/** + * Example: Click here to see how to use + * GetDelegatedResourceAccessRequestAuditLogReportRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class GetDelegatedResourceAccessRequestAuditLogReportRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** Unique Delegated Resource Access Request identifier */ + private String delegatedResourceAccessRequestId; + + /** Unique Delegated Resource Access Request identifier */ + public String getDelegatedResourceAccessRequestId() { + return delegatedResourceAccessRequestId; + } + /** Set to true to enable process tree computation in audit report */ + private Boolean isProcessTreeEnabled; + + /** Set to true to enable process tree computation in audit report */ + public Boolean getIsProcessTreeEnabled() { + return isProcessTreeEnabled; + } + /** 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< + GetDelegatedResourceAccessRequestAuditLogReportRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Unique Delegated Resource Access Request identifier */ + private String delegatedResourceAccessRequestId = null; + + /** + * Unique Delegated Resource Access Request identifier + * + * @param delegatedResourceAccessRequestId the value to set + * @return this builder instance + */ + public Builder delegatedResourceAccessRequestId(String delegatedResourceAccessRequestId) { + this.delegatedResourceAccessRequestId = delegatedResourceAccessRequestId; + return this; + } + + /** Set to true to enable process tree computation in audit report */ + private Boolean isProcessTreeEnabled = null; + + /** + * Set to true to enable process tree computation in audit report + * + * @param isProcessTreeEnabled the value to set + * @return this builder instance + */ + public Builder isProcessTreeEnabled(Boolean isProcessTreeEnabled) { + this.isProcessTreeEnabled = isProcessTreeEnabled; + 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(GetDelegatedResourceAccessRequestAuditLogReportRequest o) { + delegatedResourceAccessRequestId(o.getDelegatedResourceAccessRequestId()); + isProcessTreeEnabled(o.getIsProcessTreeEnabled()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetDelegatedResourceAccessRequestAuditLogReportRequest 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 GetDelegatedResourceAccessRequestAuditLogReportRequest + */ + public GetDelegatedResourceAccessRequestAuditLogReportRequest build() { + GetDelegatedResourceAccessRequestAuditLogReportRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetDelegatedResourceAccessRequestAuditLogReportRequest 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 GetDelegatedResourceAccessRequestAuditLogReportRequest + */ + public GetDelegatedResourceAccessRequestAuditLogReportRequest + buildWithoutInvocationCallback() { + GetDelegatedResourceAccessRequestAuditLogReportRequest request = + new GetDelegatedResourceAccessRequestAuditLogReportRequest(); + request.delegatedResourceAccessRequestId = delegatedResourceAccessRequestId; + request.isProcessTreeEnabled = isProcessTreeEnabled; + request.opcRequestId = opcRequestId; + return request; + // new + // GetDelegatedResourceAccessRequestAuditLogReportRequest(delegatedResourceAccessRequestId, isProcessTreeEnabled, 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() + .delegatedResourceAccessRequestId(delegatedResourceAccessRequestId) + .isProcessTreeEnabled(isProcessTreeEnabled) + .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(",delegatedResourceAccessRequestId=") + .append(String.valueOf(this.delegatedResourceAccessRequestId)); + sb.append(",isProcessTreeEnabled=").append(String.valueOf(this.isProcessTreeEnabled)); + 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 GetDelegatedResourceAccessRequestAuditLogReportRequest)) { + return false; + } + + GetDelegatedResourceAccessRequestAuditLogReportRequest other = + (GetDelegatedResourceAccessRequestAuditLogReportRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.delegatedResourceAccessRequestId, + other.delegatedResourceAccessRequestId) + && java.util.Objects.equals(this.isProcessTreeEnabled, other.isProcessTreeEnabled) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.delegatedResourceAccessRequestId == null + ? 43 + : this.delegatedResourceAccessRequestId.hashCode()); + result = + (result * PRIME) + + (this.isProcessTreeEnabled == null + ? 43 + : this.isProcessTreeEnabled.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/GetDelegatedResourceAccessRequestRequest.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/GetDelegatedResourceAccessRequestRequest.java new file mode 100644 index 00000000000..838cbfe2963 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/GetDelegatedResourceAccessRequestRequest.java @@ -0,0 +1,206 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.requests; + +import com.oracle.bmc.delegateaccesscontrol.model.*; +/** + * Example: Click here to see how to use + * GetDelegatedResourceAccessRequestRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class GetDelegatedResourceAccessRequestRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** Unique Delegated Resource Access Request identifier */ + private String delegatedResourceAccessRequestId; + + /** Unique Delegated Resource Access Request identifier */ + public String getDelegatedResourceAccessRequestId() { + return delegatedResourceAccessRequestId; + } + /** 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< + GetDelegatedResourceAccessRequestRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Unique Delegated Resource Access Request identifier */ + private String delegatedResourceAccessRequestId = null; + + /** + * Unique Delegated Resource Access Request identifier + * + * @param delegatedResourceAccessRequestId the value to set + * @return this builder instance + */ + public Builder delegatedResourceAccessRequestId(String delegatedResourceAccessRequestId) { + this.delegatedResourceAccessRequestId = delegatedResourceAccessRequestId; + 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(GetDelegatedResourceAccessRequestRequest o) { + delegatedResourceAccessRequestId(o.getDelegatedResourceAccessRequestId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetDelegatedResourceAccessRequestRequest 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 GetDelegatedResourceAccessRequestRequest + */ + public GetDelegatedResourceAccessRequestRequest build() { + GetDelegatedResourceAccessRequestRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetDelegatedResourceAccessRequestRequest 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 GetDelegatedResourceAccessRequestRequest + */ + public GetDelegatedResourceAccessRequestRequest buildWithoutInvocationCallback() { + GetDelegatedResourceAccessRequestRequest request = + new GetDelegatedResourceAccessRequestRequest(); + request.delegatedResourceAccessRequestId = delegatedResourceAccessRequestId; + request.opcRequestId = opcRequestId; + return request; + // new GetDelegatedResourceAccessRequestRequest(delegatedResourceAccessRequestId, + // 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() + .delegatedResourceAccessRequestId(delegatedResourceAccessRequestId) + .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(",delegatedResourceAccessRequestId=") + .append(String.valueOf(this.delegatedResourceAccessRequestId)); + 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 GetDelegatedResourceAccessRequestRequest)) { + return false; + } + + GetDelegatedResourceAccessRequestRequest other = + (GetDelegatedResourceAccessRequestRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.delegatedResourceAccessRequestId, + other.delegatedResourceAccessRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.delegatedResourceAccessRequestId == null + ? 43 + : this.delegatedResourceAccessRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/GetDelegationControlRequest.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/GetDelegationControlRequest.java new file mode 100644 index 00000000000..c021c2e5f9a --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/GetDelegationControlRequest.java @@ -0,0 +1,195 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.requests; + +import com.oracle.bmc.delegateaccesscontrol.model.*; +/** + * Example: Click here to see how to use GetDelegationControlRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class GetDelegationControlRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** unique Delegation Control identifier */ + private String delegationControlId; + + /** unique Delegation Control identifier */ + public String getDelegationControlId() { + return delegationControlId; + } + /** 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< + GetDelegationControlRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Delegation Control identifier */ + private String delegationControlId = null; + + /** + * unique Delegation Control identifier + * + * @param delegationControlId the value to set + * @return this builder instance + */ + public Builder delegationControlId(String delegationControlId) { + this.delegationControlId = delegationControlId; + 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(GetDelegationControlRequest o) { + delegationControlId(o.getDelegationControlId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetDelegationControlRequest 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 GetDelegationControlRequest + */ + public GetDelegationControlRequest build() { + GetDelegationControlRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetDelegationControlRequest 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 GetDelegationControlRequest + */ + public GetDelegationControlRequest buildWithoutInvocationCallback() { + GetDelegationControlRequest request = new GetDelegationControlRequest(); + request.delegationControlId = delegationControlId; + request.opcRequestId = opcRequestId; + return request; + // new GetDelegationControlRequest(delegationControlId, 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().delegationControlId(delegationControlId).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(",delegationControlId=").append(String.valueOf(this.delegationControlId)); + 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 GetDelegationControlRequest)) { + return false; + } + + GetDelegationControlRequest other = (GetDelegationControlRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.delegationControlId, other.delegationControlId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.delegationControlId == null + ? 43 + : this.delegationControlId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/GetDelegationSubscriptionRequest.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/GetDelegationSubscriptionRequest.java new file mode 100644 index 00000000000..05591d0025d --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/GetDelegationSubscriptionRequest.java @@ -0,0 +1,200 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.requests; + +import com.oracle.bmc.delegateaccesscontrol.model.*; +/** + * Example: Click here to see how to use + * GetDelegationSubscriptionRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class GetDelegationSubscriptionRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** unique Delegation Subscription identifier */ + private String delegationSubscriptionId; + + /** unique Delegation Subscription identifier */ + public String getDelegationSubscriptionId() { + return delegationSubscriptionId; + } + /** 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< + GetDelegationSubscriptionRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Delegation Subscription identifier */ + private String delegationSubscriptionId = null; + + /** + * unique Delegation Subscription identifier + * + * @param delegationSubscriptionId the value to set + * @return this builder instance + */ + public Builder delegationSubscriptionId(String delegationSubscriptionId) { + this.delegationSubscriptionId = delegationSubscriptionId; + 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(GetDelegationSubscriptionRequest o) { + delegationSubscriptionId(o.getDelegationSubscriptionId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetDelegationSubscriptionRequest 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 GetDelegationSubscriptionRequest + */ + public GetDelegationSubscriptionRequest build() { + GetDelegationSubscriptionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetDelegationSubscriptionRequest 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 GetDelegationSubscriptionRequest + */ + public GetDelegationSubscriptionRequest buildWithoutInvocationCallback() { + GetDelegationSubscriptionRequest request = new GetDelegationSubscriptionRequest(); + request.delegationSubscriptionId = delegationSubscriptionId; + request.opcRequestId = opcRequestId; + return request; + // new GetDelegationSubscriptionRequest(delegationSubscriptionId, 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() + .delegationSubscriptionId(delegationSubscriptionId) + .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(",delegationSubscriptionId=") + .append(String.valueOf(this.delegationSubscriptionId)); + 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 GetDelegationSubscriptionRequest)) { + return false; + } + + GetDelegationSubscriptionRequest other = (GetDelegationSubscriptionRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.delegationSubscriptionId, other.delegationSubscriptionId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.delegationSubscriptionId == null + ? 43 + : this.delegationSubscriptionId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/GetServiceProviderActionRequest.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/GetServiceProviderActionRequest.java new file mode 100644 index 00000000000..3015d2a9870 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/GetServiceProviderActionRequest.java @@ -0,0 +1,199 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.requests; + +import com.oracle.bmc.delegateaccesscontrol.model.*; +/** + * Example: Click here to see how to use + * GetServiceProviderActionRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class GetServiceProviderActionRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** Unique Oracle supplied identifier associated with the Service Provider Action. */ + private String serviceProviderActionId; + + /** Unique Oracle supplied identifier associated with the Service Provider Action. */ + public String getServiceProviderActionId() { + return serviceProviderActionId; + } + /** 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< + GetServiceProviderActionRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Unique Oracle supplied identifier associated with the Service Provider Action. */ + private String serviceProviderActionId = null; + + /** + * Unique Oracle supplied identifier associated with the Service Provider Action. + * + * @param serviceProviderActionId the value to set + * @return this builder instance + */ + public Builder serviceProviderActionId(String serviceProviderActionId) { + this.serviceProviderActionId = serviceProviderActionId; + 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(GetServiceProviderActionRequest o) { + serviceProviderActionId(o.getServiceProviderActionId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetServiceProviderActionRequest 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 GetServiceProviderActionRequest + */ + public GetServiceProviderActionRequest build() { + GetServiceProviderActionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetServiceProviderActionRequest 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 GetServiceProviderActionRequest + */ + public GetServiceProviderActionRequest buildWithoutInvocationCallback() { + GetServiceProviderActionRequest request = new GetServiceProviderActionRequest(); + request.serviceProviderActionId = serviceProviderActionId; + request.opcRequestId = opcRequestId; + return request; + // new GetServiceProviderActionRequest(serviceProviderActionId, 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() + .serviceProviderActionId(serviceProviderActionId) + .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(",serviceProviderActionId=").append(String.valueOf(this.serviceProviderActionId)); + 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 GetServiceProviderActionRequest)) { + return false; + } + + GetServiceProviderActionRequest other = (GetServiceProviderActionRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.serviceProviderActionId, other.serviceProviderActionId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.serviceProviderActionId == null + ? 43 + : this.serviceProviderActionId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/GetServiceProviderRequest.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/GetServiceProviderRequest.java new file mode 100644 index 00000000000..b275b618291 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/GetServiceProviderRequest.java @@ -0,0 +1,192 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.requests; + +import com.oracle.bmc.delegateaccesscontrol.model.*; +/** + * Example: Click here to see how to use GetServiceProviderRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class GetServiceProviderRequest extends com.oracle.bmc.requests.BmcRequest { + + /** unique Service Provider identifier */ + private String serviceProviderId; + + /** unique Service Provider identifier */ + public String getServiceProviderId() { + return serviceProviderId; + } + /** 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< + GetServiceProviderRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Service Provider identifier */ + private String serviceProviderId = null; + + /** + * unique Service Provider identifier + * + * @param serviceProviderId the value to set + * @return this builder instance + */ + public Builder serviceProviderId(String serviceProviderId) { + this.serviceProviderId = serviceProviderId; + 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(GetServiceProviderRequest o) { + serviceProviderId(o.getServiceProviderId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetServiceProviderRequest 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 GetServiceProviderRequest + */ + public GetServiceProviderRequest build() { + GetServiceProviderRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetServiceProviderRequest 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 GetServiceProviderRequest + */ + public GetServiceProviderRequest buildWithoutInvocationCallback() { + GetServiceProviderRequest request = new GetServiceProviderRequest(); + request.serviceProviderId = serviceProviderId; + request.opcRequestId = opcRequestId; + return request; + // new GetServiceProviderRequest(serviceProviderId, 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().serviceProviderId(serviceProviderId).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(",serviceProviderId=").append(String.valueOf(this.serviceProviderId)); + 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 GetServiceProviderRequest)) { + return false; + } + + GetServiceProviderRequest other = (GetServiceProviderRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.serviceProviderId, other.serviceProviderId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.serviceProviderId == null ? 43 : this.serviceProviderId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/GetWorkRequestRequest.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/GetWorkRequestRequest.java new file mode 100644 index 00000000000..00bb3792484 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/GetWorkRequestRequest.java @@ -0,0 +1,192 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.requests; + +import com.oracle.bmc.delegateaccesscontrol.model.*; +/** + * Example: Click here to see how to use GetWorkRequestRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class GetWorkRequestRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The ID of the asynchronous request. */ + private String workRequestId; + + /** The ID of the asynchronous request. */ + public String getWorkRequestId() { + return workRequestId; + } + /** 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< + GetWorkRequestRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The ID of the asynchronous request. */ + private String workRequestId = null; + + /** + * The ID of the asynchronous request. + * + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + 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(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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListDelegatedResourceAccessRequestHistoriesRequest.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListDelegatedResourceAccessRequestHistoriesRequest.java new file mode 100644 index 00000000000..460d0433637 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListDelegatedResourceAccessRequestHistoriesRequest.java @@ -0,0 +1,372 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.requests; + +import com.oracle.bmc.delegateaccesscontrol.model.*; +/** + * Example: Click here to see how to use + * ListDelegatedResourceAccessRequestHistoriesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class ListDelegatedResourceAccessRequestHistoriesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** Unique Delegated Resource Access Request identifier */ + private String delegatedResourceAccessRequestId; + + /** Unique Delegated Resource Access Request identifier */ + public String getDelegatedResourceAccessRequestId() { + return delegatedResourceAccessRequestId; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * 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 sort order to use, either 'asc' or 'desc'. */ + private com.oracle.bmc.delegateaccesscontrol.model.SortOrders sortOrder; + + /** The sort order to use, either 'asc' or 'desc'. */ + public com.oracle.bmc.delegateaccesscontrol.model.SortOrders getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. If no value is specified, timestamp is default. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. If no value is specified, timestamp is default. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + Timestamp("timestamp"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. If no value is specified, timestamp is default. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListDelegatedResourceAccessRequestHistoriesRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Unique Delegated Resource Access Request identifier */ + private String delegatedResourceAccessRequestId = null; + + /** + * Unique Delegated Resource Access Request identifier + * + * @param delegatedResourceAccessRequestId the value to set + * @return this builder instance + */ + public Builder delegatedResourceAccessRequestId(String delegatedResourceAccessRequestId) { + this.delegatedResourceAccessRequestId = delegatedResourceAccessRequestId; + 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 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 sort order to use, either 'asc' or 'desc'. */ + private com.oracle.bmc.delegateaccesscontrol.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.delegateaccesscontrol.model.SortOrders sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. If no value is specified, timestamp is default. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. If no value is specified, timestamp is default. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListDelegatedResourceAccessRequestHistoriesRequest o) { + delegatedResourceAccessRequestId(o.getDelegatedResourceAccessRequestId()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListDelegatedResourceAccessRequestHistoriesRequest 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 ListDelegatedResourceAccessRequestHistoriesRequest + */ + public ListDelegatedResourceAccessRequestHistoriesRequest build() { + ListDelegatedResourceAccessRequestHistoriesRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListDelegatedResourceAccessRequestHistoriesRequest 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 ListDelegatedResourceAccessRequestHistoriesRequest + */ + public ListDelegatedResourceAccessRequestHistoriesRequest buildWithoutInvocationCallback() { + ListDelegatedResourceAccessRequestHistoriesRequest request = + new ListDelegatedResourceAccessRequestHistoriesRequest(); + request.delegatedResourceAccessRequestId = delegatedResourceAccessRequestId; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new + // ListDelegatedResourceAccessRequestHistoriesRequest(delegatedResourceAccessRequestId, + // limit, page, sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .delegatedResourceAccessRequestId(delegatedResourceAccessRequestId) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",delegatedResourceAccessRequestId=") + .append(String.valueOf(this.delegatedResourceAccessRequestId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDelegatedResourceAccessRequestHistoriesRequest)) { + return false; + } + + ListDelegatedResourceAccessRequestHistoriesRequest other = + (ListDelegatedResourceAccessRequestHistoriesRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.delegatedResourceAccessRequestId, + other.delegatedResourceAccessRequestId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.delegatedResourceAccessRequestId == null + ? 43 + : this.delegatedResourceAccessRequestId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListDelegatedResourceAccessRequestsRequest.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListDelegatedResourceAccessRequestsRequest.java new file mode 100644 index 00000000000..a7f4cb89958 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListDelegatedResourceAccessRequestsRequest.java @@ -0,0 +1,620 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.requests; + +import com.oracle.bmc.delegateaccesscontrol.model.*; +/** + * Example: Click here to see how to use + * ListDelegatedResourceAccessRequestsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class ListDelegatedResourceAccessRequestsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment. + */ + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment. + */ + public String getCompartmentId() { + return compartmentId; + } + /** unique Delegation Control identifier */ + private String delegationControlId; + + /** unique Delegation Control identifier */ + public String getDelegationControlId() { + return delegationControlId; + } + /** + * A filter to return only Delegated Resource Access Requests for the given resource identifier. + */ + private String resourceId; + + /** + * A filter to return only Delegated Resource Access Requests for the given resource identifier. + */ + public String getResourceId() { + return resourceId; + } + /** + * A filter to return only Delegated Resource Access Requests whose lifecycleState matches the + * given Delegated Resource Access Request lifecycleState. + */ + private com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequest.LifecycleState + lifecycleState; + + /** + * A filter to return only Delegated Resource Access Requests whose lifecycleState matches the + * given Delegated Resource Access Request lifecycleState. + */ + public com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequest.LifecycleState + getLifecycleState() { + return lifecycleState; + } + /** + * A filter to return only Delegated Resource Access Requests whose status matches the given + * Delegated Resource Access Request status. + */ + private com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequestStatus + requestStatus; + + /** + * A filter to return only Delegated Resource Access Requests whose status matches the given + * Delegated Resource Access Request status. + */ + public com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequestStatus + getRequestStatus() { + return requestStatus; + } + /** + * Query start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z + * (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd parameters cannot be used + * together. + */ + private java.util.Date timeStart; + + /** + * Query start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z + * (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd parameters cannot be used + * together. + */ + public java.util.Date getTimeStart() { + return timeStart; + } + /** + * Query end time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z + * (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd parameters cannot be used + * together. + */ + private java.util.Date timeEnd; + + /** + * Query end time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z + * (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd parameters cannot be used + * together. + */ + public java.util.Date getTimeEnd() { + return timeEnd; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * 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 sort order to use, either 'asc' or 'desc'. */ + private com.oracle.bmc.delegateaccesscontrol.model.SortOrders sortOrder; + + /** The sort order to use, either 'asc' or 'desc'. */ + public com.oracle.bmc.delegateaccesscontrol.model.SortOrders getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. If no value is specified, default is + * timeCreated. + */ + 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, default is + * timeCreated. + */ + 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, default is + * timeCreated. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListDelegatedResourceAccessRequestsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment. + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** unique Delegation Control identifier */ + private String delegationControlId = null; + + /** + * unique Delegation Control identifier + * + * @param delegationControlId the value to set + * @return this builder instance + */ + public Builder delegationControlId(String delegationControlId) { + this.delegationControlId = delegationControlId; + return this; + } + + /** + * A filter to return only Delegated Resource Access Requests for the given resource + * identifier. + */ + private String resourceId = null; + + /** + * A filter to return only Delegated Resource Access Requests for the given resource + * identifier. + * + * @param resourceId the value to set + * @return this builder instance + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** + * A filter to return only Delegated Resource Access Requests whose lifecycleState matches + * the given Delegated Resource Access Request lifecycleState. + */ + private com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequest + .LifecycleState + lifecycleState = null; + + /** + * A filter to return only Delegated Resource Access Requests whose lifecycleState matches + * the given Delegated Resource Access Request lifecycleState. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequest + .LifecycleState + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * A filter to return only Delegated Resource Access Requests whose status matches the given + * Delegated Resource Access Request status. + */ + private com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequestStatus + requestStatus = null; + + /** + * A filter to return only Delegated Resource Access Requests whose status matches the given + * Delegated Resource Access Request status. + * + * @param requestStatus the value to set + * @return this builder instance + */ + public Builder requestStatus( + com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequestStatus + requestStatus) { + this.requestStatus = requestStatus; + return this; + } + + /** + * Query start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z + * (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd parameters cannot be used + * together. + */ + private java.util.Date timeStart = null; + + /** + * Query start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z + * (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd parameters cannot be used + * together. + * + * @param timeStart the value to set + * @return this builder instance + */ + public Builder timeStart(java.util.Date timeStart) { + this.timeStart = timeStart; + return this; + } + + /** + * Query end time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z + * (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd parameters cannot be used + * together. + */ + private java.util.Date timeEnd = null; + + /** + * Query end time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z + * (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd parameters cannot be used + * together. + * + * @param timeEnd the value to set + * @return this builder instance + */ + public Builder timeEnd(java.util.Date timeEnd) { + this.timeEnd = timeEnd; + 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 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 sort order to use, either 'asc' or 'desc'. */ + private com.oracle.bmc.delegateaccesscontrol.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.delegateaccesscontrol.model.SortOrders sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. If no value is specified, + * default is timeCreated. + */ + 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, + * default is timeCreated. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListDelegatedResourceAccessRequestsRequest o) { + compartmentId(o.getCompartmentId()); + delegationControlId(o.getDelegationControlId()); + resourceId(o.getResourceId()); + lifecycleState(o.getLifecycleState()); + requestStatus(o.getRequestStatus()); + timeStart(o.getTimeStart()); + timeEnd(o.getTimeEnd()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListDelegatedResourceAccessRequestsRequest 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 ListDelegatedResourceAccessRequestsRequest + */ + public ListDelegatedResourceAccessRequestsRequest build() { + ListDelegatedResourceAccessRequestsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListDelegatedResourceAccessRequestsRequest 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 ListDelegatedResourceAccessRequestsRequest + */ + public ListDelegatedResourceAccessRequestsRequest buildWithoutInvocationCallback() { + ListDelegatedResourceAccessRequestsRequest request = + new ListDelegatedResourceAccessRequestsRequest(); + request.compartmentId = compartmentId; + request.delegationControlId = delegationControlId; + request.resourceId = resourceId; + request.lifecycleState = lifecycleState; + request.requestStatus = requestStatus; + request.timeStart = timeStart; + request.timeEnd = timeEnd; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListDelegatedResourceAccessRequestsRequest(compartmentId, delegationControlId, + // resourceId, lifecycleState, requestStatus, timeStart, timeEnd, limit, page, + // sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .delegationControlId(delegationControlId) + .resourceId(resourceId) + .lifecycleState(lifecycleState) + .requestStatus(requestStatus) + .timeStart(timeStart) + .timeEnd(timeEnd) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",delegationControlId=").append(String.valueOf(this.delegationControlId)); + sb.append(",resourceId=").append(String.valueOf(this.resourceId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",requestStatus=").append(String.valueOf(this.requestStatus)); + sb.append(",timeStart=").append(String.valueOf(this.timeStart)); + sb.append(",timeEnd=").append(String.valueOf(this.timeEnd)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDelegatedResourceAccessRequestsRequest)) { + return false; + } + + ListDelegatedResourceAccessRequestsRequest other = + (ListDelegatedResourceAccessRequestsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.delegationControlId, other.delegationControlId) + && java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.requestStatus, other.requestStatus) + && java.util.Objects.equals(this.timeStart, other.timeStart) + && java.util.Objects.equals(this.timeEnd, other.timeEnd) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.delegationControlId == null + ? 43 + : this.delegationControlId.hashCode()); + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.requestStatus == null ? 43 : this.requestStatus.hashCode()); + result = (result * PRIME) + (this.timeStart == null ? 43 : this.timeStart.hashCode()); + result = (result * PRIME) + (this.timeEnd == null ? 43 : this.timeEnd.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListDelegationControlResourcesRequest.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListDelegationControlResourcesRequest.java new file mode 100644 index 00000000000..397cd52b6f0 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListDelegationControlResourcesRequest.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.delegateaccesscontrol.requests; + +import com.oracle.bmc.delegateaccesscontrol.model.*; +/** + * Example: Click here to see how to use + * ListDelegationControlResourcesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class ListDelegationControlResourcesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** unique Delegation Control identifier */ + private String delegationControlId; + + /** unique Delegation Control identifier */ + public String getDelegationControlId() { + return delegationControlId; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * 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 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< + ListDelegationControlResourcesRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Delegation Control identifier */ + private String delegationControlId = null; + + /** + * unique Delegation Control identifier + * + * @param delegationControlId the value to set + * @return this builder instance + */ + public Builder delegationControlId(String delegationControlId) { + this.delegationControlId = delegationControlId; + 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 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 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(ListDelegationControlResourcesRequest o) { + delegationControlId(o.getDelegationControlId()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListDelegationControlResourcesRequest 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 ListDelegationControlResourcesRequest + */ + public ListDelegationControlResourcesRequest build() { + ListDelegationControlResourcesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListDelegationControlResourcesRequest 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 ListDelegationControlResourcesRequest + */ + public ListDelegationControlResourcesRequest buildWithoutInvocationCallback() { + ListDelegationControlResourcesRequest request = + new ListDelegationControlResourcesRequest(); + request.delegationControlId = delegationControlId; + request.limit = limit; + request.page = page; + request.opcRequestId = opcRequestId; + return request; + // new ListDelegationControlResourcesRequest(delegationControlId, 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() + .delegationControlId(delegationControlId) + .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(",delegationControlId=").append(String.valueOf(this.delegationControlId)); + 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 ListDelegationControlResourcesRequest)) { + return false; + } + + ListDelegationControlResourcesRequest other = (ListDelegationControlResourcesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.delegationControlId, other.delegationControlId) + && 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.delegationControlId == null + ? 43 + : this.delegationControlId.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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListDelegationControlsRequest.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListDelegationControlsRequest.java new file mode 100644 index 00000000000..8bf698cdb24 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListDelegationControlsRequest.java @@ -0,0 +1,506 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.requests; + +import com.oracle.bmc.delegateaccesscontrol.model.*; +/** + * Example: Click here to see how to use + * ListDelegationControlsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class ListDelegationControlsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment. + */ + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * A filter to return only Delegation Control resources whose lifecycleState matches the given + * Delegation Control lifecycle state. + */ + private com.oracle.bmc.delegateaccesscontrol.model.DelegationControl.LifecycleState + lifecycleState; + + /** + * A filter to return only Delegation Control resources whose lifecycleState matches the given + * Delegation Control lifecycle state. + */ + public com.oracle.bmc.delegateaccesscontrol.model.DelegationControl.LifecycleState + getLifecycleState() { + return lifecycleState; + } + /** A filter to return Delegation Control resources that match the given display name. */ + private String displayName; + + /** A filter to return Delegation Control resources that match the given display name. */ + public String getDisplayName() { + return displayName; + } + /** A filter to return only resources that match the given resource type. */ + private com.oracle.bmc.delegateaccesscontrol.model.DelegationControlResourceType resourceType; + + /** A filter to return only resources that match the given resource type. */ + public com.oracle.bmc.delegateaccesscontrol.model.DelegationControlResourceType + getResourceType() { + return resourceType; + } + /** A filter to return Delegation Control resources that match the given resource ID. */ + private String resourceId; + + /** A filter to return Delegation Control resources that match the given resource ID. */ + public String getResourceId() { + return resourceId; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * 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 sort order to use, either 'asc' or 'desc'. */ + private com.oracle.bmc.delegateaccesscontrol.model.SortOrders sortOrder; + + /** The sort order to use, either 'asc' or 'desc'. */ + public com.oracle.bmc.delegateaccesscontrol.model.SortOrders getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. If no value is specified, default is + * timeCreated. + */ + 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, default is + * timeCreated. + */ + 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, default is + * timeCreated. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListDelegationControlsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment. + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * A filter to return only Delegation Control resources whose lifecycleState matches the + * given Delegation Control lifecycle state. + */ + private com.oracle.bmc.delegateaccesscontrol.model.DelegationControl.LifecycleState + lifecycleState = null; + + /** + * A filter to return only Delegation Control resources whose lifecycleState matches the + * given Delegation Control lifecycle state. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.delegateaccesscontrol.model.DelegationControl.LifecycleState + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** A filter to return Delegation Control resources that match the given display name. */ + private String displayName = null; + + /** + * A filter to return Delegation Control resources that match the given display name. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** A filter to return only resources that match the given resource type. */ + private com.oracle.bmc.delegateaccesscontrol.model.DelegationControlResourceType + resourceType = null; + + /** + * A filter to return only resources that match the given resource type. + * + * @param resourceType the value to set + * @return this builder instance + */ + public Builder resourceType( + com.oracle.bmc.delegateaccesscontrol.model.DelegationControlResourceType + resourceType) { + this.resourceType = resourceType; + return this; + } + + /** A filter to return Delegation Control resources that match the given resource ID. */ + private String resourceId = null; + + /** + * A filter to return Delegation Control resources that match the given resource ID. + * + * @param resourceId the value to set + * @return this builder instance + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + 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 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 sort order to use, either 'asc' or 'desc'. */ + private com.oracle.bmc.delegateaccesscontrol.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.delegateaccesscontrol.model.SortOrders sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. If no value is specified, + * default is timeCreated. + */ + 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, + * default is timeCreated. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListDelegationControlsRequest o) { + compartmentId(o.getCompartmentId()); + lifecycleState(o.getLifecycleState()); + displayName(o.getDisplayName()); + resourceType(o.getResourceType()); + resourceId(o.getResourceId()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListDelegationControlsRequest 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 ListDelegationControlsRequest + */ + public ListDelegationControlsRequest build() { + ListDelegationControlsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListDelegationControlsRequest 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 ListDelegationControlsRequest + */ + public ListDelegationControlsRequest buildWithoutInvocationCallback() { + ListDelegationControlsRequest request = new ListDelegationControlsRequest(); + request.compartmentId = compartmentId; + request.lifecycleState = lifecycleState; + request.displayName = displayName; + request.resourceType = resourceType; + request.resourceId = resourceId; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListDelegationControlsRequest(compartmentId, lifecycleState, displayName, + // resourceType, resourceId, limit, page, sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .lifecycleState(lifecycleState) + .displayName(displayName) + .resourceType(resourceType) + .resourceId(resourceId) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",resourceType=").append(String.valueOf(this.resourceType)); + sb.append(",resourceId=").append(String.valueOf(this.resourceId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDelegationControlsRequest)) { + return false; + } + + ListDelegationControlsRequest other = (ListDelegationControlsRequest) 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.resourceType, other.resourceType) + && java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.resourceType == null ? 43 : this.resourceType.hashCode()); + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListDelegationSubscriptionsRequest.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListDelegationSubscriptionsRequest.java new file mode 100644 index 00000000000..0ab91b7a9f8 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListDelegationSubscriptionsRequest.java @@ -0,0 +1,450 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.requests; + +import com.oracle.bmc.delegateaccesscontrol.model.*; +/** + * Example: Click here to see how to use + * ListDelegationSubscriptionsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class ListDelegationSubscriptionsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment. + */ + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * A filter to return only Delegation Subscription resources whose lifecycleState matches the + * given Delegation Subscription lifecycle state. + */ + private com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscription.LifecycleState + lifecycleState; + + /** + * A filter to return only Delegation Subscription resources whose lifecycleState matches the + * given Delegation Subscription lifecycle state. + */ + public com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscription.LifecycleState + getLifecycleState() { + return lifecycleState; + } + /** A filter to return Delegation Subscription resources that match the given display name. */ + private String displayName; + + /** A filter to return Delegation Subscription resources that match the given display name. */ + public String getDisplayName() { + return displayName; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * 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 sort order to use, either 'asc' or 'desc'. */ + private com.oracle.bmc.delegateaccesscontrol.model.SortOrders sortOrder; + + /** The sort order to use, either 'asc' or 'desc'. */ + public com.oracle.bmc.delegateaccesscontrol.model.SortOrders getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. 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 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< + ListDelegationSubscriptionsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment. + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * A filter to return only Delegation Subscription resources whose lifecycleState matches + * the given Delegation Subscription lifecycle state. + */ + private com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscription.LifecycleState + lifecycleState = null; + + /** + * A filter to return only Delegation Subscription resources whose lifecycleState matches + * the given Delegation Subscription lifecycle state. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscription.LifecycleState + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * A filter to return Delegation Subscription resources that match the given display name. + */ + private String displayName = null; + + /** + * A filter to return Delegation Subscription resources that match the given display name. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + 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 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 sort order to use, either 'asc' or 'desc'. */ + private com.oracle.bmc.delegateaccesscontrol.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.delegateaccesscontrol.model.SortOrders sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. 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 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(ListDelegationSubscriptionsRequest o) { + compartmentId(o.getCompartmentId()); + lifecycleState(o.getLifecycleState()); + displayName(o.getDisplayName()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListDelegationSubscriptionsRequest 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 ListDelegationSubscriptionsRequest + */ + public ListDelegationSubscriptionsRequest build() { + ListDelegationSubscriptionsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListDelegationSubscriptionsRequest 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 ListDelegationSubscriptionsRequest + */ + public ListDelegationSubscriptionsRequest buildWithoutInvocationCallback() { + ListDelegationSubscriptionsRequest request = new ListDelegationSubscriptionsRequest(); + request.compartmentId = compartmentId; + request.lifecycleState = lifecycleState; + request.displayName = displayName; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListDelegationSubscriptionsRequest(compartmentId, lifecycleState, displayName, + // limit, page, sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .lifecycleState(lifecycleState) + .displayName(displayName) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDelegationSubscriptionsRequest)) { + return false; + } + + ListDelegationSubscriptionsRequest other = (ListDelegationSubscriptionsRequest) 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.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListServiceProviderActionsRequest.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListServiceProviderActionsRequest.java new file mode 100644 index 00000000000..83cb099b5b2 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListServiceProviderActionsRequest.java @@ -0,0 +1,532 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.requests; + +import com.oracle.bmc.delegateaccesscontrol.model.*; +/** + * Example: Click here to see how to use + * ListServiceProviderActionsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class ListServiceProviderActionsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment. + */ + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment. + */ + public String getCompartmentId() { + return compartmentId; + } + /** A filter to return only resources that match the entire name given. */ + private String name; + + /** A filter to return only resources that match the entire name given. */ + public String getName() { + return name; + } + /** A filter to return only resources that match the given resource type. */ + private com.oracle.bmc.delegateaccesscontrol.model.DelegationControlResourceType resourceType; + + /** A filter to return only resources that match the given resource type. */ + public com.oracle.bmc.delegateaccesscontrol.model.DelegationControlResourceType + getResourceType() { + return resourceType; + } + /** A filter to return only resources that match the given Service Provider service type. */ + private java.util.List + serviceProviderServiceType; + + /** A filter to return only resources that match the given Service Provider service type. */ + public java.util.List + getServiceProviderServiceType() { + return serviceProviderServiceType; + } + /** + * A filter to return only resources whose lifecycleState matches the given Service Provider + * Action lifecycleState. + */ + private com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderAction.LifecycleState + lifecycleState; + + /** + * A filter to return only resources whose lifecycleState matches the given Service Provider + * Action lifecycleState. + */ + public com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderAction.LifecycleState + getLifecycleState() { + return lifecycleState; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * 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 sort order to use, either 'asc' or 'desc'. */ + private com.oracle.bmc.delegateaccesscontrol.model.SortOrders sortOrder; + + /** The sort order to use, either 'asc' or 'desc'. */ + public com.oracle.bmc.delegateaccesscontrol.model.SortOrders getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for name is ascending. If no value is specified, default is + * timeCreated. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for name is ascending. If no value is specified, default is + * timeCreated. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + Name("name"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for name is ascending. If no value is specified, default is + * timeCreated. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListServiceProviderActionsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment. + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** A filter to return only resources that match the entire name given. */ + private String name = null; + + /** + * A filter to return only resources that match the entire name given. + * + * @param name the value to set + * @return this builder instance + */ + public Builder name(String name) { + this.name = name; + return this; + } + + /** A filter to return only resources that match the given resource type. */ + private com.oracle.bmc.delegateaccesscontrol.model.DelegationControlResourceType + resourceType = null; + + /** + * A filter to return only resources that match the given resource type. + * + * @param resourceType the value to set + * @return this builder instance + */ + public Builder resourceType( + com.oracle.bmc.delegateaccesscontrol.model.DelegationControlResourceType + resourceType) { + this.resourceType = resourceType; + return this; + } + + /** A filter to return only resources that match the given Service Provider service type. */ + private java.util.List< + com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderServiceType> + serviceProviderServiceType = null; + + /** + * A filter to return only resources that match the given Service Provider service type. + * + * @param serviceProviderServiceType the value to set + * @return this builder instance + */ + public Builder serviceProviderServiceType( + java.util.List< + com.oracle.bmc.delegateaccesscontrol.model + .ServiceProviderServiceType> + serviceProviderServiceType) { + this.serviceProviderServiceType = serviceProviderServiceType; + return this; + } + + /** + * Singular setter. A filter to return only resources that match the given Service Provider + * service type. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder serviceProviderServiceType(ServiceProviderServiceType singularValue) { + return this.serviceProviderServiceType(java.util.Arrays.asList(singularValue)); + } + + /** + * A filter to return only resources whose lifecycleState matches the given Service Provider + * Action lifecycleState. + */ + private com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderAction.LifecycleState + lifecycleState = null; + + /** + * A filter to return only resources whose lifecycleState matches the given Service Provider + * Action lifecycleState. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderAction.LifecycleState + lifecycleState) { + this.lifecycleState = lifecycleState; + 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 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 sort order to use, either 'asc' or 'desc'. */ + private com.oracle.bmc.delegateaccesscontrol.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.delegateaccesscontrol.model.SortOrders sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for name is ascending. If no value is specified, default is + * timeCreated. + */ + 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 name is ascending. If no value is specified, default is + * timeCreated. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListServiceProviderActionsRequest o) { + compartmentId(o.getCompartmentId()); + name(o.getName()); + resourceType(o.getResourceType()); + serviceProviderServiceType(o.getServiceProviderServiceType()); + lifecycleState(o.getLifecycleState()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListServiceProviderActionsRequest 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 ListServiceProviderActionsRequest + */ + public ListServiceProviderActionsRequest build() { + ListServiceProviderActionsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListServiceProviderActionsRequest 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 ListServiceProviderActionsRequest + */ + public ListServiceProviderActionsRequest buildWithoutInvocationCallback() { + ListServiceProviderActionsRequest request = new ListServiceProviderActionsRequest(); + request.compartmentId = compartmentId; + request.name = name; + request.resourceType = resourceType; + request.serviceProviderServiceType = serviceProviderServiceType; + request.lifecycleState = lifecycleState; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListServiceProviderActionsRequest(compartmentId, name, resourceType, + // serviceProviderServiceType, lifecycleState, limit, page, sortOrder, sortBy, + // opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .name(name) + .resourceType(resourceType) + .serviceProviderServiceType(serviceProviderServiceType) + .lifecycleState(lifecycleState) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",name=").append(String.valueOf(this.name)); + sb.append(",resourceType=").append(String.valueOf(this.resourceType)); + sb.append(",serviceProviderServiceType=") + .append(String.valueOf(this.serviceProviderServiceType)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListServiceProviderActionsRequest)) { + return false; + } + + ListServiceProviderActionsRequest other = (ListServiceProviderActionsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.resourceType, other.resourceType) + && java.util.Objects.equals( + this.serviceProviderServiceType, other.serviceProviderServiceType) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.resourceType == null ? 43 : this.resourceType.hashCode()); + result = + (result * PRIME) + + (this.serviceProviderServiceType == null + ? 43 + : this.serviceProviderServiceType.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListServiceProviderInteractionsRequest.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListServiceProviderInteractionsRequest.java new file mode 100644 index 00000000000..e8ca3dcb4d5 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListServiceProviderInteractionsRequest.java @@ -0,0 +1,269 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.requests; + +import com.oracle.bmc.delegateaccesscontrol.model.*; +/** + * Example: Click here to see how to use + * ListServiceProviderInteractionsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class ListServiceProviderInteractionsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** Unique Delegated Resource Access Request identifier */ + private String delegatedResourceAccessRequestId; + + /** Unique Delegated Resource Access Request identifier */ + public String getDelegatedResourceAccessRequestId() { + return delegatedResourceAccessRequestId; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * 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 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< + ListServiceProviderInteractionsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Unique Delegated Resource Access Request identifier */ + private String delegatedResourceAccessRequestId = null; + + /** + * Unique Delegated Resource Access Request identifier + * + * @param delegatedResourceAccessRequestId the value to set + * @return this builder instance + */ + public Builder delegatedResourceAccessRequestId(String delegatedResourceAccessRequestId) { + this.delegatedResourceAccessRequestId = delegatedResourceAccessRequestId; + 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 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 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(ListServiceProviderInteractionsRequest o) { + delegatedResourceAccessRequestId(o.getDelegatedResourceAccessRequestId()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListServiceProviderInteractionsRequest 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 ListServiceProviderInteractionsRequest + */ + public ListServiceProviderInteractionsRequest build() { + ListServiceProviderInteractionsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListServiceProviderInteractionsRequest 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 ListServiceProviderInteractionsRequest + */ + public ListServiceProviderInteractionsRequest buildWithoutInvocationCallback() { + ListServiceProviderInteractionsRequest request = + new ListServiceProviderInteractionsRequest(); + request.delegatedResourceAccessRequestId = delegatedResourceAccessRequestId; + request.limit = limit; + request.page = page; + request.opcRequestId = opcRequestId; + return request; + // new ListServiceProviderInteractionsRequest(delegatedResourceAccessRequestId, 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() + .delegatedResourceAccessRequestId(delegatedResourceAccessRequestId) + .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(",delegatedResourceAccessRequestId=") + .append(String.valueOf(this.delegatedResourceAccessRequestId)); + 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 ListServiceProviderInteractionsRequest)) { + return false; + } + + ListServiceProviderInteractionsRequest other = (ListServiceProviderInteractionsRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.delegatedResourceAccessRequestId, + other.delegatedResourceAccessRequestId) + && 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.delegatedResourceAccessRequestId == null + ? 43 + : this.delegatedResourceAccessRequestId.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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListServiceProvidersRequest.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListServiceProvidersRequest.java new file mode 100644 index 00000000000..003be31c6ab --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListServiceProvidersRequest.java @@ -0,0 +1,540 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.requests; + +import com.oracle.bmc.delegateaccesscontrol.model.*; +/** + * Example: Click here to see how to use ListServiceProvidersRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class ListServiceProvidersRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment. + */ + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * A filter to return only Service Provider resources whose lifecycleState matches the given + * Service Provider lifecycle state. + */ + private com.oracle.bmc.delegateaccesscontrol.model.ServiceProvider.LifecycleState + lifecycleState; + + /** + * A filter to return only Service Provider resources whose lifecycleState matches the given + * Service Provider lifecycle state. + */ + public com.oracle.bmc.delegateaccesscontrol.model.ServiceProvider.LifecycleState + getLifecycleState() { + return lifecycleState; + } + /** A filter to return Service Provider resources that match the given name. */ + private String name; + + /** A filter to return Service Provider resources that match the given name. */ + public String getName() { + return name; + } + /** + * A filter to return only Service Provider resources whose supported resource type matches the + * given resource type. + */ + private com.oracle.bmc.delegateaccesscontrol.model.DelegationControlResourceType + supportedResourceType; + + /** + * A filter to return only Service Provider resources whose supported resource type matches the + * given resource type. + */ + public com.oracle.bmc.delegateaccesscontrol.model.DelegationControlResourceType + getSupportedResourceType() { + return supportedResourceType; + } + /** + * A filter to return only Service Provider resources whose provider type matches the given + * provider type. + */ + private com.oracle.bmc.delegateaccesscontrol.model.ServiceProvider.ServiceProviderType + serviceProviderType; + + /** + * A filter to return only Service Provider resources whose provider type matches the given + * provider type. + */ + public com.oracle.bmc.delegateaccesscontrol.model.ServiceProvider.ServiceProviderType + getServiceProviderType() { + return serviceProviderType; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * 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 sort order to use, either 'asc' or 'desc'. */ + private com.oracle.bmc.delegateaccesscontrol.model.SortOrders sortOrder; + + /** The sort order to use, either 'asc' or 'desc'. */ + public com.oracle.bmc.delegateaccesscontrol.model.SortOrders getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for name 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 name 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 name is ascending. If no value is specified, timeCreated is + * default. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListServiceProvidersRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment. + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * A filter to return only Service Provider resources whose lifecycleState matches the given + * Service Provider lifecycle state. + */ + private com.oracle.bmc.delegateaccesscontrol.model.ServiceProvider.LifecycleState + lifecycleState = null; + + /** + * A filter to return only Service Provider resources whose lifecycleState matches the given + * Service Provider lifecycle state. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.delegateaccesscontrol.model.ServiceProvider.LifecycleState + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** A filter to return Service Provider resources that match the given name. */ + private String name = null; + + /** + * A filter to return Service Provider resources that match the given name. + * + * @param name the value to set + * @return this builder instance + */ + public Builder name(String name) { + this.name = name; + return this; + } + + /** + * A filter to return only Service Provider resources whose supported resource type matches + * the given resource type. + */ + private com.oracle.bmc.delegateaccesscontrol.model.DelegationControlResourceType + supportedResourceType = null; + + /** + * A filter to return only Service Provider resources whose supported resource type matches + * the given resource type. + * + * @param supportedResourceType the value to set + * @return this builder instance + */ + public Builder supportedResourceType( + com.oracle.bmc.delegateaccesscontrol.model.DelegationControlResourceType + supportedResourceType) { + this.supportedResourceType = supportedResourceType; + return this; + } + + /** + * A filter to return only Service Provider resources whose provider type matches the given + * provider type. + */ + private com.oracle.bmc.delegateaccesscontrol.model.ServiceProvider.ServiceProviderType + serviceProviderType = null; + + /** + * A filter to return only Service Provider resources whose provider type matches the given + * provider type. + * + * @param serviceProviderType the value to set + * @return this builder instance + */ + public Builder serviceProviderType( + com.oracle.bmc.delegateaccesscontrol.model.ServiceProvider.ServiceProviderType + serviceProviderType) { + this.serviceProviderType = serviceProviderType; + 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 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 sort order to use, either 'asc' or 'desc'. */ + private com.oracle.bmc.delegateaccesscontrol.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.delegateaccesscontrol.model.SortOrders sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for name 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 name 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 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(ListServiceProvidersRequest o) { + compartmentId(o.getCompartmentId()); + lifecycleState(o.getLifecycleState()); + name(o.getName()); + supportedResourceType(o.getSupportedResourceType()); + serviceProviderType(o.getServiceProviderType()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListServiceProvidersRequest 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 ListServiceProvidersRequest + */ + public ListServiceProvidersRequest build() { + ListServiceProvidersRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListServiceProvidersRequest 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 ListServiceProvidersRequest + */ + public ListServiceProvidersRequest buildWithoutInvocationCallback() { + ListServiceProvidersRequest request = new ListServiceProvidersRequest(); + request.compartmentId = compartmentId; + request.lifecycleState = lifecycleState; + request.name = name; + request.supportedResourceType = supportedResourceType; + request.serviceProviderType = serviceProviderType; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListServiceProvidersRequest(compartmentId, lifecycleState, name, + // supportedResourceType, serviceProviderType, limit, page, sortOrder, sortBy, + // opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .lifecycleState(lifecycleState) + .name(name) + .supportedResourceType(supportedResourceType) + .serviceProviderType(serviceProviderType) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",name=").append(String.valueOf(this.name)); + sb.append(",supportedResourceType=").append(String.valueOf(this.supportedResourceType)); + sb.append(",serviceProviderType=").append(String.valueOf(this.serviceProviderType)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListServiceProvidersRequest)) { + return false; + } + + ListServiceProvidersRequest other = (ListServiceProvidersRequest) 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.name, other.name) + && java.util.Objects.equals(this.supportedResourceType, other.supportedResourceType) + && java.util.Objects.equals(this.serviceProviderType, other.serviceProviderType) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.supportedResourceType == null + ? 43 + : this.supportedResourceType.hashCode()); + result = + (result * PRIME) + + (this.serviceProviderType == null + ? 43 + : this.serviceProviderType.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListWorkRequestErrorsRequest.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListWorkRequestErrorsRequest.java new file mode 100644 index 00000000000..ad31cba53f9 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListWorkRequestErrorsRequest.java @@ -0,0 +1,361 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.requests; + +import com.oracle.bmc.delegateaccesscontrol.model.*; +/** + * Example: Click here to see how to use + * ListWorkRequestErrorsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class ListWorkRequestErrorsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The ID of the asynchronous request. */ + private String workRequestId; + + /** The ID of the asynchronous request. */ + public String getWorkRequestId() { + return workRequestId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * 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 timestamp is + * descending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + Timestamp("timestamp"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either 'asc' or 'desc'. */ + private com.oracle.bmc.delegateaccesscontrol.model.SortOrders sortOrder; + + /** The sort order to use, either 'asc' or 'desc'. */ + public com.oracle.bmc.delegateaccesscontrol.model.SortOrders getSortOrder() { + return sortOrder; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListWorkRequestErrorsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The ID of the asynchronous request. */ + private String workRequestId = null; + + /** + * The ID of the asynchronous request. + * + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + 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 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 timestamp is + * descending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The sort order to use, either 'asc' or 'desc'. */ + private com.oracle.bmc.delegateaccesscontrol.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.delegateaccesscontrol.model.SortOrders sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListWorkRequestLogsRequest.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListWorkRequestLogsRequest.java new file mode 100644 index 00000000000..a192c1cde3f --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListWorkRequestLogsRequest.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.delegateaccesscontrol.requests; + +import com.oracle.bmc.delegateaccesscontrol.model.*; +/** + * Example: Click here to see how to use ListWorkRequestLogsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class ListWorkRequestLogsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The ID of the asynchronous request. */ + private String workRequestId; + + /** The ID of the asynchronous request. */ + public String getWorkRequestId() { + return workRequestId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * 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 timestamp is + * descending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + Timestamp("timestamp"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either 'asc' or 'desc'. */ + private com.oracle.bmc.delegateaccesscontrol.model.SortOrders sortOrder; + + /** The sort order to use, either 'asc' or 'desc'. */ + public com.oracle.bmc.delegateaccesscontrol.model.SortOrders getSortOrder() { + return sortOrder; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListWorkRequestLogsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The ID of the asynchronous request. */ + private String workRequestId = null; + + /** + * The ID of the asynchronous request. + * + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + 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 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 timestamp is + * descending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The sort order to use, either 'asc' or 'desc'. */ + private com.oracle.bmc.delegateaccesscontrol.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.delegateaccesscontrol.model.SortOrders sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListWorkRequestsRequest.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListWorkRequestsRequest.java new file mode 100644 index 00000000000..9e424c496b7 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ListWorkRequestsRequest.java @@ -0,0 +1,452 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.requests; + +import com.oracle.bmc.delegateaccesscontrol.model.*; +/** + * Example: Click here to see how to use ListWorkRequestsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class ListWorkRequestsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment. + */ + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment. + */ + public String getCompartmentId() { + return compartmentId; + } + /** The ID of the asynchronous work request. */ + private String workRequestId; + + /** The ID of the asynchronous work request. */ + public String getWorkRequestId() { + return workRequestId; + } + /** A filter to return only work requests with the given OperationStatus. */ + private com.oracle.bmc.delegateaccesscontrol.model.OperationStatus status; + + /** A filter to return only work requests with the given OperationStatus. */ + public com.oracle.bmc.delegateaccesscontrol.model.OperationStatus getStatus() { + return status; + } + /** The ID of the resource affected by the work request. */ + private String resourceId; + + /** The ID of the resource affected by the work request. */ + public String getResourceId() { + return resourceId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * 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 sort order to use, either 'asc' or 'desc'. */ + private com.oracle.bmc.delegateaccesscontrol.model.SortOrders sortOrder; + + /** The sort order to use, either 'asc' or 'desc'. */ + public com.oracle.bmc.delegateaccesscontrol.model.SortOrders getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeAccepted is + * descending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeAccepted is + * descending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeAccepted("timeAccepted"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeAccepted is + * descending. + */ + public SortBy getSortBy() { + return sortBy; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListWorkRequestsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment. + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** The ID of the asynchronous work request. */ + private String workRequestId = null; + + /** + * The ID of the asynchronous work request. + * + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** A filter to return only work requests with the given OperationStatus. */ + private com.oracle.bmc.delegateaccesscontrol.model.OperationStatus status = null; + + /** + * A filter to return only work requests with the given OperationStatus. + * + * @param status the value to set + * @return this builder instance + */ + public Builder status(com.oracle.bmc.delegateaccesscontrol.model.OperationStatus status) { + this.status = status; + return this; + } + + /** The ID of the resource affected by the work request. */ + private String resourceId = null; + + /** + * The ID 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; + } + + /** 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 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 sort order to use, either 'asc' or 'desc'. */ + private com.oracle.bmc.delegateaccesscontrol.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.delegateaccesscontrol.model.SortOrders sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeAccepted + * is descending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeAccepted + * is descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListWorkRequestsRequest o) { + compartmentId(o.getCompartmentId()); + workRequestId(o.getWorkRequestId()); + status(o.getStatus()); + resourceId(o.getResourceId()); + opcRequestId(o.getOpcRequestId()); + page(o.getPage()); + limit(o.getLimit()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListWorkRequestsRequest as configured by this builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListWorkRequestsRequest + */ + public ListWorkRequestsRequest buildWithoutInvocationCallback() { + ListWorkRequestsRequest request = new ListWorkRequestsRequest(); + request.compartmentId = compartmentId; + request.workRequestId = workRequestId; + request.status = status; + request.resourceId = resourceId; + request.opcRequestId = opcRequestId; + request.page = page; + request.limit = limit; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + return request; + // new ListWorkRequestsRequest(compartmentId, workRequestId, status, resourceId, + // opcRequestId, page, limit, sortOrder, sortBy); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .workRequestId(workRequestId) + .status(status) + .resourceId(resourceId) + .opcRequestId(opcRequestId) + .page(page) + .limit(limit) + .sortOrder(sortOrder) + .sortBy(sortBy); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(",status=").append(String.valueOf(this.status)); + sb.append(",resourceId=").append(String.valueOf(this.resourceId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestsRequest)) { + return false; + } + + ListWorkRequestsRequest other = (ListWorkRequestsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/RejectDelegatedResourceAccessRequestRequest.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/RejectDelegatedResourceAccessRequestRequest.java new file mode 100644 index 00000000000..c7b67fdce54 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/RejectDelegatedResourceAccessRequestRequest.java @@ -0,0 +1,388 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.requests; + +import com.oracle.bmc.delegateaccesscontrol.model.*; +/** + * Example: Click here to see how to use + * RejectDelegatedResourceAccessRequestRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class RejectDelegatedResourceAccessRequestRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.delegateaccesscontrol.model + .RejectDelegatedResourceAccessRequestDetails> { + + /** Unique Delegated Resource Access Request identifier */ + private String delegatedResourceAccessRequestId; + + /** Unique Delegated Resource Access Request identifier */ + public String getDelegatedResourceAccessRequestId() { + return delegatedResourceAccessRequestId; + } + /** + * Details regarding the rejection of a Delegated Resource Access Request created by the support + * operator. + */ + private com.oracle.bmc.delegateaccesscontrol.model.RejectDelegatedResourceAccessRequestDetails + rejectDelegatedResourceAccessRequestDetails; + + /** + * Details regarding the rejection of a Delegated Resource Access Request created by the support + * operator. + */ + public com.oracle.bmc.delegateaccesscontrol.model.RejectDelegatedResourceAccessRequestDetails + getRejectDelegatedResourceAccessRequestDetails() { + return rejectDelegatedResourceAccessRequestDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.delegateaccesscontrol.model.RejectDelegatedResourceAccessRequestDetails + getBody$() { + return rejectDelegatedResourceAccessRequestDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RejectDelegatedResourceAccessRequestRequest, + com.oracle.bmc.delegateaccesscontrol.model + .RejectDelegatedResourceAccessRequestDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Unique Delegated Resource Access Request identifier */ + private String delegatedResourceAccessRequestId = null; + + /** + * Unique Delegated Resource Access Request identifier + * + * @param delegatedResourceAccessRequestId the value to set + * @return this builder instance + */ + public Builder delegatedResourceAccessRequestId(String delegatedResourceAccessRequestId) { + this.delegatedResourceAccessRequestId = delegatedResourceAccessRequestId; + return this; + } + + /** + * Details regarding the rejection of a Delegated Resource Access Request created by the + * support operator. + */ + private com.oracle.bmc.delegateaccesscontrol.model + .RejectDelegatedResourceAccessRequestDetails + rejectDelegatedResourceAccessRequestDetails = null; + + /** + * Details regarding the rejection of a Delegated Resource Access Request created by the + * support operator. + * + * @param rejectDelegatedResourceAccessRequestDetails the value to set + * @return this builder instance + */ + public Builder rejectDelegatedResourceAccessRequestDetails( + com.oracle.bmc.delegateaccesscontrol.model + .RejectDelegatedResourceAccessRequestDetails + rejectDelegatedResourceAccessRequestDetails) { + this.rejectDelegatedResourceAccessRequestDetails = + rejectDelegatedResourceAccessRequestDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** 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(RejectDelegatedResourceAccessRequestRequest o) { + delegatedResourceAccessRequestId(o.getDelegatedResourceAccessRequestId()); + rejectDelegatedResourceAccessRequestDetails( + o.getRejectDelegatedResourceAccessRequestDetails()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RejectDelegatedResourceAccessRequestRequest 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 RejectDelegatedResourceAccessRequestRequest + */ + public RejectDelegatedResourceAccessRequestRequest build() { + RejectDelegatedResourceAccessRequestRequest 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.delegateaccesscontrol.model + .RejectDelegatedResourceAccessRequestDetails + body) { + rejectDelegatedResourceAccessRequestDetails(body); + return this; + } + + /** + * Build the instance of RejectDelegatedResourceAccessRequestRequest 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 RejectDelegatedResourceAccessRequestRequest + */ + public RejectDelegatedResourceAccessRequestRequest buildWithoutInvocationCallback() { + RejectDelegatedResourceAccessRequestRequest request = + new RejectDelegatedResourceAccessRequestRequest(); + request.delegatedResourceAccessRequestId = delegatedResourceAccessRequestId; + request.rejectDelegatedResourceAccessRequestDetails = + rejectDelegatedResourceAccessRequestDetails; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new RejectDelegatedResourceAccessRequestRequest(delegatedResourceAccessRequestId, + // rejectDelegatedResourceAccessRequestDetails, opcRetryToken, 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() + .delegatedResourceAccessRequestId(delegatedResourceAccessRequestId) + .rejectDelegatedResourceAccessRequestDetails( + rejectDelegatedResourceAccessRequestDetails) + .opcRetryToken(opcRetryToken) + .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(",delegatedResourceAccessRequestId=") + .append(String.valueOf(this.delegatedResourceAccessRequestId)); + sb.append(",rejectDelegatedResourceAccessRequestDetails=") + .append(String.valueOf(this.rejectDelegatedResourceAccessRequestDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + 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 RejectDelegatedResourceAccessRequestRequest)) { + return false; + } + + RejectDelegatedResourceAccessRequestRequest other = + (RejectDelegatedResourceAccessRequestRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.delegatedResourceAccessRequestId, + other.delegatedResourceAccessRequestId) + && java.util.Objects.equals( + this.rejectDelegatedResourceAccessRequestDetails, + other.rejectDelegatedResourceAccessRequestDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && 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.delegatedResourceAccessRequestId == null + ? 43 + : this.delegatedResourceAccessRequestId.hashCode()); + result = + (result * PRIME) + + (this.rejectDelegatedResourceAccessRequestDetails == null + ? 43 + : this.rejectDelegatedResourceAccessRequestDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/RevokeDelegatedResourceAccessRequestRequest.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/RevokeDelegatedResourceAccessRequestRequest.java new file mode 100644 index 00000000000..656e033e075 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/RevokeDelegatedResourceAccessRequestRequest.java @@ -0,0 +1,388 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.requests; + +import com.oracle.bmc.delegateaccesscontrol.model.*; +/** + * Example: Click here to see how to use + * RevokeDelegatedResourceAccessRequestRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class RevokeDelegatedResourceAccessRequestRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.delegateaccesscontrol.model + .RevokeDelegatedResourceAccessRequestDetails> { + + /** Unique Delegated Resource Access Request identifier */ + private String delegatedResourceAccessRequestId; + + /** Unique Delegated Resource Access Request identifier */ + public String getDelegatedResourceAccessRequestId() { + return delegatedResourceAccessRequestId; + } + /** + * Details regarding the revocation of a Delegated Resource Access Request created by the + * support operator. + */ + private com.oracle.bmc.delegateaccesscontrol.model.RevokeDelegatedResourceAccessRequestDetails + revokeDelegatedResourceAccessRequestDetails; + + /** + * Details regarding the revocation of a Delegated Resource Access Request created by the + * support operator. + */ + public com.oracle.bmc.delegateaccesscontrol.model.RevokeDelegatedResourceAccessRequestDetails + getRevokeDelegatedResourceAccessRequestDetails() { + return revokeDelegatedResourceAccessRequestDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.delegateaccesscontrol.model.RevokeDelegatedResourceAccessRequestDetails + getBody$() { + return revokeDelegatedResourceAccessRequestDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RevokeDelegatedResourceAccessRequestRequest, + com.oracle.bmc.delegateaccesscontrol.model + .RevokeDelegatedResourceAccessRequestDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Unique Delegated Resource Access Request identifier */ + private String delegatedResourceAccessRequestId = null; + + /** + * Unique Delegated Resource Access Request identifier + * + * @param delegatedResourceAccessRequestId the value to set + * @return this builder instance + */ + public Builder delegatedResourceAccessRequestId(String delegatedResourceAccessRequestId) { + this.delegatedResourceAccessRequestId = delegatedResourceAccessRequestId; + return this; + } + + /** + * Details regarding the revocation of a Delegated Resource Access Request created by the + * support operator. + */ + private com.oracle.bmc.delegateaccesscontrol.model + .RevokeDelegatedResourceAccessRequestDetails + revokeDelegatedResourceAccessRequestDetails = null; + + /** + * Details regarding the revocation of a Delegated Resource Access Request created by the + * support operator. + * + * @param revokeDelegatedResourceAccessRequestDetails the value to set + * @return this builder instance + */ + public Builder revokeDelegatedResourceAccessRequestDetails( + com.oracle.bmc.delegateaccesscontrol.model + .RevokeDelegatedResourceAccessRequestDetails + revokeDelegatedResourceAccessRequestDetails) { + this.revokeDelegatedResourceAccessRequestDetails = + revokeDelegatedResourceAccessRequestDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** 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(RevokeDelegatedResourceAccessRequestRequest o) { + delegatedResourceAccessRequestId(o.getDelegatedResourceAccessRequestId()); + revokeDelegatedResourceAccessRequestDetails( + o.getRevokeDelegatedResourceAccessRequestDetails()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RevokeDelegatedResourceAccessRequestRequest 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 RevokeDelegatedResourceAccessRequestRequest + */ + public RevokeDelegatedResourceAccessRequestRequest build() { + RevokeDelegatedResourceAccessRequestRequest 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.delegateaccesscontrol.model + .RevokeDelegatedResourceAccessRequestDetails + body) { + revokeDelegatedResourceAccessRequestDetails(body); + return this; + } + + /** + * Build the instance of RevokeDelegatedResourceAccessRequestRequest 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 RevokeDelegatedResourceAccessRequestRequest + */ + public RevokeDelegatedResourceAccessRequestRequest buildWithoutInvocationCallback() { + RevokeDelegatedResourceAccessRequestRequest request = + new RevokeDelegatedResourceAccessRequestRequest(); + request.delegatedResourceAccessRequestId = delegatedResourceAccessRequestId; + request.revokeDelegatedResourceAccessRequestDetails = + revokeDelegatedResourceAccessRequestDetails; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new RevokeDelegatedResourceAccessRequestRequest(delegatedResourceAccessRequestId, + // revokeDelegatedResourceAccessRequestDetails, opcRetryToken, 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() + .delegatedResourceAccessRequestId(delegatedResourceAccessRequestId) + .revokeDelegatedResourceAccessRequestDetails( + revokeDelegatedResourceAccessRequestDetails) + .opcRetryToken(opcRetryToken) + .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(",delegatedResourceAccessRequestId=") + .append(String.valueOf(this.delegatedResourceAccessRequestId)); + sb.append(",revokeDelegatedResourceAccessRequestDetails=") + .append(String.valueOf(this.revokeDelegatedResourceAccessRequestDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + 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 RevokeDelegatedResourceAccessRequestRequest)) { + return false; + } + + RevokeDelegatedResourceAccessRequestRequest other = + (RevokeDelegatedResourceAccessRequestRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.delegatedResourceAccessRequestId, + other.delegatedResourceAccessRequestId) + && java.util.Objects.equals( + this.revokeDelegatedResourceAccessRequestDetails, + other.revokeDelegatedResourceAccessRequestDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && 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.delegatedResourceAccessRequestId == null + ? 43 + : this.delegatedResourceAccessRequestId.hashCode()); + result = + (result * PRIME) + + (this.revokeDelegatedResourceAccessRequestDetails == null + ? 43 + : this.revokeDelegatedResourceAccessRequestDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ServiceProviderInteractionRequestRequest.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ServiceProviderInteractionRequestRequest.java new file mode 100644 index 00000000000..ccea3043f26 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/ServiceProviderInteractionRequestRequest.java @@ -0,0 +1,374 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.requests; + +import com.oracle.bmc.delegateaccesscontrol.model.*; +/** + * Example: Click here to see how to use + * ServiceProviderInteractionRequestRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class ServiceProviderInteractionRequestRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.delegateaccesscontrol.model + .ServiceProviderInteractionRequestDetails> { + + /** Unique Delegated Resource Access Request identifier */ + private String delegatedResourceAccessRequestId; + + /** Unique Delegated Resource Access Request identifier */ + public String getDelegatedResourceAccessRequestId() { + return delegatedResourceAccessRequestId; + } + /** Details containing Query for additional information provided by Customer. */ + private com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderInteractionRequestDetails + serviceProviderInteractionRequestDetails; + + /** Details containing Query for additional information provided by Customer. */ + public com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderInteractionRequestDetails + getServiceProviderInteractionRequestDetails() { + return serviceProviderInteractionRequestDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderInteractionRequestDetails + getBody$() { + return serviceProviderInteractionRequestDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ServiceProviderInteractionRequestRequest, + com.oracle.bmc.delegateaccesscontrol.model + .ServiceProviderInteractionRequestDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Unique Delegated Resource Access Request identifier */ + private String delegatedResourceAccessRequestId = null; + + /** + * Unique Delegated Resource Access Request identifier + * + * @param delegatedResourceAccessRequestId the value to set + * @return this builder instance + */ + public Builder delegatedResourceAccessRequestId(String delegatedResourceAccessRequestId) { + this.delegatedResourceAccessRequestId = delegatedResourceAccessRequestId; + return this; + } + + /** Details containing Query for additional information provided by Customer. */ + private com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderInteractionRequestDetails + serviceProviderInteractionRequestDetails = null; + + /** + * Details containing Query for additional information provided by Customer. + * + * @param serviceProviderInteractionRequestDetails the value to set + * @return this builder instance + */ + public Builder serviceProviderInteractionRequestDetails( + com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderInteractionRequestDetails + serviceProviderInteractionRequestDetails) { + this.serviceProviderInteractionRequestDetails = + serviceProviderInteractionRequestDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** 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(ServiceProviderInteractionRequestRequest o) { + delegatedResourceAccessRequestId(o.getDelegatedResourceAccessRequestId()); + serviceProviderInteractionRequestDetails( + o.getServiceProviderInteractionRequestDetails()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ServiceProviderInteractionRequestRequest 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 ServiceProviderInteractionRequestRequest + */ + public ServiceProviderInteractionRequestRequest build() { + ServiceProviderInteractionRequestRequest 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.delegateaccesscontrol.model.ServiceProviderInteractionRequestDetails + body) { + serviceProviderInteractionRequestDetails(body); + return this; + } + + /** + * Build the instance of ServiceProviderInteractionRequestRequest 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 ServiceProviderInteractionRequestRequest + */ + public ServiceProviderInteractionRequestRequest buildWithoutInvocationCallback() { + ServiceProviderInteractionRequestRequest request = + new ServiceProviderInteractionRequestRequest(); + request.delegatedResourceAccessRequestId = delegatedResourceAccessRequestId; + request.serviceProviderInteractionRequestDetails = + serviceProviderInteractionRequestDetails; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new ServiceProviderInteractionRequestRequest(delegatedResourceAccessRequestId, + // serviceProviderInteractionRequestDetails, opcRetryToken, 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() + .delegatedResourceAccessRequestId(delegatedResourceAccessRequestId) + .serviceProviderInteractionRequestDetails(serviceProviderInteractionRequestDetails) + .opcRetryToken(opcRetryToken) + .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(",delegatedResourceAccessRequestId=") + .append(String.valueOf(this.delegatedResourceAccessRequestId)); + sb.append(",serviceProviderInteractionRequestDetails=") + .append(String.valueOf(this.serviceProviderInteractionRequestDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + 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 ServiceProviderInteractionRequestRequest)) { + return false; + } + + ServiceProviderInteractionRequestRequest other = + (ServiceProviderInteractionRequestRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.delegatedResourceAccessRequestId, + other.delegatedResourceAccessRequestId) + && java.util.Objects.equals( + this.serviceProviderInteractionRequestDetails, + other.serviceProviderInteractionRequestDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && 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.delegatedResourceAccessRequestId == null + ? 43 + : this.delegatedResourceAccessRequestId.hashCode()); + result = + (result * PRIME) + + (this.serviceProviderInteractionRequestDetails == null + ? 43 + : this.serviceProviderInteractionRequestDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/UpdateDelegationControlRequest.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/UpdateDelegationControlRequest.java new file mode 100644 index 00000000000..bf41708fc36 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/UpdateDelegationControlRequest.java @@ -0,0 +1,308 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.requests; + +import com.oracle.bmc.delegateaccesscontrol.model.*; +/** + * Example: Click here to see how to use + * UpdateDelegationControlRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class UpdateDelegationControlRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.delegateaccesscontrol.model.UpdateDelegationControlDetails> { + + /** unique Delegation Control identifier */ + private String delegationControlId; + + /** unique Delegation Control identifier */ + public String getDelegationControlId() { + return delegationControlId; + } + /** Details for the new DelegationControl. */ + private com.oracle.bmc.delegateaccesscontrol.model.UpdateDelegationControlDetails + updateDelegationControlDetails; + + /** Details for the new DelegationControl. */ + public com.oracle.bmc.delegateaccesscontrol.model.UpdateDelegationControlDetails + getUpdateDelegationControlDetails() { + return updateDelegationControlDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.delegateaccesscontrol.model.UpdateDelegationControlDetails getBody$() { + return updateDelegationControlDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateDelegationControlRequest, + com.oracle.bmc.delegateaccesscontrol.model.UpdateDelegationControlDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Delegation Control identifier */ + private String delegationControlId = null; + + /** + * unique Delegation Control identifier + * + * @param delegationControlId the value to set + * @return this builder instance + */ + public Builder delegationControlId(String delegationControlId) { + this.delegationControlId = delegationControlId; + return this; + } + + /** Details for the new DelegationControl. */ + private com.oracle.bmc.delegateaccesscontrol.model.UpdateDelegationControlDetails + updateDelegationControlDetails = null; + + /** + * Details for the new DelegationControl. + * + * @param updateDelegationControlDetails the value to set + * @return this builder instance + */ + public Builder updateDelegationControlDetails( + com.oracle.bmc.delegateaccesscontrol.model.UpdateDelegationControlDetails + updateDelegationControlDetails) { + this.updateDelegationControlDetails = updateDelegationControlDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(UpdateDelegationControlRequest o) { + delegationControlId(o.getDelegationControlId()); + updateDelegationControlDetails(o.getUpdateDelegationControlDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateDelegationControlRequest 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 UpdateDelegationControlRequest + */ + public UpdateDelegationControlRequest build() { + UpdateDelegationControlRequest 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.delegateaccesscontrol.model.UpdateDelegationControlDetails body) { + updateDelegationControlDetails(body); + return this; + } + + /** + * Build the instance of UpdateDelegationControlRequest 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 UpdateDelegationControlRequest + */ + public UpdateDelegationControlRequest buildWithoutInvocationCallback() { + UpdateDelegationControlRequest request = new UpdateDelegationControlRequest(); + request.delegationControlId = delegationControlId; + request.updateDelegationControlDetails = updateDelegationControlDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateDelegationControlRequest(delegationControlId, + // updateDelegationControlDetails, 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() + .delegationControlId(delegationControlId) + .updateDelegationControlDetails(updateDelegationControlDetails) + .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(",delegationControlId=").append(String.valueOf(this.delegationControlId)); + sb.append(",updateDelegationControlDetails=") + .append(String.valueOf(this.updateDelegationControlDetails)); + 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 UpdateDelegationControlRequest)) { + return false; + } + + UpdateDelegationControlRequest other = (UpdateDelegationControlRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.delegationControlId, other.delegationControlId) + && java.util.Objects.equals( + this.updateDelegationControlDetails, other.updateDelegationControlDetails) + && 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.delegationControlId == null + ? 43 + : this.delegationControlId.hashCode()); + result = + (result * PRIME) + + (this.updateDelegationControlDetails == null + ? 43 + : this.updateDelegationControlDetails.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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/UpdateDelegationSubscriptionRequest.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/UpdateDelegationSubscriptionRequest.java new file mode 100644 index 00000000000..fb1eeee8756 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/requests/UpdateDelegationSubscriptionRequest.java @@ -0,0 +1,314 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.requests; + +import com.oracle.bmc.delegateaccesscontrol.model.*; +/** + * Example: Click here to see how to use + * UpdateDelegationSubscriptionRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class UpdateDelegationSubscriptionRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.delegateaccesscontrol.model.UpdateDelegationSubscriptionDetails> { + + /** unique Delegation Subscription identifier */ + private String delegationSubscriptionId; + + /** unique Delegation Subscription identifier */ + public String getDelegationSubscriptionId() { + return delegationSubscriptionId; + } + /** Details for the DelegationSubscription to be updated. */ + private com.oracle.bmc.delegateaccesscontrol.model.UpdateDelegationSubscriptionDetails + updateDelegationSubscriptionDetails; + + /** Details for the DelegationSubscription to be updated. */ + public com.oracle.bmc.delegateaccesscontrol.model.UpdateDelegationSubscriptionDetails + getUpdateDelegationSubscriptionDetails() { + return updateDelegationSubscriptionDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.delegateaccesscontrol.model.UpdateDelegationSubscriptionDetails + getBody$() { + return updateDelegationSubscriptionDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateDelegationSubscriptionRequest, + com.oracle.bmc.delegateaccesscontrol.model + .UpdateDelegationSubscriptionDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Delegation Subscription identifier */ + private String delegationSubscriptionId = null; + + /** + * unique Delegation Subscription identifier + * + * @param delegationSubscriptionId the value to set + * @return this builder instance + */ + public Builder delegationSubscriptionId(String delegationSubscriptionId) { + this.delegationSubscriptionId = delegationSubscriptionId; + return this; + } + + /** Details for the DelegationSubscription to be updated. */ + private com.oracle.bmc.delegateaccesscontrol.model.UpdateDelegationSubscriptionDetails + updateDelegationSubscriptionDetails = null; + + /** + * Details for the DelegationSubscription to be updated. + * + * @param updateDelegationSubscriptionDetails the value to set + * @return this builder instance + */ + public Builder updateDelegationSubscriptionDetails( + com.oracle.bmc.delegateaccesscontrol.model.UpdateDelegationSubscriptionDetails + updateDelegationSubscriptionDetails) { + this.updateDelegationSubscriptionDetails = updateDelegationSubscriptionDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(UpdateDelegationSubscriptionRequest o) { + delegationSubscriptionId(o.getDelegationSubscriptionId()); + updateDelegationSubscriptionDetails(o.getUpdateDelegationSubscriptionDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateDelegationSubscriptionRequest 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 UpdateDelegationSubscriptionRequest + */ + public UpdateDelegationSubscriptionRequest build() { + UpdateDelegationSubscriptionRequest 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.delegateaccesscontrol.model.UpdateDelegationSubscriptionDetails + body) { + updateDelegationSubscriptionDetails(body); + return this; + } + + /** + * Build the instance of UpdateDelegationSubscriptionRequest 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 UpdateDelegationSubscriptionRequest + */ + public UpdateDelegationSubscriptionRequest buildWithoutInvocationCallback() { + UpdateDelegationSubscriptionRequest request = new UpdateDelegationSubscriptionRequest(); + request.delegationSubscriptionId = delegationSubscriptionId; + request.updateDelegationSubscriptionDetails = updateDelegationSubscriptionDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateDelegationSubscriptionRequest(delegationSubscriptionId, + // updateDelegationSubscriptionDetails, 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() + .delegationSubscriptionId(delegationSubscriptionId) + .updateDelegationSubscriptionDetails(updateDelegationSubscriptionDetails) + .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(",delegationSubscriptionId=") + .append(String.valueOf(this.delegationSubscriptionId)); + sb.append(",updateDelegationSubscriptionDetails=") + .append(String.valueOf(this.updateDelegationSubscriptionDetails)); + 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 UpdateDelegationSubscriptionRequest)) { + return false; + } + + UpdateDelegationSubscriptionRequest other = (UpdateDelegationSubscriptionRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.delegationSubscriptionId, other.delegationSubscriptionId) + && java.util.Objects.equals( + this.updateDelegationSubscriptionDetails, + other.updateDelegationSubscriptionDetails) + && 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.delegationSubscriptionId == null + ? 43 + : this.delegationSubscriptionId.hashCode()); + result = + (result * PRIME) + + (this.updateDelegationSubscriptionDetails == null + ? 43 + : this.updateDelegationSubscriptionDetails.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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ApproveDelegatedResourceAccessRequestResponse.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ApproveDelegatedResourceAccessRequestResponse.java new file mode 100644 index 00000000000..64088de3acd --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ApproveDelegatedResourceAccessRequestResponse.java @@ -0,0 +1,192 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.responses; + +import com.oracle.bmc.delegateaccesscontrol.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class ApproveDelegatedResourceAccessRequestResponse + 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ApproveDelegatedResourceAccessRequestResponse( + 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< + ApproveDelegatedResourceAccessRequestResponse> { + 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ApproveDelegatedResourceAccessRequestResponse 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 ApproveDelegatedResourceAccessRequestResponse build() { + return new ApproveDelegatedResourceAccessRequestResponse( + __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 ApproveDelegatedResourceAccessRequestResponse)) { + return false; + } + + ApproveDelegatedResourceAccessRequestResponse other = + (ApproveDelegatedResourceAccessRequestResponse) 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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ChangeDelegationControlCompartmentResponse.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ChangeDelegationControlCompartmentResponse.java new file mode 100644 index 00000000000..fb51ab857d5 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ChangeDelegationControlCompartmentResponse.java @@ -0,0 +1,192 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.responses; + +import com.oracle.bmc.delegateaccesscontrol.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class ChangeDelegationControlCompartmentResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The [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; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private ChangeDelegationControlCompartmentResponse( + 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< + ChangeDelegationControlCompartmentResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The [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; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ChangeDelegationControlCompartmentResponse 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 ChangeDelegationControlCompartmentResponse build() { + return new ChangeDelegationControlCompartmentResponse( + __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 ChangeDelegationControlCompartmentResponse)) { + return false; + } + + ChangeDelegationControlCompartmentResponse other = + (ChangeDelegationControlCompartmentResponse) 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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ChangeDelegationSubscriptionCompartmentResponse.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ChangeDelegationSubscriptionCompartmentResponse.java new file mode 100644 index 00000000000..bfdbb66f9ae --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ChangeDelegationSubscriptionCompartmentResponse.java @@ -0,0 +1,192 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.responses; + +import com.oracle.bmc.delegateaccesscontrol.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class ChangeDelegationSubscriptionCompartmentResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The [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; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private ChangeDelegationSubscriptionCompartmentResponse( + 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< + ChangeDelegationSubscriptionCompartmentResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The [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; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ChangeDelegationSubscriptionCompartmentResponse 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 ChangeDelegationSubscriptionCompartmentResponse build() { + return new ChangeDelegationSubscriptionCompartmentResponse( + __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 ChangeDelegationSubscriptionCompartmentResponse)) { + return false; + } + + ChangeDelegationSubscriptionCompartmentResponse other = + (ChangeDelegationSubscriptionCompartmentResponse) 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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/CreateDelegationControlResponse.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/CreateDelegationControlResponse.java new file mode 100644 index 00000000000..fac1bebe0ee --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/CreateDelegationControlResponse.java @@ -0,0 +1,334 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.responses; + +import com.oracle.bmc.delegateaccesscontrol.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class CreateDelegationControlResponse 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** URI of the resource */ + private String location; + + /** + * URI of the resource + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** URI of the resource */ + private String contentLocation; + + /** + * URI of the resource + * + * @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 returned {@code DelegationControl} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.DelegationControl delegationControl; + + /** + * The returned {@code DelegationControl} instance. + * + * @return the value + */ + public com.oracle.bmc.delegateaccesscontrol.model.DelegationControl getDelegationControl() { + return delegationControl; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId", + "location", + "contentLocation", + "etag", + "delegationControl" + }) + private CreateDelegationControlResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId, + String location, + String contentLocation, + String etag, + com.oracle.bmc.delegateaccesscontrol.model.DelegationControl delegationControl) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.location = location; + this.contentLocation = contentLocation; + this.etag = etag; + this.delegationControl = delegationControl; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + CreateDelegationControlResponse> { + 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** URI of the resource */ + private String location; + + /** + * URI of the resource + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** URI of the resource */ + private String contentLocation; + + /** + * URI of the resource + * + * @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 returned {@code DelegationControl} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.DelegationControl delegationControl; + + /** + * The returned {@code DelegationControl} instance. + * + * @param delegationControl the value to set + * @return this builder + */ + public Builder delegationControl( + com.oracle.bmc.delegateaccesscontrol.model.DelegationControl delegationControl) { + this.delegationControl = delegationControl; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateDelegationControlResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + location(o.getLocation()); + contentLocation(o.getContentLocation()); + etag(o.getEtag()); + delegationControl(o.getDelegationControl()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateDelegationControlResponse build() { + return new CreateDelegationControlResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + opcRequestId, + location, + contentLocation, + etag, + delegationControl); + } + } + + /** + * 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(",location=").append(String.valueOf(location)); + sb.append(",contentLocation=").append(String.valueOf(contentLocation)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",delegationControl=").append(String.valueOf(delegationControl)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDelegationControlResponse)) { + return false; + } + + CreateDelegationControlResponse other = (CreateDelegationControlResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.contentLocation, other.contentLocation) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.delegationControl, other.delegationControl); + } + + @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()); + 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.delegationControl == null ? 43 : this.delegationControl.hashCode()); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/CreateDelegationSubscriptionResponse.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/CreateDelegationSubscriptionResponse.java new file mode 100644 index 00000000000..38d8d724d60 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/CreateDelegationSubscriptionResponse.java @@ -0,0 +1,342 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.responses; + +import com.oracle.bmc.delegateaccesscontrol.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class CreateDelegationSubscriptionResponse 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** URI of the resource */ + private String location; + + /** + * URI of the resource + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** URI of the resource */ + private String contentLocation; + + /** + * URI of the resource + * + * @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 returned {@code DelegationSubscription} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscription + delegationSubscription; + + /** + * The returned {@code DelegationSubscription} instance. + * + * @return the value + */ + public com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscription + getDelegationSubscription() { + return delegationSubscription; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId", + "location", + "contentLocation", + "etag", + "delegationSubscription" + }) + private CreateDelegationSubscriptionResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId, + String location, + String contentLocation, + String etag, + com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscription + delegationSubscription) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.location = location; + this.contentLocation = contentLocation; + this.etag = etag; + this.delegationSubscription = delegationSubscription; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + CreateDelegationSubscriptionResponse> { + 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** URI of the resource */ + private String location; + + /** + * URI of the resource + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** URI of the resource */ + private String contentLocation; + + /** + * URI of the resource + * + * @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 returned {@code DelegationSubscription} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscription + delegationSubscription; + + /** + * The returned {@code DelegationSubscription} instance. + * + * @param delegationSubscription the value to set + * @return this builder + */ + public Builder delegationSubscription( + com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscription + delegationSubscription) { + this.delegationSubscription = delegationSubscription; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateDelegationSubscriptionResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + location(o.getLocation()); + contentLocation(o.getContentLocation()); + etag(o.getEtag()); + delegationSubscription(o.getDelegationSubscription()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateDelegationSubscriptionResponse build() { + return new CreateDelegationSubscriptionResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + opcRequestId, + location, + contentLocation, + etag, + delegationSubscription); + } + } + + /** + * 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(",location=").append(String.valueOf(location)); + sb.append(",contentLocation=").append(String.valueOf(contentLocation)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",delegationSubscription=").append(String.valueOf(delegationSubscription)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDelegationSubscriptionResponse)) { + return false; + } + + CreateDelegationSubscriptionResponse other = (CreateDelegationSubscriptionResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.contentLocation, other.contentLocation) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals( + this.delegationSubscription, other.delegationSubscription); + } + + @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()); + 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.delegationSubscription == null + ? 43 + : this.delegationSubscription.hashCode()); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/DeleteDelegationControlResponse.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/DeleteDelegationControlResponse.java new file mode 100644 index 00000000000..9f707434a4d --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/DeleteDelegationControlResponse.java @@ -0,0 +1,190 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.responses; + +import com.oracle.bmc.delegateaccesscontrol.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class DeleteDelegationControlResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The [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; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private DeleteDelegationControlResponse( + 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< + DeleteDelegationControlResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The [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; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteDelegationControlResponse 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 DeleteDelegationControlResponse build() { + return new DeleteDelegationControlResponse( + __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 DeleteDelegationControlResponse)) { + return false; + } + + DeleteDelegationControlResponse other = (DeleteDelegationControlResponse) 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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/DeleteDelegationSubscriptionResponse.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/DeleteDelegationSubscriptionResponse.java new file mode 100644 index 00000000000..8bb8d6a5dee --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/DeleteDelegationSubscriptionResponse.java @@ -0,0 +1,190 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.responses; + +import com.oracle.bmc.delegateaccesscontrol.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class DeleteDelegationSubscriptionResponse 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private DeleteDelegationSubscriptionResponse( + 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< + DeleteDelegationSubscriptionResponse> { + 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteDelegationSubscriptionResponse 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 DeleteDelegationSubscriptionResponse build() { + return new DeleteDelegationSubscriptionResponse( + __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 DeleteDelegationSubscriptionResponse)) { + return false; + } + + DeleteDelegationSubscriptionResponse other = (DeleteDelegationSubscriptionResponse) 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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/GetDelegatedResourceAccessRequestAuditLogReportResponse.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/GetDelegatedResourceAccessRequestAuditLogReportResponse.java new file mode 100644 index 00000000000..9990c703f42 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/GetDelegatedResourceAccessRequestAuditLogReportResponse.java @@ -0,0 +1,199 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.responses; + +import com.oracle.bmc.delegateaccesscontrol.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class GetDelegatedResourceAccessRequestAuditLogReportResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code DelegatedResourceAccessRequestAuditLogReport} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequestAuditLogReport + delegatedResourceAccessRequestAuditLogReport; + + /** + * The returned {@code DelegatedResourceAccessRequestAuditLogReport} instance. + * + * @return the value + */ + public com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequestAuditLogReport + getDelegatedResourceAccessRequestAuditLogReport() { + return delegatedResourceAccessRequestAuditLogReport; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "delegatedResourceAccessRequestAuditLogReport" + }) + private GetDelegatedResourceAccessRequestAuditLogReportResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequestAuditLogReport + delegatedResourceAccessRequestAuditLogReport) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.delegatedResourceAccessRequestAuditLogReport = + delegatedResourceAccessRequestAuditLogReport; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetDelegatedResourceAccessRequestAuditLogReportResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code DelegatedResourceAccessRequestAuditLogReport} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model + .DelegatedResourceAccessRequestAuditLogReport + delegatedResourceAccessRequestAuditLogReport; + + /** + * The returned {@code DelegatedResourceAccessRequestAuditLogReport} instance. + * + * @param delegatedResourceAccessRequestAuditLogReport the value to set + * @return this builder + */ + public Builder delegatedResourceAccessRequestAuditLogReport( + com.oracle.bmc.delegateaccesscontrol.model + .DelegatedResourceAccessRequestAuditLogReport + delegatedResourceAccessRequestAuditLogReport) { + this.delegatedResourceAccessRequestAuditLogReport = + delegatedResourceAccessRequestAuditLogReport; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetDelegatedResourceAccessRequestAuditLogReportResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + delegatedResourceAccessRequestAuditLogReport( + o.getDelegatedResourceAccessRequestAuditLogReport()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetDelegatedResourceAccessRequestAuditLogReportResponse build() { + return new GetDelegatedResourceAccessRequestAuditLogReportResponse( + __httpStatusCode__, + headers, + opcRequestId, + delegatedResourceAccessRequestAuditLogReport); + } + } + + /** + * 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(",delegatedResourceAccessRequestAuditLogReport=") + .append(String.valueOf(delegatedResourceAccessRequestAuditLogReport)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDelegatedResourceAccessRequestAuditLogReportResponse)) { + return false; + } + + GetDelegatedResourceAccessRequestAuditLogReportResponse other = + (GetDelegatedResourceAccessRequestAuditLogReportResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.delegatedResourceAccessRequestAuditLogReport, + other.delegatedResourceAccessRequestAuditLogReport); + } + + @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.delegatedResourceAccessRequestAuditLogReport == null + ? 43 + : this.delegatedResourceAccessRequestAuditLogReport.hashCode()); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/GetDelegatedResourceAccessRequestResponse.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/GetDelegatedResourceAccessRequestResponse.java new file mode 100644 index 00000000000..8b3b9c81474 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/GetDelegatedResourceAccessRequestResponse.java @@ -0,0 +1,227 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.responses; + +import com.oracle.bmc.delegateaccesscontrol.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class GetDelegatedResourceAccessRequestResponse + extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code DelegatedResourceAccessRequest} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequest + delegatedResourceAccessRequest; + + /** + * The returned {@code DelegatedResourceAccessRequest} instance. + * + * @return the value + */ + public com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequest + getDelegatedResourceAccessRequest() { + return delegatedResourceAccessRequest; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "delegatedResourceAccessRequest" + }) + private GetDelegatedResourceAccessRequestResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequest + delegatedResourceAccessRequest) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.delegatedResourceAccessRequest = delegatedResourceAccessRequest; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetDelegatedResourceAccessRequestResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code DelegatedResourceAccessRequest} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequest + delegatedResourceAccessRequest; + + /** + * The returned {@code DelegatedResourceAccessRequest} instance. + * + * @param delegatedResourceAccessRequest the value to set + * @return this builder + */ + public Builder delegatedResourceAccessRequest( + com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequest + delegatedResourceAccessRequest) { + this.delegatedResourceAccessRequest = delegatedResourceAccessRequest; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetDelegatedResourceAccessRequestResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + delegatedResourceAccessRequest(o.getDelegatedResourceAccessRequest()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetDelegatedResourceAccessRequestResponse build() { + return new GetDelegatedResourceAccessRequestResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + delegatedResourceAccessRequest); + } + } + + /** + * 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(",delegatedResourceAccessRequest=") + .append(String.valueOf(delegatedResourceAccessRequest)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDelegatedResourceAccessRequestResponse)) { + return false; + } + + GetDelegatedResourceAccessRequestResponse other = + (GetDelegatedResourceAccessRequestResponse) 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.delegatedResourceAccessRequest, other.delegatedResourceAccessRequest); + } + + @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.delegatedResourceAccessRequest == null + ? 43 + : this.delegatedResourceAccessRequest.hashCode()); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/GetDelegationControlResponse.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/GetDelegationControlResponse.java new file mode 100644 index 00000000000..77ef83aaf79 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/GetDelegationControlResponse.java @@ -0,0 +1,211 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.responses; + +import com.oracle.bmc.delegateaccesscontrol.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class GetDelegationControlResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code DelegationControl} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.DelegationControl delegationControl; + + /** + * The returned {@code DelegationControl} instance. + * + * @return the value + */ + public com.oracle.bmc.delegateaccesscontrol.model.DelegationControl getDelegationControl() { + return delegationControl; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "delegationControl" + }) + private GetDelegationControlResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.delegateaccesscontrol.model.DelegationControl delegationControl) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.delegationControl = delegationControl; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code DelegationControl} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.DelegationControl delegationControl; + + /** + * The returned {@code DelegationControl} instance. + * + * @param delegationControl the value to set + * @return this builder + */ + public Builder delegationControl( + com.oracle.bmc.delegateaccesscontrol.model.DelegationControl delegationControl) { + this.delegationControl = delegationControl; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetDelegationControlResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + delegationControl(o.getDelegationControl()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetDelegationControlResponse build() { + return new GetDelegationControlResponse( + __httpStatusCode__, headers, etag, opcRequestId, delegationControl); + } + } + + /** + * 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(",delegationControl=").append(String.valueOf(delegationControl)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDelegationControlResponse)) { + return false; + } + + GetDelegationControlResponse other = (GetDelegationControlResponse) 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.delegationControl, other.delegationControl); + } + + @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.delegationControl == null ? 43 : this.delegationControl.hashCode()); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/GetDelegationSubscriptionResponse.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/GetDelegationSubscriptionResponse.java new file mode 100644 index 00000000000..3d2025962ce --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/GetDelegationSubscriptionResponse.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.delegateaccesscontrol.responses; + +import com.oracle.bmc.delegateaccesscontrol.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class GetDelegationSubscriptionResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code DelegationSubscription} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscription + delegationSubscription; + + /** + * The returned {@code DelegationSubscription} instance. + * + * @return the value + */ + public com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscription + getDelegationSubscription() { + return delegationSubscription; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "delegationSubscription" + }) + private GetDelegationSubscriptionResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscription + delegationSubscription) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.delegationSubscription = delegationSubscription; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetDelegationSubscriptionResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code DelegationSubscription} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscription + delegationSubscription; + + /** + * The returned {@code DelegationSubscription} instance. + * + * @param delegationSubscription the value to set + * @return this builder + */ + public Builder delegationSubscription( + com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscription + delegationSubscription) { + this.delegationSubscription = delegationSubscription; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetDelegationSubscriptionResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + delegationSubscription(o.getDelegationSubscription()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetDelegationSubscriptionResponse build() { + return new GetDelegationSubscriptionResponse( + __httpStatusCode__, headers, etag, opcRequestId, delegationSubscription); + } + } + + /** + * 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(",delegationSubscription=").append(String.valueOf(delegationSubscription)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDelegationSubscriptionResponse)) { + return false; + } + + GetDelegationSubscriptionResponse other = (GetDelegationSubscriptionResponse) 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.delegationSubscription, other.delegationSubscription); + } + + @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.delegationSubscription == null + ? 43 + : this.delegationSubscription.hashCode()); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/GetServiceProviderActionResponse.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/GetServiceProviderActionResponse.java new file mode 100644 index 00000000000..75957cbd94c --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/GetServiceProviderActionResponse.java @@ -0,0 +1,219 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.responses; + +import com.oracle.bmc.delegateaccesscontrol.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class GetServiceProviderActionResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code ServiceProviderAction} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderAction serviceProviderAction; + + /** + * The returned {@code ServiceProviderAction} instance. + * + * @return the value + */ + public com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderAction + getServiceProviderAction() { + return serviceProviderAction; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "serviceProviderAction" + }) + private GetServiceProviderActionResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderAction + serviceProviderAction) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.serviceProviderAction = serviceProviderAction; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetServiceProviderActionResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code ServiceProviderAction} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderAction + serviceProviderAction; + + /** + * The returned {@code ServiceProviderAction} instance. + * + * @param serviceProviderAction the value to set + * @return this builder + */ + public Builder serviceProviderAction( + com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderAction + serviceProviderAction) { + this.serviceProviderAction = serviceProviderAction; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetServiceProviderActionResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + serviceProviderAction(o.getServiceProviderAction()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetServiceProviderActionResponse build() { + return new GetServiceProviderActionResponse( + __httpStatusCode__, headers, etag, opcRequestId, serviceProviderAction); + } + } + + /** + * 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(",serviceProviderAction=").append(String.valueOf(serviceProviderAction)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetServiceProviderActionResponse)) { + return false; + } + + GetServiceProviderActionResponse other = (GetServiceProviderActionResponse) 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.serviceProviderAction, other.serviceProviderAction); + } + + @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.serviceProviderAction == null + ? 43 + : this.serviceProviderAction.hashCode()); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/GetServiceProviderResponse.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/GetServiceProviderResponse.java new file mode 100644 index 00000000000..15ca3382fa3 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/GetServiceProviderResponse.java @@ -0,0 +1,211 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.responses; + +import com.oracle.bmc.delegateaccesscontrol.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class GetServiceProviderResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code ServiceProvider} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.ServiceProvider serviceProvider; + + /** + * The returned {@code ServiceProvider} instance. + * + * @return the value + */ + public com.oracle.bmc.delegateaccesscontrol.model.ServiceProvider getServiceProvider() { + return serviceProvider; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "serviceProvider" + }) + private GetServiceProviderResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.delegateaccesscontrol.model.ServiceProvider serviceProvider) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.serviceProvider = serviceProvider; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code ServiceProvider} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.ServiceProvider serviceProvider; + + /** + * The returned {@code ServiceProvider} instance. + * + * @param serviceProvider the value to set + * @return this builder + */ + public Builder serviceProvider( + com.oracle.bmc.delegateaccesscontrol.model.ServiceProvider serviceProvider) { + this.serviceProvider = serviceProvider; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetServiceProviderResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + serviceProvider(o.getServiceProvider()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetServiceProviderResponse build() { + return new GetServiceProviderResponse( + __httpStatusCode__, headers, etag, opcRequestId, serviceProvider); + } + } + + /** + * 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(",serviceProvider=").append(String.valueOf(serviceProvider)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetServiceProviderResponse)) { + return false; + } + + GetServiceProviderResponse other = (GetServiceProviderResponse) 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.serviceProvider, other.serviceProvider); + } + + @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.serviceProvider == null ? 43 : this.serviceProvider.hashCode()); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/GetWorkRequestResponse.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/GetWorkRequestResponse.java new file mode 100644 index 00000000000..299836c5fa9 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/GetWorkRequestResponse.java @@ -0,0 +1,250 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.responses; + +import com.oracle.bmc.delegateaccesscontrol.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class GetWorkRequestResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + */ + private Integer retryAfter; + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + * + * @return the value + */ + public Integer getRetryAfter() { + return retryAfter; + } + + /** The returned {@code WorkRequest} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.WorkRequest workRequest; + + /** + * The returned {@code WorkRequest} instance. + * + * @return the value + */ + public com.oracle.bmc.delegateaccesscontrol.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.delegateaccesscontrol.model.WorkRequest workRequest) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.retryAfter = retryAfter; + this.workRequest = workRequest; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + */ + private Integer retryAfter; + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + * + * @param retryAfter the value to set + * @return this builder + */ + public Builder retryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + + /** The returned {@code WorkRequest} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.WorkRequest workRequest; + + /** + * The returned {@code WorkRequest} instance. + * + * @param workRequest the value to set + * @return this builder + */ + public Builder workRequest( + com.oracle.bmc.delegateaccesscontrol.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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListDelegatedResourceAccessRequestHistoriesResponse.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListDelegatedResourceAccessRequestHistoriesResponse.java new file mode 100644 index 00000000000..ccbc3826d0e --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListDelegatedResourceAccessRequestHistoriesResponse.java @@ -0,0 +1,248 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.responses; + +import com.oracle.bmc.delegateaccesscontrol.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class ListDelegatedResourceAccessRequestHistoriesResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code DelegatedResourceAccessRequestHistoryCollection} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model + .DelegatedResourceAccessRequestHistoryCollection + delegatedResourceAccessRequestHistoryCollection; + + /** + * The returned {@code DelegatedResourceAccessRequestHistoryCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.delegateaccesscontrol.model + .DelegatedResourceAccessRequestHistoryCollection + getDelegatedResourceAccessRequestHistoryCollection() { + return delegatedResourceAccessRequestHistoryCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "delegatedResourceAccessRequestHistoryCollection" + }) + private ListDelegatedResourceAccessRequestHistoriesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.delegateaccesscontrol.model + .DelegatedResourceAccessRequestHistoryCollection + delegatedResourceAccessRequestHistoryCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.delegatedResourceAccessRequestHistoryCollection = + delegatedResourceAccessRequestHistoryCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListDelegatedResourceAccessRequestHistoriesResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code DelegatedResourceAccessRequestHistoryCollection} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model + .DelegatedResourceAccessRequestHistoryCollection + delegatedResourceAccessRequestHistoryCollection; + + /** + * The returned {@code DelegatedResourceAccessRequestHistoryCollection} instance. + * + * @param delegatedResourceAccessRequestHistoryCollection the value to set + * @return this builder + */ + public Builder delegatedResourceAccessRequestHistoryCollection( + com.oracle.bmc.delegateaccesscontrol.model + .DelegatedResourceAccessRequestHistoryCollection + delegatedResourceAccessRequestHistoryCollection) { + this.delegatedResourceAccessRequestHistoryCollection = + delegatedResourceAccessRequestHistoryCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListDelegatedResourceAccessRequestHistoriesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + delegatedResourceAccessRequestHistoryCollection( + o.getDelegatedResourceAccessRequestHistoryCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListDelegatedResourceAccessRequestHistoriesResponse build() { + return new ListDelegatedResourceAccessRequestHistoriesResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + delegatedResourceAccessRequestHistoryCollection); + } + } + + /** + * 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(",delegatedResourceAccessRequestHistoryCollection=") + .append(String.valueOf(delegatedResourceAccessRequestHistoryCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDelegatedResourceAccessRequestHistoriesResponse)) { + return false; + } + + ListDelegatedResourceAccessRequestHistoriesResponse other = + (ListDelegatedResourceAccessRequestHistoriesResponse) 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.delegatedResourceAccessRequestHistoryCollection, + other.delegatedResourceAccessRequestHistoryCollection); + } + + @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.delegatedResourceAccessRequestHistoryCollection == null + ? 43 + : this.delegatedResourceAccessRequestHistoryCollection.hashCode()); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListDelegatedResourceAccessRequestsResponse.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListDelegatedResourceAccessRequestsResponse.java new file mode 100644 index 00000000000..b080c05521b --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListDelegatedResourceAccessRequestsResponse.java @@ -0,0 +1,248 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.responses; + +import com.oracle.bmc.delegateaccesscontrol.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class ListDelegatedResourceAccessRequestsResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code DelegatedResourceAccessRequestSummaryCollection} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model + .DelegatedResourceAccessRequestSummaryCollection + delegatedResourceAccessRequestSummaryCollection; + + /** + * The returned {@code DelegatedResourceAccessRequestSummaryCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.delegateaccesscontrol.model + .DelegatedResourceAccessRequestSummaryCollection + getDelegatedResourceAccessRequestSummaryCollection() { + return delegatedResourceAccessRequestSummaryCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "delegatedResourceAccessRequestSummaryCollection" + }) + private ListDelegatedResourceAccessRequestsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.delegateaccesscontrol.model + .DelegatedResourceAccessRequestSummaryCollection + delegatedResourceAccessRequestSummaryCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.delegatedResourceAccessRequestSummaryCollection = + delegatedResourceAccessRequestSummaryCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListDelegatedResourceAccessRequestsResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code DelegatedResourceAccessRequestSummaryCollection} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model + .DelegatedResourceAccessRequestSummaryCollection + delegatedResourceAccessRequestSummaryCollection; + + /** + * The returned {@code DelegatedResourceAccessRequestSummaryCollection} instance. + * + * @param delegatedResourceAccessRequestSummaryCollection the value to set + * @return this builder + */ + public Builder delegatedResourceAccessRequestSummaryCollection( + com.oracle.bmc.delegateaccesscontrol.model + .DelegatedResourceAccessRequestSummaryCollection + delegatedResourceAccessRequestSummaryCollection) { + this.delegatedResourceAccessRequestSummaryCollection = + delegatedResourceAccessRequestSummaryCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListDelegatedResourceAccessRequestsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + delegatedResourceAccessRequestSummaryCollection( + o.getDelegatedResourceAccessRequestSummaryCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListDelegatedResourceAccessRequestsResponse build() { + return new ListDelegatedResourceAccessRequestsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + delegatedResourceAccessRequestSummaryCollection); + } + } + + /** + * 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(",delegatedResourceAccessRequestSummaryCollection=") + .append(String.valueOf(delegatedResourceAccessRequestSummaryCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDelegatedResourceAccessRequestsResponse)) { + return false; + } + + ListDelegatedResourceAccessRequestsResponse other = + (ListDelegatedResourceAccessRequestsResponse) 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.delegatedResourceAccessRequestSummaryCollection, + other.delegatedResourceAccessRequestSummaryCollection); + } + + @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.delegatedResourceAccessRequestSummaryCollection == null + ? 43 + : this.delegatedResourceAccessRequestSummaryCollection.hashCode()); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListDelegationControlResourcesResponse.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListDelegationControlResourcesResponse.java new file mode 100644 index 00000000000..f7cb66eb118 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListDelegationControlResourcesResponse.java @@ -0,0 +1,238 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.responses; + +import com.oracle.bmc.delegateaccesscontrol.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class ListDelegationControlResourcesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code DelegationControlResourceCollection} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.DelegationControlResourceCollection + delegationControlResourceCollection; + + /** + * The returned {@code DelegationControlResourceCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.delegateaccesscontrol.model.DelegationControlResourceCollection + getDelegationControlResourceCollection() { + return delegationControlResourceCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "delegationControlResourceCollection" + }) + private ListDelegationControlResourcesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.delegateaccesscontrol.model.DelegationControlResourceCollection + delegationControlResourceCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.delegationControlResourceCollection = delegationControlResourceCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListDelegationControlResourcesResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code DelegationControlResourceCollection} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.DelegationControlResourceCollection + delegationControlResourceCollection; + + /** + * The returned {@code DelegationControlResourceCollection} instance. + * + * @param delegationControlResourceCollection the value to set + * @return this builder + */ + public Builder delegationControlResourceCollection( + com.oracle.bmc.delegateaccesscontrol.model.DelegationControlResourceCollection + delegationControlResourceCollection) { + this.delegationControlResourceCollection = delegationControlResourceCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListDelegationControlResourcesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + delegationControlResourceCollection(o.getDelegationControlResourceCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListDelegationControlResourcesResponse build() { + return new ListDelegationControlResourcesResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + delegationControlResourceCollection); + } + } + + /** + * 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(",delegationControlResourceCollection=") + .append(String.valueOf(delegationControlResourceCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDelegationControlResourcesResponse)) { + return false; + } + + ListDelegationControlResourcesResponse other = (ListDelegationControlResourcesResponse) 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.delegationControlResourceCollection, + other.delegationControlResourceCollection); + } + + @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.delegationControlResourceCollection == null + ? 43 + : this.delegationControlResourceCollection.hashCode()); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListDelegationControlsResponse.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListDelegationControlsResponse.java new file mode 100644 index 00000000000..6914b18d252 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListDelegationControlsResponse.java @@ -0,0 +1,238 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.responses; + +import com.oracle.bmc.delegateaccesscontrol.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class ListDelegationControlsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code DelegationControlSummaryCollection} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.DelegationControlSummaryCollection + delegationControlSummaryCollection; + + /** + * The returned {@code DelegationControlSummaryCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.delegateaccesscontrol.model.DelegationControlSummaryCollection + getDelegationControlSummaryCollection() { + return delegationControlSummaryCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "delegationControlSummaryCollection" + }) + private ListDelegationControlsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.delegateaccesscontrol.model.DelegationControlSummaryCollection + delegationControlSummaryCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.delegationControlSummaryCollection = delegationControlSummaryCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListDelegationControlsResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code DelegationControlSummaryCollection} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.DelegationControlSummaryCollection + delegationControlSummaryCollection; + + /** + * The returned {@code DelegationControlSummaryCollection} instance. + * + * @param delegationControlSummaryCollection the value to set + * @return this builder + */ + public Builder delegationControlSummaryCollection( + com.oracle.bmc.delegateaccesscontrol.model.DelegationControlSummaryCollection + delegationControlSummaryCollection) { + this.delegationControlSummaryCollection = delegationControlSummaryCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListDelegationControlsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + delegationControlSummaryCollection(o.getDelegationControlSummaryCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListDelegationControlsResponse build() { + return new ListDelegationControlsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + delegationControlSummaryCollection); + } + } + + /** + * 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(",delegationControlSummaryCollection=") + .append(String.valueOf(delegationControlSummaryCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDelegationControlsResponse)) { + return false; + } + + ListDelegationControlsResponse other = (ListDelegationControlsResponse) 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.delegationControlSummaryCollection, + other.delegationControlSummaryCollection); + } + + @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.delegationControlSummaryCollection == null + ? 43 + : this.delegationControlSummaryCollection.hashCode()); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListDelegationSubscriptionsResponse.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListDelegationSubscriptionsResponse.java new file mode 100644 index 00000000000..a1cf931c8eb --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListDelegationSubscriptionsResponse.java @@ -0,0 +1,238 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.responses; + +import com.oracle.bmc.delegateaccesscontrol.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class ListDelegationSubscriptionsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code DelegationSubscriptionSummaryCollection} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscriptionSummaryCollection + delegationSubscriptionSummaryCollection; + + /** + * The returned {@code DelegationSubscriptionSummaryCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscriptionSummaryCollection + getDelegationSubscriptionSummaryCollection() { + return delegationSubscriptionSummaryCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "delegationSubscriptionSummaryCollection" + }) + private ListDelegationSubscriptionsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscriptionSummaryCollection + delegationSubscriptionSummaryCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.delegationSubscriptionSummaryCollection = delegationSubscriptionSummaryCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListDelegationSubscriptionsResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code DelegationSubscriptionSummaryCollection} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscriptionSummaryCollection + delegationSubscriptionSummaryCollection; + + /** + * The returned {@code DelegationSubscriptionSummaryCollection} instance. + * + * @param delegationSubscriptionSummaryCollection the value to set + * @return this builder + */ + public Builder delegationSubscriptionSummaryCollection( + com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscriptionSummaryCollection + delegationSubscriptionSummaryCollection) { + this.delegationSubscriptionSummaryCollection = delegationSubscriptionSummaryCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListDelegationSubscriptionsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + delegationSubscriptionSummaryCollection(o.getDelegationSubscriptionSummaryCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListDelegationSubscriptionsResponse build() { + return new ListDelegationSubscriptionsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + delegationSubscriptionSummaryCollection); + } + } + + /** + * 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(",delegationSubscriptionSummaryCollection=") + .append(String.valueOf(delegationSubscriptionSummaryCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDelegationSubscriptionsResponse)) { + return false; + } + + ListDelegationSubscriptionsResponse other = (ListDelegationSubscriptionsResponse) 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.delegationSubscriptionSummaryCollection, + other.delegationSubscriptionSummaryCollection); + } + + @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.delegationSubscriptionSummaryCollection == null + ? 43 + : this.delegationSubscriptionSummaryCollection.hashCode()); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListServiceProviderActionsResponse.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListServiceProviderActionsResponse.java new file mode 100644 index 00000000000..0643b51f413 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListServiceProviderActionsResponse.java @@ -0,0 +1,238 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.responses; + +import com.oracle.bmc.delegateaccesscontrol.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class ListServiceProviderActionsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code ServiceProviderActionSummaryCollection} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderActionSummaryCollection + serviceProviderActionSummaryCollection; + + /** + * The returned {@code ServiceProviderActionSummaryCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderActionSummaryCollection + getServiceProviderActionSummaryCollection() { + return serviceProviderActionSummaryCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "serviceProviderActionSummaryCollection" + }) + private ListServiceProviderActionsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderActionSummaryCollection + serviceProviderActionSummaryCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.serviceProviderActionSummaryCollection = serviceProviderActionSummaryCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListServiceProviderActionsResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code ServiceProviderActionSummaryCollection} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderActionSummaryCollection + serviceProviderActionSummaryCollection; + + /** + * The returned {@code ServiceProviderActionSummaryCollection} instance. + * + * @param serviceProviderActionSummaryCollection the value to set + * @return this builder + */ + public Builder serviceProviderActionSummaryCollection( + com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderActionSummaryCollection + serviceProviderActionSummaryCollection) { + this.serviceProviderActionSummaryCollection = serviceProviderActionSummaryCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListServiceProviderActionsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + serviceProviderActionSummaryCollection(o.getServiceProviderActionSummaryCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListServiceProviderActionsResponse build() { + return new ListServiceProviderActionsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + serviceProviderActionSummaryCollection); + } + } + + /** + * 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(",serviceProviderActionSummaryCollection=") + .append(String.valueOf(serviceProviderActionSummaryCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListServiceProviderActionsResponse)) { + return false; + } + + ListServiceProviderActionsResponse other = (ListServiceProviderActionsResponse) 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.serviceProviderActionSummaryCollection, + other.serviceProviderActionSummaryCollection); + } + + @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.serviceProviderActionSummaryCollection == null + ? 43 + : this.serviceProviderActionSummaryCollection.hashCode()); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListServiceProviderInteractionsResponse.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListServiceProviderInteractionsResponse.java new file mode 100644 index 00000000000..9f3b421d1b2 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListServiceProviderInteractionsResponse.java @@ -0,0 +1,238 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.responses; + +import com.oracle.bmc.delegateaccesscontrol.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class ListServiceProviderInteractionsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code ServiceProviderInteractionCollection} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderInteractionCollection + serviceProviderInteractionCollection; + + /** + * The returned {@code ServiceProviderInteractionCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderInteractionCollection + getServiceProviderInteractionCollection() { + return serviceProviderInteractionCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "serviceProviderInteractionCollection" + }) + private ListServiceProviderInteractionsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderInteractionCollection + serviceProviderInteractionCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.serviceProviderInteractionCollection = serviceProviderInteractionCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListServiceProviderInteractionsResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code ServiceProviderInteractionCollection} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderInteractionCollection + serviceProviderInteractionCollection; + + /** + * The returned {@code ServiceProviderInteractionCollection} instance. + * + * @param serviceProviderInteractionCollection the value to set + * @return this builder + */ + public Builder serviceProviderInteractionCollection( + com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderInteractionCollection + serviceProviderInteractionCollection) { + this.serviceProviderInteractionCollection = serviceProviderInteractionCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListServiceProviderInteractionsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + serviceProviderInteractionCollection(o.getServiceProviderInteractionCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListServiceProviderInteractionsResponse build() { + return new ListServiceProviderInteractionsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + serviceProviderInteractionCollection); + } + } + + /** + * 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(",serviceProviderInteractionCollection=") + .append(String.valueOf(serviceProviderInteractionCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListServiceProviderInteractionsResponse)) { + return false; + } + + ListServiceProviderInteractionsResponse other = (ListServiceProviderInteractionsResponse) 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.serviceProviderInteractionCollection, + other.serviceProviderInteractionCollection); + } + + @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.serviceProviderInteractionCollection == null + ? 43 + : this.serviceProviderInteractionCollection.hashCode()); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListServiceProvidersResponse.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListServiceProvidersResponse.java new file mode 100644 index 00000000000..5fa23644e84 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListServiceProvidersResponse.java @@ -0,0 +1,237 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.responses; + +import com.oracle.bmc.delegateaccesscontrol.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class ListServiceProvidersResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code ServiceProviderSummaryCollection} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderSummaryCollection + serviceProviderSummaryCollection; + + /** + * The returned {@code ServiceProviderSummaryCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderSummaryCollection + getServiceProviderSummaryCollection() { + return serviceProviderSummaryCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "serviceProviderSummaryCollection" + }) + private ListServiceProvidersResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderSummaryCollection + serviceProviderSummaryCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.serviceProviderSummaryCollection = serviceProviderSummaryCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code ServiceProviderSummaryCollection} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderSummaryCollection + serviceProviderSummaryCollection; + + /** + * The returned {@code ServiceProviderSummaryCollection} instance. + * + * @param serviceProviderSummaryCollection the value to set + * @return this builder + */ + public Builder serviceProviderSummaryCollection( + com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderSummaryCollection + serviceProviderSummaryCollection) { + this.serviceProviderSummaryCollection = serviceProviderSummaryCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListServiceProvidersResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + serviceProviderSummaryCollection(o.getServiceProviderSummaryCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListServiceProvidersResponse build() { + return new ListServiceProvidersResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + serviceProviderSummaryCollection); + } + } + + /** + * 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(",serviceProviderSummaryCollection=") + .append(String.valueOf(serviceProviderSummaryCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListServiceProvidersResponse)) { + return false; + } + + ListServiceProvidersResponse other = (ListServiceProvidersResponse) 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.serviceProviderSummaryCollection, + other.serviceProviderSummaryCollection); + } + + @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.serviceProviderSummaryCollection == null + ? 43 + : this.serviceProviderSummaryCollection.hashCode()); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListWorkRequestErrorsResponse.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListWorkRequestErrorsResponse.java new file mode 100644 index 00000000000..ece448ff5ef --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/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.delegateaccesscontrol.responses; + +import com.oracle.bmc.delegateaccesscontrol.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class ListWorkRequestErrorsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code WorkRequestErrorCollection} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.WorkRequestErrorCollection + workRequestErrorCollection; + + /** + * The returned {@code WorkRequestErrorCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.delegateaccesscontrol.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.delegateaccesscontrol.model.WorkRequestErrorCollection + workRequestErrorCollection) { + super(__httpStatusCode__, headers); + this.opcNextPage = opcNextPage; + this.opcRequestId = opcRequestId; + this.workRequestErrorCollection = workRequestErrorCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code WorkRequestErrorCollection} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.WorkRequestErrorCollection + workRequestErrorCollection; + + /** + * The returned {@code WorkRequestErrorCollection} instance. + * + * @param workRequestErrorCollection the value to set + * @return this builder + */ + public Builder workRequestErrorCollection( + com.oracle.bmc.delegateaccesscontrol.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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListWorkRequestLogsResponse.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListWorkRequestLogsResponse.java new file mode 100644 index 00000000000..8d58c127e7f --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/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.delegateaccesscontrol.responses; + +import com.oracle.bmc.delegateaccesscontrol.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class ListWorkRequestLogsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code WorkRequestLogEntryCollection} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection; + + /** + * The returned {@code WorkRequestLogEntryCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.delegateaccesscontrol.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.delegateaccesscontrol.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection) { + super(__httpStatusCode__, headers); + this.opcNextPage = opcNextPage; + this.opcRequestId = opcRequestId; + this.workRequestLogEntryCollection = workRequestLogEntryCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code WorkRequestLogEntryCollection} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection; + + /** + * The returned {@code WorkRequestLogEntryCollection} instance. + * + * @param workRequestLogEntryCollection the value to set + * @return this builder + */ + public Builder workRequestLogEntryCollection( + com.oracle.bmc.delegateaccesscontrol.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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListWorkRequestsResponse.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ListWorkRequestsResponse.java new file mode 100644 index 00000000000..ad6cf26ec17 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/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.delegateaccesscontrol.responses; + +import com.oracle.bmc.delegateaccesscontrol.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class ListWorkRequestsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code WorkRequestSummaryCollection} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.WorkRequestSummaryCollection + workRequestSummaryCollection; + + /** + * The returned {@code WorkRequestSummaryCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.delegateaccesscontrol.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.delegateaccesscontrol.model.WorkRequestSummaryCollection + workRequestSummaryCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.workRequestSummaryCollection = workRequestSummaryCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code WorkRequestSummaryCollection} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.WorkRequestSummaryCollection + workRequestSummaryCollection; + + /** + * The returned {@code WorkRequestSummaryCollection} instance. + * + * @param workRequestSummaryCollection the value to set + * @return this builder + */ + public Builder workRequestSummaryCollection( + com.oracle.bmc.delegateaccesscontrol.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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/RejectDelegatedResourceAccessRequestResponse.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/RejectDelegatedResourceAccessRequestResponse.java new file mode 100644 index 00000000000..ca29b2e07be --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/RejectDelegatedResourceAccessRequestResponse.java @@ -0,0 +1,192 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.responses; + +import com.oracle.bmc.delegateaccesscontrol.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class RejectDelegatedResourceAccessRequestResponse + 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private RejectDelegatedResourceAccessRequestResponse( + 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< + RejectDelegatedResourceAccessRequestResponse> { + 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(RejectDelegatedResourceAccessRequestResponse 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 RejectDelegatedResourceAccessRequestResponse build() { + return new RejectDelegatedResourceAccessRequestResponse( + __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 RejectDelegatedResourceAccessRequestResponse)) { + return false; + } + + RejectDelegatedResourceAccessRequestResponse other = + (RejectDelegatedResourceAccessRequestResponse) 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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/RevokeDelegatedResourceAccessRequestResponse.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/RevokeDelegatedResourceAccessRequestResponse.java new file mode 100644 index 00000000000..b2fa8395f2d --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/RevokeDelegatedResourceAccessRequestResponse.java @@ -0,0 +1,192 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.responses; + +import com.oracle.bmc.delegateaccesscontrol.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class RevokeDelegatedResourceAccessRequestResponse + 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private RevokeDelegatedResourceAccessRequestResponse( + 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< + RevokeDelegatedResourceAccessRequestResponse> { + 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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(RevokeDelegatedResourceAccessRequestResponse 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 RevokeDelegatedResourceAccessRequestResponse build() { + return new RevokeDelegatedResourceAccessRequestResponse( + __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 RevokeDelegatedResourceAccessRequestResponse)) { + return false; + } + + RevokeDelegatedResourceAccessRequestResponse other = + (RevokeDelegatedResourceAccessRequestResponse) 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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ServiceProviderInteractionRequestResponse.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ServiceProviderInteractionRequestResponse.java new file mode 100644 index 00000000000..736a10bc8f4 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/ServiceProviderInteractionRequestResponse.java @@ -0,0 +1,140 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.responses; + +import com.oracle.bmc.delegateaccesscontrol.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class ServiceProviderInteractionRequestResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private ServiceProviderInteractionRequestResponse( + 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< + ServiceProviderInteractionRequestResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ServiceProviderInteractionRequestResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ServiceProviderInteractionRequestResponse build() { + return new ServiceProviderInteractionRequestResponse( + __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 ServiceProviderInteractionRequestResponse)) { + return false; + } + + ServiceProviderInteractionRequestResponse other = + (ServiceProviderInteractionRequestResponse) 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-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/UpdateDelegationControlResponse.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/UpdateDelegationControlResponse.java new file mode 100644 index 00000000000..df69c80e7cd --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/UpdateDelegationControlResponse.java @@ -0,0 +1,300 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.responses; + +import com.oracle.bmc.delegateaccesscontrol.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class UpdateDelegationControlResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The [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; + } + + /** URI of the resource */ + private String contentLocation; + + /** + * URI of the resource + * + * @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 returned {@code DelegationControl} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.DelegationControl delegationControl; + + /** + * The returned {@code DelegationControl} instance. + * + * @return the value + */ + public com.oracle.bmc.delegateaccesscontrol.model.DelegationControl getDelegationControl() { + return delegationControl; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId", + "contentLocation", + "etag", + "delegationControl" + }) + private UpdateDelegationControlResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId, + String contentLocation, + String etag, + com.oracle.bmc.delegateaccesscontrol.model.DelegationControl delegationControl) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + this.contentLocation = contentLocation; + this.etag = etag; + this.delegationControl = delegationControl; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + UpdateDelegationControlResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The [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; + } + + /** URI of the resource */ + private String contentLocation; + + /** + * URI of the resource + * + * @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 returned {@code DelegationControl} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.DelegationControl delegationControl; + + /** + * The returned {@code DelegationControl} instance. + * + * @param delegationControl the value to set + * @return this builder + */ + public Builder delegationControl( + com.oracle.bmc.delegateaccesscontrol.model.DelegationControl delegationControl) { + this.delegationControl = delegationControl; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateDelegationControlResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + contentLocation(o.getContentLocation()); + etag(o.getEtag()); + delegationControl(o.getDelegationControl()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateDelegationControlResponse build() { + return new UpdateDelegationControlResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcWorkRequestId, + contentLocation, + etag, + delegationControl); + } + } + + /** + * 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(",contentLocation=").append(String.valueOf(contentLocation)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",delegationControl=").append(String.valueOf(delegationControl)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDelegationControlResponse)) { + return false; + } + + UpdateDelegationControlResponse other = (UpdateDelegationControlResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.contentLocation, other.contentLocation) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.delegationControl, other.delegationControl); + } + + @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()); + result = + (result * PRIME) + + (this.contentLocation == null ? 43 : this.contentLocation.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.delegationControl == null ? 43 : this.delegationControl.hashCode()); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/UpdateDelegationSubscriptionResponse.java b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/UpdateDelegationSubscriptionResponse.java new file mode 100644 index 00000000000..41f2213ba6c --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/java/com/oracle/bmc/delegateaccesscontrol/responses/UpdateDelegationSubscriptionResponse.java @@ -0,0 +1,308 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.delegateaccesscontrol.responses; + +import com.oracle.bmc.delegateaccesscontrol.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") +public class UpdateDelegationSubscriptionResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The [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; + } + + /** URI of the resource */ + private String contentLocation; + + /** + * URI of the resource + * + * @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 returned {@code DelegationSubscription} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscription + delegationSubscription; + + /** + * The returned {@code DelegationSubscription} instance. + * + * @return the value + */ + public com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscription + getDelegationSubscription() { + return delegationSubscription; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId", + "contentLocation", + "etag", + "delegationSubscription" + }) + private UpdateDelegationSubscriptionResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId, + String contentLocation, + String etag, + com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscription + delegationSubscription) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + this.contentLocation = contentLocation; + this.etag = etag; + this.delegationSubscription = delegationSubscription; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + UpdateDelegationSubscriptionResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The [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; + } + + /** URI of the resource */ + private String contentLocation; + + /** + * URI of the resource + * + * @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 returned {@code DelegationSubscription} instance. */ + private com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscription + delegationSubscription; + + /** + * The returned {@code DelegationSubscription} instance. + * + * @param delegationSubscription the value to set + * @return this builder + */ + public Builder delegationSubscription( + com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscription + delegationSubscription) { + this.delegationSubscription = delegationSubscription; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateDelegationSubscriptionResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + contentLocation(o.getContentLocation()); + etag(o.getEtag()); + delegationSubscription(o.getDelegationSubscription()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateDelegationSubscriptionResponse build() { + return new UpdateDelegationSubscriptionResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcWorkRequestId, + contentLocation, + etag, + delegationSubscription); + } + } + + /** + * 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(",contentLocation=").append(String.valueOf(contentLocation)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",delegationSubscription=").append(String.valueOf(delegationSubscription)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDelegationSubscriptionResponse)) { + return false; + } + + UpdateDelegationSubscriptionResponse other = (UpdateDelegationSubscriptionResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.contentLocation, other.contentLocation) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals( + this.delegationSubscription, other.delegationSubscription); + } + + @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()); + result = + (result * PRIME) + + (this.contentLocation == null ? 43 : this.contentLocation.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.delegationSubscription == null + ? 43 + : this.delegationSubscription.hashCode()); + return result; + } +} diff --git a/bmc-delegateaccesscontrol/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-delegateaccesscontrol/reflect-config.json b/bmc-delegateaccesscontrol/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-delegateaccesscontrol/reflect-config.json new file mode 100644 index 00000000000..f2c34fd2e8c --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-delegateaccesscontrol/reflect-config.json @@ -0,0 +1,728 @@ +[ + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.ActionType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.ApproveDelegatedResourceAccessRequestDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.ApproveDelegatedResourceAccessRequestDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.AuditReportStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.ChangeDelegationControlCompartmentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.ChangeDelegationControlCompartmentDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.ChangeDelegationSubscriptionCompartmentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.ChangeDelegationSubscriptionCompartmentDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.CreateDelegationControlDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.CreateDelegationControlDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.CreateDelegationSubscriptionDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.CreateDelegationSubscriptionDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequest", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequest$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequest$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequestApprovalDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequestApprovalDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequestApprovalDetails$ApprovalAction", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequestApprovalDetails$ApprovalType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequestAuditLogReport", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequestAuditLogReport$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequestAuditType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequestHistoryCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequestHistoryCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequestHistorySummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequestHistorySummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequestSeverity", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequestStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequestSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequestSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequestSummaryCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequestSummaryCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegatedResourceAccessRequesterType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegationControl", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegationControl$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegationControl$NotificationMessageFormat", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegationControl$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegationControlResourceCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegationControlResourceCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegationControlResourceSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegationControlResourceSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegationControlResourceSummary$ResourceStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegationControlResourceType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegationControlSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegationControlSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegationControlSummaryCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegationControlSummaryCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscription", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscription$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscription$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscriptionSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscriptionSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscriptionSummaryCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.DelegationSubscriptionSummaryCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.OperationStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.OperationType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.RejectDelegatedResourceAccessRequestDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.RejectDelegatedResourceAccessRequestDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.RevokeDelegatedResourceAccessRequestDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.RevokeDelegatedResourceAccessRequestDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.ServiceProvider", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.ServiceProvider$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.ServiceProvider$ServiceProviderType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.ServiceProvider$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderAction", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderAction$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderAction$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderActionProperties", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderActionProperties$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderActionSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderActionSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderActionSummaryCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderActionSummaryCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderInteractionCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderInteractionCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderInteractionRequestDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderInteractionRequestDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderInteractionSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderInteractionSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderInteractionSummary$UserType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderServiceType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderSummaryCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.ServiceProviderSummaryCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.SortOrders", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.UpdateDelegationControlDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.UpdateDelegationControlDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.UpdateDelegationSubscriptionDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.UpdateDelegationSubscriptionDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.WorkRequest", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.WorkRequest$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.WorkRequestError", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.WorkRequestError$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.WorkRequestErrorCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.WorkRequestErrorCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.WorkRequestLogEntry", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.WorkRequestLogEntry$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.WorkRequestLogEntryCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.WorkRequestLogEntryCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.WorkRequestResource", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.WorkRequestResource$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.WorkRequestResourceMetadataKey", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.WorkRequestSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.WorkRequestSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.WorkRequestSummaryCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.delegateaccesscontrol.model.WorkRequestSummaryCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + } +] \ No newline at end of file diff --git a/bmc-delegateaccesscontrol/src/main/resources/com/oracle/bmc/delegateaccesscontrol/client.properties b/bmc-delegateaccesscontrol/src/main/resources/com/oracle/bmc/delegateaccesscontrol/client.properties new file mode 100644 index 00000000000..e307a9a5a64 --- /dev/null +++ b/bmc-delegateaccesscontrol/src/main/resources/com/oracle/bmc/delegateaccesscontrol/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.100 +java.minimum.client.codegen.version.from.client = 2.26 + +# @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") \ No newline at end of file diff --git a/bmc-demandsignal/pom.xml b/bmc-demandsignal/pom.xml index 29292a4c51b..6a918fc7db8 100644 --- a/bmc-demandsignal/pom.xml +++ b/bmc-demandsignal/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-demandsignal @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-desktops/pom.xml b/bmc-desktops/pom.xml index 57c76d58f20..7f26df4f933 100644 --- a/bmc-desktops/pom.xml +++ b/bmc-desktops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-desktops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-devops/pom.xml b/bmc-devops/pom.xml index a7c37025cf8..6d2ad534fcd 100644 --- a/bmc-devops/pom.xml +++ b/bmc-devops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-devops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-disasterrecovery/pom.xml b/bmc-disasterrecovery/pom.xml index f012430ebcd..7f61e0e9ca8 100644 --- a/bmc-disasterrecovery/pom.xml +++ b/bmc-disasterrecovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-disasterrecovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-dns/pom.xml b/bmc-dns/pom.xml index 2fff1519cba..0f96948b508 100644 --- a/bmc-dns/pom.xml +++ b/bmc-dns/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.47.0 + 3.48.0 diff --git a/bmc-dts/pom.xml b/bmc-dts/pom.xml index a7901617d0f..032c8bed89e 100644 --- a/bmc-dts/pom.xml +++ b/bmc-dts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-dts @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-email/pom.xml b/bmc-email/pom.xml index d56126b60fe..7a0d40b0858 100644 --- a/bmc-email/pom.xml +++ b/bmc-email/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-emaildataplane/pom.xml b/bmc-emaildataplane/pom.xml index ded3bd12dc1..8676b6c47d3 100644 --- a/bmc-emaildataplane/pom.xml +++ b/bmc-emaildataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-emaildataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-emwarehouse/pom.xml b/bmc-emwarehouse/pom.xml index 1eb645b626f..1c793ea8d56 100644 --- a/bmc-emwarehouse/pom.xml +++ b/bmc-emwarehouse/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-emwarehouse @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-encryption/pom.xml b/bmc-encryption/pom.xml index 20d9a3c602a..c3f558e3e67 100644 --- a/bmc-encryption/pom.xml +++ b/bmc-encryption/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml @@ -18,17 +18,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.47.0 + 3.48.0 com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.47.0 + 3.48.0 com.fasterxml.jackson.core @@ -43,7 +43,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.47.0 + 3.48.0 test diff --git a/bmc-enforcer-rules/pom.xml b/bmc-enforcer-rules/pom.xml index b70d5f45906..dcda23304d1 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.47.0 + 3.48.0 oci-java-sdk-enforcer-rules diff --git a/bmc-events/pom.xml b/bmc-events/pom.xml index 96947bdf9f2..1ce12810fea 100644 --- a/bmc-events/pom.xml +++ b/bmc-events/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-events @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-examples/pom.xml b/bmc-examples/pom.xml index 437a4434b0f..065554d3b1c 100644 --- a/bmc-examples/pom.xml +++ b/bmc-examples/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-examples @@ -71,14 +71,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.47.0 + 3.48.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.47.0 + 3.48.0 pom import @@ -181,6 +181,10 @@ com.oracle.oci.sdk oci-java-sdk-addons-resteasy-client-configurator + + com.oracle.oci.sdk + oci-java-sdk-addons-aispeech-realtime + com.oracle.oci.sdk oci-java-sdk-keymanagement @@ -714,5 +718,9 @@ com.oracle.oci.sdk oci-java-sdk-fleetappsmanagement + + com.oracle.oci.sdk + oci-java-sdk-delegateaccesscontrol + \ No newline at end of file diff --git a/bmc-examples/src/main/java/RealtimeSpeechExampleClient.java b/bmc-examples/src/main/java/RealtimeSpeechExampleClient.java index fbcd8122f56..6fdcf277f06 100644 --- a/bmc-examples/src/main/java/RealtimeSpeechExampleClient.java +++ b/bmc-examples/src/main/java/RealtimeSpeechExampleClient.java @@ -10,9 +10,10 @@ import com.oracle.bmc.aispeech.model.RealtimeParameters; import com.oracle.bmc.auth.SessionTokenAuthenticationDetailsProvider; import org.eclipse.jetty.websocket.client.WebSocketClient; -import realtimespeech.RealtimeSpeechClient; -import realtimespeech.RealtimeSpeechClientListener; -import realtimespeech.RealtimeSpeechConnectException; +import com.oracle.bmc.aispeech.realtimespeech.RealtimeSpeechClient; + +import com.oracle.bmc.aispeech.realtimespeech.RealtimeSpeechClientListener; +import com.oracle.bmc.aispeech.realtimespeech.RealtimeSpeechConnectException; import javax.sound.sampled.AudioFormat; import javax.sound.sampled.AudioInputStream; @@ -209,14 +210,17 @@ public static void startSession( ConfigFileReader.ConfigFile configFile, WebSocketClient client) { try { + // All these parameters are mandatory, otherwise you may see an IllegalStateException realtimeTestClient.realtimeClient = - new RealtimeSpeechClient( - realtimeTestClient, - new SessionTokenAuthenticationDetailsProvider(configFile), + RealtimeSpeechClient.builder() + .listener(realtimeTestClient) + .authenticationDetailsProvider( + new SessionTokenAuthenticationDetailsProvider(configFile)) // for API keys use // new ConfigFileAuthenticationDetailsProvider(configFile) - realtimeTestClient.compartmentId, - client); + .compartmentId(realtimeTestClient.compartmentId) + .webSocketClient(client) + .build(); // Map freeformTags = new HashMap(); // freeformTags.put("sampleTag", "sampleTagValue"); diff --git a/bmc-filestorage/pom.xml b/bmc-filestorage/pom.xml index 4e63c137558..0d596540f3e 100644 --- a/bmc-filestorage/pom.xml +++ b/bmc-filestorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/FileStorage.java b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/FileStorage.java index a8f43389b3c..da66643b9b5 100644 --- a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/FileStorage.java +++ b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/FileStorage.java @@ -66,6 +66,23 @@ public interface FileStorage extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Cancel scheduled downgrade shape request for mount target. + * + * @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 + * CancelDowngradeShapeMountTarget API. + */ + CancelDowngradeShapeMountTargetResponse cancelDowngradeShapeMountTarget( + CancelDowngradeShapeMountTargetRequest request); + /** * Moves a file system and its associated snapshots into a different compartment within the same * tenancy. For information about moving resources between compartments, see [Moving Resources @@ -845,6 +862,23 @@ ListFilesystemSnapshotPoliciesResponse listFilesystemSnapshotPolicies( PauseFilesystemSnapshotPolicyResponse pauseFilesystemSnapshotPolicy( PauseFilesystemSnapshotPolicyRequest request); + /** + * Schedule a downgrade shape of the mount target. + * + * @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 + * ScheduleDowngradeShapeMountTarget API. + */ + ScheduleDowngradeShapeMountTargetResponse scheduleDowngradeShapeMountTarget( + ScheduleDowngradeShapeMountTargetRequest request); + /** * This operation unpauses a paused file system snapshot policy and updates the lifecycle state * of the file system snapshot policy from INACTIVE to ACTIVE. By default, file system snapshot @@ -998,6 +1032,22 @@ UpdateFilesystemSnapshotPolicyResponse updateFilesystemSnapshotPolicy( */ UpdateSnapshotResponse updateSnapshot(UpdateSnapshotRequest request); + /** + * Upgrade shape request for mount target. + * + * @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 + * UpgradeShapeMountTarget API. + */ + UpgradeShapeMountTargetResponse upgradeShapeMountTarget(UpgradeShapeMountTargetRequest request); + /** * Validates keytab contents for the secret details passed on the request or validte keytab * contents associated with the mount target passed in the request. The keytabs are diff --git a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/FileStorageAsync.java b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/FileStorageAsync.java index 3f5eb2aa8a5..9d45f964668 100644 --- a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/FileStorageAsync.java +++ b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/FileStorageAsync.java @@ -63,6 +63,24 @@ public interface FileStorageAsync extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Cancel scheduled downgrade shape request for mount target. + * + * @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 + cancelDowngradeShapeMountTarget( + CancelDowngradeShapeMountTargetRequest request, + com.oracle.bmc.responses.AsyncHandler< + CancelDowngradeShapeMountTargetRequest, + CancelDowngradeShapeMountTargetResponse> + handler); + /** * Moves a file system and its associated snapshots into a different compartment within the same * tenancy. For information about moving resources between compartments, see [Moving Resources @@ -837,6 +855,24 @@ java.util.concurrent.Future listSnapshots( PauseFilesystemSnapshotPolicyResponse> handler); + /** + * Schedule a downgrade shape of the mount target. + * + * @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 + scheduleDowngradeShapeMountTarget( + ScheduleDowngradeShapeMountTargetRequest request, + com.oracle.bmc.responses.AsyncHandler< + ScheduleDowngradeShapeMountTargetRequest, + ScheduleDowngradeShapeMountTargetResponse> + handler); + /** * This operation unpauses a paused file system snapshot policy and updates the lifecycle state * of the file system snapshot policy from INACTIVE to ACTIVE. By default, file system snapshot @@ -990,6 +1026,22 @@ java.util.concurrent.Future updateSnapshot( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Upgrade shape request for mount target. + * + * @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 upgradeShapeMountTarget( + UpgradeShapeMountTargetRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpgradeShapeMountTargetRequest, UpgradeShapeMountTargetResponse> + handler); + /** * Validates keytab contents for the secret details passed on the request or validte keytab * contents associated with the mount target passed in the request. The keytabs are diff --git a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/FileStorageAsyncClient.java b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/FileStorageAsyncClient.java index 1966a1dd68b..d7935175444 100644 --- a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/FileStorageAsyncClient.java +++ b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/FileStorageAsyncClient.java @@ -94,6 +94,44 @@ public void setRegion(String regionId) { super.setRegion(regionId); } + @Override + public java.util.concurrent.Future + cancelDowngradeShapeMountTarget( + CancelDowngradeShapeMountTargetRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CancelDowngradeShapeMountTargetRequest, + CancelDowngradeShapeMountTargetResponse> + handler) { + + Validate.notBlank(request.getMountTargetId(), "mountTargetId must not be blank"); + + return clientCall(request, CancelDowngradeShapeMountTargetResponse::builder) + .logger(LOG, "cancelDowngradeShapeMountTarget") + .serviceDetails( + "FileStorage", + "CancelDowngradeShapeMountTarget", + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/CancelDowngradeShapeMountTarget") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CancelDowngradeShapeMountTargetRequest::builder) + .basePath("/20171215") + .appendPathParam("mountTargets") + .appendPathParam(request.getMountTargetId()) + .appendPathParam("actions") + .appendPathParam("cancelShapeDowngrade") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.filestorage.model.MountTarget.class, + CancelDowngradeShapeMountTargetResponse.Builder::mountTarget) + .handleResponseHeaderString( + "etag", CancelDowngradeShapeMountTargetResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + CancelDowngradeShapeMountTargetResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future changeFileSystemCompartment( @@ -1498,6 +1536,48 @@ public java.util.concurrent.Future listSnapshots( .callAsync(handler); } + @Override + public java.util.concurrent.Future + scheduleDowngradeShapeMountTarget( + ScheduleDowngradeShapeMountTargetRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ScheduleDowngradeShapeMountTargetRequest, + ScheduleDowngradeShapeMountTargetResponse> + handler) { + + Validate.notBlank(request.getMountTargetId(), "mountTargetId must not be blank"); + Objects.requireNonNull( + request.getScheduleDowngradeShapeMountTargetDetails(), + "scheduleDowngradeShapeMountTargetDetails is required"); + + return clientCall(request, ScheduleDowngradeShapeMountTargetResponse::builder) + .logger(LOG, "scheduleDowngradeShapeMountTarget") + .serviceDetails( + "FileStorage", + "ScheduleDowngradeShapeMountTarget", + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/ScheduleDowngradeShapeMountTarget") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ScheduleDowngradeShapeMountTargetRequest::builder) + .basePath("/20171215") + .appendPathParam("mountTargets") + .appendPathParam(request.getMountTargetId()) + .appendPathParam("actions") + .appendPathParam("scheduleShapeDowngrade") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.filestorage.model.MountTarget.class, + ScheduleDowngradeShapeMountTargetResponse.Builder::mountTarget) + .handleResponseHeaderString( + "etag", ScheduleDowngradeShapeMountTargetResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + ScheduleDowngradeShapeMountTargetResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future unpauseFilesystemSnapshotPolicy( @@ -1825,6 +1905,44 @@ public java.util.concurrent.Future updateSnapshot( .callAsync(handler); } + @Override + public java.util.concurrent.Future upgradeShapeMountTarget( + UpgradeShapeMountTargetRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpgradeShapeMountTargetRequest, UpgradeShapeMountTargetResponse> + handler) { + + Validate.notBlank(request.getMountTargetId(), "mountTargetId must not be blank"); + Objects.requireNonNull( + request.getUpgradeShapeMountTargetDetails(), + "upgradeShapeMountTargetDetails is required"); + + return clientCall(request, UpgradeShapeMountTargetResponse::builder) + .logger(LOG, "upgradeShapeMountTarget") + .serviceDetails( + "FileStorage", + "UpgradeShapeMountTarget", + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/UpgradeShapeMountTarget") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(UpgradeShapeMountTargetRequest::builder) + .basePath("/20171215") + .appendPathParam("mountTargets") + .appendPathParam(request.getMountTargetId()) + .appendPathParam("actions") + .appendPathParam("upgradeShape") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.filestorage.model.MountTarget.class, + UpgradeShapeMountTargetResponse.Builder::mountTarget) + .handleResponseHeaderString("etag", UpgradeShapeMountTargetResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", UpgradeShapeMountTargetResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future validateKeyTabs( ValidateKeyTabsRequest request, diff --git a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/FileStorageClient.java b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/FileStorageClient.java index 8bf06053b18..89ec7cb803f 100644 --- a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/FileStorageClient.java +++ b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/FileStorageClient.java @@ -122,6 +122,39 @@ public void setRegion(String regionId) { super.setRegion(regionId); } + @Override + public CancelDowngradeShapeMountTargetResponse cancelDowngradeShapeMountTarget( + CancelDowngradeShapeMountTargetRequest request) { + + Validate.notBlank(request.getMountTargetId(), "mountTargetId must not be blank"); + + return clientCall(request, CancelDowngradeShapeMountTargetResponse::builder) + .logger(LOG, "cancelDowngradeShapeMountTarget") + .serviceDetails( + "FileStorage", + "CancelDowngradeShapeMountTarget", + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/CancelDowngradeShapeMountTarget") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CancelDowngradeShapeMountTargetRequest::builder) + .basePath("/20171215") + .appendPathParam("mountTargets") + .appendPathParam(request.getMountTargetId()) + .appendPathParam("actions") + .appendPathParam("cancelShapeDowngrade") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.filestorage.model.MountTarget.class, + CancelDowngradeShapeMountTargetResponse.Builder::mountTarget) + .handleResponseHeaderString( + "etag", CancelDowngradeShapeMountTargetResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + CancelDowngradeShapeMountTargetResponse.Builder::opcRequestId) + .callSync(); + } + @Override public ChangeFileSystemCompartmentResponse changeFileSystemCompartment( ChangeFileSystemCompartmentRequest request) { @@ -1367,6 +1400,43 @@ public PauseFilesystemSnapshotPolicyResponse pauseFilesystemSnapshotPolicy( .callSync(); } + @Override + public ScheduleDowngradeShapeMountTargetResponse scheduleDowngradeShapeMountTarget( + ScheduleDowngradeShapeMountTargetRequest request) { + + Validate.notBlank(request.getMountTargetId(), "mountTargetId must not be blank"); + Objects.requireNonNull( + request.getScheduleDowngradeShapeMountTargetDetails(), + "scheduleDowngradeShapeMountTargetDetails is required"); + + return clientCall(request, ScheduleDowngradeShapeMountTargetResponse::builder) + .logger(LOG, "scheduleDowngradeShapeMountTarget") + .serviceDetails( + "FileStorage", + "ScheduleDowngradeShapeMountTarget", + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/ScheduleDowngradeShapeMountTarget") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ScheduleDowngradeShapeMountTargetRequest::builder) + .basePath("/20171215") + .appendPathParam("mountTargets") + .appendPathParam(request.getMountTargetId()) + .appendPathParam("actions") + .appendPathParam("scheduleShapeDowngrade") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.filestorage.model.MountTarget.class, + ScheduleDowngradeShapeMountTargetResponse.Builder::mountTarget) + .handleResponseHeaderString( + "etag", ScheduleDowngradeShapeMountTargetResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + ScheduleDowngradeShapeMountTargetResponse.Builder::opcRequestId) + .callSync(); + } + @Override public UnpauseFilesystemSnapshotPolicyResponse unpauseFilesystemSnapshotPolicy( UnpauseFilesystemSnapshotPolicyRequest request) { @@ -1658,6 +1728,41 @@ public UpdateSnapshotResponse updateSnapshot(UpdateSnapshotRequest request) { .callSync(); } + @Override + public UpgradeShapeMountTargetResponse upgradeShapeMountTarget( + UpgradeShapeMountTargetRequest request) { + + Validate.notBlank(request.getMountTargetId(), "mountTargetId must not be blank"); + Objects.requireNonNull( + request.getUpgradeShapeMountTargetDetails(), + "upgradeShapeMountTargetDetails is required"); + + return clientCall(request, UpgradeShapeMountTargetResponse::builder) + .logger(LOG, "upgradeShapeMountTarget") + .serviceDetails( + "FileStorage", + "UpgradeShapeMountTarget", + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/UpgradeShapeMountTarget") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(UpgradeShapeMountTargetRequest::builder) + .basePath("/20171215") + .appendPathParam("mountTargets") + .appendPathParam(request.getMountTargetId()) + .appendPathParam("actions") + .appendPathParam("upgradeShape") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.filestorage.model.MountTarget.class, + UpgradeShapeMountTargetResponse.Builder::mountTarget) + .handleResponseHeaderString("etag", UpgradeShapeMountTargetResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", UpgradeShapeMountTargetResponse.Builder::opcRequestId) + .callSync(); + } + @Override public ValidateKeyTabsResponse validateKeyTabs(ValidateKeyTabsRequest request) { Objects.requireNonNull( diff --git a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/CreateMountTargetDetails.java b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/CreateMountTargetDetails.java index e3372d2efd3..c0a2748abd4 100644 --- a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/CreateMountTargetDetails.java +++ b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/CreateMountTargetDetails.java @@ -35,7 +35,8 @@ public final class CreateMountTargetDetails "nsgIds", "kerberos", "freeformTags", - "definedTags" + "definedTags", + "requestedThroughput" }) public CreateMountTargetDetails( String availabilityDomain, @@ -49,7 +50,8 @@ public CreateMountTargetDetails( java.util.List nsgIds, CreateKerberosDetails kerberos, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + Long requestedThroughput) { super(); this.availabilityDomain = availabilityDomain; this.compartmentId = compartmentId; @@ -63,6 +65,7 @@ public CreateMountTargetDetails( this.kerberos = kerberos; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.requestedThroughput = requestedThroughput; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -190,15 +193,6 @@ public Builder hostnameLabel(String hostnameLabel) { * CIDR. If you don't specify a value, Oracle automatically assigns a private IP address * from the subnet. * - *

Note: This attribute value is stored in the - * [PrivateIp](https://docs.cloud.oracle.com/en-us/iaas/api/#/en/iaas/20160918/PrivateIp/) - * resource, not in the {@code mountTarget} resource. To update the {@code ipAddress}, use - * {@code GetMountTarget} to obtain the - * [OCIDs](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * mount target's private IPs ({@code privateIpIds}). Then, you can use - * [UpdatePrivateIp](https://docs.cloud.oracle.com/en-us/iaas/api/#/en/iaas/20160918/PrivateIp/UpdatePrivateIp) - * to update the {@code ipAddress} value. - * *

Example: {@code 10.0.3.3} */ @com.fasterxml.jackson.annotation.JsonProperty("ipAddress") @@ -209,15 +203,6 @@ public Builder hostnameLabel(String hostnameLabel) { * CIDR. If you don't specify a value, Oracle automatically assigns a private IP address * from the subnet. * - *

Note: This attribute value is stored in the - * [PrivateIp](https://docs.cloud.oracle.com/en-us/iaas/api/#/en/iaas/20160918/PrivateIp/) - * resource, not in the {@code mountTarget} resource. To update the {@code ipAddress}, use - * {@code GetMountTarget} to obtain the - * [OCIDs](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * mount target's private IPs ({@code privateIpIds}). Then, you can use - * [UpdatePrivateIp](https://docs.cloud.oracle.com/en-us/iaas/api/#/en/iaas/20160918/PrivateIp/UpdatePrivateIp) - * to update the {@code ipAddress} value. - * *

Example: {@code 10.0.3.3} * * @param ipAddress the value to set @@ -354,6 +339,29 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Throughput for mount target in Gbps. Currently only 1 Gbps of requestedThroughput is + * supported during create MountTarget. Available shapes and corresponding throughput are + * listed at [Mount Target + * Performance](https://docs.oracle.com/iaas/Content/File/Tasks/managingmounttargets.htm#performance). + */ + @com.fasterxml.jackson.annotation.JsonProperty("requestedThroughput") + private Long requestedThroughput; + + /** + * Throughput for mount target in Gbps. Currently only 1 Gbps of requestedThroughput is + * supported during create MountTarget. Available shapes and corresponding throughput are + * listed at [Mount Target + * Performance](https://docs.oracle.com/iaas/Content/File/Tasks/managingmounttargets.htm#performance). + * + * @param requestedThroughput the value to set + * @return this builder + */ + public Builder requestedThroughput(Long requestedThroughput) { + this.requestedThroughput = requestedThroughput; + this.__explicitlySet__.add("requestedThroughput"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -372,7 +380,8 @@ public CreateMountTargetDetails build() { this.nsgIds, this.kerberos, this.freeformTags, - this.definedTags); + this.definedTags, + this.requestedThroughput); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -417,6 +426,9 @@ public Builder copy(CreateMountTargetDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("requestedThroughput")) { + this.requestedThroughput(model.getRequestedThroughput()); + } return this; } } @@ -543,15 +555,6 @@ public String getHostnameLabel() { * CIDR. If you don't specify a value, Oracle automatically assigns a private IP address from * the subnet. * - *

Note: This attribute value is stored in the - * [PrivateIp](https://docs.cloud.oracle.com/en-us/iaas/api/#/en/iaas/20160918/PrivateIp/) - * resource, not in the {@code mountTarget} resource. To update the {@code ipAddress}, use - * {@code GetMountTarget} to obtain the - * [OCIDs](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the mount - * target's private IPs ({@code privateIpIds}). Then, you can use - * [UpdatePrivateIp](https://docs.cloud.oracle.com/en-us/iaas/api/#/en/iaas/20160918/PrivateIp/UpdatePrivateIp) - * to update the {@code ipAddress} value. - * *

Example: {@code 10.0.3.3} */ @com.fasterxml.jackson.annotation.JsonProperty("ipAddress") @@ -562,15 +565,6 @@ public String getHostnameLabel() { * CIDR. If you don't specify a value, Oracle automatically assigns a private IP address from * the subnet. * - *

Note: This attribute value is stored in the - * [PrivateIp](https://docs.cloud.oracle.com/en-us/iaas/api/#/en/iaas/20160918/PrivateIp/) - * resource, not in the {@code mountTarget} resource. To update the {@code ipAddress}, use - * {@code GetMountTarget} to obtain the - * [OCIDs](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the mount - * target's private IPs ({@code privateIpIds}). Then, you can use - * [UpdatePrivateIp](https://docs.cloud.oracle.com/en-us/iaas/api/#/en/iaas/20160918/PrivateIp/UpdatePrivateIp) - * to update the {@code ipAddress} value. - * *

Example: {@code 10.0.3.3} * * @return the value @@ -688,6 +682,27 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Throughput for mount target in Gbps. Currently only 1 Gbps of requestedThroughput is + * supported during create MountTarget. Available shapes and corresponding throughput are listed + * at [Mount Target + * Performance](https://docs.oracle.com/iaas/Content/File/Tasks/managingmounttargets.htm#performance). + */ + @com.fasterxml.jackson.annotation.JsonProperty("requestedThroughput") + private final Long requestedThroughput; + + /** + * Throughput for mount target in Gbps. Currently only 1 Gbps of requestedThroughput is + * supported during create MountTarget. Available shapes and corresponding throughput are listed + * at [Mount Target + * Performance](https://docs.oracle.com/iaas/Content/File/Tasks/managingmounttargets.htm#performance). + * + * @return the value + */ + public Long getRequestedThroughput() { + return requestedThroughput; + } + @Override public String toString() { return this.toString(true); @@ -715,6 +730,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", kerberos=").append(String.valueOf(this.kerberos)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", requestedThroughput=").append(String.valueOf(this.requestedThroughput)); sb.append(")"); return sb.toString(); } @@ -741,6 +757,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.kerberos, other.kerberos) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.requestedThroughput, other.requestedThroughput) && super.equals(other); } @@ -768,6 +785,11 @@ public int hashCode() { result = (result * PRIME) + (this.kerberos == null ? 43 : this.kerberos.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.requestedThroughput == null + ? 43 + : this.requestedThroughput.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/MountTarget.java b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/MountTarget.java index f9deb6295fb..77d35c88af5 100644 --- a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/MountTarget.java +++ b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/MountTarget.java @@ -36,6 +36,10 @@ public final class MountTarget extends com.oracle.bmc.http.client.internal.Expli "ldapIdmap", "nsgIds", "kerberos", + "timeBillingCycleEnd", + "observedThroughput", + "requestedThroughput", + "reservedStorageCapacity", "timeCreated", "freeformTags", "definedTags" @@ -54,6 +58,10 @@ public MountTarget( LdapIdmap ldapIdmap, java.util.List nsgIds, Kerberos kerberos, + java.util.Date timeBillingCycleEnd, + Long observedThroughput, + Long requestedThroughput, + Long reservedStorageCapacity, java.util.Date timeCreated, java.util.Map freeformTags, java.util.Map> definedTags) { @@ -71,6 +79,10 @@ public MountTarget( this.ldapIdmap = ldapIdmap; this.nsgIds = nsgIds; this.kerberos = kerberos; + this.timeBillingCycleEnd = timeBillingCycleEnd; + this.observedThroughput = observedThroughput; + this.requestedThroughput = requestedThroughput; + this.reservedStorageCapacity = reservedStorageCapacity; this.timeCreated = timeCreated; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -309,6 +321,86 @@ public Builder kerberos(Kerberos kerberos) { this.__explicitlySet__.add("kerberos"); return this; } + /** + * The date and time the mount target current billing cycle will end and next one starts, + * expressed in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2016-08-25T21:10:29.600Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeBillingCycleEnd") + private java.util.Date timeBillingCycleEnd; + + /** + * The date and time the mount target current billing cycle will end and next one starts, + * expressed in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2016-08-25T21:10:29.600Z} + * + * @param timeBillingCycleEnd the value to set + * @return this builder + */ + public Builder timeBillingCycleEnd(java.util.Date timeBillingCycleEnd) { + this.timeBillingCycleEnd = timeBillingCycleEnd; + this.__explicitlySet__.add("timeBillingCycleEnd"); + return this; + } + /** + * Current billed throughput for mount target in Gbps. This corresponds to shape of mount + * target. Available shapes and corresponding throughput are listed at [Mount Target + * Performance](https://docs.oracle.com/iaas/Content/File/Tasks/managingmounttargets.htm#performance). + */ + @com.fasterxml.jackson.annotation.JsonProperty("observedThroughput") + private Long observedThroughput; + + /** + * Current billed throughput for mount target in Gbps. This corresponds to shape of mount + * target. Available shapes and corresponding throughput are listed at [Mount Target + * Performance](https://docs.oracle.com/iaas/Content/File/Tasks/managingmounttargets.htm#performance). + * + * @param observedThroughput the value to set + * @return this builder + */ + public Builder observedThroughput(Long observedThroughput) { + this.observedThroughput = observedThroughput; + this.__explicitlySet__.add("observedThroughput"); + return this; + } + /** - New throughput for mount target at the end of billing cycle in Gbps. */ + @com.fasterxml.jackson.annotation.JsonProperty("requestedThroughput") + private Long requestedThroughput; + + /** + * - New throughput for mount target at the end of billing cycle in Gbps. + * + * @param requestedThroughput the value to set + * @return this builder + */ + public Builder requestedThroughput(Long requestedThroughput) { + this.requestedThroughput = requestedThroughput; + this.__explicitlySet__.add("requestedThroughput"); + return this; + } + /** + * - Reserved capacity (GB) associated with this mount target. Reserved capacity depends on + * observedThroughput value of mount target. Value is listed at [Mount Target + * Performance](https://docs.oracle.com/iaas/Content/File/Tasks/managingmounttargets.htm#performance). + */ + @com.fasterxml.jackson.annotation.JsonProperty("reservedStorageCapacity") + private Long reservedStorageCapacity; + + /** + * - Reserved capacity (GB) associated with this mount target. Reserved capacity depends on + * observedThroughput value of mount target. Value is listed at [Mount Target + * Performance](https://docs.oracle.com/iaas/Content/File/Tasks/managingmounttargets.htm#performance). + * + * @param reservedStorageCapacity the value to set + * @return this builder + */ + public Builder reservedStorageCapacity(Long reservedStorageCapacity) { + this.reservedStorageCapacity = reservedStorageCapacity; + this.__explicitlySet__.add("reservedStorageCapacity"); + return this; + } /** * The date and time the mount target was created, expressed in [RFC * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. @@ -399,6 +491,10 @@ public MountTarget build() { this.ldapIdmap, this.nsgIds, this.kerberos, + this.timeBillingCycleEnd, + this.observedThroughput, + this.requestedThroughput, + this.reservedStorageCapacity, this.timeCreated, this.freeformTags, this.definedTags); @@ -449,6 +545,18 @@ public Builder copy(MountTarget model) { if (model.wasPropertyExplicitlySet("kerberos")) { this.kerberos(model.getKerberos()); } + if (model.wasPropertyExplicitlySet("timeBillingCycleEnd")) { + this.timeBillingCycleEnd(model.getTimeBillingCycleEnd()); + } + if (model.wasPropertyExplicitlySet("observedThroughput")) { + this.observedThroughput(model.getObservedThroughput()); + } + if (model.wasPropertyExplicitlySet("requestedThroughput")) { + this.requestedThroughput(model.getRequestedThroughput()); + } + if (model.wasPropertyExplicitlySet("reservedStorageCapacity")) { + this.reservedStorageCapacity(model.getReservedStorageCapacity()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -584,6 +692,7 @@ public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { Deleting("DELETING"), Deleted("DELETED"), Failed("FAILED"), + Updating("UPDATING"), /** * This value is used if a service returns a value for this enum that is not recognized by @@ -772,6 +881,78 @@ public Kerberos getKerberos() { return kerberos; } + /** + * The date and time the mount target current billing cycle will end and next one starts, + * expressed in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2016-08-25T21:10:29.600Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeBillingCycleEnd") + private final java.util.Date timeBillingCycleEnd; + + /** + * The date and time the mount target current billing cycle will end and next one starts, + * expressed in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. + * + *

Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeBillingCycleEnd() { + return timeBillingCycleEnd; + } + + /** + * Current billed throughput for mount target in Gbps. This corresponds to shape of mount + * target. Available shapes and corresponding throughput are listed at [Mount Target + * Performance](https://docs.oracle.com/iaas/Content/File/Tasks/managingmounttargets.htm#performance). + */ + @com.fasterxml.jackson.annotation.JsonProperty("observedThroughput") + private final Long observedThroughput; + + /** + * Current billed throughput for mount target in Gbps. This corresponds to shape of mount + * target. Available shapes and corresponding throughput are listed at [Mount Target + * Performance](https://docs.oracle.com/iaas/Content/File/Tasks/managingmounttargets.htm#performance). + * + * @return the value + */ + public Long getObservedThroughput() { + return observedThroughput; + } + + /** - New throughput for mount target at the end of billing cycle in Gbps. */ + @com.fasterxml.jackson.annotation.JsonProperty("requestedThroughput") + private final Long requestedThroughput; + + /** + * - New throughput for mount target at the end of billing cycle in Gbps. + * + * @return the value + */ + public Long getRequestedThroughput() { + return requestedThroughput; + } + + /** + * - Reserved capacity (GB) associated with this mount target. Reserved capacity depends on + * observedThroughput value of mount target. Value is listed at [Mount Target + * Performance](https://docs.oracle.com/iaas/Content/File/Tasks/managingmounttargets.htm#performance). + */ + @com.fasterxml.jackson.annotation.JsonProperty("reservedStorageCapacity") + private final Long reservedStorageCapacity; + + /** + * - Reserved capacity (GB) associated with this mount target. Reserved capacity depends on + * observedThroughput value of mount target. Value is listed at [Mount Target + * Performance](https://docs.oracle.com/iaas/Content/File/Tasks/managingmounttargets.htm#performance). + * + * @return the value + */ + public Long getReservedStorageCapacity() { + return reservedStorageCapacity; + } + /** * The date and time the mount target was created, expressed in [RFC * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. @@ -863,6 +1044,11 @@ public String toString(boolean includeByteArrayContents) { sb.append(", ldapIdmap=").append(String.valueOf(this.ldapIdmap)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", kerberos=").append(String.valueOf(this.kerberos)); + sb.append(", timeBillingCycleEnd=").append(String.valueOf(this.timeBillingCycleEnd)); + sb.append(", observedThroughput=").append(String.valueOf(this.observedThroughput)); + sb.append(", requestedThroughput=").append(String.valueOf(this.requestedThroughput)); + sb.append(", reservedStorageCapacity=") + .append(String.valueOf(this.reservedStorageCapacity)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); @@ -893,6 +1079,11 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.ldapIdmap, other.ldapIdmap) && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.kerberos, other.kerberos) + && java.util.Objects.equals(this.timeBillingCycleEnd, other.timeBillingCycleEnd) + && java.util.Objects.equals(this.observedThroughput, other.observedThroughput) + && java.util.Objects.equals(this.requestedThroughput, other.requestedThroughput) + && java.util.Objects.equals( + this.reservedStorageCapacity, other.reservedStorageCapacity) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) @@ -926,6 +1117,26 @@ public int hashCode() { result = (result * PRIME) + (this.ldapIdmap == null ? 43 : this.ldapIdmap.hashCode()); result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); result = (result * PRIME) + (this.kerberos == null ? 43 : this.kerberos.hashCode()); + result = + (result * PRIME) + + (this.timeBillingCycleEnd == null + ? 43 + : this.timeBillingCycleEnd.hashCode()); + result = + (result * PRIME) + + (this.observedThroughput == null + ? 43 + : this.observedThroughput.hashCode()); + result = + (result * PRIME) + + (this.requestedThroughput == null + ? 43 + : this.requestedThroughput.hashCode()); + result = + (result * PRIME) + + (this.reservedStorageCapacity == null + ? 43 + : this.reservedStorageCapacity.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); diff --git a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/MountTargetSummary.java b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/MountTargetSummary.java index 916ce0aedfe..522c0bbc665 100644 --- a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/MountTargetSummary.java +++ b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/MountTargetSummary.java @@ -33,6 +33,10 @@ public final class MountTargetSummary "privateIpIds", "subnetId", "nsgIds", + "timeBillingCycleEnd", + "observedThroughput", + "requestedThroughput", + "reservedStorageCapacity", "timeCreated", "freeformTags", "definedTags" @@ -47,6 +51,10 @@ public MountTargetSummary( java.util.List privateIpIds, String subnetId, java.util.List nsgIds, + java.util.Date timeBillingCycleEnd, + Long observedThroughput, + Long requestedThroughput, + Long reservedStorageCapacity, java.util.Date timeCreated, java.util.Map freeformTags, java.util.Map> definedTags) { @@ -60,6 +68,10 @@ public MountTargetSummary( this.privateIpIds = privateIpIds; this.subnetId = subnetId; this.nsgIds = nsgIds; + this.timeBillingCycleEnd = timeBillingCycleEnd; + this.observedThroughput = observedThroughput; + this.requestedThroughput = requestedThroughput; + this.reservedStorageCapacity = reservedStorageCapacity; this.timeCreated = timeCreated; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -246,6 +258,88 @@ public Builder nsgIds(java.util.List nsgIds) { this.__explicitlySet__.add("nsgIds"); return this; } + /** + * The date and time the mount target current billing cycle will end, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. Once a cycle ends, it is + * updated automatically to next timestamp which is after 30 days. + * + *

Example: {@code 2016-08-25T21:10:29.600Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeBillingCycleEnd") + private java.util.Date timeBillingCycleEnd; + + /** + * The date and time the mount target current billing cycle will end, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. Once a cycle ends, it is + * updated automatically to next timestamp which is after 30 days. + * + *

Example: {@code 2016-08-25T21:10:29.600Z} + * + * @param timeBillingCycleEnd the value to set + * @return this builder + */ + public Builder timeBillingCycleEnd(java.util.Date timeBillingCycleEnd) { + this.timeBillingCycleEnd = timeBillingCycleEnd; + this.__explicitlySet__.add("timeBillingCycleEnd"); + return this; + } + /** + * Current billed throughput for mount target in Gbps. This corresponds to shape of mount + * target. Available shapes and corresponding throughput are listed at [Mount Target + * Performance](https://docs.oracle.com/iaas/Content/File/Tasks/managingmounttargets.htm#performance). + */ + @com.fasterxml.jackson.annotation.JsonProperty("observedThroughput") + private Long observedThroughput; + + /** + * Current billed throughput for mount target in Gbps. This corresponds to shape of mount + * target. Available shapes and corresponding throughput are listed at [Mount Target + * Performance](https://docs.oracle.com/iaas/Content/File/Tasks/managingmounttargets.htm#performance). + * + * @param observedThroughput the value to set + * @return this builder + */ + public Builder observedThroughput(Long observedThroughput) { + this.observedThroughput = observedThroughput; + this.__explicitlySet__.add("observedThroughput"); + return this; + } + /** - New throughput for mount target at the end of billing cycle in Gbps. */ + @com.fasterxml.jackson.annotation.JsonProperty("requestedThroughput") + private Long requestedThroughput; + + /** + * - New throughput for mount target at the end of billing cycle in Gbps. + * + * @param requestedThroughput the value to set + * @return this builder + */ + public Builder requestedThroughput(Long requestedThroughput) { + this.requestedThroughput = requestedThroughput; + this.__explicitlySet__.add("requestedThroughput"); + return this; + } + /** + * - Reserved capacity (GB) associated with this mount target. Reserved capacity depends on + * observedThroughput value of mount target. Value is listed at [Mount Target + * Performance](https://docs.oracle.com/iaas/Content/File/Tasks/managingmounttargets.htm#performance). + */ + @com.fasterxml.jackson.annotation.JsonProperty("reservedStorageCapacity") + private Long reservedStorageCapacity; + + /** + * - Reserved capacity (GB) associated with this mount target. Reserved capacity depends on + * observedThroughput value of mount target. Value is listed at [Mount Target + * Performance](https://docs.oracle.com/iaas/Content/File/Tasks/managingmounttargets.htm#performance). + * + * @param reservedStorageCapacity the value to set + * @return this builder + */ + public Builder reservedStorageCapacity(Long reservedStorageCapacity) { + this.reservedStorageCapacity = reservedStorageCapacity; + this.__explicitlySet__.add("reservedStorageCapacity"); + return this; + } /** * The date and time the mount target was created, expressed in [RFC * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. @@ -332,6 +426,10 @@ public MountTargetSummary build() { this.privateIpIds, this.subnetId, this.nsgIds, + this.timeBillingCycleEnd, + this.observedThroughput, + this.requestedThroughput, + this.reservedStorageCapacity, this.timeCreated, this.freeformTags, this.definedTags); @@ -370,6 +468,18 @@ public Builder copy(MountTargetSummary model) { if (model.wasPropertyExplicitlySet("nsgIds")) { this.nsgIds(model.getNsgIds()); } + if (model.wasPropertyExplicitlySet("timeBillingCycleEnd")) { + this.timeBillingCycleEnd(model.getTimeBillingCycleEnd()); + } + if (model.wasPropertyExplicitlySet("observedThroughput")) { + this.observedThroughput(model.getObservedThroughput()); + } + if (model.wasPropertyExplicitlySet("requestedThroughput")) { + this.requestedThroughput(model.getRequestedThroughput()); + } + if (model.wasPropertyExplicitlySet("reservedStorageCapacity")) { + this.reservedStorageCapacity(model.getReservedStorageCapacity()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -492,6 +602,7 @@ public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { Deleting("DELETING"), Deleted("DELETED"), Failed("FAILED"), + Updating("UPDATING"), /** * This value is used if a service returns a value for this enum that is not recognized by @@ -600,6 +711,80 @@ public java.util.List getNsgIds() { return nsgIds; } + /** + * The date and time the mount target current billing cycle will end, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. Once a cycle ends, it is updated + * automatically to next timestamp which is after 30 days. + * + *

Example: {@code 2016-08-25T21:10:29.600Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeBillingCycleEnd") + private final java.util.Date timeBillingCycleEnd; + + /** + * The date and time the mount target current billing cycle will end, expressed in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. Once a cycle ends, it is updated + * automatically to next timestamp which is after 30 days. + * + *

Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeBillingCycleEnd() { + return timeBillingCycleEnd; + } + + /** + * Current billed throughput for mount target in Gbps. This corresponds to shape of mount + * target. Available shapes and corresponding throughput are listed at [Mount Target + * Performance](https://docs.oracle.com/iaas/Content/File/Tasks/managingmounttargets.htm#performance). + */ + @com.fasterxml.jackson.annotation.JsonProperty("observedThroughput") + private final Long observedThroughput; + + /** + * Current billed throughput for mount target in Gbps. This corresponds to shape of mount + * target. Available shapes and corresponding throughput are listed at [Mount Target + * Performance](https://docs.oracle.com/iaas/Content/File/Tasks/managingmounttargets.htm#performance). + * + * @return the value + */ + public Long getObservedThroughput() { + return observedThroughput; + } + + /** - New throughput for mount target at the end of billing cycle in Gbps. */ + @com.fasterxml.jackson.annotation.JsonProperty("requestedThroughput") + private final Long requestedThroughput; + + /** + * - New throughput for mount target at the end of billing cycle in Gbps. + * + * @return the value + */ + public Long getRequestedThroughput() { + return requestedThroughput; + } + + /** + * - Reserved capacity (GB) associated with this mount target. Reserved capacity depends on + * observedThroughput value of mount target. Value is listed at [Mount Target + * Performance](https://docs.oracle.com/iaas/Content/File/Tasks/managingmounttargets.htm#performance). + */ + @com.fasterxml.jackson.annotation.JsonProperty("reservedStorageCapacity") + private final Long reservedStorageCapacity; + + /** + * - Reserved capacity (GB) associated with this mount target. Reserved capacity depends on + * observedThroughput value of mount target. Value is listed at [Mount Target + * Performance](https://docs.oracle.com/iaas/Content/File/Tasks/managingmounttargets.htm#performance). + * + * @return the value + */ + public Long getReservedStorageCapacity() { + return reservedStorageCapacity; + } + /** * The date and time the mount target was created, expressed in [RFC * 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. @@ -687,6 +872,11 @@ public String toString(boolean includeByteArrayContents) { sb.append(", privateIpIds=").append(String.valueOf(this.privateIpIds)); sb.append(", subnetId=").append(String.valueOf(this.subnetId)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); + sb.append(", timeBillingCycleEnd=").append(String.valueOf(this.timeBillingCycleEnd)); + sb.append(", observedThroughput=").append(String.valueOf(this.observedThroughput)); + sb.append(", requestedThroughput=").append(String.valueOf(this.requestedThroughput)); + sb.append(", reservedStorageCapacity=") + .append(String.valueOf(this.reservedStorageCapacity)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); @@ -713,6 +903,11 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.privateIpIds, other.privateIpIds) && java.util.Objects.equals(this.subnetId, other.subnetId) && java.util.Objects.equals(this.nsgIds, other.nsgIds) + && java.util.Objects.equals(this.timeBillingCycleEnd, other.timeBillingCycleEnd) + && java.util.Objects.equals(this.observedThroughput, other.observedThroughput) + && java.util.Objects.equals(this.requestedThroughput, other.requestedThroughput) + && java.util.Objects.equals( + this.reservedStorageCapacity, other.reservedStorageCapacity) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) @@ -740,6 +935,26 @@ public int hashCode() { result = (result * PRIME) + (this.privateIpIds == null ? 43 : this.privateIpIds.hashCode()); result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); + result = + (result * PRIME) + + (this.timeBillingCycleEnd == null + ? 43 + : this.timeBillingCycleEnd.hashCode()); + result = + (result * PRIME) + + (this.observedThroughput == null + ? 43 + : this.observedThroughput.hashCode()); + result = + (result * PRIME) + + (this.requestedThroughput == null + ? 43 + : this.requestedThroughput.hashCode()); + result = + (result * PRIME) + + (this.reservedStorageCapacity == null + ? 43 + : this.reservedStorageCapacity.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); diff --git a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/ScheduleDowngradeShapeMountTargetDetails.java b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/ScheduleDowngradeShapeMountTargetDetails.java new file mode 100644 index 00000000000..46a5f24f344 --- /dev/null +++ b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/ScheduleDowngradeShapeMountTargetDetails.java @@ -0,0 +1,152 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.filestorage.model; + +/** + * Shape details about the Mount Target.
+ * 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: 20171215") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ScheduleDowngradeShapeMountTargetDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ScheduleDowngradeShapeMountTargetDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"requestedThroughput"}) + public ScheduleDowngradeShapeMountTargetDetails(Long requestedThroughput) { + super(); + this.requestedThroughput = requestedThroughput; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * New throughput for mount target in Gbps. Available shapes and corresponding throughput + * are listed at [Mount Target + * Performance](https://docs.oracle.com/iaas/Content/File/Tasks/managingmounttargets.htm#performance). + */ + @com.fasterxml.jackson.annotation.JsonProperty("requestedThroughput") + private Long requestedThroughput; + + /** + * New throughput for mount target in Gbps. Available shapes and corresponding throughput + * are listed at [Mount Target + * Performance](https://docs.oracle.com/iaas/Content/File/Tasks/managingmounttargets.htm#performance). + * + * @param requestedThroughput the value to set + * @return this builder + */ + public Builder requestedThroughput(Long requestedThroughput) { + this.requestedThroughput = requestedThroughput; + this.__explicitlySet__.add("requestedThroughput"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ScheduleDowngradeShapeMountTargetDetails build() { + ScheduleDowngradeShapeMountTargetDetails model = + new ScheduleDowngradeShapeMountTargetDetails(this.requestedThroughput); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ScheduleDowngradeShapeMountTargetDetails model) { + if (model.wasPropertyExplicitlySet("requestedThroughput")) { + this.requestedThroughput(model.getRequestedThroughput()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * New throughput for mount target in Gbps. Available shapes and corresponding throughput are + * listed at [Mount Target + * Performance](https://docs.oracle.com/iaas/Content/File/Tasks/managingmounttargets.htm#performance). + */ + @com.fasterxml.jackson.annotation.JsonProperty("requestedThroughput") + private final Long requestedThroughput; + + /** + * New throughput for mount target in Gbps. Available shapes and corresponding throughput are + * listed at [Mount Target + * Performance](https://docs.oracle.com/iaas/Content/File/Tasks/managingmounttargets.htm#performance). + * + * @return the value + */ + public Long getRequestedThroughput() { + return requestedThroughput; + } + + @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("ScheduleDowngradeShapeMountTargetDetails("); + sb.append("super=").append(super.toString()); + sb.append("requestedThroughput=").append(String.valueOf(this.requestedThroughput)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ScheduleDowngradeShapeMountTargetDetails)) { + return false; + } + + ScheduleDowngradeShapeMountTargetDetails other = + (ScheduleDowngradeShapeMountTargetDetails) o; + return java.util.Objects.equals(this.requestedThroughput, other.requestedThroughput) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.requestedThroughput == null + ? 43 + : this.requestedThroughput.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/UpgradeShapeMountTargetDetails.java b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/UpgradeShapeMountTargetDetails.java new file mode 100644 index 00000000000..1dc68b20a73 --- /dev/null +++ b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/model/UpgradeShapeMountTargetDetails.java @@ -0,0 +1,151 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.filestorage.model; + +/** + * Shape details about the Mount Target.
+ * 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: 20171215") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpgradeShapeMountTargetDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpgradeShapeMountTargetDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"requestedThroughput"}) + public UpgradeShapeMountTargetDetails(Long requestedThroughput) { + super(); + this.requestedThroughput = requestedThroughput; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * New throughput for mount target in Gbps. Available shapes and corresponding throughput + * are listed at [Mount Target + * Performance](https://docs.oracle.com/iaas/Content/File/Tasks/managingmounttargets.htm#performance). + */ + @com.fasterxml.jackson.annotation.JsonProperty("requestedThroughput") + private Long requestedThroughput; + + /** + * New throughput for mount target in Gbps. Available shapes and corresponding throughput + * are listed at [Mount Target + * Performance](https://docs.oracle.com/iaas/Content/File/Tasks/managingmounttargets.htm#performance). + * + * @param requestedThroughput the value to set + * @return this builder + */ + public Builder requestedThroughput(Long requestedThroughput) { + this.requestedThroughput = requestedThroughput; + this.__explicitlySet__.add("requestedThroughput"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpgradeShapeMountTargetDetails build() { + UpgradeShapeMountTargetDetails model = + new UpgradeShapeMountTargetDetails(this.requestedThroughput); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpgradeShapeMountTargetDetails model) { + if (model.wasPropertyExplicitlySet("requestedThroughput")) { + this.requestedThroughput(model.getRequestedThroughput()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * New throughput for mount target in Gbps. Available shapes and corresponding throughput are + * listed at [Mount Target + * Performance](https://docs.oracle.com/iaas/Content/File/Tasks/managingmounttargets.htm#performance). + */ + @com.fasterxml.jackson.annotation.JsonProperty("requestedThroughput") + private final Long requestedThroughput; + + /** + * New throughput for mount target in Gbps. Available shapes and corresponding throughput are + * listed at [Mount Target + * Performance](https://docs.oracle.com/iaas/Content/File/Tasks/managingmounttargets.htm#performance). + * + * @return the value + */ + public Long getRequestedThroughput() { + return requestedThroughput; + } + + @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("UpgradeShapeMountTargetDetails("); + sb.append("super=").append(super.toString()); + sb.append("requestedThroughput=").append(String.valueOf(this.requestedThroughput)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpgradeShapeMountTargetDetails)) { + return false; + } + + UpgradeShapeMountTargetDetails other = (UpgradeShapeMountTargetDetails) o; + return java.util.Objects.equals(this.requestedThroughput, other.requestedThroughput) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.requestedThroughput == null + ? 43 + : this.requestedThroughput.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/CancelDowngradeShapeMountTargetRequest.java b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/CancelDowngradeShapeMountTargetRequest.java new file mode 100644 index 00000000000..79fe056e137 --- /dev/null +++ b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/CancelDowngradeShapeMountTargetRequest.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.filestorage.requests; + +import com.oracle.bmc.filestorage.model.*; +/** + * Example: Click here to see how to use + * CancelDowngradeShapeMountTargetRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20171215") +public class CancelDowngradeShapeMountTargetRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * mount target. + */ + private String mountTargetId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * mount target. + */ + public String getMountTargetId() { + return mountTargetId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique identifier for the request. If you need to contact Oracle about a particular request, + * please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular request, + * please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CancelDowngradeShapeMountTargetRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * mount target. + */ + private String mountTargetId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * mount target. + * + * @param mountTargetId the value to set + * @return this builder instance + */ + public Builder mountTargetId(String mountTargetId) { + this.mountTargetId = mountTargetId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique 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 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(CancelDowngradeShapeMountTargetRequest o) { + mountTargetId(o.getMountTargetId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CancelDowngradeShapeMountTargetRequest 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 CancelDowngradeShapeMountTargetRequest + */ + public CancelDowngradeShapeMountTargetRequest build() { + CancelDowngradeShapeMountTargetRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of CancelDowngradeShapeMountTargetRequest 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 CancelDowngradeShapeMountTargetRequest + */ + public CancelDowngradeShapeMountTargetRequest buildWithoutInvocationCallback() { + CancelDowngradeShapeMountTargetRequest request = + new CancelDowngradeShapeMountTargetRequest(); + request.mountTargetId = mountTargetId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new CancelDowngradeShapeMountTargetRequest(mountTargetId, 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() + .mountTargetId(mountTargetId) + .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(",mountTargetId=").append(String.valueOf(this.mountTargetId)); + 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 CancelDowngradeShapeMountTargetRequest)) { + return false; + } + + CancelDowngradeShapeMountTargetRequest other = (CancelDowngradeShapeMountTargetRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.mountTargetId, other.mountTargetId) + && 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.mountTargetId == null ? 43 : this.mountTargetId.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-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/ListExportSetsRequest.java b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/ListExportSetsRequest.java index c79458b6935..976daa0e73d 100644 --- a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/ListExportSetsRequest.java +++ b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/ListExportSetsRequest.java @@ -43,7 +43,7 @@ public String getAvailabilityDomain() { } /** * For list pagination. The maximum number of results per page, or items to return in a - * paginated "List" call. 1 is the minimum, 1000 is the maximum. + * paginated "List" call. 1 is the minimum, 4096 is the maximum. * *

For important details about how pagination works, see [List * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). @@ -54,7 +54,7 @@ public String getAvailabilityDomain() { /** * For list pagination. The maximum number of results per page, or items to return in a - * paginated "List" call. 1 is the minimum, 1000 is the maximum. + * paginated "List" call. 1 is the minimum, 4096 is the maximum. * *

For important details about how pagination works, see [List * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). @@ -327,7 +327,7 @@ public Builder availabilityDomain(String availabilityDomain) { /** * For list pagination. The maximum number of results per page, or items to return in a - * paginated "List" call. 1 is the minimum, 1000 is the maximum. + * paginated "List" call. 1 is the minimum, 4096 is the maximum. * *

For important details about how pagination works, see [List * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). @@ -338,7 +338,7 @@ public Builder availabilityDomain(String availabilityDomain) { /** * For list pagination. The maximum number of results per page, or items to return in a - * paginated "List" call. 1 is the minimum, 1000 is the maximum. + * paginated "List" call. 1 is the minimum, 4096 is the maximum. * *

For important details about how pagination works, see [List * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). diff --git a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/ListExportsRequest.java b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/ListExportsRequest.java index f79775baddf..2330e500a18 100644 --- a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/ListExportsRequest.java +++ b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/ListExportsRequest.java @@ -28,7 +28,7 @@ public String getCompartmentId() { } /** * For list pagination. The maximum number of results per page, or items to return in a - * paginated "List" call. 1 is the minimum, 1000 is the maximum. + * paginated "List" call. 1 is the minimum, 4096 is the maximum. * *

For important details about how pagination works, see [List * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). @@ -39,7 +39,7 @@ public String getCompartmentId() { /** * For list pagination. The maximum number of results per page, or items to return in a - * paginated "List" call. 1 is the minimum, 1000 is the maximum. + * paginated "List" call. 1 is the minimum, 4096 is the maximum. * *

For important details about how pagination works, see [List * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). @@ -303,7 +303,7 @@ public Builder compartmentId(String compartmentId) { /** * For list pagination. The maximum number of results per page, or items to return in a - * paginated "List" call. 1 is the minimum, 1000 is the maximum. + * paginated "List" call. 1 is the minimum, 4096 is the maximum. * *

For important details about how pagination works, see [List * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). @@ -314,7 +314,7 @@ public Builder compartmentId(String compartmentId) { /** * For list pagination. The maximum number of results per page, or items to return in a - * paginated "List" call. 1 is the minimum, 1000 is the maximum. + * paginated "List" call. 1 is the minimum, 4096 is the maximum. * *

For important details about how pagination works, see [List * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). diff --git a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/ListFileSystemsRequest.java b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/ListFileSystemsRequest.java index 3ebe7b29718..b7d66fec447 100644 --- a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/ListFileSystemsRequest.java +++ b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/ListFileSystemsRequest.java @@ -43,7 +43,7 @@ public String getAvailabilityDomain() { } /** * For list pagination. The maximum number of results per page, or items to return in a - * paginated "List" call. 1 is the minimum, 1000 is the maximum. + * paginated "List" call. 1 is the minimum, 4096 is the maximum. * *

For important details about how pagination works, see [List * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). @@ -54,7 +54,7 @@ public String getAvailabilityDomain() { /** * For list pagination. The maximum number of results per page, or items to return in a - * paginated "List" call. 1 is the minimum, 1000 is the maximum. + * paginated "List" call. 1 is the minimum, 4096 is the maximum. * *

For important details about how pagination works, see [List * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). @@ -370,7 +370,7 @@ public Builder availabilityDomain(String availabilityDomain) { /** * For list pagination. The maximum number of results per page, or items to return in a - * paginated "List" call. 1 is the minimum, 1000 is the maximum. + * paginated "List" call. 1 is the minimum, 4096 is the maximum. * *

For important details about how pagination works, see [List * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). @@ -381,7 +381,7 @@ public Builder availabilityDomain(String availabilityDomain) { /** * For list pagination. The maximum number of results per page, or items to return in a - * paginated "List" call. 1 is the minimum, 1000 is the maximum. + * paginated "List" call. 1 is the minimum, 4096 is the maximum. * *

For important details about how pagination works, see [List * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). diff --git a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/ListFilesystemSnapshotPoliciesRequest.java b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/ListFilesystemSnapshotPoliciesRequest.java index 2d8be271bbf..25821355599 100644 --- a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/ListFilesystemSnapshotPoliciesRequest.java +++ b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/ListFilesystemSnapshotPoliciesRequest.java @@ -45,7 +45,7 @@ public String getAvailabilityDomain() { } /** * For list pagination. The maximum number of results per page, or items to return in a - * paginated "List" call. 1 is the minimum, 1000 is the maximum. + * paginated "List" call. 1 is the minimum, 4096 is the maximum. * *

For important details about how pagination works, see [List * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). @@ -56,7 +56,7 @@ public String getAvailabilityDomain() { /** * For list pagination. The maximum number of results per page, or items to return in a - * paginated "List" call. 1 is the minimum, 1000 is the maximum. + * paginated "List" call. 1 is the minimum, 4096 is the maximum. * *

For important details about how pagination works, see [List * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). @@ -329,7 +329,7 @@ public Builder availabilityDomain(String availabilityDomain) { /** * For list pagination. The maximum number of results per page, or items to return in a - * paginated "List" call. 1 is the minimum, 1000 is the maximum. + * paginated "List" call. 1 is the minimum, 4096 is the maximum. * *

For important details about how pagination works, see [List * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). @@ -340,7 +340,7 @@ public Builder availabilityDomain(String availabilityDomain) { /** * For list pagination. The maximum number of results per page, or items to return in a - * paginated "List" call. 1 is the minimum, 1000 is the maximum. + * paginated "List" call. 1 is the minimum, 4096 is the maximum. * *

For important details about how pagination works, see [List * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). diff --git a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/ListMountTargetsRequest.java b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/ListMountTargetsRequest.java index a7653d4b59c..5135e760806 100644 --- a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/ListMountTargetsRequest.java +++ b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/ListMountTargetsRequest.java @@ -43,7 +43,7 @@ public String getAvailabilityDomain() { } /** * For list pagination. The maximum number of results per page, or items to return in a - * paginated "List" call. 1 is the minimum, 1000 is the maximum. + * paginated "List" call. 1 is the minimum, 4096 is the maximum. * *

For important details about how pagination works, see [List * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). @@ -54,7 +54,7 @@ public String getAvailabilityDomain() { /** * For list pagination. The maximum number of results per page, or items to return in a - * paginated "List" call. 1 is the minimum, 1000 is the maximum. + * paginated "List" call. 1 is the minimum, 4096 is the maximum. * *

For important details about how pagination works, see [List * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). @@ -340,7 +340,7 @@ public Builder availabilityDomain(String availabilityDomain) { /** * For list pagination. The maximum number of results per page, or items to return in a - * paginated "List" call. 1 is the minimum, 1000 is the maximum. + * paginated "List" call. 1 is the minimum, 4096 is the maximum. * *

For important details about how pagination works, see [List * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). @@ -351,7 +351,7 @@ public Builder availabilityDomain(String availabilityDomain) { /** * For list pagination. The maximum number of results per page, or items to return in a - * paginated "List" call. 1 is the minimum, 1000 is the maximum. + * paginated "List" call. 1 is the minimum, 4096 is the maximum. * *

For important details about how pagination works, see [List * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). diff --git a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/ListOutboundConnectorsRequest.java b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/ListOutboundConnectorsRequest.java index 0741d39d152..0c82f5b73ea 100644 --- a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/ListOutboundConnectorsRequest.java +++ b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/ListOutboundConnectorsRequest.java @@ -45,7 +45,7 @@ public String getAvailabilityDomain() { } /** * For list pagination. The maximum number of results per page, or items to return in a - * paginated "List" call. 1 is the minimum, 1000 is the maximum. + * paginated "List" call. 1 is the minimum, 4096 is the maximum. * *

For important details about how pagination works, see [List * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). @@ -56,7 +56,7 @@ public String getAvailabilityDomain() { /** * For list pagination. The maximum number of results per page, or items to return in a - * paginated "List" call. 1 is the minimum, 1000 is the maximum. + * paginated "List" call. 1 is the minimum, 4096 is the maximum. * *

For important details about how pagination works, see [List * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). @@ -329,7 +329,7 @@ public Builder availabilityDomain(String availabilityDomain) { /** * For list pagination. The maximum number of results per page, or items to return in a - * paginated "List" call. 1 is the minimum, 1000 is the maximum. + * paginated "List" call. 1 is the minimum, 4096 is the maximum. * *

For important details about how pagination works, see [List * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). @@ -340,7 +340,7 @@ public Builder availabilityDomain(String availabilityDomain) { /** * For list pagination. The maximum number of results per page, or items to return in a - * paginated "List" call. 1 is the minimum, 1000 is the maximum. + * paginated "List" call. 1 is the minimum, 4096 is the maximum. * *

For important details about how pagination works, see [List * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). diff --git a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/ListReplicationTargetsRequest.java b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/ListReplicationTargetsRequest.java index d63d439fa35..d403b590340 100644 --- a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/ListReplicationTargetsRequest.java +++ b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/ListReplicationTargetsRequest.java @@ -45,7 +45,7 @@ public String getAvailabilityDomain() { } /** * For list pagination. The maximum number of results per page, or items to return in a - * paginated "List" call. 1 is the minimum, 1000 is the maximum. + * paginated "List" call. 1 is the minimum, 4096 is the maximum. * *

For important details about how pagination works, see [List * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). @@ -56,7 +56,7 @@ public String getAvailabilityDomain() { /** * For list pagination. The maximum number of results per page, or items to return in a - * paginated "List" call. 1 is the minimum, 1000 is the maximum. + * paginated "List" call. 1 is the minimum, 4096 is the maximum. * *

For important details about how pagination works, see [List * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). @@ -329,7 +329,7 @@ public Builder availabilityDomain(String availabilityDomain) { /** * For list pagination. The maximum number of results per page, or items to return in a - * paginated "List" call. 1 is the minimum, 1000 is the maximum. + * paginated "List" call. 1 is the minimum, 4096 is the maximum. * *

For important details about how pagination works, see [List * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). @@ -340,7 +340,7 @@ public Builder availabilityDomain(String availabilityDomain) { /** * For list pagination. The maximum number of results per page, or items to return in a - * paginated "List" call. 1 is the minimum, 1000 is the maximum. + * paginated "List" call. 1 is the minimum, 4096 is the maximum. * *

For important details about how pagination works, see [List * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). diff --git a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/ListReplicationsRequest.java b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/ListReplicationsRequest.java index 8a16fa3832f..2662c7cf623 100644 --- a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/ListReplicationsRequest.java +++ b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/ListReplicationsRequest.java @@ -43,7 +43,7 @@ public String getAvailabilityDomain() { } /** * For list pagination. The maximum number of results per page, or items to return in a - * paginated "List" call. 1 is the minimum, 1000 is the maximum. + * paginated "List" call. 1 is the minimum, 4096 is the maximum. * *

For important details about how pagination works, see [List * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). @@ -54,7 +54,7 @@ public String getAvailabilityDomain() { /** * For list pagination. The maximum number of results per page, or items to return in a - * paginated "List" call. 1 is the minimum, 1000 is the maximum. + * paginated "List" call. 1 is the minimum, 4096 is the maximum. * *

For important details about how pagination works, see [List * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). @@ -340,7 +340,7 @@ public Builder availabilityDomain(String availabilityDomain) { /** * For list pagination. The maximum number of results per page, or items to return in a - * paginated "List" call. 1 is the minimum, 1000 is the maximum. + * paginated "List" call. 1 is the minimum, 4096 is the maximum. * *

For important details about how pagination works, see [List * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). @@ -351,7 +351,7 @@ public Builder availabilityDomain(String availabilityDomain) { /** * For list pagination. The maximum number of results per page, or items to return in a - * paginated "List" call. 1 is the minimum, 1000 is the maximum. + * paginated "List" call. 1 is the minimum, 4096 is the maximum. * *

For important details about how pagination works, see [List * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). diff --git a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/ScheduleDowngradeShapeMountTargetRequest.java b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/ScheduleDowngradeShapeMountTargetRequest.java new file mode 100644 index 00000000000..8ea549d1cbe --- /dev/null +++ b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/ScheduleDowngradeShapeMountTargetRequest.java @@ -0,0 +1,334 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.filestorage.requests; + +import com.oracle.bmc.filestorage.model.*; +/** + * Example: Click here to see how to use + * ScheduleDowngradeShapeMountTargetRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20171215") +public class ScheduleDowngradeShapeMountTargetRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.filestorage.model.ScheduleDowngradeShapeMountTargetDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * mount target. + */ + private String mountTargetId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * mount target. + */ + public String getMountTargetId() { + return mountTargetId; + } + /** Details for changing the shape of mount target. */ + private com.oracle.bmc.filestorage.model.ScheduleDowngradeShapeMountTargetDetails + scheduleDowngradeShapeMountTargetDetails; + + /** Details for changing the shape of mount target. */ + public com.oracle.bmc.filestorage.model.ScheduleDowngradeShapeMountTargetDetails + getScheduleDowngradeShapeMountTargetDetails() { + return scheduleDowngradeShapeMountTargetDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique identifier for the request. If you need to contact Oracle about a particular request, + * please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular request, + * please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.filestorage.model.ScheduleDowngradeShapeMountTargetDetails getBody$() { + return scheduleDowngradeShapeMountTargetDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ScheduleDowngradeShapeMountTargetRequest, + com.oracle.bmc.filestorage.model.ScheduleDowngradeShapeMountTargetDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * mount target. + */ + private String mountTargetId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * mount target. + * + * @param mountTargetId the value to set + * @return this builder instance + */ + public Builder mountTargetId(String mountTargetId) { + this.mountTargetId = mountTargetId; + return this; + } + + /** Details for changing the shape of mount target. */ + private com.oracle.bmc.filestorage.model.ScheduleDowngradeShapeMountTargetDetails + scheduleDowngradeShapeMountTargetDetails = null; + + /** + * Details for changing the shape of mount target. + * + * @param scheduleDowngradeShapeMountTargetDetails the value to set + * @return this builder instance + */ + public Builder scheduleDowngradeShapeMountTargetDetails( + com.oracle.bmc.filestorage.model.ScheduleDowngradeShapeMountTargetDetails + scheduleDowngradeShapeMountTargetDetails) { + this.scheduleDowngradeShapeMountTargetDetails = + scheduleDowngradeShapeMountTargetDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique 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 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(ScheduleDowngradeShapeMountTargetRequest o) { + mountTargetId(o.getMountTargetId()); + scheduleDowngradeShapeMountTargetDetails( + o.getScheduleDowngradeShapeMountTargetDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ScheduleDowngradeShapeMountTargetRequest 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 ScheduleDowngradeShapeMountTargetRequest + */ + public ScheduleDowngradeShapeMountTargetRequest build() { + ScheduleDowngradeShapeMountTargetRequest 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.filestorage.model.ScheduleDowngradeShapeMountTargetDetails body) { + scheduleDowngradeShapeMountTargetDetails(body); + return this; + } + + /** + * Build the instance of ScheduleDowngradeShapeMountTargetRequest 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 ScheduleDowngradeShapeMountTargetRequest + */ + public ScheduleDowngradeShapeMountTargetRequest buildWithoutInvocationCallback() { + ScheduleDowngradeShapeMountTargetRequest request = + new ScheduleDowngradeShapeMountTargetRequest(); + request.mountTargetId = mountTargetId; + request.scheduleDowngradeShapeMountTargetDetails = + scheduleDowngradeShapeMountTargetDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new ScheduleDowngradeShapeMountTargetRequest(mountTargetId, + // scheduleDowngradeShapeMountTargetDetails, 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() + .mountTargetId(mountTargetId) + .scheduleDowngradeShapeMountTargetDetails(scheduleDowngradeShapeMountTargetDetails) + .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(",mountTargetId=").append(String.valueOf(this.mountTargetId)); + sb.append(",scheduleDowngradeShapeMountTargetDetails=") + .append(String.valueOf(this.scheduleDowngradeShapeMountTargetDetails)); + 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 ScheduleDowngradeShapeMountTargetRequest)) { + return false; + } + + ScheduleDowngradeShapeMountTargetRequest other = + (ScheduleDowngradeShapeMountTargetRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.mountTargetId, other.mountTargetId) + && java.util.Objects.equals( + this.scheduleDowngradeShapeMountTargetDetails, + other.scheduleDowngradeShapeMountTargetDetails) + && 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.mountTargetId == null ? 43 : this.mountTargetId.hashCode()); + result = + (result * PRIME) + + (this.scheduleDowngradeShapeMountTargetDetails == null + ? 43 + : this.scheduleDowngradeShapeMountTargetDetails.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-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/UpgradeShapeMountTargetRequest.java b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/UpgradeShapeMountTargetRequest.java new file mode 100644 index 00000000000..bce8bab3b55 --- /dev/null +++ b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/requests/UpgradeShapeMountTargetRequest.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.filestorage.requests; + +import com.oracle.bmc.filestorage.model.*; +/** + * Example: Click here to see how to use + * UpgradeShapeMountTargetRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20171215") +public class UpgradeShapeMountTargetRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.filestorage.model.UpgradeShapeMountTargetDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * mount target. + */ + private String mountTargetId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * mount target. + */ + public String getMountTargetId() { + return mountTargetId; + } + /** Details for changing the shape of mount target. */ + private com.oracle.bmc.filestorage.model.UpgradeShapeMountTargetDetails + upgradeShapeMountTargetDetails; + + /** Details for changing the shape of mount target. */ + public com.oracle.bmc.filestorage.model.UpgradeShapeMountTargetDetails + getUpgradeShapeMountTargetDetails() { + return upgradeShapeMountTargetDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique identifier for the request. If you need to contact Oracle about a particular request, + * please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular request, + * please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.filestorage.model.UpgradeShapeMountTargetDetails getBody$() { + return upgradeShapeMountTargetDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpgradeShapeMountTargetRequest, + com.oracle.bmc.filestorage.model.UpgradeShapeMountTargetDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * mount target. + */ + private String mountTargetId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * mount target. + * + * @param mountTargetId the value to set + * @return this builder instance + */ + public Builder mountTargetId(String mountTargetId) { + this.mountTargetId = mountTargetId; + return this; + } + + /** Details for changing the shape of mount target. */ + private com.oracle.bmc.filestorage.model.UpgradeShapeMountTargetDetails + upgradeShapeMountTargetDetails = null; + + /** + * Details for changing the shape of mount target. + * + * @param upgradeShapeMountTargetDetails the value to set + * @return this builder instance + */ + public Builder upgradeShapeMountTargetDetails( + com.oracle.bmc.filestorage.model.UpgradeShapeMountTargetDetails + upgradeShapeMountTargetDetails) { + this.upgradeShapeMountTargetDetails = upgradeShapeMountTargetDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique 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 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(UpgradeShapeMountTargetRequest o) { + mountTargetId(o.getMountTargetId()); + upgradeShapeMountTargetDetails(o.getUpgradeShapeMountTargetDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpgradeShapeMountTargetRequest 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 UpgradeShapeMountTargetRequest + */ + public UpgradeShapeMountTargetRequest build() { + UpgradeShapeMountTargetRequest 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.filestorage.model.UpgradeShapeMountTargetDetails body) { + upgradeShapeMountTargetDetails(body); + return this; + } + + /** + * Build the instance of UpgradeShapeMountTargetRequest 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 UpgradeShapeMountTargetRequest + */ + public UpgradeShapeMountTargetRequest buildWithoutInvocationCallback() { + UpgradeShapeMountTargetRequest request = new UpgradeShapeMountTargetRequest(); + request.mountTargetId = mountTargetId; + request.upgradeShapeMountTargetDetails = upgradeShapeMountTargetDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpgradeShapeMountTargetRequest(mountTargetId, upgradeShapeMountTargetDetails, + // 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() + .mountTargetId(mountTargetId) + .upgradeShapeMountTargetDetails(upgradeShapeMountTargetDetails) + .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(",mountTargetId=").append(String.valueOf(this.mountTargetId)); + sb.append(",upgradeShapeMountTargetDetails=") + .append(String.valueOf(this.upgradeShapeMountTargetDetails)); + 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 UpgradeShapeMountTargetRequest)) { + return false; + } + + UpgradeShapeMountTargetRequest other = (UpgradeShapeMountTargetRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.mountTargetId, other.mountTargetId) + && java.util.Objects.equals( + this.upgradeShapeMountTargetDetails, other.upgradeShapeMountTargetDetails) + && 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.mountTargetId == null ? 43 : this.mountTargetId.hashCode()); + result = + (result * PRIME) + + (this.upgradeShapeMountTargetDetails == null + ? 43 + : this.upgradeShapeMountTargetDetails.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-filestorage/src/main/java/com/oracle/bmc/filestorage/responses/CancelDowngradeShapeMountTargetResponse.java b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/responses/CancelDowngradeShapeMountTargetResponse.java new file mode 100644 index 00000000000..0e1dceb6e83 --- /dev/null +++ b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/responses/CancelDowngradeShapeMountTargetResponse.java @@ -0,0 +1,209 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.filestorage.responses; + +import com.oracle.bmc.filestorage.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20171215") +public class CancelDowngradeShapeMountTargetResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code MountTarget} instance. */ + private com.oracle.bmc.filestorage.model.MountTarget mountTarget; + + /** + * The returned {@code MountTarget} instance. + * + * @return the value + */ + public com.oracle.bmc.filestorage.model.MountTarget getMountTarget() { + return mountTarget; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "mountTarget" + }) + private CancelDowngradeShapeMountTargetResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.filestorage.model.MountTarget mountTarget) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.mountTarget = mountTarget; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + CancelDowngradeShapeMountTargetResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code MountTarget} instance. */ + private com.oracle.bmc.filestorage.model.MountTarget mountTarget; + + /** + * The returned {@code MountTarget} instance. + * + * @param mountTarget the value to set + * @return this builder + */ + public Builder mountTarget(com.oracle.bmc.filestorage.model.MountTarget mountTarget) { + this.mountTarget = mountTarget; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CancelDowngradeShapeMountTargetResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + mountTarget(o.getMountTarget()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CancelDowngradeShapeMountTargetResponse build() { + return new CancelDowngradeShapeMountTargetResponse( + __httpStatusCode__, headers, etag, opcRequestId, mountTarget); + } + } + + /** + * 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(",mountTarget=").append(String.valueOf(mountTarget)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CancelDowngradeShapeMountTargetResponse)) { + return false; + } + + CancelDowngradeShapeMountTargetResponse other = (CancelDowngradeShapeMountTargetResponse) 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.mountTarget, other.mountTarget); + } + + @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.mountTarget == null ? 43 : this.mountTarget.hashCode()); + return result; + } +} diff --git a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/responses/ScheduleDowngradeShapeMountTargetResponse.java b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/responses/ScheduleDowngradeShapeMountTargetResponse.java new file mode 100644 index 00000000000..87e99bd0bba --- /dev/null +++ b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/responses/ScheduleDowngradeShapeMountTargetResponse.java @@ -0,0 +1,211 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.filestorage.responses; + +import com.oracle.bmc.filestorage.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20171215") +public class ScheduleDowngradeShapeMountTargetResponse + extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code MountTarget} instance. */ + private com.oracle.bmc.filestorage.model.MountTarget mountTarget; + + /** + * The returned {@code MountTarget} instance. + * + * @return the value + */ + public com.oracle.bmc.filestorage.model.MountTarget getMountTarget() { + return mountTarget; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "mountTarget" + }) + private ScheduleDowngradeShapeMountTargetResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.filestorage.model.MountTarget mountTarget) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.mountTarget = mountTarget; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ScheduleDowngradeShapeMountTargetResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code MountTarget} instance. */ + private com.oracle.bmc.filestorage.model.MountTarget mountTarget; + + /** + * The returned {@code MountTarget} instance. + * + * @param mountTarget the value to set + * @return this builder + */ + public Builder mountTarget(com.oracle.bmc.filestorage.model.MountTarget mountTarget) { + this.mountTarget = mountTarget; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ScheduleDowngradeShapeMountTargetResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + mountTarget(o.getMountTarget()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ScheduleDowngradeShapeMountTargetResponse build() { + return new ScheduleDowngradeShapeMountTargetResponse( + __httpStatusCode__, headers, etag, opcRequestId, mountTarget); + } + } + + /** + * 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(",mountTarget=").append(String.valueOf(mountTarget)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ScheduleDowngradeShapeMountTargetResponse)) { + return false; + } + + ScheduleDowngradeShapeMountTargetResponse other = + (ScheduleDowngradeShapeMountTargetResponse) 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.mountTarget, other.mountTarget); + } + + @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.mountTarget == null ? 43 : this.mountTarget.hashCode()); + return result; + } +} diff --git a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/responses/UpgradeShapeMountTargetResponse.java b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/responses/UpgradeShapeMountTargetResponse.java new file mode 100644 index 00000000000..334067832b8 --- /dev/null +++ b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/responses/UpgradeShapeMountTargetResponse.java @@ -0,0 +1,209 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.filestorage.responses; + +import com.oracle.bmc.filestorage.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20171215") +public class UpgradeShapeMountTargetResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code MountTarget} instance. */ + private com.oracle.bmc.filestorage.model.MountTarget mountTarget; + + /** + * The returned {@code MountTarget} instance. + * + * @return the value + */ + public com.oracle.bmc.filestorage.model.MountTarget getMountTarget() { + return mountTarget; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "mountTarget" + }) + private UpgradeShapeMountTargetResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.filestorage.model.MountTarget mountTarget) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.mountTarget = mountTarget; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + UpgradeShapeMountTargetResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code MountTarget} instance. */ + private com.oracle.bmc.filestorage.model.MountTarget mountTarget; + + /** + * The returned {@code MountTarget} instance. + * + * @param mountTarget the value to set + * @return this builder + */ + public Builder mountTarget(com.oracle.bmc.filestorage.model.MountTarget mountTarget) { + this.mountTarget = mountTarget; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpgradeShapeMountTargetResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + mountTarget(o.getMountTarget()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpgradeShapeMountTargetResponse build() { + return new UpgradeShapeMountTargetResponse( + __httpStatusCode__, headers, etag, opcRequestId, mountTarget); + } + } + + /** + * 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(",mountTarget=").append(String.valueOf(mountTarget)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpgradeShapeMountTargetResponse)) { + return false; + } + + UpgradeShapeMountTargetResponse other = (UpgradeShapeMountTargetResponse) 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.mountTarget, other.mountTarget); + } + + @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.mountTarget == null ? 43 : this.mountTarget.hashCode()); + return result; + } +} diff --git a/bmc-filestorage/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-filestorage/reflect-config.json b/bmc-filestorage/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-filestorage/reflect-config.json index 450bee5b8c0..29585ba4b1c 100644 --- a/bmc-filestorage/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-filestorage/reflect-config.json +++ b/bmc-filestorage/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-filestorage/reflect-config.json @@ -712,6 +712,20 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.filestorage.model.ScheduleDowngradeShapeMountTargetDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.filestorage.model.ScheduleDowngradeShapeMountTargetDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.filestorage.model.Snapshot", @@ -962,6 +976,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.filestorage.model.UpgradeShapeMountTargetDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.filestorage.model.UpgradeShapeMountTargetDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.filestorage.model.ValidateKeyTabsDetails", diff --git a/bmc-fleetappsmanagement/pom.xml b/bmc-fleetappsmanagement/pom.xml index d8ef5d321ad..240137f294f 100644 --- a/bmc-fleetappsmanagement/pom.xml +++ b/bmc-fleetappsmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-fleetappsmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-fleetsoftwareupdate/pom.xml b/bmc-fleetsoftwareupdate/pom.xml index ea3c1849876..7524fa51e73 100644 --- a/bmc-fleetsoftwareupdate/pom.xml +++ b/bmc-fleetsoftwareupdate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-fleetsoftwareupdate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-full/pom.xml b/bmc-full/pom.xml index c78bbefba83..a71aaf991b5 100644 --- a/bmc-full/pom.xml +++ b/bmc-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-full @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.47.0 + 3.48.0 pom import @@ -599,5 +599,9 @@ com.oracle.oci.sdk oci-java-sdk-fleetappsmanagement + + com.oracle.oci.sdk + oci-java-sdk-delegateaccesscontrol + \ No newline at end of file diff --git a/bmc-functions/pom.xml b/bmc-functions/pom.xml index 6c9fd6f243a..305fb6f8136 100644 --- a/bmc-functions/pom.xml +++ b/bmc-functions/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-functions @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-fusionapps/pom.xml b/bmc-fusionapps/pom.xml index 7cfa4b22118..5372dadf6fd 100644 --- a/bmc-fusionapps/pom.xml +++ b/bmc-fusionapps/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-fusionapps @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/FusionEnvironmentFamily.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/FusionEnvironmentFamily.java index fd53a76ca68..24fc5f4d514 100644 --- a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/FusionEnvironmentFamily.java +++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/FusionEnvironmentFamily.java @@ -40,7 +40,8 @@ public final class FusionEnvironmentFamily "lifecycleDetails", "systemName", "freeformTags", - "definedTags" + "definedTags", + "timeLastSubscriptionUpdate" }) public FusionEnvironmentFamily( String id, @@ -54,7 +55,8 @@ public FusionEnvironmentFamily( String lifecycleDetails, String systemName, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Date timeLastSubscriptionUpdate) { super(); this.id = id; this.displayName = displayName; @@ -68,6 +70,7 @@ public FusionEnvironmentFamily( this.systemName = systemName; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.timeLastSubscriptionUpdate = timeLastSubscriptionUpdate; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -273,6 +276,21 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** Indicates when the family received the last subscription update */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastSubscriptionUpdate") + private java.util.Date timeLastSubscriptionUpdate; + + /** + * Indicates when the family received the last subscription update + * + * @param timeLastSubscriptionUpdate the value to set + * @return this builder + */ + public Builder timeLastSubscriptionUpdate(java.util.Date timeLastSubscriptionUpdate) { + this.timeLastSubscriptionUpdate = timeLastSubscriptionUpdate; + this.__explicitlySet__.add("timeLastSubscriptionUpdate"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -291,7 +309,8 @@ public FusionEnvironmentFamily build() { this.lifecycleDetails, this.systemName, this.freeformTags, - this.definedTags); + this.definedTags, + this.timeLastSubscriptionUpdate); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -336,6 +355,9 @@ public Builder copy(FusionEnvironmentFamily model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("timeLastSubscriptionUpdate")) { + this.timeLastSubscriptionUpdate(model.getTimeLastSubscriptionUpdate()); + } return this; } } @@ -571,6 +593,19 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** Indicates when the family received the last subscription update */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastSubscriptionUpdate") + private final java.util.Date timeLastSubscriptionUpdate; + + /** + * Indicates when the family received the last subscription update + * + * @return the value + */ + public java.util.Date getTimeLastSubscriptionUpdate() { + return timeLastSubscriptionUpdate; + } + @Override public String toString() { return this.toString(true); @@ -600,6 +635,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", systemName=").append(String.valueOf(this.systemName)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", timeLastSubscriptionUpdate=") + .append(String.valueOf(this.timeLastSubscriptionUpdate)); sb.append(")"); return sb.toString(); } @@ -628,6 +665,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.systemName, other.systemName) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals( + this.timeLastSubscriptionUpdate, other.timeLastSubscriptionUpdate) && super.equals(other); } @@ -663,6 +702,11 @@ public int hashCode() { result = (result * PRIME) + (this.systemName == null ? 43 : this.systemName.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.timeLastSubscriptionUpdate == null + ? 43 + : this.timeLastSubscriptionUpdate.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-generativeai/pom.xml b/bmc-generativeai/pom.xml index 787c58ed1f2..8bc11b9d431 100644 --- a/bmc-generativeai/pom.xml +++ b/bmc-generativeai/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-generativeai @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-generativeaiinference/pom.xml b/bmc-generativeaiinference/pom.xml index 517769e48a6..7d52a9b20de 100644 --- a/bmc-generativeaiinference/pom.xml +++ b/bmc-generativeaiinference/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-generativeaiinference @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-genericartifactscontent/pom.xml b/bmc-genericartifactscontent/pom.xml index 2c549f6dcfd..d1db44305b7 100644 --- a/bmc-genericartifactscontent/pom.xml +++ b/bmc-genericartifactscontent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-genericartifactscontent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-globallydistributeddatabase/pom.xml b/bmc-globallydistributeddatabase/pom.xml index dcf8e8928cf..e90f2c97185 100644 --- a/bmc-globallydistributeddatabase/pom.xml +++ b/bmc-globallydistributeddatabase/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-globallydistributeddatabase @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-goldengate/pom.xml b/bmc-goldengate/pom.xml index f549799cc65..1af0a23d29f 100644 --- a/bmc-goldengate/pom.xml +++ b/bmc-goldengate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-goldengate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-governancerulescontrolplane/pom.xml b/bmc-governancerulescontrolplane/pom.xml index d609e125623..b1284dd6164 100644 --- a/bmc-governancerulescontrolplane/pom.xml +++ b/bmc-governancerulescontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-governancerulescontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-healthchecks/pom.xml b/bmc-healthchecks/pom.xml index 1038dbacb95..b525dbb3128 100644 --- a/bmc-healthchecks/pom.xml +++ b/bmc-healthchecks/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-healthchecks @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-identity/pom.xml b/bmc-identity/pom.xml index ccec9ba3951..24e866f7ab8 100644 --- a/bmc-identity/pom.xml +++ b/bmc-identity/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-identitydataplane/pom.xml b/bmc-identitydataplane/pom.xml index b45833f1aff..4a0bcd0089c 100644 --- a/bmc-identitydataplane/pom.xml +++ b/bmc-identitydataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-identitydataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-identitydomains/pom.xml b/bmc-identitydomains/pom.xml index 04f84e3effc..2b40e777a36 100644 --- a/bmc-identitydomains/pom.xml +++ b/bmc-identitydomains/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-identitydomains @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-integration/pom.xml b/bmc-integration/pom.xml index 14e8a44a747..7b5eae42dd7 100644 --- a/bmc-integration/pom.xml +++ b/bmc-integration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-integration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-jms/pom.xml b/bmc-jms/pom.xml index 8159dc02906..963f1e61e74 100644 --- a/bmc-jms/pom.xml +++ b/bmc-jms/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-jms @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-jmsjavadownloads/pom.xml b/bmc-jmsjavadownloads/pom.xml index 5879cf5e692..09fa88cd4a9 100644 --- a/bmc-jmsjavadownloads/pom.xml +++ b/bmc-jmsjavadownloads/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-jmsjavadownloads @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-keymanagement/pom.xml b/bmc-keymanagement/pom.xml index ebc3fec90de..e78461f1fd8 100644 --- a/bmc-keymanagement/pom.xml +++ b/bmc-keymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-keymanagement @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsHsmClusterWaiters.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsHsmClusterWaiters.java index e07e12e35fe..0c4fe2987e4 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsHsmClusterWaiters.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsHsmClusterWaiters.java @@ -228,7 +228,9 @@ public boolean test(GetHsmPartitionResponse response) { response.getHsmPartition().getLifecycleState()); } }, - false), + targetStatesSet.contains( + com.oracle.bmc.keymanagement.model.HsmPartition.LifecycleState + .Deleted)), request); } } diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/AutoKeyRotationDetails.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/AutoKeyRotationDetails.java index 69c2353ac86..6c6fd1f4710 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/AutoKeyRotationDetails.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/AutoKeyRotationDetails.java @@ -50,15 +50,17 @@ public AutoKeyRotationDetails( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * The interval of auto key rotation. For auto key rotation the interval should between 30 - * day and 365 days (1 year) + * The interval of auto key rotation. For auto key rotation the interval should between 60 + * day and 365 days (1 year). Note: User must specify this parameter when creating a new + * schedule. */ @com.fasterxml.jackson.annotation.JsonProperty("rotationIntervalInDays") private Integer rotationIntervalInDays; /** - * The interval of auto key rotation. For auto key rotation the interval should between 30 - * day and 365 days (1 year) + * The interval of auto key rotation. For auto key rotation the interval should between 60 + * day and 365 days (1 year). Note: User must specify this parameter when creating a new + * schedule. * * @param rotationIntervalInDays the value to set * @return this builder @@ -70,14 +72,22 @@ public Builder rotationIntervalInDays(Integer rotationIntervalInDays) { } /** * A property indicating scheduled start date expressed as date YYYY-MM-DD String. Example: - * {@code 2023-04-04T00:00:00Z} . + * 2023-04-04T00:00:00Z. The time has no significance when scheduling an auto key rotation + * as this can be done anytime approximately the scheduled day, KMS ignores the time and + * replaces it with 00:00, for example 2023-04-04T15:14:13Z will be used as + * 2023-04-04T00:00:00Z . Note : Today\u2019s date will be used if not specified by + * customer. */ @com.fasterxml.jackson.annotation.JsonProperty("timeOfScheduleStart") private java.util.Date timeOfScheduleStart; /** * A property indicating scheduled start date expressed as date YYYY-MM-DD String. Example: - * {@code 2023-04-04T00:00:00Z} . + * 2023-04-04T00:00:00Z. The time has no significance when scheduling an auto key rotation + * as this can be done anytime approximately the scheduled day, KMS ignores the time and + * replaces it with 00:00, for example 2023-04-04T15:14:13Z will be used as + * 2023-04-04T00:00:00Z . Note : Today\u2019s date will be used if not specified by + * customer. * * @param timeOfScheduleStart the value to set * @return this builder @@ -89,14 +99,20 @@ public Builder timeOfScheduleStart(java.util.Date timeOfScheduleStart) { } /** * A property indicating Next estimated scheduled Time, as per the interval, expressed as - * date YYYY-MM-DD String. Example: {@code 2023-04-04T00:00:00Z} . + * date YYYY-MM-DD String. Example: {@code 2023-04-04T00:00:00Z}. The time has no + * significance when scheduling an auto key rotation as this can be done anytime + * approximately the scheduled day, KMS ignores the time and replaces it with 00:00, for + * example 2023-04-04T15:14:13Z will be used as 2023-04-04T00:00:00Z. */ @com.fasterxml.jackson.annotation.JsonProperty("timeOfNextRotation") private java.util.Date timeOfNextRotation; /** * A property indicating Next estimated scheduled Time, as per the interval, expressed as - * date YYYY-MM-DD String. Example: {@code 2023-04-04T00:00:00Z} . + * date YYYY-MM-DD String. Example: {@code 2023-04-04T00:00:00Z}. The time has no + * significance when scheduling an auto key rotation as this can be done anytime + * approximately the scheduled day, KMS ignores the time and replaces it with 00:00, for + * example 2023-04-04T15:14:13Z will be used as 2023-04-04T00:00:00Z. * * @param timeOfNextRotation the value to set * @return this builder @@ -106,12 +122,12 @@ public Builder timeOfNextRotation(java.util.Date timeOfNextRotation) { this.__explicitlySet__.add("timeOfNextRotation"); return this; } - /** A property indicating Last rotation Date Example: {@code 2023-04-04T00:00:00Z}. */ + /** A property indicating Last rotation Date. Example: {@code 2023-04-04T00:00:00Z}. */ @com.fasterxml.jackson.annotation.JsonProperty("timeOfLastRotation") private java.util.Date timeOfLastRotation; /** - * A property indicating Last rotation Date Example: {@code 2023-04-04T00:00:00Z}. + * A property indicating Last rotation Date. Example: {@code 2023-04-04T00:00:00Z}. * * @param timeOfLastRotation the value to set * @return this builder @@ -136,12 +152,12 @@ public Builder lastRotationStatus(LastRotationStatus lastRotationStatus) { this.__explicitlySet__.add("lastRotationStatus"); return this; } - /** The last execution status message. */ + /** The last execution status message of auto key rotation. */ @com.fasterxml.jackson.annotation.JsonProperty("lastRotationMessage") private String lastRotationMessage; /** - * The last execution status message. + * The last execution status message of auto key rotation. * * @param lastRotationMessage the value to set * @return this builder @@ -204,15 +220,15 @@ public Builder toBuilder() { } /** - * The interval of auto key rotation. For auto key rotation the interval should between 30 day - * and 365 days (1 year) + * The interval of auto key rotation. For auto key rotation the interval should between 60 day + * and 365 days (1 year). Note: User must specify this parameter when creating a new schedule. */ @com.fasterxml.jackson.annotation.JsonProperty("rotationIntervalInDays") private final Integer rotationIntervalInDays; /** - * The interval of auto key rotation. For auto key rotation the interval should between 30 day - * and 365 days (1 year) + * The interval of auto key rotation. For auto key rotation the interval should between 60 day + * and 365 days (1 year). Note: User must specify this parameter when creating a new schedule. * * @return the value */ @@ -222,14 +238,20 @@ public Integer getRotationIntervalInDays() { /** * A property indicating scheduled start date expressed as date YYYY-MM-DD String. Example: - * {@code 2023-04-04T00:00:00Z} . + * 2023-04-04T00:00:00Z. The time has no significance when scheduling an auto key rotation as + * this can be done anytime approximately the scheduled day, KMS ignores the time and replaces + * it with 00:00, for example 2023-04-04T15:14:13Z will be used as 2023-04-04T00:00:00Z . Note : + * Today\u2019s date will be used if not specified by customer. */ @com.fasterxml.jackson.annotation.JsonProperty("timeOfScheduleStart") private final java.util.Date timeOfScheduleStart; /** * A property indicating scheduled start date expressed as date YYYY-MM-DD String. Example: - * {@code 2023-04-04T00:00:00Z} . + * 2023-04-04T00:00:00Z. The time has no significance when scheduling an auto key rotation as + * this can be done anytime approximately the scheduled day, KMS ignores the time and replaces + * it with 00:00, for example 2023-04-04T15:14:13Z will be used as 2023-04-04T00:00:00Z . Note : + * Today\u2019s date will be used if not specified by customer. * * @return the value */ @@ -239,14 +261,20 @@ public java.util.Date getTimeOfScheduleStart() { /** * A property indicating Next estimated scheduled Time, as per the interval, expressed as date - * YYYY-MM-DD String. Example: {@code 2023-04-04T00:00:00Z} . + * YYYY-MM-DD String. Example: {@code 2023-04-04T00:00:00Z}. The time has no significance when + * scheduling an auto key rotation as this can be done anytime approximately the scheduled day, + * KMS ignores the time and replaces it with 00:00, for example 2023-04-04T15:14:13Z will be + * used as 2023-04-04T00:00:00Z. */ @com.fasterxml.jackson.annotation.JsonProperty("timeOfNextRotation") private final java.util.Date timeOfNextRotation; /** * A property indicating Next estimated scheduled Time, as per the interval, expressed as date - * YYYY-MM-DD String. Example: {@code 2023-04-04T00:00:00Z} . + * YYYY-MM-DD String. Example: {@code 2023-04-04T00:00:00Z}. The time has no significance when + * scheduling an auto key rotation as this can be done anytime approximately the scheduled day, + * KMS ignores the time and replaces it with 00:00, for example 2023-04-04T15:14:13Z will be + * used as 2023-04-04T00:00:00Z. * * @return the value */ @@ -254,12 +282,12 @@ public java.util.Date getTimeOfNextRotation() { return timeOfNextRotation; } - /** A property indicating Last rotation Date Example: {@code 2023-04-04T00:00:00Z}. */ + /** A property indicating Last rotation Date. Example: {@code 2023-04-04T00:00:00Z}. */ @com.fasterxml.jackson.annotation.JsonProperty("timeOfLastRotation") private final java.util.Date timeOfLastRotation; /** - * A property indicating Last rotation Date Example: {@code 2023-04-04T00:00:00Z}. + * A property indicating Last rotation Date. Example: {@code 2023-04-04T00:00:00Z}. * * @return the value */ @@ -327,12 +355,12 @@ public LastRotationStatus getLastRotationStatus() { return lastRotationStatus; } - /** The last execution status message. */ + /** The last execution status message of auto key rotation. */ @com.fasterxml.jackson.annotation.JsonProperty("lastRotationMessage") private final String lastRotationMessage; /** - * The last execution status message. + * The last execution status message of auto key rotation. * * @return the value */ diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/ChangeHsmClusterCompartmentDetails.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/ChangeHsmClusterCompartmentDetails.java index a01d519f16b..70a95a006e9 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/ChangeHsmClusterCompartmentDetails.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/ChangeHsmClusterCompartmentDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.keymanagement.model; /** - * The details of the compartment you wish to move the Hsm.
+ * The details of the compartment you wish to move the hsm cluster 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 @@ -31,12 +31,12 @@ public ChangeHsmClusterCompartmentDetails(String compartmentId) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** The [OCID] of the compartment to move the hsm to. */ + /** The [OCID] of the compartment to move the hsm cluster to. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; /** - * The [OCID] of the compartment to move the hsm to. + * The [OCID] of the compartment to move the hsm cluster to. * * @param compartmentId the value to set * @return this builder @@ -77,12 +77,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** The [OCID] of the compartment to move the hsm to. */ + /** The [OCID] of the compartment to move the hsm cluster to. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** - * The [OCID] of the compartment to move the hsm to. + * The [OCID] of the compartment to move the hsm cluster to. * * @return the value */ diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/CreateHsmClusterDetails.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/CreateHsmClusterDetails.java index ea02e5f0767..1970c2a8a8f 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/CreateHsmClusterDetails.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/CreateHsmClusterDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.keymanagement.model; /** - * The details of the HSM resource that you want to create.
+ * The details of the HSM cluster resource that you want to create.
* 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 @@ -43,12 +43,12 @@ public CreateHsmClusterDetails( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** The OCID of the compartment where you want to create this HSM resource. */ + /** The OCID of the compartment where you want to create this HSM cluster resource. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; /** - * The OCID of the compartment where you want to create this HSM resource. + * The OCID of the compartment where you want to create this HSM cluster resource. * * @param compartmentId the value to set * @return this builder @@ -59,15 +59,15 @@ public Builder compartmentId(String compartmentId) { return this; } /** - * A user-friendly name for the HSM resource. It does not have to be unique, and it is - * changeable. Avoid entering confidential information. + * A user-friendly display name for the HSM cluster resource. It does not have to be unique, + * and it is changeable. Avoid entering confidential information. */ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private String displayName; /** - * A user-friendly name for the HSM resource. It does not have to be unique, and it is - * changeable. Avoid entering confidential information. + * A user-friendly display name for the HSM cluster resource. It does not have to be unique, + * and it is changeable. Avoid entering confidential information. * * @param displayName the value to set * @return this builder @@ -168,12 +168,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** The OCID of the compartment where you want to create this HSM resource. */ + /** The OCID of the compartment where you want to create this HSM cluster resource. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** - * The OCID of the compartment where you want to create this HSM resource. + * The OCID of the compartment where you want to create this HSM cluster resource. * * @return the value */ @@ -182,15 +182,15 @@ public String getCompartmentId() { } /** - * A user-friendly name for the HSM resource. It does not have to be unique, and it is - * changeable. Avoid entering confidential information. + * A user-friendly display name for the HSM cluster resource. It does not have to be unique, and + * it is changeable. Avoid entering confidential information. */ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private final String displayName; /** - * A user-friendly name for the HSM resource. It does not have to be unique, and it is - * changeable. Avoid entering confidential information. + * A user-friendly display name for the HSM cluster resource. It does not have to be unique, and + * it is changeable. Avoid entering confidential information. * * @return the value */ diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/HsmCluster.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/HsmCluster.java index a120b6a5bf2..ceb2f235c2c 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/HsmCluster.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/HsmCluster.java @@ -90,15 +90,15 @@ public Builder compartmentId(String compartmentId) { return this; } /** - * A user-friendly name for the HSMCluster resource. It does not have to be unique, and it - * is changeable. Avoid entering confidential information. + * A user-friendly display name for the HSMCluster resource. It does not have to be unique, + * and it is changeable. Avoid entering confidential information. */ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private String displayName; /** - * A user-friendly name for the HSMCluster resource. It does not have to be unique, and it - * is changeable. Avoid entering confidential information. + * A user-friendly display name for the HSMCluster resource. It does not have to be unique, + * and it is changeable. Avoid entering confidential information. * * @param displayName the value to set * @return this builder @@ -175,12 +175,14 @@ public Builder lifecycleState(LifecycleState lifecycleState) { this.__explicitlySet__.add("lifecycleState"); return this; } - /** DNS name for the Hsm Cluster. */ + /** + * DNS name for the HSM Cluster -- this will contain information about the region as well. + */ @com.fasterxml.jackson.annotation.JsonProperty("dnsName") private String dnsName; /** - * DNS name for the Hsm Cluster. + * DNS name for the HSM Cluster -- this will contain information about the region as well. * * @param dnsName the value to set * @return this builder @@ -353,15 +355,15 @@ public String getCompartmentId() { } /** - * A user-friendly name for the HSMCluster resource. It does not have to be unique, and it is - * changeable. Avoid entering confidential information. + * A user-friendly display name for the HSMCluster resource. It does not have to be unique, and + * it is changeable. Avoid entering confidential information. */ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private final String displayName; /** - * A user-friendly name for the HSMCluster resource. It does not have to be unique, and it is - * changeable. Avoid entering confidential information. + * A user-friendly display name for the HSMCluster resource. It does not have to be unique, and + * it is changeable. Avoid entering confidential information. * * @return the value */ @@ -489,12 +491,12 @@ public LifecycleState getLifecycleState() { return lifecycleState; } - /** DNS name for the Hsm Cluster. */ + /** DNS name for the HSM Cluster -- this will contain information about the region as well. */ @com.fasterxml.jackson.annotation.JsonProperty("dnsName") private final String dnsName; /** - * DNS name for the Hsm Cluster. + * DNS name for the HSM Cluster -- this will contain information about the region as well. * * @return the value */ diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/HsmClusterCollection.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/HsmClusterCollection.java index 86e127f88af..48e2a8356ea 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/HsmClusterCollection.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/HsmClusterCollection.java @@ -31,12 +31,12 @@ public HsmClusterCollection(java.util.List items) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** List of Hsm Clusters. */ + /** List of HSM Cluster Summary Objects. */ @com.fasterxml.jackson.annotation.JsonProperty("items") private java.util.List items; /** - * List of Hsm Clusters. + * List of HSM Cluster Summary Objects. * * @param items the value to set * @return this builder @@ -76,12 +76,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** List of Hsm Clusters. */ + /** List of HSM Cluster Summary Objects. */ @com.fasterxml.jackson.annotation.JsonProperty("items") private final java.util.List items; /** - * List of Hsm Clusters. + * List of HSM Cluster Summary Objects. * * @return the value */ diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/HsmClusterSummary.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/HsmClusterSummary.java index 2ca45a7869c..802233c2833 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/HsmClusterSummary.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/HsmClusterSummary.java @@ -5,7 +5,7 @@ package com.oracle.bmc.keymanagement.model; /** - * The details of the HSM resource.
+ * An object which encapsulates the details of a given HSM Cluster.
* 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 @@ -131,12 +131,14 @@ public Builder lifecycleState(HsmCluster.LifecycleState lifecycleState) { this.__explicitlySet__.add("lifecycleState"); return this; } - /** DNS name for the HSMCluster. */ + /** + * DNS name for the HSMCluster -- this will contain information about the region as well. + */ @com.fasterxml.jackson.annotation.JsonProperty("dnsName") private String dnsName; /** - * DNS name for the HSMCluster. + * DNS name for the HSMCluster -- this will contain information about the region as well. * * @param dnsName the value to set * @return this builder @@ -390,12 +392,12 @@ public HsmCluster.LifecycleState getLifecycleState() { return lifecycleState; } - /** DNS name for the HSMCluster. */ + /** DNS name for the HSMCluster -- this will contain information about the region as well. */ @com.fasterxml.jackson.annotation.JsonProperty("dnsName") private final String dnsName; /** - * DNS name for the HSMCluster. + * DNS name for the HSMCluster -- this will contain information about the region as well. * * @return the value */ diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/HsmPartition.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/HsmPartition.java index 52b704f2349..fd1e4affd2c 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/HsmPartition.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/HsmPartition.java @@ -47,12 +47,12 @@ public HsmPartition( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** The OCID of the HSM resource. */ + /** The OCID of the HSM resource. Each HSM resource has a unique OCID as an identifier. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private String id; /** - * The OCID of the HSM resource. + * The OCID of the HSM resource. Each HSM resource has a unique OCID as an identifier. * * @param id the value to set * @return this builder @@ -77,12 +77,18 @@ public Builder compartmentId(String compartmentId) { this.__explicitlySet__.add("compartmentId"); return this; } - /** Details of PortNumber and PortType. */ + /** + * Details of a single portInformation item include the PortNumber (an integer used as an + * identifier) and the PortType (refers to either an enum value of + * Managementutility,Clientutility, or null) + */ @com.fasterxml.jackson.annotation.JsonProperty("portInformation") private java.util.List portInformation; /** - * Details of PortNumber and PortType. + * Details of a single portInformation item include the PortNumber (an integer used as an + * identifier) and the PortType (refers to either an enum value of + * Managementutility,Clientutility, or null) * * @param portInformation the value to set * @return this builder @@ -138,12 +144,18 @@ public Builder timeUpdated(java.util.Date timeUpdated) { this.__explicitlySet__.add("timeUpdated"); return this; } - /** The HSMPartition's current lifecycle state. */ + /** + * A HSMCluster resource's current lifecycle state. + * + *

Example: {@code ACTIVE} + */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private LifecycleState lifecycleState; /** - * The HSMPartition's current lifecycle state. + * A HSMCluster resource's current lifecycle state. + * + *

Example: {@code ACTIVE} * * @param lifecycleState the value to set * @return this builder @@ -205,12 +217,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** The OCID of the HSM resource. */ + /** The OCID of the HSM resource. Each HSM resource has a unique OCID as an identifier. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private final String id; /** - * The OCID of the HSM resource. + * The OCID of the HSM resource. Each HSM resource has a unique OCID as an identifier. * * @return the value */ @@ -231,12 +243,18 @@ public String getCompartmentId() { return compartmentId; } - /** Details of PortNumber and PortType. */ + /** + * Details of a single portInformation item include the PortNumber (an integer used as an + * identifier) and the PortType (refers to either an enum value of + * Managementutility,Clientutility, or null) + */ @com.fasterxml.jackson.annotation.JsonProperty("portInformation") private final java.util.List portInformation; /** - * Details of PortNumber and PortType. + * Details of a single portInformation item include the PortNumber (an integer used as an + * identifier) and the PortType (refers to either an enum value of + * Managementutility,Clientutility, or null) * * @return the value */ @@ -286,12 +304,20 @@ public java.util.Date getTimeUpdated() { return timeUpdated; } - /** The HSMPartition's current lifecycle state. */ + /** + * A HSMCluster resource's current lifecycle state. + * + *

Example: {@code ACTIVE} + */ public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { Active("ACTIVE"), Inactive("INACTIVE"), Activating("ACTIVATING"), ActivationRequired("ACTIVATION_REQUIRED"), + SchedulingDeletion("SCHEDULING_DELETION"), + PendingDeletion("PENDING_DELETION"), + Deleting("DELETING"), + Deleted("DELETED"), /** * This value is used if a service returns a value for this enum that is not recognized by @@ -334,12 +360,18 @@ public static LifecycleState create(String key) { return UnknownEnumValue; } }; - /** The HSMPartition's current lifecycle state. */ + /** + * A HSMCluster resource's current lifecycle state. + * + *

Example: {@code ACTIVE} + */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final LifecycleState lifecycleState; /** - * The HSMPartition's current lifecycle state. + * A HSMCluster resource's current lifecycle state. + * + *

Example: {@code ACTIVE} * * @return the value */ diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/HsmPartitionCollection.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/HsmPartitionCollection.java index bca34d380ae..195e101ab88 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/HsmPartitionCollection.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/HsmPartitionCollection.java @@ -5,7 +5,8 @@ package com.oracle.bmc.keymanagement.model; /** - * HsmPartitionCollection object with page of HsmPartitionSummary objects.
+ * HsmPartitionCollection object with page of HsmPartitionSummary objects. A HsmPartitionSummary + * object contains details about the corresponding HSM.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/HsmPartitionSummary.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/HsmPartitionSummary.java index 1962db381bc..4ad20537ef6 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/HsmPartitionSummary.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/HsmPartitionSummary.java @@ -5,7 +5,7 @@ package com.oracle.bmc.keymanagement.model; /** - * The details of the Hsm.
+ * An object which encapsulates the details of a given HSM.
* 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 @@ -52,12 +52,12 @@ public HsmPartitionSummary( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** The OCID of the HSM resource. */ + /** The OCID of the HSM resource. Each HSM resource will have a unique OCID identifier. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private String id; /** - * The OCID of the HSM resource. + * The OCID of the HSM resource. Each HSM resource will have a unique OCID identifier. * * @param id the value to set * @return this builder @@ -82,12 +82,18 @@ public Builder hsmClusterId(String hsmClusterId) { this.__explicitlySet__.add("hsmClusterId"); return this; } - /** The Hsm's current lifecycle state. */ + /** + * A HSMCluster resource's current lifecycle state. + * + *

Example: {@code ACTIVE} + */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private HsmPartition.LifecycleState lifecycleState; /** - * The Hsm's current lifecycle state. + * A HSMCluster resource's current lifecycle state. + * + *

Example: {@code ACTIVE} * * @param lifecycleState the value to set * @return this builder @@ -112,12 +118,18 @@ public Builder compartmentId(String compartmentId) { this.__explicitlySet__.add("compartmentId"); return this; } - /** Port summary. */ + /** + * Details of a single portInformation item include the PortNumber (an integer used as an + * identifier) and the PortType (refers to either an enum value of + * Managementutility,Clientutility, or null) + */ @com.fasterxml.jackson.annotation.JsonProperty("portInformation") private java.util.List portInformation; /** - * Port summary. + * Details of a single portInformation item include the PortNumber (an integer used as an + * identifier) and the PortType (refers to either an enum value of + * Managementutility,Clientutility, or null) * * @param portInformation the value to set * @return this builder @@ -229,12 +241,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** The OCID of the HSM resource. */ + /** The OCID of the HSM resource. Each HSM resource will have a unique OCID identifier. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private final String id; /** - * The OCID of the HSM resource. + * The OCID of the HSM resource. Each HSM resource will have a unique OCID identifier. * * @return the value */ @@ -255,12 +267,18 @@ public String getHsmClusterId() { return hsmClusterId; } - /** The Hsm's current lifecycle state. */ + /** + * A HSMCluster resource's current lifecycle state. + * + *

Example: {@code ACTIVE} + */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final HsmPartition.LifecycleState lifecycleState; /** - * The Hsm's current lifecycle state. + * A HSMCluster resource's current lifecycle state. + * + *

Example: {@code ACTIVE} * * @return the value */ @@ -281,12 +299,18 @@ public String getCompartmentId() { return compartmentId; } - /** Port summary. */ + /** + * Details of a single portInformation item include the PortNumber (an integer used as an + * identifier) and the PortType (refers to either an enum value of + * Managementutility,Clientutility, or null) + */ @com.fasterxml.jackson.annotation.JsonProperty("portInformation") private final java.util.List portInformation; /** - * Port summary. + * Details of a single portInformation item include the PortNumber (an integer used as an + * identifier) and the PortType (refers to either an enum value of + * Managementutility,Clientutility, or null) * * @return the value */ diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/PortInformation.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/PortInformation.java index 65558b8ddba..b97c9c97a58 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/PortInformation.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/PortInformation.java @@ -5,7 +5,9 @@ package com.oracle.bmc.keymanagement.model; /** - * The details of the port.
+ * Details of a single portInformation item include the PortNumber (an integer used as an + * identifier) and the PortType (this refers to either an enum value of Management Utility, Client + * Utility, or null)
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -31,12 +33,16 @@ public PortInformation(Integer portNumber, PortType portType) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** The port number of the cavium server. */ + /** + * The port number is a unique identifier which is typically used as the loadbalancer + * listener. + */ @com.fasterxml.jackson.annotation.JsonProperty("portNumber") private Integer portNumber; /** - * The port number of the cavium server. + * The port number is a unique identifier which is typically used as the loadbalancer + * listener. * * @param portNumber the value to set * @return this builder @@ -46,12 +52,20 @@ public Builder portNumber(Integer portNumber) { this.__explicitlySet__.add("portNumber"); return this; } - /** Port type associated for the port number. */ + /** + * Port type associated for the port number. The two port type enums are {@code + * CLIENTUTILITY} and {@code MANAGEMENTUTILITY}. The CLIENTUTILITY enum corresponds to a + * port which is used by the client daemon. The MANAGEMENTUTILITY enum corresponds to a port + * used by user management utility. + */ @com.fasterxml.jackson.annotation.JsonProperty("portType") private PortType portType; /** - * Port type associated for the port number. + * Port type associated for the port number. The two port type enums are {@code + * CLIENTUTILITY} and {@code MANAGEMENTUTILITY}. The CLIENTUTILITY enum corresponds to a + * port which is used by the client daemon. The MANAGEMENTUTILITY enum corresponds to a port + * used by user management utility. * * @param portType the value to set * @return this builder @@ -94,12 +108,14 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** The port number of the cavium server. */ + /** + * The port number is a unique identifier which is typically used as the loadbalancer listener. + */ @com.fasterxml.jackson.annotation.JsonProperty("portNumber") private final Integer portNumber; /** - * The port number of the cavium server. + * The port number is a unique identifier which is typically used as the loadbalancer listener. * * @return the value */ @@ -107,7 +123,12 @@ public Integer getPortNumber() { return portNumber; } - /** Port type associated for the port number. */ + /** + * Port type associated for the port number. The two port type enums are {@code CLIENTUTILITY} + * and {@code MANAGEMENTUTILITY}. The CLIENTUTILITY enum corresponds to a port which is used by + * the client daemon. The MANAGEMENTUTILITY enum corresponds to a port used by user management + * utility. + */ public enum PortType implements com.oracle.bmc.http.internal.BmcEnum { Clientutility("CLIENTUTILITY"), Managementutility("MANAGEMENTUTILITY"), @@ -153,12 +174,20 @@ public static PortType create(String key) { return UnknownEnumValue; } }; - /** Port type associated for the port number. */ + /** + * Port type associated for the port number. The two port type enums are {@code CLIENTUTILITY} + * and {@code MANAGEMENTUTILITY}. The CLIENTUTILITY enum corresponds to a port which is used by + * the client daemon. The MANAGEMENTUTILITY enum corresponds to a port used by user management + * utility. + */ @com.fasterxml.jackson.annotation.JsonProperty("portType") private final PortType portType; /** - * Port type associated for the port number. + * Port type associated for the port number. The two port type enums are {@code CLIENTUTILITY} + * and {@code MANAGEMENTUTILITY}. The CLIENTUTILITY enum corresponds to a port which is used by + * the client daemon. The MANAGEMENTUTILITY enum corresponds to a port used by user management + * utility. * * @return the value */ diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/PreCoUserCredentials.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/PreCoUserCredentials.java index d369a8ab07a..b64072031ce 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/PreCoUserCredentials.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/PreCoUserCredentials.java @@ -32,12 +32,12 @@ public PreCoUserCredentials(String username, String password) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** The pre crypto officer username.. */ + /** The pre crypto officer username, which should be chosen as a non confidential string. */ @com.fasterxml.jackson.annotation.JsonProperty("username") private String username; /** - * The pre crypto officer username.. + * The pre crypto officer username, which should be chosen as a non confidential string. * * @param username the value to set * @return this builder @@ -95,12 +95,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** The pre crypto officer username.. */ + /** The pre crypto officer username, which should be chosen as a non confidential string. */ @com.fasterxml.jackson.annotation.JsonProperty("username") private final String username; /** - * The pre crypto officer username.. + * The pre crypto officer username, which should be chosen as a non confidential string. * * @return the value */ diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/UploadPartitionCertificatesDetails.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/UploadPartitionCertificatesDetails.java index b4c4ff5a4cf..a4163b83a0a 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/UploadPartitionCertificatesDetails.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/UploadPartitionCertificatesDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.keymanagement.model; /** - * The details of the partition certificates.
+ * An object that encapsulates the necessary partition certificates.
* 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 @@ -33,12 +33,16 @@ public UploadPartitionCertificatesDetails( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** Base64 encoded (StandardCharsets.UTF_8) Partition Certificate. */ + /** + * Base64 encoded (StandardCharsets.UTF_8) Partition Certificate, which gets created when + * the CSR is signed. + */ @com.fasterxml.jackson.annotation.JsonProperty("partitionCertificate") private String partitionCertificate; /** - * Base64 encoded (StandardCharsets.UTF_8) Partition Certificate. + * Base64 encoded (StandardCharsets.UTF_8) Partition Certificate, which gets created when + * the CSR is signed. * * @param partitionCertificate the value to set * @return this builder @@ -48,12 +52,16 @@ public Builder partitionCertificate(String partitionCertificate) { this.__explicitlySet__.add("partitionCertificate"); return this; } - /** Base64 encoded (StandardCharsets.UTF_8) Partition Owner Certificate. */ + /** + * Base64 encoded (StandardCharsets.UTF_8) Partition Owner Certificate, which is used to + * help sign the CSR. + */ @com.fasterxml.jackson.annotation.JsonProperty("partitionOwnerCertificate") private String partitionOwnerCertificate; /** - * Base64 encoded (StandardCharsets.UTF_8) Partition Owner Certificate. + * Base64 encoded (StandardCharsets.UTF_8) Partition Owner Certificate, which is used to + * help sign the CSR. * * @param partitionOwnerCertificate the value to set * @return this builder @@ -98,12 +106,16 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** Base64 encoded (StandardCharsets.UTF_8) Partition Certificate. */ + /** + * Base64 encoded (StandardCharsets.UTF_8) Partition Certificate, which gets created when the + * CSR is signed. + */ @com.fasterxml.jackson.annotation.JsonProperty("partitionCertificate") private final String partitionCertificate; /** - * Base64 encoded (StandardCharsets.UTF_8) Partition Certificate. + * Base64 encoded (StandardCharsets.UTF_8) Partition Certificate, which gets created when the + * CSR is signed. * * @return the value */ @@ -111,12 +123,16 @@ public String getPartitionCertificate() { return partitionCertificate; } - /** Base64 encoded (StandardCharsets.UTF_8) Partition Owner Certificate. */ + /** + * Base64 encoded (StandardCharsets.UTF_8) Partition Owner Certificate, which is used to help + * sign the CSR. + */ @com.fasterxml.jackson.annotation.JsonProperty("partitionOwnerCertificate") private final String partitionOwnerCertificate; /** - * Base64 encoded (StandardCharsets.UTF_8) Partition Owner Certificate. + * Base64 encoded (StandardCharsets.UTF_8) Partition Owner Certificate, which is used to help + * sign the CSR. * * @return the value */ diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/Vault.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/Vault.java index ca67124c260..96163c00074 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/Vault.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/model/Vault.java @@ -37,6 +37,7 @@ public final class Vault extends com.oracle.bmc.http.client.internal.ExplicitlyS "wrappingkeyId", "replicaDetails", "isPrimary", + "isVaultReplicable", "externalKeyManagerMetadataSummary" }) public Vault( @@ -55,6 +56,7 @@ public Vault( String wrappingkeyId, VaultReplicaDetails replicaDetails, Boolean isPrimary, + Boolean isVaultReplicable, ExternalKeyManagerMetadataSummary externalKeyManagerMetadataSummary) { super(); this.compartmentId = compartmentId; @@ -72,6 +74,7 @@ public Vault( this.wrappingkeyId = wrappingkeyId; this.replicaDetails = replicaDetails; this.isPrimary = isPrimary; + this.isVaultReplicable = isVaultReplicable; this.externalKeyManagerMetadataSummary = externalKeyManagerMetadataSummary; } @@ -363,6 +366,25 @@ public Builder isPrimary(Boolean isPrimary) { this.__explicitlySet__.add("isPrimary"); return this; } + /** + * A Boolean value that indicates whether the Vault has cross region replication capability. + * Always true for Virtual Private Vaults. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isVaultReplicable") + private Boolean isVaultReplicable; + + /** + * A Boolean value that indicates whether the Vault has cross region replication capability. + * Always true for Virtual Private Vaults. + * + * @param isVaultReplicable the value to set + * @return this builder + */ + public Builder isVaultReplicable(Boolean isVaultReplicable) { + this.isVaultReplicable = isVaultReplicable; + this.__explicitlySet__.add("isVaultReplicable"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("externalKeyManagerMetadataSummary") private ExternalKeyManagerMetadataSummary externalKeyManagerMetadataSummary; @@ -395,6 +417,7 @@ public Vault build() { this.wrappingkeyId, this.replicaDetails, this.isPrimary, + this.isVaultReplicable, this.externalKeyManagerMetadataSummary); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -449,6 +472,9 @@ public Builder copy(Vault model) { if (model.wasPropertyExplicitlySet("isPrimary")) { this.isPrimary(model.getIsPrimary()); } + if (model.wasPropertyExplicitlySet("isVaultReplicable")) { + this.isVaultReplicable(model.getIsVaultReplicable()); + } if (model.wasPropertyExplicitlySet("externalKeyManagerMetadataSummary")) { this.externalKeyManagerMetadataSummary( model.getExternalKeyManagerMetadataSummary()); @@ -827,6 +853,23 @@ public Boolean getIsPrimary() { return isPrimary; } + /** + * A Boolean value that indicates whether the Vault has cross region replication capability. + * Always true for Virtual Private Vaults. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isVaultReplicable") + private final Boolean isVaultReplicable; + + /** + * A Boolean value that indicates whether the Vault has cross region replication capability. + * Always true for Virtual Private Vaults. + * + * @return the value + */ + public Boolean getIsVaultReplicable() { + return isVaultReplicable; + } + @com.fasterxml.jackson.annotation.JsonProperty("externalKeyManagerMetadataSummary") private final ExternalKeyManagerMetadataSummary externalKeyManagerMetadataSummary; @@ -864,6 +907,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", wrappingkeyId=").append(String.valueOf(this.wrappingkeyId)); sb.append(", replicaDetails=").append(String.valueOf(this.replicaDetails)); sb.append(", isPrimary=").append(String.valueOf(this.isPrimary)); + sb.append(", isVaultReplicable=").append(String.valueOf(this.isVaultReplicable)); sb.append(", externalKeyManagerMetadataSummary=") .append(String.valueOf(this.externalKeyManagerMetadataSummary)); sb.append(")"); @@ -895,6 +939,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.wrappingkeyId, other.wrappingkeyId) && java.util.Objects.equals(this.replicaDetails, other.replicaDetails) && java.util.Objects.equals(this.isPrimary, other.isPrimary) + && java.util.Objects.equals(this.isVaultReplicable, other.isVaultReplicable) && java.util.Objects.equals( this.externalKeyManagerMetadataSummary, other.externalKeyManagerMetadataSummary) @@ -940,6 +985,9 @@ public int hashCode() { (result * PRIME) + (this.replicaDetails == null ? 43 : this.replicaDetails.hashCode()); result = (result * PRIME) + (this.isPrimary == null ? 43 : this.isPrimary.hashCode()); + result = + (result * PRIME) + + (this.isVaultReplicable == null ? 43 : this.isVaultReplicable.hashCode()); result = (result * PRIME) + (this.externalKeyManagerMetadataSummary == null diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/CancelHsmClusterDeletionRequest.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/CancelHsmClusterDeletionRequest.java index 258866f75b5..a481a274895 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/CancelHsmClusterDeletionRequest.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/CancelHsmClusterDeletionRequest.java @@ -15,10 +15,10 @@ public class CancelHsmClusterDeletionRequest extends com.oracle.bmc.requests.BmcRequest { - /** The OCID of the HSM Cluster. */ + /** The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. */ private String hsmClusterId; - /** The OCID of the HSM Cluster. */ + /** The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. */ public String getHsmClusterId() { return hsmClusterId; } @@ -78,11 +78,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** The OCID of the HSM Cluster. */ + /** The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. */ private String hsmClusterId = null; /** - * The OCID of the HSM Cluster. + * The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. * * @param hsmClusterId the value to set * @return this builder instance diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/ChangeHsmClusterCompartmentRequest.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/ChangeHsmClusterCompartmentRequest.java index 3f4f00a1feb..7941238bf7b 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/ChangeHsmClusterCompartmentRequest.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/ChangeHsmClusterCompartmentRequest.java @@ -16,10 +16,10 @@ public class ChangeHsmClusterCompartmentRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.keymanagement.model.ChangeHsmClusterCompartmentDetails> { - /** The OCID of the HSM Cluster. */ + /** The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. */ private String hsmClusterId; - /** The OCID of the HSM Cluster. */ + /** The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. */ public String getHsmClusterId() { return hsmClusterId; } @@ -100,11 +100,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** The OCID of the HSM Cluster. */ + /** The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. */ private String hsmClusterId = null; /** - * The OCID of the HSM Cluster. + * The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. * * @param hsmClusterId the value to set * @return this builder instance diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/DownloadCertificateSigningRequestRequest.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/DownloadCertificateSigningRequestRequest.java index c9954abf0b6..3be04cfc3ba 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/DownloadCertificateSigningRequestRequest.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/DownloadCertificateSigningRequestRequest.java @@ -15,10 +15,10 @@ public class DownloadCertificateSigningRequestRequest extends com.oracle.bmc.requests.BmcRequest { - /** The OCID of the HSM Cluster. */ + /** The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. */ private String hsmClusterId; - /** The OCID of the HSM Cluster. */ + /** The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. */ public String getHsmClusterId() { return hsmClusterId; } @@ -78,11 +78,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** The OCID of the HSM Cluster. */ + /** The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. */ private String hsmClusterId = null; /** - * The OCID of the HSM Cluster. + * The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. * * @param hsmClusterId the value to set * @return this builder instance diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/GetHsmClusterRequest.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/GetHsmClusterRequest.java index 7a72785d3b7..3d94e3ad8f3 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/GetHsmClusterRequest.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/GetHsmClusterRequest.java @@ -13,10 +13,10 @@ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: release") public class GetHsmClusterRequest extends com.oracle.bmc.requests.BmcRequest { - /** The OCID of the HSM Cluster. */ + /** The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. */ private String hsmClusterId; - /** The OCID of the HSM Cluster. */ + /** The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. */ public String getHsmClusterId() { return hsmClusterId; } @@ -40,11 +40,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** The OCID of the HSM Cluster. */ + /** The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. */ private String hsmClusterId = null; /** - * The OCID of the HSM Cluster. + * The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. * * @param hsmClusterId the value to set * @return this builder instance diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/GetHsmPartitionRequest.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/GetHsmPartitionRequest.java index 5c88b307da7..bebfdf03c82 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/GetHsmPartitionRequest.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/GetHsmPartitionRequest.java @@ -13,17 +13,21 @@ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: release") public class GetHsmPartitionRequest extends com.oracle.bmc.requests.BmcRequest { - /** The OCID of the HSM Cluster. */ + /** The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. */ private String hsmClusterId; - /** The OCID of the HSM Cluster. */ + /** The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. */ public String getHsmClusterId() { return hsmClusterId; } - /** The OCID of the HSM Partition. */ + /** + * The OCID of the HSM Partition. This is a unique identifier which each hsmPartition will have. + */ private String hsmPartitionId; - /** The OCID of the HSM Partition. */ + /** + * The OCID of the HSM Partition. This is a unique identifier which each hsmPartition will have. + */ public String getHsmPartitionId() { return hsmPartitionId; } @@ -66,11 +70,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** The OCID of the HSM Cluster. */ + /** The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. */ private String hsmClusterId = null; /** - * The OCID of the HSM Cluster. + * The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. * * @param hsmClusterId the value to set * @return this builder instance @@ -80,11 +84,15 @@ public Builder hsmClusterId(String hsmClusterId) { return this; } - /** The OCID of the HSM Partition. */ + /** + * The OCID of the HSM Partition. This is a unique identifier which each hsmPartition will + * have. + */ private String hsmPartitionId = null; /** - * The OCID of the HSM Partition. + * The OCID of the HSM Partition. This is a unique identifier which each hsmPartition will + * have. * * @param hsmPartitionId the value to set * @return this builder instance diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/GetPreCoUserCredentialsRequest.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/GetPreCoUserCredentialsRequest.java index 3f69496f4e3..3731db967ad 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/GetPreCoUserCredentialsRequest.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/GetPreCoUserCredentialsRequest.java @@ -15,10 +15,10 @@ public class GetPreCoUserCredentialsRequest extends com.oracle.bmc.requests.BmcRequest { - /** The OCID of the HSM Cluster. */ + /** The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. */ private String hsmClusterId; - /** The OCID of the HSM Cluster. */ + /** The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. */ public String getHsmClusterId() { return hsmClusterId; } @@ -61,11 +61,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** The OCID of the HSM Cluster. */ + /** The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. */ private String hsmClusterId = null; /** - * The OCID of the HSM Cluster. + * The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. * * @param hsmClusterId the value to set * @return this builder instance diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/ListHsmPartitionsRequest.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/ListHsmPartitionsRequest.java index 475c3c5f7eb..927afd6fc1f 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/ListHsmPartitionsRequest.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/ListHsmPartitionsRequest.java @@ -13,10 +13,10 @@ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: release") public class ListHsmPartitionsRequest extends com.oracle.bmc.requests.BmcRequest { - /** The OCID of the HSM Cluster. */ + /** The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. */ private String hsmClusterId; - /** The OCID of the HSM Cluster. */ + /** The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. */ public String getHsmClusterId() { return hsmClusterId; } @@ -158,11 +158,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** The OCID of the HSM Cluster. */ + /** The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. */ private String hsmClusterId = null; /** - * The OCID of the HSM Cluster. + * The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. * * @param hsmClusterId the value to set * @return this builder instance diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/ScheduleHsmClusterDeletionRequest.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/ScheduleHsmClusterDeletionRequest.java index c7a9077cdd0..2d6822a6036 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/ScheduleHsmClusterDeletionRequest.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/ScheduleHsmClusterDeletionRequest.java @@ -16,10 +16,10 @@ public class ScheduleHsmClusterDeletionRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.keymanagement.model.ScheduleHsmClusterDeletionDetails> { - /** The OCID of the HSM Cluster. */ + /** The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. */ private String hsmClusterId; - /** The OCID of the HSM Cluster. */ + /** The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. */ public String getHsmClusterId() { return hsmClusterId; } @@ -100,11 +100,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** The OCID of the HSM Cluster. */ + /** The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. */ private String hsmClusterId = null; /** - * The OCID of the HSM Cluster. + * The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. * * @param hsmClusterId the value to set * @return this builder instance diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/UpdateHsmClusterRequest.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/UpdateHsmClusterRequest.java index e3b5ba4f54c..9576e6384b4 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/UpdateHsmClusterRequest.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/UpdateHsmClusterRequest.java @@ -15,10 +15,10 @@ public class UpdateHsmClusterRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.keymanagement.model.UpdateHsmClusterDetails> { - /** The OCID of the HSM Cluster. */ + /** The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. */ private String hsmClusterId; - /** The OCID of the HSM Cluster. */ + /** The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. */ public String getHsmClusterId() { return hsmClusterId; } @@ -78,11 +78,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** The OCID of the HSM Cluster. */ + /** The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. */ private String hsmClusterId = null; /** - * The OCID of the HSM Cluster. + * The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. * * @param hsmClusterId the value to set * @return this builder instance diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/UploadPartitionCertificatesRequest.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/UploadPartitionCertificatesRequest.java index 2465709961a..da73cb48cad 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/UploadPartitionCertificatesRequest.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/requests/UploadPartitionCertificatesRequest.java @@ -16,10 +16,10 @@ public class UploadPartitionCertificatesRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.keymanagement.model.UploadPartitionCertificatesDetails> { - /** The OCID of the HSM Cluster. */ + /** The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. */ private String hsmClusterId; - /** The OCID of the HSM Cluster. */ + /** The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. */ public String getHsmClusterId() { return hsmClusterId; } @@ -100,11 +100,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** The OCID of the HSM Cluster. */ + /** The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. */ private String hsmClusterId = null; /** - * The OCID of the HSM Cluster. + * The OCID of the HSM Cluster. This is a unique identifier assigned to each hsmCluster. * * @param hsmClusterId the value to set * @return this builder instance diff --git a/bmc-licensemanager/pom.xml b/bmc-licensemanager/pom.xml index f4ff64eba88..44d9d65f3b7 100644 --- a/bmc-licensemanager/pom.xml +++ b/bmc-licensemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-licensemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-limits/pom.xml b/bmc-limits/pom.xml index 9b7a33f383b..3bb994986a7 100644 --- a/bmc-limits/pom.xml +++ b/bmc-limits/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-limits @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-loadbalancer/pom.xml b/bmc-loadbalancer/pom.xml index 35f0965a95a..b94f01a4b6f 100644 --- a/bmc-loadbalancer/pom.xml +++ b/bmc-loadbalancer/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/Backend.java b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/Backend.java index 92c3e654ddc..54b88900280 100644 --- a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/Backend.java +++ b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/Backend.java @@ -151,6 +151,8 @@ public Builder weight(Integer weight) { } /** * The maximum number of simultaneous connections the load balancer can make to the backend. + * If this is not set then the maximum number of simultaneous connections the load balancer + * can make to the backend is unlimited. * *

Example: {@code 300} */ @@ -159,6 +161,8 @@ public Builder weight(Integer weight) { /** * The maximum number of simultaneous connections the load balancer can make to the backend. + * If this is not set then the maximum number of simultaneous connections the load balancer + * can make to the backend is unlimited. * *

Example: {@code 300} * @@ -394,7 +398,9 @@ public Integer getWeight() { } /** - * The maximum number of simultaneous connections the load balancer can make to the backend. + * The maximum number of simultaneous connections the load balancer can make to the backend. If + * this is not set then the maximum number of simultaneous connections the load balancer can + * make to the backend is unlimited. * *

Example: {@code 300} */ @@ -402,7 +408,9 @@ public Integer getWeight() { private final Integer maxConnections; /** - * The maximum number of simultaneous connections the load balancer can make to the backend. + * The maximum number of simultaneous connections the load balancer can make to the backend. If + * this is not set then the maximum number of simultaneous connections the load balancer can + * make to the backend is unlimited. * *

Example: {@code 300} * diff --git a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/BackendDetails.java b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/BackendDetails.java index 8745a0375e4..32c005902aa 100644 --- a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/BackendDetails.java +++ b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/BackendDetails.java @@ -124,6 +124,8 @@ public Builder weight(Integer weight) { } /** * The maximum number of simultaneous connections the load balancer can make to the backend. + * If this is not set then the maximum number of simultaneous connections the load balancer + * can make to the backend is unlimited. * *

Example: {@code 300} */ @@ -132,6 +134,8 @@ public Builder weight(Integer weight) { /** * The maximum number of simultaneous connections the load balancer can make to the backend. + * If this is not set then the maximum number of simultaneous connections the load balancer + * can make to the backend is unlimited. * *

Example: {@code 300} * @@ -342,7 +346,9 @@ public Integer getWeight() { } /** - * The maximum number of simultaneous connections the load balancer can make to the backend. + * The maximum number of simultaneous connections the load balancer can make to the backend. If + * this is not set then the maximum number of simultaneous connections the load balancer can + * make to the backend is unlimited. * *

Example: {@code 300} */ @@ -350,7 +356,9 @@ public Integer getWeight() { private final Integer maxConnections; /** - * The maximum number of simultaneous connections the load balancer can make to the backend. + * The maximum number of simultaneous connections the load balancer can make to the backend. If + * this is not set then the maximum number of simultaneous connections the load balancer can + * make to the backend is unlimited. * *

Example: {@code 300} * diff --git a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/BackendSet.java b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/BackendSet.java index e618fe48c4e..4bfeab78816 100644 --- a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/BackendSet.java +++ b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/BackendSet.java @@ -125,7 +125,9 @@ public Builder backends(java.util.List backends) { } /** * The maximum number of simultaneous connections the load balancer can make to any backend - * in the backend set unless the backend has its own maxConnections setting. + * in the backend set unless the backend has its own maxConnections setting. If this is not + * set then the number of simultaneous connections the load balancer can make to any backend + * in the backend set unless the backend has its own maxConnections setting is unlimited. * *

Example: {@code 300} */ @@ -134,7 +136,9 @@ public Builder backends(java.util.List backends) { /** * The maximum number of simultaneous connections the load balancer can make to any backend - * in the backend set unless the backend has its own maxConnections setting. + * in the backend set unless the backend has its own maxConnections setting. If this is not + * set then the number of simultaneous connections the load balancer can make to any backend + * in the backend set unless the backend has its own maxConnections setting is unlimited. * *

Example: {@code 300} * @@ -302,7 +306,9 @@ public java.util.List getBackends() { /** * The maximum number of simultaneous connections the load balancer can make to any backend in - * the backend set unless the backend has its own maxConnections setting. + * the backend set unless the backend has its own maxConnections setting. If this is not set + * then the number of simultaneous connections the load balancer can make to any backend in the + * backend set unless the backend has its own maxConnections setting is unlimited. * *

Example: {@code 300} */ @@ -311,7 +317,9 @@ public java.util.List getBackends() { /** * The maximum number of simultaneous connections the load balancer can make to any backend in - * the backend set unless the backend has its own maxConnections setting. + * the backend set unless the backend has its own maxConnections setting. If this is not set + * then the number of simultaneous connections the load balancer can make to any backend in the + * backend set unless the backend has its own maxConnections setting is unlimited. * *

Example: {@code 300} * diff --git a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/BackendSetDetails.java b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/BackendSetDetails.java index 091db14a3bc..7b1fea65d31 100644 --- a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/BackendSetDetails.java +++ b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/BackendSetDetails.java @@ -94,7 +94,9 @@ public Builder backends(java.util.List backends) { } /** * The maximum number of simultaneous connections the load balancer can make to any backend - * in the backend set unless the backend has its own maxConnections setting. + * in the backend set unless the backend has its own maxConnections setting. If this is not + * set then the number of simultaneous connections the load balancer can make to any backend + * in the backend set unless the backend has its own maxConnections setting is unlimited. * *

Example: {@code 300} */ @@ -103,7 +105,9 @@ public Builder backends(java.util.List backends) { /** * The maximum number of simultaneous connections the load balancer can make to any backend - * in the backend set unless the backend has its own maxConnections setting. + * in the backend set unless the backend has its own maxConnections setting. If this is not + * set then the number of simultaneous connections the load balancer can make to any backend + * in the backend set unless the backend has its own maxConnections setting is unlimited. * *

Example: {@code 300} * @@ -242,7 +246,9 @@ public java.util.List getBackends() { /** * The maximum number of simultaneous connections the load balancer can make to any backend in - * the backend set unless the backend has its own maxConnections setting. + * the backend set unless the backend has its own maxConnections setting. If this is not set + * then the number of simultaneous connections the load balancer can make to any backend in the + * backend set unless the backend has its own maxConnections setting is unlimited. * *

Example: {@code 300} */ @@ -251,7 +257,9 @@ public java.util.List getBackends() { /** * The maximum number of simultaneous connections the load balancer can make to any backend in - * the backend set unless the backend has its own maxConnections setting. + * the backend set unless the backend has its own maxConnections setting. If this is not set + * then the number of simultaneous connections the load balancer can make to any backend in the + * backend set unless the backend has its own maxConnections setting is unlimited. * *

Example: {@code 300} * diff --git a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/CreateBackendDetails.java b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/CreateBackendDetails.java index 475ad40bfd2..557771692b1 100644 --- a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/CreateBackendDetails.java +++ b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/CreateBackendDetails.java @@ -127,6 +127,8 @@ public Builder weight(Integer weight) { } /** * The maximum number of simultaneous connections the load balancer can make to the backend. + * If this is not set then number of simultaneous connections the load balancer can make to + * the backend is unlimited. * *

Example: {@code 300} */ @@ -135,6 +137,8 @@ public Builder weight(Integer weight) { /** * The maximum number of simultaneous connections the load balancer can make to the backend. + * If this is not set then number of simultaneous connections the load balancer can make to + * the backend is unlimited. * *

Example: {@code 300} * @@ -345,7 +349,9 @@ public Integer getWeight() { } /** - * The maximum number of simultaneous connections the load balancer can make to the backend. + * The maximum number of simultaneous connections the load balancer can make to the backend. If + * this is not set then number of simultaneous connections the load balancer can make to the + * backend is unlimited. * *

Example: {@code 300} */ @@ -353,7 +359,9 @@ public Integer getWeight() { private final Integer maxConnections; /** - * The maximum number of simultaneous connections the load balancer can make to the backend. + * The maximum number of simultaneous connections the load balancer can make to the backend. If + * this is not set then number of simultaneous connections the load balancer can make to the + * backend is unlimited. * *

Example: {@code 300} * diff --git a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/CreateBackendSetDetails.java b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/CreateBackendSetDetails.java index 01c5d2b994c..02855f425bf 100644 --- a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/CreateBackendSetDetails.java +++ b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/CreateBackendSetDetails.java @@ -127,7 +127,9 @@ public Builder backends(java.util.List backends) { } /** * The maximum number of simultaneous connections the load balancer can make to any backend - * in the backend set unless the backend has its own maxConnections setting. + * in the backend set unless the backend has its own maxConnections setting. If this is not + * set then the number of simultaneous connections the load balancer can make to any backend + * in the backend set unless the backend has its own maxConnections setting is unlimited. * *

Example: {@code 300} */ @@ -136,7 +138,9 @@ public Builder backends(java.util.List backends) { /** * The maximum number of simultaneous connections the load balancer can make to any backend - * in the backend set unless the backend has its own maxConnections setting. + * in the backend set unless the backend has its own maxConnections setting. If this is not + * set then the number of simultaneous connections the load balancer can make to any backend + * in the backend set unless the backend has its own maxConnections setting is unlimited. * *

Example: {@code 300} * @@ -304,7 +308,9 @@ public java.util.List getBackends() { /** * The maximum number of simultaneous connections the load balancer can make to any backend in - * the backend set unless the backend has its own maxConnections setting. + * the backend set unless the backend has its own maxConnections setting. If this is not set + * then the number of simultaneous connections the load balancer can make to any backend in the + * backend set unless the backend has its own maxConnections setting is unlimited. * *

Example: {@code 300} */ @@ -313,7 +319,9 @@ public java.util.List getBackends() { /** * The maximum number of simultaneous connections the load balancer can make to any backend in - * the backend set unless the backend has its own maxConnections setting. + * the backend set unless the backend has its own maxConnections setting. If this is not set + * then the number of simultaneous connections the load balancer can make to any backend in the + * backend set unless the backend has its own maxConnections setting is unlimited. * *

Example: {@code 300} * diff --git a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/CreateLoadBalancerDetails.java b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/CreateLoadBalancerDetails.java index af2b173d49a..d610b0e0d17 100644 --- a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/CreateLoadBalancerDetails.java +++ b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/CreateLoadBalancerDetails.java @@ -34,6 +34,8 @@ public final class CreateLoadBalancerDetails "isPrivate", "isDeleteProtectionEnabled", "ipMode", + "isRequestIdEnabled", + "requestIdHeader", "reservedIps", "listeners", "hostnames", @@ -55,6 +57,8 @@ public CreateLoadBalancerDetails( Boolean isPrivate, Boolean isDeleteProtectionEnabled, IpMode ipMode, + Boolean isRequestIdEnabled, + String requestIdHeader, java.util.List reservedIps, java.util.Map listeners, java.util.Map hostnames, @@ -75,6 +79,8 @@ public CreateLoadBalancerDetails( this.isPrivate = isPrivate; this.isDeleteProtectionEnabled = isDeleteProtectionEnabled; this.ipMode = ipMode; + this.isRequestIdEnabled = isRequestIdEnabled; + this.requestIdHeader = requestIdHeader; this.reservedIps = reservedIps; this.listeners = listeners; this.hostnames = hostnames; @@ -286,6 +292,96 @@ public Builder ipMode(IpMode ipMode) { this.__explicitlySet__.add("ipMode"); return this; } + /** + * Whether or not the load balancer has the Request Id feature enabled for HTTP listeners. + * + *

If "true", the load balancer will attach a unique request id header to every request + * passed through from the load balancer to load balancer backends. This same request id + * header also will be added to the response the lb received from the backend handling the + * request before the load balancer returns the response to the requestor. The name of the + * unique request id header is set the by value of requestIdHeader. + * + *

If "false", the loadbalancer not add this unique request id header to either the + * request passed through to the load balancer backends nor to the reponse returned to the + * user. + * + *

New load balancers have the Request Id feature disabled unless isRequestIdEnabled is + * set to true. + * + *

Example: {@code true} + */ + @com.fasterxml.jackson.annotation.JsonProperty("isRequestIdEnabled") + private Boolean isRequestIdEnabled; + + /** + * Whether or not the load balancer has the Request Id feature enabled for HTTP listeners. + * + *

If "true", the load balancer will attach a unique request id header to every request + * passed through from the load balancer to load balancer backends. This same request id + * header also will be added to the response the lb received from the backend handling the + * request before the load balancer returns the response to the requestor. The name of the + * unique request id header is set the by value of requestIdHeader. + * + *

If "false", the loadbalancer not add this unique request id header to either the + * request passed through to the load balancer backends nor to the reponse returned to the + * user. + * + *

New load balancers have the Request Id feature disabled unless isRequestIdEnabled is + * set to true. + * + *

Example: {@code true} + * + * @param isRequestIdEnabled the value to set + * @return this builder + */ + public Builder isRequestIdEnabled(Boolean isRequestIdEnabled) { + this.isRequestIdEnabled = isRequestIdEnabled; + this.__explicitlySet__.add("isRequestIdEnabled"); + return this; + } + /** + * If isRequestIdEnabled is true then this field contains the name of the header field that + * contains the unique request id that is attached to every request from the load balancer + * to the load balancer backends and to every response from the load balancer. + * + *

If a request to the load balancer already contains a header with same name as + * specified in requestIdHeader then the load balancer will not change the value of that + * field. + * + *

If isRequestIdEnabled is false then this field is ignored. + * + *

If this field is not set or is set to "" then this field defaults to X-Request-Id + * + *

*Notes:** * Unless the header name is "" it must start with "X-" prefix. * Setting the + * header name to "" will set it to the default: X-Request-Id. + */ + @com.fasterxml.jackson.annotation.JsonProperty("requestIdHeader") + private String requestIdHeader; + + /** + * If isRequestIdEnabled is true then this field contains the name of the header field that + * contains the unique request id that is attached to every request from the load balancer + * to the load balancer backends and to every response from the load balancer. + * + *

If a request to the load balancer already contains a header with same name as + * specified in requestIdHeader then the load balancer will not change the value of that + * field. + * + *

If isRequestIdEnabled is false then this field is ignored. + * + *

If this field is not set or is set to "" then this field defaults to X-Request-Id + * + *

*Notes:** * Unless the header name is "" it must start with "X-" prefix. * Setting the + * header name to "" will set it to the default: X-Request-Id. + * + * @param requestIdHeader the value to set + * @return this builder + */ + public Builder requestIdHeader(String requestIdHeader) { + this.requestIdHeader = requestIdHeader; + this.__explicitlySet__.add("requestIdHeader"); + return this; + } /** An array of reserved Ips. */ @com.fasterxml.jackson.annotation.JsonProperty("reservedIps") private java.util.List reservedIps; @@ -496,6 +592,8 @@ public CreateLoadBalancerDetails build() { this.isPrivate, this.isDeleteProtectionEnabled, this.ipMode, + this.isRequestIdEnabled, + this.requestIdHeader, this.reservedIps, this.listeners, this.hostnames, @@ -537,6 +635,12 @@ public Builder copy(CreateLoadBalancerDetails model) { if (model.wasPropertyExplicitlySet("ipMode")) { this.ipMode(model.getIpMode()); } + if (model.wasPropertyExplicitlySet("isRequestIdEnabled")) { + this.isRequestIdEnabled(model.getIsRequestIdEnabled()); + } + if (model.wasPropertyExplicitlySet("requestIdHeader")) { + this.requestIdHeader(model.getRequestIdHeader()); + } if (model.wasPropertyExplicitlySet("reservedIps")) { this.reservedIps(model.getReservedIps()); } @@ -808,6 +912,88 @@ public IpMode getIpMode() { return ipMode; } + /** + * Whether or not the load balancer has the Request Id feature enabled for HTTP listeners. + * + *

If "true", the load balancer will attach a unique request id header to every request + * passed through from the load balancer to load balancer backends. This same request id header + * also will be added to the response the lb received from the backend handling the request + * before the load balancer returns the response to the requestor. The name of the unique + * request id header is set the by value of requestIdHeader. + * + *

If "false", the loadbalancer not add this unique request id header to either the request + * passed through to the load balancer backends nor to the reponse returned to the user. + * + *

New load balancers have the Request Id feature disabled unless isRequestIdEnabled is set + * to true. + * + *

Example: {@code true} + */ + @com.fasterxml.jackson.annotation.JsonProperty("isRequestIdEnabled") + private final Boolean isRequestIdEnabled; + + /** + * Whether or not the load balancer has the Request Id feature enabled for HTTP listeners. + * + *

If "true", the load balancer will attach a unique request id header to every request + * passed through from the load balancer to load balancer backends. This same request id header + * also will be added to the response the lb received from the backend handling the request + * before the load balancer returns the response to the requestor. The name of the unique + * request id header is set the by value of requestIdHeader. + * + *

If "false", the loadbalancer not add this unique request id header to either the request + * passed through to the load balancer backends nor to the reponse returned to the user. + * + *

New load balancers have the Request Id feature disabled unless isRequestIdEnabled is set + * to true. + * + *

Example: {@code true} + * + * @return the value + */ + public Boolean getIsRequestIdEnabled() { + return isRequestIdEnabled; + } + + /** + * If isRequestIdEnabled is true then this field contains the name of the header field that + * contains the unique request id that is attached to every request from the load balancer to + * the load balancer backends and to every response from the load balancer. + * + *

If a request to the load balancer already contains a header with same name as specified in + * requestIdHeader then the load balancer will not change the value of that field. + * + *

If isRequestIdEnabled is false then this field is ignored. + * + *

If this field is not set or is set to "" then this field defaults to X-Request-Id + * + *

*Notes:** * Unless the header name is "" it must start with "X-" prefix. * Setting the + * header name to "" will set it to the default: X-Request-Id. + */ + @com.fasterxml.jackson.annotation.JsonProperty("requestIdHeader") + private final String requestIdHeader; + + /** + * If isRequestIdEnabled is true then this field contains the name of the header field that + * contains the unique request id that is attached to every request from the load balancer to + * the load balancer backends and to every response from the load balancer. + * + *

If a request to the load balancer already contains a header with same name as specified in + * requestIdHeader then the load balancer will not change the value of that field. + * + *

If isRequestIdEnabled is false then this field is ignored. + * + *

If this field is not set or is set to "" then this field defaults to X-Request-Id + * + *

*Notes:** * Unless the header name is "" it must start with "X-" prefix. * Setting the + * header name to "" will set it to the default: X-Request-Id. + * + * @return the value + */ + public String getRequestIdHeader() { + return requestIdHeader; + } + /** An array of reserved Ips. */ @com.fasterxml.jackson.annotation.JsonProperty("reservedIps") private final java.util.List reservedIps; @@ -1001,6 +1187,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", isDeleteProtectionEnabled=") .append(String.valueOf(this.isDeleteProtectionEnabled)); sb.append(", ipMode=").append(String.valueOf(this.ipMode)); + sb.append(", isRequestIdEnabled=").append(String.valueOf(this.isRequestIdEnabled)); + sb.append(", requestIdHeader=").append(String.valueOf(this.requestIdHeader)); sb.append(", reservedIps=").append(String.valueOf(this.reservedIps)); sb.append(", listeners=").append(String.valueOf(this.listeners)); sb.append(", hostnames=").append(String.valueOf(this.hostnames)); @@ -1036,6 +1224,8 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.isDeleteProtectionEnabled, other.isDeleteProtectionEnabled) && java.util.Objects.equals(this.ipMode, other.ipMode) + && java.util.Objects.equals(this.isRequestIdEnabled, other.isRequestIdEnabled) + && java.util.Objects.equals(this.requestIdHeader, other.requestIdHeader) && java.util.Objects.equals(this.reservedIps, other.reservedIps) && java.util.Objects.equals(this.listeners, other.listeners) && java.util.Objects.equals(this.hostnames, other.hostnames) @@ -1069,6 +1259,14 @@ public int hashCode() { ? 43 : this.isDeleteProtectionEnabled.hashCode()); result = (result * PRIME) + (this.ipMode == null ? 43 : this.ipMode.hashCode()); + result = + (result * PRIME) + + (this.isRequestIdEnabled == null + ? 43 + : this.isRequestIdEnabled.hashCode()); + result = + (result * PRIME) + + (this.requestIdHeader == null ? 43 : this.requestIdHeader.hashCode()); result = (result * PRIME) + (this.reservedIps == null ? 43 : this.reservedIps.hashCode()); result = (result * PRIME) + (this.listeners == null ? 43 : this.listeners.hashCode()); result = (result * PRIME) + (this.hostnames == null ? 43 : this.hostnames.hashCode()); diff --git a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/IpMaxConnections.java b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/IpMaxConnections.java index 47e42b740b1..10ceb664be7 100644 --- a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/IpMaxConnections.java +++ b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/IpMaxConnections.java @@ -51,12 +51,20 @@ public Builder ipAddresses(java.util.List ipAddresses) { this.__explicitlySet__.add("ipAddresses"); return this; } - /** The max number of connections that the specified IPs can make to the Listener. */ + /** + * The maximum number of simultaneous connections that the specified IPs can make to the + * Listener. IPs without a maxConnections setting can make either defaultMaxConnections + * simultaneous connections to a listener or, if no defaultMaxConnections is specified, an + * unlimited number of simultaneous connections to a listener. + */ @com.fasterxml.jackson.annotation.JsonProperty("maxConnections") private Integer maxConnections; /** - * The max number of connections that the specified IPs can make to the Listener. + * The maximum number of simultaneous connections that the specified IPs can make to the + * Listener. IPs without a maxConnections setting can make either defaultMaxConnections + * simultaneous connections to a listener or, if no defaultMaxConnections is specified, an + * unlimited number of simultaneous connections to a listener. * * @param maxConnections the value to set * @return this builder @@ -116,12 +124,20 @@ public java.util.List getIpAddresses() { return ipAddresses; } - /** The max number of connections that the specified IPs can make to the Listener. */ + /** + * The maximum number of simultaneous connections that the specified IPs can make to the + * Listener. IPs without a maxConnections setting can make either defaultMaxConnections + * simultaneous connections to a listener or, if no defaultMaxConnections is specified, an + * unlimited number of simultaneous connections to a listener. + */ @com.fasterxml.jackson.annotation.JsonProperty("maxConnections") private final Integer maxConnections; /** - * The max number of connections that the specified IPs can make to the Listener. + * The maximum number of simultaneous connections that the specified IPs can make to the + * Listener. IPs without a maxConnections setting can make either defaultMaxConnections + * simultaneous connections to a listener or, if no defaultMaxConnections is specified, an + * unlimited number of simultaneous connections to a listener. * * @return the value */ diff --git a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/LoadBalancer.java b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/LoadBalancer.java index f93997b64cd..38902df6dd1 100644 --- a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/LoadBalancer.java +++ b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/LoadBalancer.java @@ -43,6 +43,8 @@ public final class LoadBalancer extends com.oracle.bmc.http.client.internal.Expl "shapeDetails", "isPrivate", "isDeleteProtectionEnabled", + "isRequestIdEnabled", + "requestIdHeader", "subnetIds", "networkSecurityGroupIds", "listeners", @@ -68,6 +70,8 @@ public LoadBalancer( ShapeDetails shapeDetails, Boolean isPrivate, Boolean isDeleteProtectionEnabled, + Boolean isRequestIdEnabled, + String requestIdHeader, java.util.List subnetIds, java.util.List networkSecurityGroupIds, java.util.Map listeners, @@ -92,6 +96,8 @@ public LoadBalancer( this.shapeDetails = shapeDetails; this.isPrivate = isPrivate; this.isDeleteProtectionEnabled = isDeleteProtectionEnabled; + this.isRequestIdEnabled = isRequestIdEnabled; + this.requestIdHeader = requestIdHeader; this.subnetIds = subnetIds; this.networkSecurityGroupIds = networkSecurityGroupIds; this.listeners = listeners; @@ -327,6 +333,80 @@ public Builder isDeleteProtectionEnabled(Boolean isDeleteProtectionEnabled) { this.__explicitlySet__.add("isDeleteProtectionEnabled"); return this; } + /** + * Whether or not the load balancer has the Request Id feature enabled for HTTP listeners. + * + *

If "true", the load balancer will attach a unique request id header to every request + * passed through from the load balancer to load balancer backends. This same request id + * header also will be added to the response the lb received from the backend handling the + * request before the load balancer returns the response to the requestor. The name of the + * unique request id header is set the by value of requestIdHeader. + * + *

If "false", the loadbalancer not add this unique request id header to either the + * request passed through to the load balancer backends nor to the reponse returned to the + * user. + * + *

Example: {@code true} + */ + @com.fasterxml.jackson.annotation.JsonProperty("isRequestIdEnabled") + private Boolean isRequestIdEnabled; + + /** + * Whether or not the load balancer has the Request Id feature enabled for HTTP listeners. + * + *

If "true", the load balancer will attach a unique request id header to every request + * passed through from the load balancer to load balancer backends. This same request id + * header also will be added to the response the lb received from the backend handling the + * request before the load balancer returns the response to the requestor. The name of the + * unique request id header is set the by value of requestIdHeader. + * + *

If "false", the loadbalancer not add this unique request id header to either the + * request passed through to the load balancer backends nor to the reponse returned to the + * user. + * + *

Example: {@code true} + * + * @param isRequestIdEnabled the value to set + * @return this builder + */ + public Builder isRequestIdEnabled(Boolean isRequestIdEnabled) { + this.isRequestIdEnabled = isRequestIdEnabled; + this.__explicitlySet__.add("isRequestIdEnabled"); + return this; + } + /** + * If isRequestIdEnabled is true then this field contains the name of the header field that + * contains the unique request id that is attached to every request from the load balancer + * to the load balancer backends and to every response from the load balancer. + * + *

If a request to the load balancer already contains a header with same name as + * specified in requestIdHeader then the load balancer will not change the value of that + * field. + * + *

If this field is set to "" this field defaults to X-Request-Id. + */ + @com.fasterxml.jackson.annotation.JsonProperty("requestIdHeader") + private String requestIdHeader; + + /** + * If isRequestIdEnabled is true then this field contains the name of the header field that + * contains the unique request id that is attached to every request from the load balancer + * to the load balancer backends and to every response from the load balancer. + * + *

If a request to the load balancer already contains a header with same name as + * specified in requestIdHeader then the load balancer will not change the value of that + * field. + * + *

If this field is set to "" this field defaults to X-Request-Id. + * + * @param requestIdHeader the value to set + * @return this builder + */ + public Builder requestIdHeader(String requestIdHeader) { + this.requestIdHeader = requestIdHeader; + this.__explicitlySet__.add("requestIdHeader"); + return this; + } /** * An array of subnet * [OCIDs](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). @@ -560,6 +640,8 @@ public LoadBalancer build() { this.shapeDetails, this.isPrivate, this.isDeleteProtectionEnabled, + this.isRequestIdEnabled, + this.requestIdHeader, this.subnetIds, this.networkSecurityGroupIds, this.listeners, @@ -611,6 +693,12 @@ public Builder copy(LoadBalancer model) { if (model.wasPropertyExplicitlySet("isDeleteProtectionEnabled")) { this.isDeleteProtectionEnabled(model.getIsDeleteProtectionEnabled()); } + if (model.wasPropertyExplicitlySet("isRequestIdEnabled")) { + this.isRequestIdEnabled(model.getIsRequestIdEnabled()); + } + if (model.wasPropertyExplicitlySet("requestIdHeader")) { + this.requestIdHeader(model.getRequestIdHeader()); + } if (model.wasPropertyExplicitlySet("subnetIds")) { this.subnetIds(model.getSubnetIds()); } @@ -908,6 +996,72 @@ public Boolean getIsDeleteProtectionEnabled() { return isDeleteProtectionEnabled; } + /** + * Whether or not the load balancer has the Request Id feature enabled for HTTP listeners. + * + *

If "true", the load balancer will attach a unique request id header to every request + * passed through from the load balancer to load balancer backends. This same request id header + * also will be added to the response the lb received from the backend handling the request + * before the load balancer returns the response to the requestor. The name of the unique + * request id header is set the by value of requestIdHeader. + * + *

If "false", the loadbalancer not add this unique request id header to either the request + * passed through to the load balancer backends nor to the reponse returned to the user. + * + *

Example: {@code true} + */ + @com.fasterxml.jackson.annotation.JsonProperty("isRequestIdEnabled") + private final Boolean isRequestIdEnabled; + + /** + * Whether or not the load balancer has the Request Id feature enabled for HTTP listeners. + * + *

If "true", the load balancer will attach a unique request id header to every request + * passed through from the load balancer to load balancer backends. This same request id header + * also will be added to the response the lb received from the backend handling the request + * before the load balancer returns the response to the requestor. The name of the unique + * request id header is set the by value of requestIdHeader. + * + *

If "false", the loadbalancer not add this unique request id header to either the request + * passed through to the load balancer backends nor to the reponse returned to the user. + * + *

Example: {@code true} + * + * @return the value + */ + public Boolean getIsRequestIdEnabled() { + return isRequestIdEnabled; + } + + /** + * If isRequestIdEnabled is true then this field contains the name of the header field that + * contains the unique request id that is attached to every request from the load balancer to + * the load balancer backends and to every response from the load balancer. + * + *

If a request to the load balancer already contains a header with same name as specified in + * requestIdHeader then the load balancer will not change the value of that field. + * + *

If this field is set to "" this field defaults to X-Request-Id. + */ + @com.fasterxml.jackson.annotation.JsonProperty("requestIdHeader") + private final String requestIdHeader; + + /** + * If isRequestIdEnabled is true then this field contains the name of the header field that + * contains the unique request id that is attached to every request from the load balancer to + * the load balancer backends and to every response from the load balancer. + * + *

If a request to the load balancer already contains a header with same name as specified in + * requestIdHeader then the load balancer will not change the value of that field. + * + *

If this field is set to "" this field defaults to X-Request-Id. + * + * @return the value + */ + public String getRequestIdHeader() { + return requestIdHeader; + } + /** * An array of subnet * [OCIDs](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). @@ -1123,6 +1277,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", isPrivate=").append(String.valueOf(this.isPrivate)); sb.append(", isDeleteProtectionEnabled=") .append(String.valueOf(this.isDeleteProtectionEnabled)); + sb.append(", isRequestIdEnabled=").append(String.valueOf(this.isRequestIdEnabled)); + sb.append(", requestIdHeader=").append(String.valueOf(this.requestIdHeader)); sb.append(", subnetIds=").append(String.valueOf(this.subnetIds)); sb.append(", networkSecurityGroupIds=") .append(String.valueOf(this.networkSecurityGroupIds)); @@ -1162,6 +1318,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.isPrivate, other.isPrivate) && java.util.Objects.equals( this.isDeleteProtectionEnabled, other.isDeleteProtectionEnabled) + && java.util.Objects.equals(this.isRequestIdEnabled, other.isRequestIdEnabled) + && java.util.Objects.equals(this.requestIdHeader, other.requestIdHeader) && java.util.Objects.equals(this.subnetIds, other.subnetIds) && java.util.Objects.equals( this.networkSecurityGroupIds, other.networkSecurityGroupIds) @@ -1201,6 +1359,14 @@ public int hashCode() { + (this.isDeleteProtectionEnabled == null ? 43 : this.isDeleteProtectionEnabled.hashCode()); + result = + (result * PRIME) + + (this.isRequestIdEnabled == null + ? 43 + : this.isRequestIdEnabled.hashCode()); + result = + (result * PRIME) + + (this.requestIdHeader == null ? 43 : this.requestIdHeader.hashCode()); result = (result * PRIME) + (this.subnetIds == null ? 43 : this.subnetIds.hashCode()); result = (result * PRIME) diff --git a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/UpdateBackendDetails.java b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/UpdateBackendDetails.java index 78281f72742..eec383ddc2c 100644 --- a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/UpdateBackendDetails.java +++ b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/UpdateBackendDetails.java @@ -71,6 +71,8 @@ public Builder weight(Integer weight) { } /** * The maximum number of simultaneous connections the load balancer can make to the backend. + * If this is not set then the maximum number of simultaneous connections the load balancer + * can make to the backend is unlimited. * *

Example: {@code 300} */ @@ -79,6 +81,8 @@ public Builder weight(Integer weight) { /** * The maximum number of simultaneous connections the load balancer can make to the backend. + * If this is not set then the maximum number of simultaneous connections the load balancer + * can make to the backend is unlimited. * *

Example: {@code 300} * @@ -243,7 +247,9 @@ public Integer getWeight() { } /** - * The maximum number of simultaneous connections the load balancer can make to the backend. + * The maximum number of simultaneous connections the load balancer can make to the backend. If + * this is not set then the maximum number of simultaneous connections the load balancer can + * make to the backend is unlimited. * *

Example: {@code 300} */ @@ -251,7 +257,9 @@ public Integer getWeight() { private final Integer maxConnections; /** - * The maximum number of simultaneous connections the load balancer can make to the backend. + * The maximum number of simultaneous connections the load balancer can make to the backend. If + * this is not set then the maximum number of simultaneous connections the load balancer can + * make to the backend is unlimited. * *

Example: {@code 300} * diff --git a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/UpdateBackendSetDetails.java b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/UpdateBackendSetDetails.java index b2b1b9b9245..8450dd4666a 100644 --- a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/UpdateBackendSetDetails.java +++ b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/UpdateBackendSetDetails.java @@ -97,7 +97,9 @@ public Builder backends(java.util.List backends) { } /** * The maximum number of simultaneous connections the load balancer can make to any backend - * in the backend set unless the backend has its own maxConnections setting. + * in the backend set unless the backend has its own maxConnections setting. If this is not + * set then the number of simultaneous connections the load balancer can make to any backend + * in the backend set unless the backend has its own maxConnections setting is unlimited. * *

Example: {@code 300} */ @@ -106,7 +108,9 @@ public Builder backends(java.util.List backends) { /** * The maximum number of simultaneous connections the load balancer can make to any backend - * in the backend set unless the backend has its own maxConnections setting. + * in the backend set unless the backend has its own maxConnections setting. If this is not + * set then the number of simultaneous connections the load balancer can make to any backend + * in the backend set unless the backend has its own maxConnections setting is unlimited. * *

Example: {@code 300} * @@ -245,7 +249,9 @@ public java.util.List getBackends() { /** * The maximum number of simultaneous connections the load balancer can make to any backend in - * the backend set unless the backend has its own maxConnections setting. + * the backend set unless the backend has its own maxConnections setting. If this is not set + * then the number of simultaneous connections the load balancer can make to any backend in the + * backend set unless the backend has its own maxConnections setting is unlimited. * *

Example: {@code 300} */ @@ -254,7 +260,9 @@ public java.util.List getBackends() { /** * The maximum number of simultaneous connections the load balancer can make to any backend in - * the backend set unless the backend has its own maxConnections setting. + * the backend set unless the backend has its own maxConnections setting. If this is not set + * then the number of simultaneous connections the load balancer can make to any backend in the + * backend set unless the backend has its own maxConnections setting is unlimited. * *

Example: {@code 300} * diff --git a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/UpdateLoadBalancerDetails.java b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/UpdateLoadBalancerDetails.java index 7bd5c0ef2f7..4d9080053db 100644 --- a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/UpdateLoadBalancerDetails.java +++ b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/UpdateLoadBalancerDetails.java @@ -29,17 +29,23 @@ public final class UpdateLoadBalancerDetails @java.beans.ConstructorProperties({ "displayName", "isDeleteProtectionEnabled", + "isRequestIdEnabled", + "requestIdHeader", "freeformTags", "definedTags" }) public UpdateLoadBalancerDetails( String displayName, Boolean isDeleteProtectionEnabled, + Boolean isRequestIdEnabled, + String requestIdHeader, java.util.Map freeformTags, java.util.Map> definedTags) { super(); this.displayName = displayName; this.isDeleteProtectionEnabled = isDeleteProtectionEnabled; + this.isRequestIdEnabled = isRequestIdEnabled; + this.requestIdHeader = requestIdHeader; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -104,6 +110,92 @@ public Builder isDeleteProtectionEnabled(Boolean isDeleteProtectionEnabled) { this.__explicitlySet__.add("isDeleteProtectionEnabled"); return this; } + /** + * Whether or not the load balancer has the Request Id feature enabled for HTTP listeners. + * + *

If "true", the load balancer will attach a unique request id header to every request + * passed through from the load balancer to load balancer backends. This same request id + * header also will be added to the response the lb received from the backend handling the + * request before the load balancer returns the response to the requestor. The name of the + * unique request id header is set the by value of requestIdHeader. + * + *

If "false", the loadbalancer not add this unique request id header to either the + * request passed through to the load balancer backends nor to the reponse returned to the + * user. + * + *

New load balancers have the Request Id feature enabled unless isRequestIdEnabled is + * set to False. + * + *

Example: {@code true} + */ + @com.fasterxml.jackson.annotation.JsonProperty("isRequestIdEnabled") + private Boolean isRequestIdEnabled; + + /** + * Whether or not the load balancer has the Request Id feature enabled for HTTP listeners. + * + *

If "true", the load balancer will attach a unique request id header to every request + * passed through from the load balancer to load balancer backends. This same request id + * header also will be added to the response the lb received from the backend handling the + * request before the load balancer returns the response to the requestor. The name of the + * unique request id header is set the by value of requestIdHeader. + * + *

If "false", the loadbalancer not add this unique request id header to either the + * request passed through to the load balancer backends nor to the reponse returned to the + * user. + * + *

New load balancers have the Request Id feature enabled unless isRequestIdEnabled is + * set to False. + * + *

Example: {@code true} + * + * @param isRequestIdEnabled the value to set + * @return this builder + */ + public Builder isRequestIdEnabled(Boolean isRequestIdEnabled) { + this.isRequestIdEnabled = isRequestIdEnabled; + this.__explicitlySet__.add("isRequestIdEnabled"); + return this; + } + /** + * If isRequestIdEnabled is true then this field contains the name of the header field that + * contains the unique request id that is attached to every request from the load balancer + * to the load balancer backends and to every response from the load balancer. + * + *

If a request to the load balancer already contains a header with same name as + * specified in requestIdHeader then the load balancer will not change the value of that + * field. + * + *

If isRequestIdEnabled is false then this field is ignored. + * + *

*Notes:** * Unless the header name is "" it must start with "X-" prefix. * Setting the + * header name to "" will set it to the default: X-Request-Id. + */ + @com.fasterxml.jackson.annotation.JsonProperty("requestIdHeader") + private String requestIdHeader; + + /** + * If isRequestIdEnabled is true then this field contains the name of the header field that + * contains the unique request id that is attached to every request from the load balancer + * to the load balancer backends and to every response from the load balancer. + * + *

If a request to the load balancer already contains a header with same name as + * specified in requestIdHeader then the load balancer will not change the value of that + * field. + * + *

If isRequestIdEnabled is false then this field is ignored. + * + *

*Notes:** * Unless the header name is "" it must start with "X-" prefix. * Setting the + * header name to "" will set it to the default: X-Request-Id. + * + * @param requestIdHeader the value to set + * @return this builder + */ + public Builder requestIdHeader(String requestIdHeader) { + this.requestIdHeader = requestIdHeader; + this.__explicitlySet__.add("requestIdHeader"); + return this; + } /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined * name, type, or namespace. For more information, see [Resource @@ -164,6 +256,8 @@ public UpdateLoadBalancerDetails build() { new UpdateLoadBalancerDetails( this.displayName, this.isDeleteProtectionEnabled, + this.isRequestIdEnabled, + this.requestIdHeader, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -180,6 +274,12 @@ public Builder copy(UpdateLoadBalancerDetails model) { if (model.wasPropertyExplicitlySet("isDeleteProtectionEnabled")) { this.isDeleteProtectionEnabled(model.getIsDeleteProtectionEnabled()); } + if (model.wasPropertyExplicitlySet("isRequestIdEnabled")) { + this.isRequestIdEnabled(model.getIsRequestIdEnabled()); + } + if (model.wasPropertyExplicitlySet("requestIdHeader")) { + this.requestIdHeader(model.getRequestIdHeader()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -253,6 +353,84 @@ public Boolean getIsDeleteProtectionEnabled() { return isDeleteProtectionEnabled; } + /** + * Whether or not the load balancer has the Request Id feature enabled for HTTP listeners. + * + *

If "true", the load balancer will attach a unique request id header to every request + * passed through from the load balancer to load balancer backends. This same request id header + * also will be added to the response the lb received from the backend handling the request + * before the load balancer returns the response to the requestor. The name of the unique + * request id header is set the by value of requestIdHeader. + * + *

If "false", the loadbalancer not add this unique request id header to either the request + * passed through to the load balancer backends nor to the reponse returned to the user. + * + *

New load balancers have the Request Id feature enabled unless isRequestIdEnabled is set to + * False. + * + *

Example: {@code true} + */ + @com.fasterxml.jackson.annotation.JsonProperty("isRequestIdEnabled") + private final Boolean isRequestIdEnabled; + + /** + * Whether or not the load balancer has the Request Id feature enabled for HTTP listeners. + * + *

If "true", the load balancer will attach a unique request id header to every request + * passed through from the load balancer to load balancer backends. This same request id header + * also will be added to the response the lb received from the backend handling the request + * before the load balancer returns the response to the requestor. The name of the unique + * request id header is set the by value of requestIdHeader. + * + *

If "false", the loadbalancer not add this unique request id header to either the request + * passed through to the load balancer backends nor to the reponse returned to the user. + * + *

New load balancers have the Request Id feature enabled unless isRequestIdEnabled is set to + * False. + * + *

Example: {@code true} + * + * @return the value + */ + public Boolean getIsRequestIdEnabled() { + return isRequestIdEnabled; + } + + /** + * If isRequestIdEnabled is true then this field contains the name of the header field that + * contains the unique request id that is attached to every request from the load balancer to + * the load balancer backends and to every response from the load balancer. + * + *

If a request to the load balancer already contains a header with same name as specified in + * requestIdHeader then the load balancer will not change the value of that field. + * + *

If isRequestIdEnabled is false then this field is ignored. + * + *

*Notes:** * Unless the header name is "" it must start with "X-" prefix. * Setting the + * header name to "" will set it to the default: X-Request-Id. + */ + @com.fasterxml.jackson.annotation.JsonProperty("requestIdHeader") + private final String requestIdHeader; + + /** + * If isRequestIdEnabled is true then this field contains the name of the header field that + * contains the unique request id that is attached to every request from the load balancer to + * the load balancer backends and to every response from the load balancer. + * + *

If a request to the load balancer already contains a header with same name as specified in + * requestIdHeader then the load balancer will not change the value of that field. + * + *

If isRequestIdEnabled is false then this field is ignored. + * + *

*Notes:** * Unless the header name is "" it must start with "X-" prefix. * Setting the + * header name to "" will set it to the default: X-Request-Id. + * + * @return the value + */ + public String getRequestIdHeader() { + return requestIdHeader; + } + /** * 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 @@ -317,6 +495,8 @@ public String toString(boolean includeByteArrayContents) { sb.append("displayName=").append(String.valueOf(this.displayName)); sb.append(", isDeleteProtectionEnabled=") .append(String.valueOf(this.isDeleteProtectionEnabled)); + sb.append(", isRequestIdEnabled=").append(String.valueOf(this.isRequestIdEnabled)); + sb.append(", requestIdHeader=").append(String.valueOf(this.requestIdHeader)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -336,6 +516,8 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals( this.isDeleteProtectionEnabled, other.isDeleteProtectionEnabled) + && java.util.Objects.equals(this.isRequestIdEnabled, other.isRequestIdEnabled) + && java.util.Objects.equals(this.requestIdHeader, other.requestIdHeader) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -351,6 +533,14 @@ public int hashCode() { + (this.isDeleteProtectionEnabled == null ? 43 : this.isDeleteProtectionEnabled.hashCode()); + result = + (result * PRIME) + + (this.isRequestIdEnabled == null + ? 43 + : this.isRequestIdEnabled.hashCode()); + result = + (result * PRIME) + + (this.requestIdHeader == null ? 43 : this.requestIdHeader.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-lockbox/pom.xml b/bmc-lockbox/pom.xml index 85a8c38c465..a7170942f83 100644 --- a/bmc-lockbox/pom.xml +++ b/bmc-lockbox/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-lockbox @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-loganalytics/pom.xml b/bmc-loganalytics/pom.xml index 84fb7c51248..9231f10aab5 100644 --- a/bmc-loganalytics/pom.xml +++ b/bmc-loganalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-loganalytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-logging/pom.xml b/bmc-logging/pom.xml index 76322a02ee3..5d0021a2395 100644 --- a/bmc-logging/pom.xml +++ b/bmc-logging/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-logging @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-loggingingestion/pom.xml b/bmc-loggingingestion/pom.xml index bdf9ed31f46..3bcad3e26ea 100644 --- a/bmc-loggingingestion/pom.xml +++ b/bmc-loggingingestion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-loggingingestion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-loggingsearch/pom.xml b/bmc-loggingsearch/pom.xml index 9b57da3948c..c5ef821eea1 100644 --- a/bmc-loggingsearch/pom.xml +++ b/bmc-loggingsearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-loggingsearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-managementagent/pom.xml b/bmc-managementagent/pom.xml index d8493050a78..942ac4ee014 100644 --- a/bmc-managementagent/pom.xml +++ b/bmc-managementagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-managementagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-managementdashboard/pom.xml b/bmc-managementdashboard/pom.xml index 4c8351da35e..9ee68adcc57 100644 --- a/bmc-managementdashboard/pom.xml +++ b/bmc-managementdashboard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-managementdashboard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-marketplace/pom.xml b/bmc-marketplace/pom.xml index 27101048a22..d869d0ae096 100644 --- a/bmc-marketplace/pom.xml +++ b/bmc-marketplace/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-marketplace @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-marketplaceprivateoffer/pom.xml b/bmc-marketplaceprivateoffer/pom.xml index 65c9e05bd56..b30a37e6ec1 100644 --- a/bmc-marketplaceprivateoffer/pom.xml +++ b/bmc-marketplaceprivateoffer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-marketplaceprivateoffer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-marketplacepublisher/pom.xml b/bmc-marketplacepublisher/pom.xml index f890a97f6cd..5b3b3ae25e6 100644 --- a/bmc-marketplacepublisher/pom.xml +++ b/bmc-marketplacepublisher/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-marketplacepublisher @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-mediaservices/pom.xml b/bmc-mediaservices/pom.xml index 2337106e6d5..26755947f88 100644 --- a/bmc-mediaservices/pom.xml +++ b/bmc-mediaservices/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-mediaservices @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-monitoring/pom.xml b/bmc-monitoring/pom.xml index a6e1806e8b2..5f32c1a03f3 100644 --- a/bmc-monitoring/pom.xml +++ b/bmc-monitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-monitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-mysql/pom.xml b/bmc-mysql/pom.xml index 58849edf2e1..11e1b03d320 100644 --- a/bmc-mysql/pom.xml +++ b/bmc-mysql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-mysql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateDbSystemDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateDbSystemDetails.java index ec636db0389..ed99e1b1d7a 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateDbSystemDetails.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateDbSystemDetails.java @@ -50,7 +50,8 @@ public final class CreateDbSystemDetails "deletionPolicy", "crashRecovery", "databaseManagement", - "secureConnections" + "secureConnections", + "customerContacts" }) public CreateDbSystemDetails( String displayName, @@ -79,7 +80,8 @@ public CreateDbSystemDetails( CreateDeletionPolicyDetails deletionPolicy, CrashRecoveryStatus crashRecovery, DatabaseManagementStatus databaseManagement, - SecureConnectionDetails secureConnections) { + SecureConnectionDetails secureConnections, + java.util.List customerContacts) { super(); this.displayName = displayName; this.description = description; @@ -108,6 +110,7 @@ public CreateDbSystemDetails( this.crashRecovery = crashRecovery; this.databaseManagement = databaseManagement; this.secureConnections = secureConnections; + this.customerContacts = customerContacts; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -590,6 +593,31 @@ public Builder secureConnections(SecureConnectionDetails secureConnections) { this.__explicitlySet__.add("secureConnections"); return this; } + /** + * The list of customer email addresses that receive information from Oracle about the + * specified OCI DB System resource. Oracle uses these email addresses to send notifications + * about planned and unplanned software maintenance updates, information about system + * hardware, and other information needed by administrators. Up to 10 email addresses can be + * added to the customer contacts for a DB System. + */ + @com.fasterxml.jackson.annotation.JsonProperty("customerContacts") + private java.util.List customerContacts; + + /** + * The list of customer email addresses that receive information from Oracle about the + * specified OCI DB System resource. Oracle uses these email addresses to send notifications + * about planned and unplanned software maintenance updates, information about system + * hardware, and other information needed by administrators. Up to 10 email addresses can be + * added to the customer contacts for a DB System. + * + * @param customerContacts the value to set + * @return this builder + */ + public Builder customerContacts(java.util.List customerContacts) { + this.customerContacts = customerContacts; + this.__explicitlySet__.add("customerContacts"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -623,7 +651,8 @@ public CreateDbSystemDetails build() { this.deletionPolicy, this.crashRecovery, this.databaseManagement, - this.secureConnections); + this.secureConnections, + this.customerContacts); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -713,6 +742,9 @@ public Builder copy(CreateDbSystemDetails model) { if (model.wasPropertyExplicitlySet("secureConnections")) { this.secureConnections(model.getSecureConnections()); } + if (model.wasPropertyExplicitlySet("customerContacts")) { + this.customerContacts(model.getCustomerContacts()); + } return this; } } @@ -1143,6 +1175,29 @@ public SecureConnectionDetails getSecureConnections() { return secureConnections; } + /** + * The list of customer email addresses that receive information from Oracle about the specified + * OCI DB System resource. Oracle uses these email addresses to send notifications about planned + * and unplanned software maintenance updates, information about system hardware, and other + * information needed by administrators. Up to 10 email addresses can be added to the customer + * contacts for a DB System. + */ + @com.fasterxml.jackson.annotation.JsonProperty("customerContacts") + private final java.util.List customerContacts; + + /** + * The list of customer email addresses that receive information from Oracle about the specified + * OCI DB System resource. Oracle uses these email addresses to send notifications about planned + * and unplanned software maintenance updates, information about system hardware, and other + * information needed by administrators. Up to 10 email addresses can be added to the customer + * contacts for a DB System. + * + * @return the value + */ + public java.util.List getCustomerContacts() { + return customerContacts; + } + @Override public String toString() { return this.toString(true); @@ -1185,6 +1240,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", crashRecovery=").append(String.valueOf(this.crashRecovery)); sb.append(", databaseManagement=").append(String.valueOf(this.databaseManagement)); sb.append(", secureConnections=").append(String.valueOf(this.secureConnections)); + sb.append(", customerContacts=").append(String.valueOf(this.customerContacts)); sb.append(")"); return sb.toString(); } @@ -1226,6 +1282,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.crashRecovery, other.crashRecovery) && java.util.Objects.equals(this.databaseManagement, other.databaseManagement) && java.util.Objects.equals(this.secureConnections, other.secureConnections) + && java.util.Objects.equals(this.customerContacts, other.customerContacts) && super.equals(other); } @@ -1290,6 +1347,9 @@ public int hashCode() { result = (result * PRIME) + (this.secureConnections == null ? 43 : this.secureConnections.hashCode()); + result = + (result * PRIME) + + (this.customerContacts == null ? 43 : this.customerContacts.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CustomerContact.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CustomerContact.java new file mode 100644 index 00000000000..5b7562d0fdd --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CustomerContact.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.mysql.model; + +/** + * Customer contact information that will be used by Oracle to provide notifications needed by DB + * System administrators.
+ * 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: 20190415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = CustomerContact.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CustomerContact + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"email"}) + public CustomerContact(String email) { + super(); + this.email = email; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The email address used by Oracle to send notifications regarding the DB System. */ + @com.fasterxml.jackson.annotation.JsonProperty("email") + private String email; + + /** + * The email address used by Oracle to send notifications regarding the DB System. + * + * @param email the value to set + * @return this builder + */ + public Builder email(String email) { + this.email = email; + this.__explicitlySet__.add("email"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CustomerContact build() { + CustomerContact model = new CustomerContact(this.email); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CustomerContact model) { + if (model.wasPropertyExplicitlySet("email")) { + this.email(model.getEmail()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The email address used by Oracle to send notifications regarding the DB System. */ + @com.fasterxml.jackson.annotation.JsonProperty("email") + private final String email; + + /** + * The email address used by Oracle to send notifications regarding the DB System. + * + * @return the value + */ + public String getEmail() { + return email; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CustomerContact("); + sb.append("super=").append(super.toString()); + sb.append("email=").append(String.valueOf(this.email)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CustomerContact)) { + return false; + } + + CustomerContact other = (CustomerContact) o; + return java.util.Objects.equals(this.email, other.email) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.email == null ? 43 : this.email.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystem.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystem.java index 9a3b14a01ea..3b4b14ff122 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystem.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystem.java @@ -57,7 +57,8 @@ public final class DbSystem extends com.oracle.bmc.http.client.internal.Explicit "crashRecovery", "pointInTimeRecoveryDetails", "databaseManagement", - "secureConnections" + "secureConnections", + "customerContacts" }) public DbSystem( String id, @@ -95,7 +96,8 @@ public DbSystem( CrashRecoveryStatus crashRecovery, PointInTimeRecoveryDetails pointInTimeRecoveryDetails, DatabaseManagementStatus databaseManagement, - SecureConnectionDetails secureConnections) { + SecureConnectionDetails secureConnections, + java.util.List customerContacts) { super(); this.id = id; this.displayName = displayName; @@ -133,6 +135,7 @@ public DbSystem( this.pointInTimeRecoveryDetails = pointInTimeRecoveryDetails; this.databaseManagement = databaseManagement; this.secureConnections = secureConnections; + this.customerContacts = customerContacts; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -703,6 +706,31 @@ public Builder secureConnections(SecureConnectionDetails secureConnections) { this.__explicitlySet__.add("secureConnections"); return this; } + /** + * The list of customer email addresses that receive information from Oracle about the + * specified OCI DB System resource. Oracle uses these email addresses to send notifications + * about planned and unplanned software maintenance updates, information about system + * hardware, and other information needed by administrators. Up to 10 email addresses can be + * added to the customer contacts for a DB System. + */ + @com.fasterxml.jackson.annotation.JsonProperty("customerContacts") + private java.util.List customerContacts; + + /** + * The list of customer email addresses that receive information from Oracle about the + * specified OCI DB System resource. Oracle uses these email addresses to send notifications + * about planned and unplanned software maintenance updates, information about system + * hardware, and other information needed by administrators. Up to 10 email addresses can be + * added to the customer contacts for a DB System. + * + * @param customerContacts the value to set + * @return this builder + */ + public Builder customerContacts(java.util.List customerContacts) { + this.customerContacts = customerContacts; + this.__explicitlySet__.add("customerContacts"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -745,7 +773,8 @@ public DbSystem build() { this.crashRecovery, this.pointInTimeRecoveryDetails, this.databaseManagement, - this.secureConnections); + this.secureConnections, + this.customerContacts); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -862,6 +891,9 @@ public Builder copy(DbSystem model) { if (model.wasPropertyExplicitlySet("secureConnections")) { this.secureConnections(model.getSecureConnections()); } + if (model.wasPropertyExplicitlySet("customerContacts")) { + this.customerContacts(model.getCustomerContacts()); + } return this; } } @@ -1418,6 +1450,29 @@ public SecureConnectionDetails getSecureConnections() { return secureConnections; } + /** + * The list of customer email addresses that receive information from Oracle about the specified + * OCI DB System resource. Oracle uses these email addresses to send notifications about planned + * and unplanned software maintenance updates, information about system hardware, and other + * information needed by administrators. Up to 10 email addresses can be added to the customer + * contacts for a DB System. + */ + @com.fasterxml.jackson.annotation.JsonProperty("customerContacts") + private final java.util.List customerContacts; + + /** + * The list of customer email addresses that receive information from Oracle about the specified + * OCI DB System resource. Oracle uses these email addresses to send notifications about planned + * and unplanned software maintenance updates, information about system hardware, and other + * information needed by administrators. Up to 10 email addresses can be added to the customer + * contacts for a DB System. + * + * @return the value + */ + public java.util.List getCustomerContacts() { + return customerContacts; + } + @Override public String toString() { return this.toString(true); @@ -1471,6 +1526,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.pointInTimeRecoveryDetails)); sb.append(", databaseManagement=").append(String.valueOf(this.databaseManagement)); sb.append(", secureConnections=").append(String.valueOf(this.secureConnections)); + sb.append(", customerContacts=").append(String.valueOf(this.customerContacts)); sb.append(")"); return sb.toString(); } @@ -1523,6 +1579,7 @@ public boolean equals(Object o) { this.pointInTimeRecoveryDetails, other.pointInTimeRecoveryDetails) && java.util.Objects.equals(this.databaseManagement, other.databaseManagement) && java.util.Objects.equals(this.secureConnections, other.secureConnections) + && java.util.Objects.equals(this.customerContacts, other.customerContacts) && super.equals(other); } @@ -1608,6 +1665,9 @@ public int hashCode() { result = (result * PRIME) + (this.secureConnections == null ? 43 : this.secureConnections.hashCode()); + result = + (result * PRIME) + + (this.customerContacts == null ? 43 : this.customerContacts.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateDbSystemDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateDbSystemDetails.java index d637510d880..06187579f7b 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateDbSystemDetails.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateDbSystemDetails.java @@ -48,7 +48,8 @@ public final class UpdateDbSystemDetails "deletionPolicy", "crashRecovery", "databaseManagement", - "secureConnections" + "secureConnections", + "customerContacts" }) public UpdateDbSystemDetails( String displayName, @@ -75,7 +76,8 @@ public UpdateDbSystemDetails( UpdateDeletionPolicyDetails deletionPolicy, CrashRecoveryStatus crashRecovery, DatabaseManagementStatus databaseManagement, - SecureConnectionDetails secureConnections) { + SecureConnectionDetails secureConnections, + java.util.List customerContacts) { super(); this.displayName = displayName; this.description = description; @@ -102,6 +104,7 @@ public UpdateDbSystemDetails( this.crashRecovery = crashRecovery; this.databaseManagement = databaseManagement; this.secureConnections = secureConnections; + this.customerContacts = customerContacts; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -570,6 +573,31 @@ public Builder secureConnections(SecureConnectionDetails secureConnections) { this.__explicitlySet__.add("secureConnections"); return this; } + /** + * The list of customer email addresses that receive information from Oracle about the + * specified OCI DB System resource. Oracle uses these email addresses to send notifications + * about planned and unplanned software maintenance updates, information about system + * hardware, and other information needed by administrators. Up to 10 email addresses can be + * added to the customer contacts for a DB System. + */ + @com.fasterxml.jackson.annotation.JsonProperty("customerContacts") + private java.util.List customerContacts; + + /** + * The list of customer email addresses that receive information from Oracle about the + * specified OCI DB System resource. Oracle uses these email addresses to send notifications + * about planned and unplanned software maintenance updates, information about system + * hardware, and other information needed by administrators. Up to 10 email addresses can be + * added to the customer contacts for a DB System. + * + * @param customerContacts the value to set + * @return this builder + */ + public Builder customerContacts(java.util.List customerContacts) { + this.customerContacts = customerContacts; + this.__explicitlySet__.add("customerContacts"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -601,7 +629,8 @@ public UpdateDbSystemDetails build() { this.deletionPolicy, this.crashRecovery, this.databaseManagement, - this.secureConnections); + this.secureConnections, + this.customerContacts); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -685,6 +714,9 @@ public Builder copy(UpdateDbSystemDetails model) { if (model.wasPropertyExplicitlySet("secureConnections")) { this.secureConnections(model.getSecureConnections()); } + if (model.wasPropertyExplicitlySet("customerContacts")) { + this.customerContacts(model.getCustomerContacts()); + } return this; } } @@ -1111,6 +1143,29 @@ public SecureConnectionDetails getSecureConnections() { return secureConnections; } + /** + * The list of customer email addresses that receive information from Oracle about the specified + * OCI DB System resource. Oracle uses these email addresses to send notifications about planned + * and unplanned software maintenance updates, information about system hardware, and other + * information needed by administrators. Up to 10 email addresses can be added to the customer + * contacts for a DB System. + */ + @com.fasterxml.jackson.annotation.JsonProperty("customerContacts") + private final java.util.List customerContacts; + + /** + * The list of customer email addresses that receive information from Oracle about the specified + * OCI DB System resource. Oracle uses these email addresses to send notifications about planned + * and unplanned software maintenance updates, information about system hardware, and other + * information needed by administrators. Up to 10 email addresses can be added to the customer + * contacts for a DB System. + * + * @return the value + */ + public java.util.List getCustomerContacts() { + return customerContacts; + } + @Override public String toString() { return this.toString(true); @@ -1151,6 +1206,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", crashRecovery=").append(String.valueOf(this.crashRecovery)); sb.append(", databaseManagement=").append(String.valueOf(this.databaseManagement)); sb.append(", secureConnections=").append(String.valueOf(this.secureConnections)); + sb.append(", customerContacts=").append(String.valueOf(this.customerContacts)); sb.append(")"); return sb.toString(); } @@ -1190,6 +1246,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.crashRecovery, other.crashRecovery) && java.util.Objects.equals(this.databaseManagement, other.databaseManagement) && java.util.Objects.equals(this.secureConnections, other.secureConnections) + && java.util.Objects.equals(this.customerContacts, other.customerContacts) && super.equals(other); } @@ -1250,6 +1307,9 @@ public int hashCode() { result = (result * PRIME) + (this.secureConnections == null ? 43 : this.secureConnections.hashCode()); + result = + (result * PRIME) + + (this.customerContacts == null ? 43 : this.customerContacts.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-mysql/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-mysql/reflect-config.json b/bmc-mysql/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-mysql/reflect-config.json index 36dd622cfd9..612007c7029 100644 --- a/bmc-mysql/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-mysql/reflect-config.json +++ b/bmc-mysql/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-mysql/reflect-config.json @@ -612,6 +612,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.mysql.model.CustomerContact", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.mysql.model.CustomerContact$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.mysql.model.DataStorage", diff --git a/bmc-networkfirewall/pom.xml b/bmc-networkfirewall/pom.xml index d0dbcf41973..bb7917fcfb6 100644 --- a/bmc-networkfirewall/pom.xml +++ b/bmc-networkfirewall/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-networkfirewall @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-networkloadbalancer/pom.xml b/bmc-networkloadbalancer/pom.xml index 64051b2069f..7cec0c16407 100644 --- a/bmc-networkloadbalancer/pom.xml +++ b/bmc-networkloadbalancer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-networkloadbalancer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-nosql/pom.xml b/bmc-nosql/pom.xml index f3b9ccf182e..c1297b60454 100644 --- a/bmc-nosql/pom.xml +++ b/bmc-nosql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-nosql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-objectstorage/bmc-objectstorage-combined/pom.xml b/bmc-objectstorage/bmc-objectstorage-combined/pom.xml index 75e4f2b86c7..f631dc38cc9 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.47.0 + 3.48.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.47.0 + 3.48.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 3.47.0 + 3.48.0 diff --git a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml index 98d226837ee..91770c825fc 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.47.0 + 3.48.0 ../pom.xml @@ -18,17 +18,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.47.0 + 3.48.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.47.0 + 3.48.0 org.slf4j diff --git a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml index 44b308b4a5b..6a84df1d6cd 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.47.0 + 3.48.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorage.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorage.java index 16e0aa1b3be..c82167aca11 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorage.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorage.java @@ -190,6 +190,22 @@ public interface ObjectStorage extends AutoCloseable { CreatePreauthenticatedRequestResponse createPreauthenticatedRequest( CreatePreauthenticatedRequestRequest request); + /** + * Create a PrivateEndpoint. + * + * @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 + * CreatePrivateEndpoint API. + */ + CreatePrivateEndpointResponse createPrivateEndpoint(CreatePrivateEndpointRequest request); + /** * Creates a replication policy for the specified bucket. * @@ -290,6 +306,22 @@ DeleteObjectLifecyclePolicyResponse deleteObjectLifecyclePolicy( DeletePreauthenticatedRequestResponse deletePreauthenticatedRequest( DeletePreauthenticatedRequestRequest request); + /** + * Deletes a Private Endpoint if it exists in the given namespace. + * + * @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 + * DeletePrivateEndpoint API. + */ + DeletePrivateEndpointResponse deletePrivateEndpoint(DeletePrivateEndpointRequest request); + /** * Deletes the replication policy associated with the source bucket. * @@ -430,6 +462,23 @@ GetObjectLifecyclePolicyResponse getObjectLifecyclePolicy( GetPreauthenticatedRequestResponse getPreauthenticatedRequest( GetPreauthenticatedRequestRequest request); + /** + * Gets the current representation of the given Private Endpoint in the given Object Storage + * namespace. + * + * @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 GetPrivateEndpoint + * API. + */ + GetPrivateEndpointResponse getPrivateEndpoint(GetPrivateEndpointRequest request); + /** * Get the replication policy. * @@ -633,6 +682,26 @@ ListMultipartUploadPartsResponse listMultipartUploadParts( ListPreauthenticatedRequestsResponse listPreauthenticatedRequests( ListPreauthenticatedRequestsRequest request); + /** + * Gets a list of all PrivateEndpointSummary in a compartment associated with a namespace. To + * use this and other API operations, you must be authorized in an IAM policy. If you are not + * authorized, talk to an administrator. If you are an administrator who needs to write policies + * to give users access, see [Getting Started with + * Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). + * + * @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 + * ListPrivateEndpoints API. + */ + ListPrivateEndpointsResponse listPrivateEndpoints(ListPrivateEndpointsRequest request); + /** * List the replication policies associated with a bucket. * @@ -901,8 +970,8 @@ PutObjectLifecyclePolicyResponse putObjectLifecyclePolicy( RenameObjectResponse renameObject(RenameObjectRequest request); /** - * Restores one or more objects specified by the objectName parameter. By default objects will - * be restored for 24 hours. Duration can be configured using the hours parameter. + * Restores the object specified by the objectName parameter. By default object will be restored + * for 24 hours. Duration can be configured using the hours parameter. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -974,6 +1043,34 @@ PutObjectLifecyclePolicyResponse putObjectLifecyclePolicy( */ UpdateObjectStorageTierResponse updateObjectStorageTier(UpdateObjectStorageTierRequest request); + /** + * Performs a partial or full update of a user-defined data associated with the Private + * Endpoint. + * + *

Use UpdatePrivateEndpoint to move a Private Endpoint from one compartment to another + * within the same tenancy. Supply the compartmentID of the compartment that you want to move + * the Private Endpoint to. Or use it to update the name, subnetId, endpointFqdn or + * privateEndpointIp or accessTargets of the Private Endpoint. For more information about moving + * resources between compartments, see [Moving Resources to a Different + * Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). + * + *

This API follows replace semantics (rather than merge semantics). That means if the body + * provides values for parameters and the resource has exisiting ones, this operation will + * replace those existing values. + * + * @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 + * UpdatePrivateEndpoint API. + */ + UpdatePrivateEndpointResponse updatePrivateEndpoint(UpdatePrivateEndpointRequest request); + /** * Updates the specified retention rule. Rule changes take effect typically within 30 seconds. * diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageAsync.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageAsync.java index 60b3d03d762..ee4f3a27663 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageAsync.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageAsync.java @@ -187,6 +187,22 @@ java.util.concurrent.Future createMultipartUpload CreatePreauthenticatedRequestResponse> handler); + /** + * Create a PrivateEndpoint. + * + * @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 createPrivateEndpoint( + CreatePrivateEndpointRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreatePrivateEndpointRequest, CreatePrivateEndpointResponse> + handler); + /** * Creates a replication policy for the specified bucket. * @@ -287,6 +303,22 @@ java.util.concurrent.Future deleteObjectLif DeletePreauthenticatedRequestResponse> handler); + /** + * Deletes a Private Endpoint if it exists in the given namespace. + * + * @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 deletePrivateEndpoint( + DeletePrivateEndpointRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeletePrivateEndpointRequest, DeletePrivateEndpointResponse> + handler); + /** * Deletes the replication policy associated with the source bucket. * @@ -423,6 +455,23 @@ java.util.concurrent.Future getPreauthentica GetPreauthenticatedRequestRequest, GetPreauthenticatedRequestResponse> handler); + /** + * Gets the current representation of the given Private Endpoint in the given Object Storage + * namespace. + * + * @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 getPrivateEndpoint( + GetPrivateEndpointRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetPrivateEndpointRequest, GetPrivateEndpointResponse> + handler); + /** * Get the replication policy. * @@ -620,6 +669,26 @@ java.util.concurrent.Future listPreauthent ListPreauthenticatedRequestsResponse> handler); + /** + * Gets a list of all PrivateEndpointSummary in a compartment associated with a namespace. To + * use this and other API operations, you must be authorized in an IAM policy. If you are not + * authorized, talk to an administrator. If you are an administrator who needs to write policies + * to give users access, see [Getting Started with + * Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). + * + * @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 listPrivateEndpoints( + ListPrivateEndpointsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListPrivateEndpointsRequest, ListPrivateEndpointsResponse> + handler); + /** * List the replication policies associated with a bucket. * @@ -853,8 +922,8 @@ java.util.concurrent.Future renameObject( handler); /** - * Restores one or more objects specified by the objectName parameter. By default objects will - * be restored for 24 hours. Duration can be configured using the hours parameter. + * Restores the object specified by the objectName parameter. By default object will be restored + * for 24 hours. Duration can be configured using the hours parameter. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -926,6 +995,34 @@ java.util.concurrent.Future updateObjectStorage UpdateObjectStorageTierRequest, UpdateObjectStorageTierResponse> handler); + /** + * Performs a partial or full update of a user-defined data associated with the Private + * Endpoint. + * + *

Use UpdatePrivateEndpoint to move a Private Endpoint from one compartment to another + * within the same tenancy. Supply the compartmentID of the compartment that you want to move + * the Private Endpoint to. Or use it to update the name, subnetId, endpointFqdn or + * privateEndpointIp or accessTargets of the Private Endpoint. For more information about moving + * resources between compartments, see [Moving Resources to a Different + * Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). + * + *

This API follows replace semantics (rather than merge semantics). That means if the body + * provides values for parameters and the resource has exisiting ones, this operation will + * replace those existing values. + * + * @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 updatePrivateEndpoint( + UpdatePrivateEndpointRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdatePrivateEndpointRequest, UpdatePrivateEndpointResponse> + handler); + /** * Updates the specified retention rule. Rule changes take effect typically within 30 seconds. * diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageAsyncClient.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageAsyncClient.java index 27916e961db..1e20e809259 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageAsyncClient.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageAsyncClient.java @@ -477,6 +477,48 @@ public java.util.concurrent.Future createMultipar .callAsync(handler); } + @Override + public java.util.concurrent.Future createPrivateEndpoint( + CreatePrivateEndpointRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreatePrivateEndpointRequest, CreatePrivateEndpointResponse> + handler) { + + Validate.notBlank(request.getNamespaceName(), "namespaceName must not be blank"); + Objects.requireNonNull( + request.getCreatePrivateEndpointDetails(), + "createPrivateEndpointDetails is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("namespaceName", request.getNamespaceName()); + this.populateServiceParametersInEndpoint(this.getEndpoint(), requiredParametersMap); + + return clientCall(request, CreatePrivateEndpointResponse::builder) + .logger(LOG, "createPrivateEndpoint") + .serviceDetails( + "ObjectStorage", + "CreatePrivateEndpoint", + "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/PrivateEndpoint/CreatePrivateEndpoint") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreatePrivateEndpointRequest::builder) + .basePath("/") + .appendPathParam("n") + .appendPathParam(request.getNamespaceName()) + .appendPathParam("pe") + .accept("application/json") + .appendHeader("opc-client-request-id", request.getOpcClientRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + CreatePrivateEndpointResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreatePrivateEndpointResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-client-request-id", + CreatePrivateEndpointResponse.Builder::opcClientRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future createReplicationPolicy( CreateReplicationPolicyRequest request, @@ -748,6 +790,49 @@ public java.util.concurrent.Future deleteObject( .callAsync(handler); } + @Override + public java.util.concurrent.Future deletePrivateEndpoint( + DeletePrivateEndpointRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeletePrivateEndpointRequest, DeletePrivateEndpointResponse> + handler) { + + Validate.notBlank(request.getNamespaceName(), "namespaceName must not be blank"); + + Validate.notBlank(request.getPeName(), "peName must not be blank"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("namespaceName", request.getNamespaceName()); + requiredParametersMap.put("peName", request.getPeName()); + this.populateServiceParametersInEndpoint(this.getEndpoint(), requiredParametersMap); + + return clientCall(request, DeletePrivateEndpointResponse::builder) + .logger(LOG, "deletePrivateEndpoint") + .serviceDetails( + "ObjectStorage", + "DeletePrivateEndpoint", + "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/PrivateEndpoint/DeletePrivateEndpoint") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeletePrivateEndpointRequest::builder) + .basePath("/") + .appendPathParam("n") + .appendPathParam(request.getNamespaceName()) + .appendPathParam("pe") + .appendPathParam(request.getPeName()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-client-request-id", request.getOpcClientRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + DeletePrivateEndpointResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-client-request-id", + DeletePrivateEndpointResponse.Builder::opcClientRequestId) + .handleResponseHeaderString( + "opc-request-id", DeletePrivateEndpointResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future deleteReplicationPolicy( DeleteReplicationPolicyRequest request, @@ -1133,6 +1218,51 @@ public java.util.concurrent.Future getObjectLi .callAsync(handler); } + @Override + public java.util.concurrent.Future getPrivateEndpoint( + GetPrivateEndpointRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetPrivateEndpointRequest, GetPrivateEndpointResponse> + handler) { + + Validate.notBlank(request.getNamespaceName(), "namespaceName must not be blank"); + + Validate.notBlank(request.getPeName(), "peName must not be blank"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("namespaceName", request.getNamespaceName()); + requiredParametersMap.put("peName", request.getPeName()); + this.populateServiceParametersInEndpoint(this.getEndpoint(), requiredParametersMap); + + return clientCall(request, GetPrivateEndpointResponse::builder) + .logger(LOG, "getPrivateEndpoint") + .serviceDetails( + "ObjectStorage", + "GetPrivateEndpoint", + "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/PrivateEndpoint/GetPrivateEndpoint") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetPrivateEndpointRequest::builder) + .basePath("/") + .appendPathParam("n") + .appendPathParam(request.getNamespaceName()) + .appendPathParam("pe") + .appendPathParam(request.getPeName()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("if-none-match", request.getIfNoneMatch()) + .appendHeader("opc-client-request-id", request.getOpcClientRequestId()) + .handleBody( + com.oracle.bmc.objectstorage.model.PrivateEndpoint.class, + GetPrivateEndpointResponse.Builder::privateEndpoint) + .handleResponseHeaderString( + "opc-client-request-id", + GetPrivateEndpointResponse.Builder::opcClientRequestId) + .handleResponseHeaderString( + "opc-request-id", GetPrivateEndpointResponse.Builder::opcRequestId) + .handleResponseHeaderString("eTag", GetPrivateEndpointResponse.Builder::eTag) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getReplicationPolicy( GetReplicationPolicyRequest request, @@ -1687,6 +1817,56 @@ public java.util.concurrent.Future listObjects( .callAsync(handler); } + @Override + public java.util.concurrent.Future listPrivateEndpoints( + ListPrivateEndpointsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListPrivateEndpointsRequest, ListPrivateEndpointsResponse> + handler) { + + Validate.notBlank(request.getNamespaceName(), "namespaceName must not be blank"); + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("namespaceName", request.getNamespaceName()); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + this.populateServiceParametersInEndpoint(this.getEndpoint(), requiredParametersMap); + + return clientCall(request, ListPrivateEndpointsResponse::builder) + .logger(LOG, "listPrivateEndpoints") + .serviceDetails( + "ObjectStorage", + "ListPrivateEndpoints", + "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/PrivateEndpointSummary/ListPrivateEndpoints") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListPrivateEndpointsRequest::builder) + .basePath("/") + .appendPathParam("n") + .appendPathParam(request.getNamespaceName()) + .appendPathParam("pe") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendListQueryParam( + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.CommaSeparated) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .accept("application/json") + .appendHeader("opc-client-request-id", request.getOpcClientRequestId()) + .handleBodyList( + com.oracle.bmc.objectstorage.model.PrivateEndpointSummary.class, + ListPrivateEndpointsResponse.Builder::items) + .handleResponseHeaderString( + "opc-client-request-id", + ListPrivateEndpointsResponse.Builder::opcClientRequestId) + .handleResponseHeaderString( + "opc-request-id", ListPrivateEndpointsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListPrivateEndpointsResponse.Builder::opcNextPage) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listReplicationPolicies( ListReplicationPoliciesRequest request, @@ -1933,6 +2113,7 @@ public java.util.concurrent.Future listWorkRequests( .basePath("/") .appendPathParam("workRequests") .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("privateEndpointName", request.getPrivateEndpointName()) .appendQueryParam("page", request.getPage()) .appendQueryParam("limit", request.getLimit()) .accept("application/json") @@ -2421,6 +2602,53 @@ public java.util.concurrent.Future updateObject .callAsync(handler); } + @Override + public java.util.concurrent.Future updatePrivateEndpoint( + UpdatePrivateEndpointRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdatePrivateEndpointRequest, UpdatePrivateEndpointResponse> + handler) { + + Validate.notBlank(request.getNamespaceName(), "namespaceName must not be blank"); + + Validate.notBlank(request.getPeName(), "peName must not be blank"); + Objects.requireNonNull( + request.getUpdatePrivateEndpointDetails(), + "updatePrivateEndpointDetails is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("namespaceName", request.getNamespaceName()); + requiredParametersMap.put("peName", request.getPeName()); + this.populateServiceParametersInEndpoint(this.getEndpoint(), requiredParametersMap); + + return clientCall(request, UpdatePrivateEndpointResponse::builder) + .logger(LOG, "updatePrivateEndpoint") + .serviceDetails( + "ObjectStorage", + "UpdatePrivateEndpoint", + "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/PrivateEndpoint/UpdatePrivateEndpoint") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(UpdatePrivateEndpointRequest::builder) + .basePath("/") + .appendPathParam("n") + .appendPathParam(request.getNamespaceName()) + .appendPathParam("pe") + .appendPathParam(request.getPeName()) + .accept("application/json") + .appendHeader("opc-client-request-id", request.getOpcClientRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + UpdatePrivateEndpointResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-client-request-id", + UpdatePrivateEndpointResponse.Builder::opcClientRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdatePrivateEndpointResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future updateRetentionRule( UpdateRetentionRuleRequest request, diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageClient.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageClient.java index 719f6aa6dcb..b243f8400ba 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageClient.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageClient.java @@ -486,6 +486,46 @@ public CreatePreauthenticatedRequestResponse createPreauthenticatedRequest( .callSync(); } + @Override + public CreatePrivateEndpointResponse createPrivateEndpoint( + CreatePrivateEndpointRequest request) { + + Validate.notBlank(request.getNamespaceName(), "namespaceName must not be blank"); + Objects.requireNonNull( + request.getCreatePrivateEndpointDetails(), + "createPrivateEndpointDetails is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("namespaceName", request.getNamespaceName()); + this.populateServiceParametersInEndpoint(this.getEndpoint(), requiredParametersMap); + + return clientCall(request, CreatePrivateEndpointResponse::builder) + .logger(LOG, "createPrivateEndpoint") + .serviceDetails( + "ObjectStorage", + "CreatePrivateEndpoint", + "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/PrivateEndpoint/CreatePrivateEndpoint") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreatePrivateEndpointRequest::builder) + .basePath("/") + .appendPathParam("n") + .appendPathParam(request.getNamespaceName()) + .appendPathParam("pe") + .accept("application/json") + .appendHeader("opc-client-request-id", request.getOpcClientRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + CreatePrivateEndpointResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreatePrivateEndpointResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-client-request-id", + CreatePrivateEndpointResponse.Builder::opcClientRequestId) + .callSync(); + } + @Override public CreateReplicationPolicyResponse createReplicationPolicy( CreateReplicationPolicyRequest request) { @@ -740,6 +780,47 @@ public DeletePreauthenticatedRequestResponse deletePreauthenticatedRequest( .callSync(); } + @Override + public DeletePrivateEndpointResponse deletePrivateEndpoint( + DeletePrivateEndpointRequest request) { + + Validate.notBlank(request.getNamespaceName(), "namespaceName must not be blank"); + + Validate.notBlank(request.getPeName(), "peName must not be blank"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("namespaceName", request.getNamespaceName()); + requiredParametersMap.put("peName", request.getPeName()); + this.populateServiceParametersInEndpoint(this.getEndpoint(), requiredParametersMap); + + return clientCall(request, DeletePrivateEndpointResponse::builder) + .logger(LOG, "deletePrivateEndpoint") + .serviceDetails( + "ObjectStorage", + "DeletePrivateEndpoint", + "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/PrivateEndpoint/DeletePrivateEndpoint") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeletePrivateEndpointRequest::builder) + .basePath("/") + .appendPathParam("n") + .appendPathParam(request.getNamespaceName()) + .appendPathParam("pe") + .appendPathParam(request.getPeName()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-client-request-id", request.getOpcClientRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + DeletePrivateEndpointResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-client-request-id", + DeletePrivateEndpointResponse.Builder::opcClientRequestId) + .handleResponseHeaderString( + "opc-request-id", DeletePrivateEndpointResponse.Builder::opcRequestId) + .callSync(); + } + @Override public DeleteReplicationPolicyResponse deleteReplicationPolicy( DeleteReplicationPolicyRequest request) { @@ -1105,6 +1186,48 @@ public GetPreauthenticatedRequestResponse getPreauthenticatedRequest( .callSync(); } + @Override + public GetPrivateEndpointResponse getPrivateEndpoint(GetPrivateEndpointRequest request) { + + Validate.notBlank(request.getNamespaceName(), "namespaceName must not be blank"); + + Validate.notBlank(request.getPeName(), "peName must not be blank"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("namespaceName", request.getNamespaceName()); + requiredParametersMap.put("peName", request.getPeName()); + this.populateServiceParametersInEndpoint(this.getEndpoint(), requiredParametersMap); + + return clientCall(request, GetPrivateEndpointResponse::builder) + .logger(LOG, "getPrivateEndpoint") + .serviceDetails( + "ObjectStorage", + "GetPrivateEndpoint", + "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/PrivateEndpoint/GetPrivateEndpoint") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetPrivateEndpointRequest::builder) + .basePath("/") + .appendPathParam("n") + .appendPathParam(request.getNamespaceName()) + .appendPathParam("pe") + .appendPathParam(request.getPeName()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("if-none-match", request.getIfNoneMatch()) + .appendHeader("opc-client-request-id", request.getOpcClientRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.objectstorage.model.PrivateEndpoint.class, + GetPrivateEndpointResponse.Builder::privateEndpoint) + .handleResponseHeaderString( + "opc-client-request-id", + GetPrivateEndpointResponse.Builder::opcClientRequestId) + .handleResponseHeaderString( + "opc-request-id", GetPrivateEndpointResponse.Builder::opcRequestId) + .handleResponseHeaderString("eTag", GetPrivateEndpointResponse.Builder::eTag) + .callSync(); + } + @Override public GetReplicationPolicyResponse getReplicationPolicy(GetReplicationPolicyRequest request) { @@ -1630,6 +1753,53 @@ public ListPreauthenticatedRequestsResponse listPreauthenticatedRequests( .callSync(); } + @Override + public ListPrivateEndpointsResponse listPrivateEndpoints(ListPrivateEndpointsRequest request) { + + Validate.notBlank(request.getNamespaceName(), "namespaceName must not be blank"); + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("namespaceName", request.getNamespaceName()); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + this.populateServiceParametersInEndpoint(this.getEndpoint(), requiredParametersMap); + + return clientCall(request, ListPrivateEndpointsResponse::builder) + .logger(LOG, "listPrivateEndpoints") + .serviceDetails( + "ObjectStorage", + "ListPrivateEndpoints", + "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/PrivateEndpointSummary/ListPrivateEndpoints") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListPrivateEndpointsRequest::builder) + .basePath("/") + .appendPathParam("n") + .appendPathParam(request.getNamespaceName()) + .appendPathParam("pe") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendListQueryParam( + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.CommaSeparated) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .accept("application/json") + .appendHeader("opc-client-request-id", request.getOpcClientRequestId()) + .operationUsesDefaultRetries() + .handleBodyList( + com.oracle.bmc.objectstorage.model.PrivateEndpointSummary.class, + ListPrivateEndpointsResponse.Builder::items) + .handleResponseHeaderString( + "opc-client-request-id", + ListPrivateEndpointsResponse.Builder::opcClientRequestId) + .handleResponseHeaderString( + "opc-request-id", ListPrivateEndpointsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListPrivateEndpointsResponse.Builder::opcNextPage) + .callSync(); + } + @Override public ListReplicationPoliciesResponse listReplicationPolicies( ListReplicationPoliciesRequest request) { @@ -1860,6 +2030,7 @@ public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request .basePath("/") .appendPathParam("workRequests") .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("privateEndpointName", request.getPrivateEndpointName()) .appendQueryParam("page", request.getPage()) .appendQueryParam("limit", request.getLimit()) .accept("application/json") @@ -2325,6 +2496,51 @@ public UpdateObjectStorageTierResponse updateObjectStorageTier( .callSync(); } + @Override + public UpdatePrivateEndpointResponse updatePrivateEndpoint( + UpdatePrivateEndpointRequest request) { + + Validate.notBlank(request.getNamespaceName(), "namespaceName must not be blank"); + + Validate.notBlank(request.getPeName(), "peName must not be blank"); + Objects.requireNonNull( + request.getUpdatePrivateEndpointDetails(), + "updatePrivateEndpointDetails is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("namespaceName", request.getNamespaceName()); + requiredParametersMap.put("peName", request.getPeName()); + this.populateServiceParametersInEndpoint(this.getEndpoint(), requiredParametersMap); + + return clientCall(request, UpdatePrivateEndpointResponse::builder) + .logger(LOG, "updatePrivateEndpoint") + .serviceDetails( + "ObjectStorage", + "UpdatePrivateEndpoint", + "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/PrivateEndpoint/UpdatePrivateEndpoint") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(UpdatePrivateEndpointRequest::builder) + .basePath("/") + .appendPathParam("n") + .appendPathParam(request.getNamespaceName()) + .appendPathParam("pe") + .appendPathParam(request.getPeName()) + .accept("application/json") + .appendHeader("opc-client-request-id", request.getOpcClientRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + UpdatePrivateEndpointResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-client-request-id", + UpdatePrivateEndpointResponse.Builder::opcClientRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdatePrivateEndpointResponse.Builder::opcRequestId) + .callSync(); + } + @Override public UpdateRetentionRuleResponse updateRetentionRule(UpdateRetentionRuleRequest request) { diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStoragePaginators.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStoragePaginators.java index 12833b5f0f9..78835ec381a 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStoragePaginators.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStoragePaginators.java @@ -760,6 +760,126 @@ public ListPreauthenticatedRequestsResponse apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the + * listPrivateEndpoints 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 listPrivateEndpointsResponseIterator( + final ListPrivateEndpointsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListPrivateEndpointsRequest.Builder, + ListPrivateEndpointsRequest, + ListPrivateEndpointsResponse>( + new java.util.function.Supplier() { + @Override + public ListPrivateEndpointsRequest.Builder get() { + return ListPrivateEndpointsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListPrivateEndpointsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListPrivateEndpointsRequest.Builder>, + ListPrivateEndpointsRequest>() { + @Override + public ListPrivateEndpointsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListPrivateEndpointsRequest.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< + ListPrivateEndpointsRequest, ListPrivateEndpointsResponse>() { + @Override + public ListPrivateEndpointsResponse apply(ListPrivateEndpointsRequest request) { + return client.listPrivateEndpoints(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.objectstorage.model.PrivateEndpointSummary} objects contained in responses + * from the listPrivateEndpoints 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.objectstorage.model.PrivateEndpointSummary} objects contained in responses + * received from the service. + */ + public Iterable + listPrivateEndpointsRecordIterator(final ListPrivateEndpointsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListPrivateEndpointsRequest.Builder, + ListPrivateEndpointsRequest, + ListPrivateEndpointsResponse, + com.oracle.bmc.objectstorage.model.PrivateEndpointSummary>( + new java.util.function.Supplier() { + @Override + public ListPrivateEndpointsRequest.Builder get() { + return ListPrivateEndpointsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListPrivateEndpointsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListPrivateEndpointsRequest.Builder>, + ListPrivateEndpointsRequest>() { + @Override + public ListPrivateEndpointsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListPrivateEndpointsRequest.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< + ListPrivateEndpointsRequest, ListPrivateEndpointsResponse>() { + @Override + public ListPrivateEndpointsResponse apply(ListPrivateEndpointsRequest request) { + return client.listPrivateEndpoints(request); + } + }, + new java.util.function.Function< + ListPrivateEndpointsResponse, + java.util.List< + com.oracle.bmc.objectstorage.model.PrivateEndpointSummary>>() { + @Override + public java.util.List + apply(ListPrivateEndpointsResponse response) { + return response.getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the * listReplicationPolicies operation. This iterable will fetch more data from the server as diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageWaiters.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageWaiters.java index c2666634feb..45ceab12488 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageWaiters.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageWaiters.java @@ -25,6 +25,115 @@ public ObjectStorageWaiters( 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 + forPrivateEndpoint( + GetPrivateEndpointRequest request, + com.oracle.bmc.objectstorage.model.PrivateEndpoint.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 forPrivateEndpoint( + 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 + forPrivateEndpoint( + GetPrivateEndpointRequest request, + com.oracle.bmc.objectstorage.model.PrivateEndpoint.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 forPrivateEndpoint( + 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 + forPrivateEndpoint( + GetPrivateEndpointRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.objectstorage.model.PrivateEndpoint.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 forPrivateEndpoint( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for PrivateEndpoint. + private com.oracle.bmc.waiter.Waiter + forPrivateEndpoint( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetPrivateEndpointRequest request, + final com.oracle.bmc.objectstorage.model.PrivateEndpoint.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< + GetPrivateEndpointRequest, GetPrivateEndpointResponse>() { + @Override + public GetPrivateEndpointResponse apply( + GetPrivateEndpointRequest request) { + return client.getPrivateEndpoint(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetPrivateEndpointResponse response) { + return targetStatesSet.contains( + response.getPrivateEndpoint().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.objectstorage.model.PrivateEndpoint.LifecycleState + .Deleted)), + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using default configuration. * diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/AccessTargetDetails.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/AccessTargetDetails.java new file mode 100644 index 00000000000..c5fbbbc377c --- /dev/null +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/AccessTargetDetails.java @@ -0,0 +1,239 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.objectstorage.model; + +/** + * Details of the targets that can be accessed by the private endpoint.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AccessTargetDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AccessTargetDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"namespace", "compartmentId", "bucket"}) + public AccessTargetDetails(String namespace, String compartmentId, String bucket) { + super(); + this.namespace = namespace; + this.compartmentId = compartmentId; + this.bucket = bucket; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The Object Storage namespace which the private endpoint can access. Wildcards ('*') are + * allowed. If value is '*', it means all namespaces can be accessed. It cannot be a regex. + */ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private String namespace; + + /** + * The Object Storage namespace which the private endpoint can access. Wildcards ('*') are + * allowed. If value is '*', it means all namespaces can be accessed. It cannot be a regex. + * + * @param namespace the value to set + * @return this builder + */ + public Builder namespace(String namespace) { + this.namespace = namespace; + this.__explicitlySet__.add("namespace"); + return this; + } + /** + * The compartment ID which the private endpoint can access. Wildcards ('*') are allowed. If + * value is '*', it means all compartments in the specified namespace can be accessed. It + * cannot be a regex. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The compartment ID which the private endpoint can access. Wildcards ('*') are allowed. If + * value is '*', it means all compartments in the specified namespace can be accessed. It + * cannot be a regex. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The name of the bucket. Avoid entering confidential information. Wildcards ('*') are + * allowed. If value is '*', it means all buckets in the specified namespace and compartment + * can be accessed. It cannot be a regex. Example: my-new-bucket1 + */ + @com.fasterxml.jackson.annotation.JsonProperty("bucket") + private String bucket; + + /** + * The name of the bucket. Avoid entering confidential information. Wildcards ('*') are + * allowed. If value is '*', it means all buckets in the specified namespace and compartment + * can be accessed. It cannot be a regex. Example: my-new-bucket1 + * + * @param bucket the value to set + * @return this builder + */ + public Builder bucket(String bucket) { + this.bucket = bucket; + this.__explicitlySet__.add("bucket"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AccessTargetDetails build() { + AccessTargetDetails model = + new AccessTargetDetails(this.namespace, this.compartmentId, this.bucket); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AccessTargetDetails model) { + if (model.wasPropertyExplicitlySet("namespace")) { + this.namespace(model.getNamespace()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("bucket")) { + this.bucket(model.getBucket()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The Object Storage namespace which the private endpoint can access. Wildcards ('*') are + * allowed. If value is '*', it means all namespaces can be accessed. It cannot be a regex. + */ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private final String namespace; + + /** + * The Object Storage namespace which the private endpoint can access. Wildcards ('*') are + * allowed. If value is '*', it means all namespaces can be accessed. It cannot be a regex. + * + * @return the value + */ + public String getNamespace() { + return namespace; + } + + /** + * The compartment ID which the private endpoint can access. Wildcards ('*') are allowed. If + * value is '*', it means all compartments in the specified namespace can be accessed. It cannot + * be a regex. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The compartment ID which the private endpoint can access. Wildcards ('*') are allowed. If + * value is '*', it means all compartments in the specified namespace can be accessed. It cannot + * be a regex. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The name of the bucket. Avoid entering confidential information. Wildcards ('*') are allowed. + * If value is '*', it means all buckets in the specified namespace and compartment can be + * accessed. It cannot be a regex. Example: my-new-bucket1 + */ + @com.fasterxml.jackson.annotation.JsonProperty("bucket") + private final String bucket; + + /** + * The name of the bucket. Avoid entering confidential information. Wildcards ('*') are allowed. + * If value is '*', it means all buckets in the specified namespace and compartment can be + * accessed. It cannot be a regex. Example: my-new-bucket1 + * + * @return the value + */ + public String getBucket() { + return bucket; + } + + @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("AccessTargetDetails("); + sb.append("super=").append(super.toString()); + sb.append("namespace=").append(String.valueOf(this.namespace)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", bucket=").append(String.valueOf(this.bucket)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AccessTargetDetails)) { + return false; + } + + AccessTargetDetails other = (AccessTargetDetails) o; + return java.util.Objects.equals(this.namespace, other.namespace) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.bucket, other.bucket) + && 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.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.bucket == null ? 43 : this.bucket.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreatePrivateEndpointDetails.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreatePrivateEndpointDetails.java new file mode 100644 index 00000000000..7fc956cfde4 --- /dev/null +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreatePrivateEndpointDetails.java @@ -0,0 +1,588 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.objectstorage.model; + +/** + * Details to create a private endpoint
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreatePrivateEndpointDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreatePrivateEndpointDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "compartmentId", + "subnetId", + "prefix", + "additionalPrefixes", + "privateEndpointIp", + "nsgIds", + "accessTargets", + "freeformTags", + "definedTags" + }) + public CreatePrivateEndpointDetails( + String name, + String compartmentId, + String subnetId, + String prefix, + java.util.List additionalPrefixes, + String privateEndpointIp, + java.util.List nsgIds, + java.util.List accessTargets, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.name = name; + this.compartmentId = compartmentId; + this.subnetId = subnetId; + this.prefix = prefix; + this.additionalPrefixes = additionalPrefixes; + this.privateEndpointIp = privateEndpointIp; + this.nsgIds = nsgIds; + this.accessTargets = accessTargets; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * This name associated with the endpoint. Valid characters are uppercase or lowercase + * letters, numbers, hyphens, underscores, and periods. Example: my-new-private-endpoint1 + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * This name associated with the endpoint. Valid characters are uppercase or lowercase + * letters, numbers, hyphens, underscores, and periods. Example: my-new-private-endpoint1 + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** The ID of the compartment in which to create the Private Endpoint. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The ID of the compartment in which to create the Private Endpoint. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The OCID of the customer's subnet where the private endpoint VNIC will reside. */ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private String subnetId; + + /** + * The OCID of the customer's subnet where the private endpoint VNIC will reside. + * + * @param subnetId the value to set + * @return this builder + */ + public Builder subnetId(String subnetId) { + this.subnetId = subnetId; + this.__explicitlySet__.add("subnetId"); + return this; + } + /** + * A prefix to use for the private endpoint. The customer VCN's DNS records are updated with + * this prefix. The prefix input from the customer will be the first sub-domain in the + * endpointFqdn. Example: If the prefix chosen is "abc", then the endpointFqdn will be + * 'abc.private.objectstorage..oraclecloud.com' + */ + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + private String prefix; + + /** + * A prefix to use for the private endpoint. The customer VCN's DNS records are updated with + * this prefix. The prefix input from the customer will be the first sub-domain in the + * endpointFqdn. Example: If the prefix chosen is "abc", then the endpointFqdn will be + * 'abc.private.objectstorage..oraclecloud.com' + * + * @param prefix the value to set + * @return this builder + */ + public Builder prefix(String prefix) { + this.prefix = prefix; + this.__explicitlySet__.add("prefix"); + return this; + } + /** + * A list of additional prefix that you can provide along with any other prefix. These + * resulting endpointFqdn's are added to the customer VCN's DNS record. + */ + @com.fasterxml.jackson.annotation.JsonProperty("additionalPrefixes") + private java.util.List additionalPrefixes; + + /** + * A list of additional prefix that you can provide along with any other prefix. These + * resulting endpointFqdn's are added to the customer VCN's DNS record. + * + * @param additionalPrefixes the value to set + * @return this builder + */ + public Builder additionalPrefixes(java.util.List additionalPrefixes) { + this.additionalPrefixes = additionalPrefixes; + this.__explicitlySet__.add("additionalPrefixes"); + return this; + } + /** + * The private IP address to assign to this private endpoint. If you provide a value, it + * must be an available IP address in the customer's subnet. If it's not available, an error + * is returned. + * + *

If you do not provide a value, an available IP address in the subnet is automatically + * chosen. + */ + @com.fasterxml.jackson.annotation.JsonProperty("privateEndpointIp") + private String privateEndpointIp; + + /** + * The private IP address to assign to this private endpoint. If you provide a value, it + * must be an available IP address in the customer's subnet. If it's not available, an error + * is returned. + * + *

If you do not provide a value, an available IP address in the subnet is automatically + * chosen. + * + * @param privateEndpointIp the value to set + * @return this builder + */ + public Builder privateEndpointIp(String privateEndpointIp) { + this.privateEndpointIp = privateEndpointIp; + this.__explicitlySet__.add("privateEndpointIp"); + return this; + } + /** + * A list of the OCIDs of the network security groups (NSGs) to add the private endpoint's + * VNIC to. For more information about NSGs, see {@link NetworkSecurityGroup}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") + private java.util.List nsgIds; + + /** + * A list of the OCIDs of the network security groups (NSGs) to add the private endpoint's + * VNIC to. For more information about NSGs, see {@link NetworkSecurityGroup}. + * + * @param nsgIds the value to set + * @return this builder + */ + public Builder nsgIds(java.util.List nsgIds) { + this.nsgIds = nsgIds; + this.__explicitlySet__.add("nsgIds"); + return this; + } + /** A list of targets that can be accessed by the private endpoint. */ + @com.fasterxml.jackson.annotation.JsonProperty("accessTargets") + private java.util.List accessTargets; + + /** + * A list of targets that can be accessed by the private endpoint. + * + * @param accessTargets the value to set + * @return this builder + */ + public Builder accessTargets(java.util.List accessTargets) { + this.accessTargets = accessTargets; + this.__explicitlySet__.add("accessTargets"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Department": "Finance"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Operations": {"CostCenter": "42"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreatePrivateEndpointDetails build() { + CreatePrivateEndpointDetails model = + new CreatePrivateEndpointDetails( + this.name, + this.compartmentId, + this.subnetId, + this.prefix, + this.additionalPrefixes, + this.privateEndpointIp, + this.nsgIds, + this.accessTargets, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreatePrivateEndpointDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("subnetId")) { + this.subnetId(model.getSubnetId()); + } + if (model.wasPropertyExplicitlySet("prefix")) { + this.prefix(model.getPrefix()); + } + if (model.wasPropertyExplicitlySet("additionalPrefixes")) { + this.additionalPrefixes(model.getAdditionalPrefixes()); + } + if (model.wasPropertyExplicitlySet("privateEndpointIp")) { + this.privateEndpointIp(model.getPrivateEndpointIp()); + } + if (model.wasPropertyExplicitlySet("nsgIds")) { + this.nsgIds(model.getNsgIds()); + } + if (model.wasPropertyExplicitlySet("accessTargets")) { + this.accessTargets(model.getAccessTargets()); + } + 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 name associated with the endpoint. Valid characters are uppercase or lowercase letters, + * numbers, hyphens, underscores, and periods. Example: my-new-private-endpoint1 + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * This name associated with the endpoint. Valid characters are uppercase or lowercase letters, + * numbers, hyphens, underscores, and periods. Example: my-new-private-endpoint1 + * + * @return the value + */ + public String getName() { + return name; + } + + /** The ID of the compartment in which to create the Private Endpoint. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The ID of the compartment in which to create the Private Endpoint. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The OCID of the customer's subnet where the private endpoint VNIC will reside. */ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private final String subnetId; + + /** + * The OCID of the customer's subnet where the private endpoint VNIC will reside. + * + * @return the value + */ + public String getSubnetId() { + return subnetId; + } + + /** + * A prefix to use for the private endpoint. The customer VCN's DNS records are updated with + * this prefix. The prefix input from the customer will be the first sub-domain in the + * endpointFqdn. Example: If the prefix chosen is "abc", then the endpointFqdn will be + * 'abc.private.objectstorage..oraclecloud.com' + */ + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + private final String prefix; + + /** + * A prefix to use for the private endpoint. The customer VCN's DNS records are updated with + * this prefix. The prefix input from the customer will be the first sub-domain in the + * endpointFqdn. Example: If the prefix chosen is "abc", then the endpointFqdn will be + * 'abc.private.objectstorage..oraclecloud.com' + * + * @return the value + */ + public String getPrefix() { + return prefix; + } + + /** + * A list of additional prefix that you can provide along with any other prefix. These resulting + * endpointFqdn's are added to the customer VCN's DNS record. + */ + @com.fasterxml.jackson.annotation.JsonProperty("additionalPrefixes") + private final java.util.List additionalPrefixes; + + /** + * A list of additional prefix that you can provide along with any other prefix. These resulting + * endpointFqdn's are added to the customer VCN's DNS record. + * + * @return the value + */ + public java.util.List getAdditionalPrefixes() { + return additionalPrefixes; + } + + /** + * The private IP address to assign to this private endpoint. If you provide a value, it must be + * an available IP address in the customer's subnet. If it's not available, an error is + * returned. + * + *

If you do not provide a value, an available IP address in the subnet is automatically + * chosen. + */ + @com.fasterxml.jackson.annotation.JsonProperty("privateEndpointIp") + private final String privateEndpointIp; + + /** + * The private IP address to assign to this private endpoint. If you provide a value, it must be + * an available IP address in the customer's subnet. If it's not available, an error is + * returned. + * + *

If you do not provide a value, an available IP address in the subnet is automatically + * chosen. + * + * @return the value + */ + public String getPrivateEndpointIp() { + return privateEndpointIp; + } + + /** + * A list of the OCIDs of the network security groups (NSGs) to add the private endpoint's VNIC + * to. For more information about NSGs, see {@link NetworkSecurityGroup}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") + private final java.util.List nsgIds; + + /** + * A list of the OCIDs of the network security groups (NSGs) to add the private endpoint's VNIC + * to. For more information about NSGs, see {@link NetworkSecurityGroup}. + * + * @return the value + */ + public java.util.List getNsgIds() { + return nsgIds; + } + + /** A list of targets that can be accessed by the private endpoint. */ + @com.fasterxml.jackson.annotation.JsonProperty("accessTargets") + private final java.util.List accessTargets; + + /** + * A list of targets that can be accessed by the private endpoint. + * + * @return the value + */ + public java.util.List getAccessTargets() { + return accessTargets; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Department": "Finance"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Operations": {"CostCenter": "42"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreatePrivateEndpointDetails("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", subnetId=").append(String.valueOf(this.subnetId)); + sb.append(", prefix=").append(String.valueOf(this.prefix)); + sb.append(", additionalPrefixes=").append(String.valueOf(this.additionalPrefixes)); + sb.append(", privateEndpointIp=").append(String.valueOf(this.privateEndpointIp)); + sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); + sb.append(", accessTargets=").append(String.valueOf(this.accessTargets)); + 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 CreatePrivateEndpointDetails)) { + return false; + } + + CreatePrivateEndpointDetails other = (CreatePrivateEndpointDetails) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.subnetId, other.subnetId) + && java.util.Objects.equals(this.prefix, other.prefix) + && java.util.Objects.equals(this.additionalPrefixes, other.additionalPrefixes) + && java.util.Objects.equals(this.privateEndpointIp, other.privateEndpointIp) + && java.util.Objects.equals(this.nsgIds, other.nsgIds) + && java.util.Objects.equals(this.accessTargets, other.accessTargets) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); + result = (result * PRIME) + (this.prefix == null ? 43 : this.prefix.hashCode()); + result = + (result * PRIME) + + (this.additionalPrefixes == null + ? 43 + : this.additionalPrefixes.hashCode()); + result = + (result * PRIME) + + (this.privateEndpointIp == null ? 43 : this.privateEndpointIp.hashCode()); + result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); + result = + (result * PRIME) + + (this.accessTargets == null ? 43 : this.accessTargets.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-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/Fqdns.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/Fqdns.java new file mode 100644 index 00000000000..96f245020c3 --- /dev/null +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/Fqdns.java @@ -0,0 +1,163 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.objectstorage.model; + +/** + * The object representing FQDN details formed using prefix and additionalPrefixes.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Fqdns.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class Fqdns extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"prefixFqdns", "additionalPrefixesFqdns"}) + public Fqdns( + PrefixFqdns prefixFqdns, java.util.Map additionalPrefixesFqdns) { + super(); + this.prefixFqdns = prefixFqdns; + this.additionalPrefixesFqdns = additionalPrefixesFqdns; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("prefixFqdns") + private PrefixFqdns prefixFqdns; + + public Builder prefixFqdns(PrefixFqdns prefixFqdns) { + this.prefixFqdns = prefixFqdns; + this.__explicitlySet__.add("prefixFqdns"); + return this; + } + /** An object containing FQDNs formed using additionalPrefixes. */ + @com.fasterxml.jackson.annotation.JsonProperty("additionalPrefixesFqdns") + private java.util.Map additionalPrefixesFqdns; + + /** + * An object containing FQDNs formed using additionalPrefixes. + * + * @param additionalPrefixesFqdns the value to set + * @return this builder + */ + public Builder additionalPrefixesFqdns( + java.util.Map additionalPrefixesFqdns) { + this.additionalPrefixesFqdns = additionalPrefixesFqdns; + this.__explicitlySet__.add("additionalPrefixesFqdns"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Fqdns build() { + Fqdns model = new Fqdns(this.prefixFqdns, this.additionalPrefixesFqdns); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Fqdns model) { + if (model.wasPropertyExplicitlySet("prefixFqdns")) { + this.prefixFqdns(model.getPrefixFqdns()); + } + if (model.wasPropertyExplicitlySet("additionalPrefixesFqdns")) { + this.additionalPrefixesFqdns(model.getAdditionalPrefixesFqdns()); + } + 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("prefixFqdns") + private final PrefixFqdns prefixFqdns; + + public PrefixFqdns getPrefixFqdns() { + return prefixFqdns; + } + + /** An object containing FQDNs formed using additionalPrefixes. */ + @com.fasterxml.jackson.annotation.JsonProperty("additionalPrefixesFqdns") + private final java.util.Map additionalPrefixesFqdns; + + /** + * An object containing FQDNs formed using additionalPrefixes. + * + * @return the value + */ + public java.util.Map getAdditionalPrefixesFqdns() { + return additionalPrefixesFqdns; + } + + @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("Fqdns("); + sb.append("super=").append(super.toString()); + sb.append("prefixFqdns=").append(String.valueOf(this.prefixFqdns)); + sb.append(", additionalPrefixesFqdns=") + .append(String.valueOf(this.additionalPrefixesFqdns)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Fqdns)) { + return false; + } + + Fqdns other = (Fqdns) o; + return java.util.Objects.equals(this.prefixFqdns, other.prefixFqdns) + && java.util.Objects.equals( + this.additionalPrefixesFqdns, other.additionalPrefixesFqdns) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.prefixFqdns == null ? 43 : this.prefixFqdns.hashCode()); + result = + (result * PRIME) + + (this.additionalPrefixesFqdns == null + ? 43 + : this.additionalPrefixesFqdns.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/PrefixFqdns.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/PrefixFqdns.java new file mode 100644 index 00000000000..06bfdeb6c40 --- /dev/null +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/PrefixFqdns.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.objectstorage.model; + +/** + * An object containing FQDNs
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = PrefixFqdns.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PrefixFqdns extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "objectStorageApiFqdn", + "s3CompatibilityApiFqdn", + "swiftApiFqdn" + }) + public PrefixFqdns( + String objectStorageApiFqdn, String s3CompatibilityApiFqdn, String swiftApiFqdn) { + super(); + this.objectStorageApiFqdn = objectStorageApiFqdn; + this.s3CompatibilityApiFqdn = s3CompatibilityApiFqdn; + this.swiftApiFqdn = swiftApiFqdn; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** ObjectStorage API FQDN */ + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageApiFqdn") + private String objectStorageApiFqdn; + + /** + * ObjectStorage API FQDN + * + * @param objectStorageApiFqdn the value to set + * @return this builder + */ + public Builder objectStorageApiFqdn(String objectStorageApiFqdn) { + this.objectStorageApiFqdn = objectStorageApiFqdn; + this.__explicitlySet__.add("objectStorageApiFqdn"); + return this; + } + /** S3 Compatibility API FQDN */ + @com.fasterxml.jackson.annotation.JsonProperty("s3CompatibilityApiFqdn") + private String s3CompatibilityApiFqdn; + + /** + * S3 Compatibility API FQDN + * + * @param s3CompatibilityApiFqdn the value to set + * @return this builder + */ + public Builder s3CompatibilityApiFqdn(String s3CompatibilityApiFqdn) { + this.s3CompatibilityApiFqdn = s3CompatibilityApiFqdn; + this.__explicitlySet__.add("s3CompatibilityApiFqdn"); + return this; + } + /** Swift API FQDN */ + @com.fasterxml.jackson.annotation.JsonProperty("swiftApiFqdn") + private String swiftApiFqdn; + + /** + * Swift API FQDN + * + * @param swiftApiFqdn the value to set + * @return this builder + */ + public Builder swiftApiFqdn(String swiftApiFqdn) { + this.swiftApiFqdn = swiftApiFqdn; + this.__explicitlySet__.add("swiftApiFqdn"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PrefixFqdns build() { + PrefixFqdns model = + new PrefixFqdns( + this.objectStorageApiFqdn, + this.s3CompatibilityApiFqdn, + this.swiftApiFqdn); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PrefixFqdns model) { + if (model.wasPropertyExplicitlySet("objectStorageApiFqdn")) { + this.objectStorageApiFqdn(model.getObjectStorageApiFqdn()); + } + if (model.wasPropertyExplicitlySet("s3CompatibilityApiFqdn")) { + this.s3CompatibilityApiFqdn(model.getS3CompatibilityApiFqdn()); + } + if (model.wasPropertyExplicitlySet("swiftApiFqdn")) { + this.swiftApiFqdn(model.getSwiftApiFqdn()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** ObjectStorage API FQDN */ + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageApiFqdn") + private final String objectStorageApiFqdn; + + /** + * ObjectStorage API FQDN + * + * @return the value + */ + public String getObjectStorageApiFqdn() { + return objectStorageApiFqdn; + } + + /** S3 Compatibility API FQDN */ + @com.fasterxml.jackson.annotation.JsonProperty("s3CompatibilityApiFqdn") + private final String s3CompatibilityApiFqdn; + + /** + * S3 Compatibility API FQDN + * + * @return the value + */ + public String getS3CompatibilityApiFqdn() { + return s3CompatibilityApiFqdn; + } + + /** Swift API FQDN */ + @com.fasterxml.jackson.annotation.JsonProperty("swiftApiFqdn") + private final String swiftApiFqdn; + + /** + * Swift API FQDN + * + * @return the value + */ + public String getSwiftApiFqdn() { + return swiftApiFqdn; + } + + @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("PrefixFqdns("); + sb.append("super=").append(super.toString()); + sb.append("objectStorageApiFqdn=").append(String.valueOf(this.objectStorageApiFqdn)); + sb.append(", s3CompatibilityApiFqdn=").append(String.valueOf(this.s3CompatibilityApiFqdn)); + sb.append(", swiftApiFqdn=").append(String.valueOf(this.swiftApiFqdn)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PrefixFqdns)) { + return false; + } + + PrefixFqdns other = (PrefixFqdns) o; + return java.util.Objects.equals(this.objectStorageApiFqdn, other.objectStorageApiFqdn) + && java.util.Objects.equals( + this.s3CompatibilityApiFqdn, other.s3CompatibilityApiFqdn) + && java.util.Objects.equals(this.swiftApiFqdn, other.swiftApiFqdn) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.objectStorageApiFqdn == null + ? 43 + : this.objectStorageApiFqdn.hashCode()); + result = + (result * PRIME) + + (this.s3CompatibilityApiFqdn == null + ? 43 + : this.s3CompatibilityApiFqdn.hashCode()); + result = (result * PRIME) + (this.swiftApiFqdn == null ? 43 : this.swiftApiFqdn.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/PrivateEndpoint.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/PrivateEndpoint.java new file mode 100644 index 00000000000..4a5d9a8d3e4 --- /dev/null +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/PrivateEndpoint.java @@ -0,0 +1,974 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.objectstorage.model; + +/** + * A private endpoint makes your service accessible through a private IP in the customer's private + * network. A private endpoint has a name and is associated with a namespace and a single + * compartment.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = PrivateEndpoint.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PrivateEndpoint + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "namespace", + "compartmentId", + "createdBy", + "timeCreated", + "timeModified", + "subnetId", + "privateEndpointIp", + "prefix", + "additionalPrefixes", + "nsgIds", + "fqdns", + "etag", + "lifecycleState", + "accessTargets", + "freeformTags", + "definedTags", + "id" + }) + public PrivateEndpoint( + String name, + String namespace, + String compartmentId, + String createdBy, + java.util.Date timeCreated, + java.util.Date timeModified, + String subnetId, + String privateEndpointIp, + String prefix, + java.util.List additionalPrefixes, + java.util.List nsgIds, + Fqdns fqdns, + String etag, + LifecycleState lifecycleState, + java.util.List accessTargets, + java.util.Map freeformTags, + java.util.Map> definedTags, + String id) { + super(); + this.name = name; + this.namespace = namespace; + this.compartmentId = compartmentId; + this.createdBy = createdBy; + this.timeCreated = timeCreated; + this.timeModified = timeModified; + this.subnetId = subnetId; + this.privateEndpointIp = privateEndpointIp; + this.prefix = prefix; + this.additionalPrefixes = additionalPrefixes; + this.nsgIds = nsgIds; + this.fqdns = fqdns; + this.etag = etag; + this.lifecycleState = lifecycleState; + this.accessTargets = accessTargets; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.id = id; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * This name associated with the endpoint. Valid characters are uppercase or lowercase + * letters, numbers, hyphens, underscores, and periods. Example: my-new-private-endpoint1 + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * This name associated with the endpoint. Valid characters are uppercase or lowercase + * letters, numbers, hyphens, underscores, and periods. Example: my-new-private-endpoint1 + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** The Object Storage namespace associated with the private enpoint. */ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private String namespace; + + /** + * The Object Storage namespace associated with the private enpoint. + * + * @param namespace the value to set + * @return this builder + */ + public Builder namespace(String namespace) { + this.namespace = namespace; + this.__explicitlySet__.add("namespace"); + return this; + } + /** The compartment which is associated with the Private Endpoint. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The compartment which is associated with the Private Endpoint. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * user who created the Private Endpoint. + */ + @com.fasterxml.jackson.annotation.JsonProperty("createdBy") + private String createdBy; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * user who created the Private Endpoint. + * + * @param createdBy the value to set + * @return this builder + */ + public Builder createdBy(String createdBy) { + this.createdBy = createdBy; + this.__explicitlySet__.add("createdBy"); + return this; + } + /** + * The date and time the Private Endpoint was created, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.29). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the Private Endpoint was created, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.29). + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The date and time the Private Endpoint was updated, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.29). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeModified") + private java.util.Date timeModified; + + /** + * The date and time the Private Endpoint was updated, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.29). + * + * @param timeModified the value to set + * @return this builder + */ + public Builder timeModified(java.util.Date timeModified) { + this.timeModified = timeModified; + this.__explicitlySet__.add("timeModified"); + return this; + } + /** The OCID of the customer's subnet where the private endpoint VNIC will reside. */ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private String subnetId; + + /** + * The OCID of the customer's subnet where the private endpoint VNIC will reside. + * + * @param subnetId the value to set + * @return this builder + */ + public Builder subnetId(String subnetId) { + this.subnetId = subnetId; + this.__explicitlySet__.add("subnetId"); + return this; + } + /** + * The private IP address to assign to this private endpoint. If you provide a value, it + * must be an available IP address in the customer's subnet. If it's not available, an error + * is returned. + * + *

If you do not provide a value, an available IP address in the subnet is automatically + * chosen. + */ + @com.fasterxml.jackson.annotation.JsonProperty("privateEndpointIp") + private String privateEndpointIp; + + /** + * The private IP address to assign to this private endpoint. If you provide a value, it + * must be an available IP address in the customer's subnet. If it's not available, an error + * is returned. + * + *

If you do not provide a value, an available IP address in the subnet is automatically + * chosen. + * + * @param privateEndpointIp the value to set + * @return this builder + */ + public Builder privateEndpointIp(String privateEndpointIp) { + this.privateEndpointIp = privateEndpointIp; + this.__explicitlySet__.add("privateEndpointIp"); + return this; + } + /** + * A prefix to use for the private endpoint. The customer VCN's DNS records are updated with + * this prefix. The prefix input from the customer will be the first sub-domain in the + * endpointFqdn. Example: If the prefix chosen is "abc", then the endpointFqdn will be + * 'abc.private.objectstorage..oraclecloud.com' + */ + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + private String prefix; + + /** + * A prefix to use for the private endpoint. The customer VCN's DNS records are updated with + * this prefix. The prefix input from the customer will be the first sub-domain in the + * endpointFqdn. Example: If the prefix chosen is "abc", then the endpointFqdn will be + * 'abc.private.objectstorage..oraclecloud.com' + * + * @param prefix the value to set + * @return this builder + */ + public Builder prefix(String prefix) { + this.prefix = prefix; + this.__explicitlySet__.add("prefix"); + return this; + } + /** + * A list of additional prefix that you can provide along with any other prefix. These + * resulting endpointFqdn's are added to the customer VCN's DNS record. + */ + @com.fasterxml.jackson.annotation.JsonProperty("additionalPrefixes") + private java.util.List additionalPrefixes; + + /** + * A list of additional prefix that you can provide along with any other prefix. These + * resulting endpointFqdn's are added to the customer VCN's DNS record. + * + * @param additionalPrefixes the value to set + * @return this builder + */ + public Builder additionalPrefixes(java.util.List additionalPrefixes) { + this.additionalPrefixes = additionalPrefixes; + this.__explicitlySet__.add("additionalPrefixes"); + return this; + } + /** + * A list of the OCIDs of the network security groups (NSGs) to add the private endpoint's + * VNIC to. For more information about NSGs, see {@link NetworkSecurityGroup}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") + private java.util.List nsgIds; + + /** + * A list of the OCIDs of the network security groups (NSGs) to add the private endpoint's + * VNIC to. For more information about NSGs, see {@link NetworkSecurityGroup}. + * + * @param nsgIds the value to set + * @return this builder + */ + public Builder nsgIds(java.util.List nsgIds) { + this.nsgIds = nsgIds; + this.__explicitlySet__.add("nsgIds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("fqdns") + private Fqdns fqdns; + + public Builder fqdns(Fqdns fqdns) { + this.fqdns = fqdns; + this.__explicitlySet__.add("fqdns"); + return this; + } + /** The entity tag (ETag) for the Private Endpoint. */ + @com.fasterxml.jackson.annotation.JsonProperty("etag") + private String etag; + + /** + * The entity tag (ETag) for the Private Endpoint. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + this.__explicitlySet__.add("etag"); + return this; + } + /** The Private Endpoint's lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The Private Endpoint's lifecycle state. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A list of targets that can be accessed by the private endpoint. At least one or more + * access targets is required for a private endpoint. + */ + @com.fasterxml.jackson.annotation.JsonProperty("accessTargets") + private java.util.List accessTargets; + + /** + * A list of targets that can be accessed by the private endpoint. At least one or more + * access targets is required for a private endpoint. + * + * @param accessTargets the value to set + * @return this builder + */ + public Builder accessTargets(java.util.List accessTargets) { + this.accessTargets = accessTargets; + this.__explicitlySet__.add("accessTargets"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Department": "Finance"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Operations": {"CostCenter": "42"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * PrivateEndpoint. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * PrivateEndpoint. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PrivateEndpoint build() { + PrivateEndpoint model = + new PrivateEndpoint( + this.name, + this.namespace, + this.compartmentId, + this.createdBy, + this.timeCreated, + this.timeModified, + this.subnetId, + this.privateEndpointIp, + this.prefix, + this.additionalPrefixes, + this.nsgIds, + this.fqdns, + this.etag, + this.lifecycleState, + this.accessTargets, + this.freeformTags, + this.definedTags, + this.id); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PrivateEndpoint model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("namespace")) { + this.namespace(model.getNamespace()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("createdBy")) { + this.createdBy(model.getCreatedBy()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeModified")) { + this.timeModified(model.getTimeModified()); + } + if (model.wasPropertyExplicitlySet("subnetId")) { + this.subnetId(model.getSubnetId()); + } + if (model.wasPropertyExplicitlySet("privateEndpointIp")) { + this.privateEndpointIp(model.getPrivateEndpointIp()); + } + if (model.wasPropertyExplicitlySet("prefix")) { + this.prefix(model.getPrefix()); + } + if (model.wasPropertyExplicitlySet("additionalPrefixes")) { + this.additionalPrefixes(model.getAdditionalPrefixes()); + } + if (model.wasPropertyExplicitlySet("nsgIds")) { + this.nsgIds(model.getNsgIds()); + } + if (model.wasPropertyExplicitlySet("fqdns")) { + this.fqdns(model.getFqdns()); + } + if (model.wasPropertyExplicitlySet("etag")) { + this.etag(model.getEtag()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("accessTargets")) { + this.accessTargets(model.getAccessTargets()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * This name associated with the endpoint. Valid characters are uppercase or lowercase letters, + * numbers, hyphens, underscores, and periods. Example: my-new-private-endpoint1 + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * This name associated with the endpoint. Valid characters are uppercase or lowercase letters, + * numbers, hyphens, underscores, and periods. Example: my-new-private-endpoint1 + * + * @return the value + */ + public String getName() { + return name; + } + + /** The Object Storage namespace associated with the private enpoint. */ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private final String namespace; + + /** + * The Object Storage namespace associated with the private enpoint. + * + * @return the value + */ + public String getNamespace() { + return namespace; + } + + /** The compartment which is associated with the Private Endpoint. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The compartment which is associated with the Private Endpoint. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * user who created the Private Endpoint. + */ + @com.fasterxml.jackson.annotation.JsonProperty("createdBy") + private final String createdBy; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * user who created the Private Endpoint. + * + * @return the value + */ + public String getCreatedBy() { + return createdBy; + } + + /** + * The date and time the Private Endpoint was created, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.29). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the Private Endpoint was created, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.29). + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The date and time the Private Endpoint was updated, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.29). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeModified") + private final java.util.Date timeModified; + + /** + * The date and time the Private Endpoint was updated, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.29). + * + * @return the value + */ + public java.util.Date getTimeModified() { + return timeModified; + } + + /** The OCID of the customer's subnet where the private endpoint VNIC will reside. */ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private final String subnetId; + + /** + * The OCID of the customer's subnet where the private endpoint VNIC will reside. + * + * @return the value + */ + public String getSubnetId() { + return subnetId; + } + + /** + * The private IP address to assign to this private endpoint. If you provide a value, it must be + * an available IP address in the customer's subnet. If it's not available, an error is + * returned. + * + *

If you do not provide a value, an available IP address in the subnet is automatically + * chosen. + */ + @com.fasterxml.jackson.annotation.JsonProperty("privateEndpointIp") + private final String privateEndpointIp; + + /** + * The private IP address to assign to this private endpoint. If you provide a value, it must be + * an available IP address in the customer's subnet. If it's not available, an error is + * returned. + * + *

If you do not provide a value, an available IP address in the subnet is automatically + * chosen. + * + * @return the value + */ + public String getPrivateEndpointIp() { + return privateEndpointIp; + } + + /** + * A prefix to use for the private endpoint. The customer VCN's DNS records are updated with + * this prefix. The prefix input from the customer will be the first sub-domain in the + * endpointFqdn. Example: If the prefix chosen is "abc", then the endpointFqdn will be + * 'abc.private.objectstorage..oraclecloud.com' + */ + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + private final String prefix; + + /** + * A prefix to use for the private endpoint. The customer VCN's DNS records are updated with + * this prefix. The prefix input from the customer will be the first sub-domain in the + * endpointFqdn. Example: If the prefix chosen is "abc", then the endpointFqdn will be + * 'abc.private.objectstorage..oraclecloud.com' + * + * @return the value + */ + public String getPrefix() { + return prefix; + } + + /** + * A list of additional prefix that you can provide along with any other prefix. These resulting + * endpointFqdn's are added to the customer VCN's DNS record. + */ + @com.fasterxml.jackson.annotation.JsonProperty("additionalPrefixes") + private final java.util.List additionalPrefixes; + + /** + * A list of additional prefix that you can provide along with any other prefix. These resulting + * endpointFqdn's are added to the customer VCN's DNS record. + * + * @return the value + */ + public java.util.List getAdditionalPrefixes() { + return additionalPrefixes; + } + + /** + * A list of the OCIDs of the network security groups (NSGs) to add the private endpoint's VNIC + * to. For more information about NSGs, see {@link NetworkSecurityGroup}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") + private final java.util.List nsgIds; + + /** + * A list of the OCIDs of the network security groups (NSGs) to add the private endpoint's VNIC + * to. For more information about NSGs, see {@link NetworkSecurityGroup}. + * + * @return the value + */ + public java.util.List getNsgIds() { + return nsgIds; + } + + @com.fasterxml.jackson.annotation.JsonProperty("fqdns") + private final Fqdns fqdns; + + public Fqdns getFqdns() { + return fqdns; + } + + /** The entity tag (ETag) for the Private Endpoint. */ + @com.fasterxml.jackson.annotation.JsonProperty("etag") + private final String etag; + + /** + * The entity tag (ETag) for the Private Endpoint. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** The Private Endpoint's lifecycle state. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + Active("ACTIVE"), + Inactive("INACTIVE"), + 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 Private Endpoint's lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The Private Endpoint's lifecycle state. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A list of targets that can be accessed by the private endpoint. At least one or more access + * targets is required for a private endpoint. + */ + @com.fasterxml.jackson.annotation.JsonProperty("accessTargets") + private final java.util.List accessTargets; + + /** + * A list of targets that can be accessed by the private endpoint. At least one or more access + * targets is required for a private endpoint. + * + * @return the value + */ + public java.util.List getAccessTargets() { + return accessTargets; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Department": "Finance"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Operations": {"CostCenter": "42"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * PrivateEndpoint. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * PrivateEndpoint. + * + * @return the value + */ + public String getId() { + return id; + } + + @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("PrivateEndpoint("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", namespace=").append(String.valueOf(this.namespace)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", createdBy=").append(String.valueOf(this.createdBy)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeModified=").append(String.valueOf(this.timeModified)); + sb.append(", subnetId=").append(String.valueOf(this.subnetId)); + sb.append(", privateEndpointIp=").append(String.valueOf(this.privateEndpointIp)); + sb.append(", prefix=").append(String.valueOf(this.prefix)); + sb.append(", additionalPrefixes=").append(String.valueOf(this.additionalPrefixes)); + sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); + sb.append(", fqdns=").append(String.valueOf(this.fqdns)); + sb.append(", etag=").append(String.valueOf(this.etag)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", accessTargets=").append(String.valueOf(this.accessTargets)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PrivateEndpoint)) { + return false; + } + + PrivateEndpoint other = (PrivateEndpoint) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.namespace, other.namespace) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.createdBy, other.createdBy) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeModified, other.timeModified) + && java.util.Objects.equals(this.subnetId, other.subnetId) + && java.util.Objects.equals(this.privateEndpointIp, other.privateEndpointIp) + && java.util.Objects.equals(this.prefix, other.prefix) + && java.util.Objects.equals(this.additionalPrefixes, other.additionalPrefixes) + && java.util.Objects.equals(this.nsgIds, other.nsgIds) + && java.util.Objects.equals(this.fqdns, other.fqdns) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.accessTargets, other.accessTargets) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.id, other.id) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.namespace == null ? 43 : this.namespace.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.createdBy == null ? 43 : this.createdBy.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeModified == null ? 43 : this.timeModified.hashCode()); + result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); + result = + (result * PRIME) + + (this.privateEndpointIp == null ? 43 : this.privateEndpointIp.hashCode()); + result = (result * PRIME) + (this.prefix == null ? 43 : this.prefix.hashCode()); + result = + (result * PRIME) + + (this.additionalPrefixes == null + ? 43 + : this.additionalPrefixes.hashCode()); + result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); + result = (result * PRIME) + (this.fqdns == null ? 43 : this.fqdns.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.accessTargets == null ? 43 : this.accessTargets.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.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/PrivateEndpointSummary.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/PrivateEndpointSummary.java new file mode 100644 index 00000000000..bcafaa31776 --- /dev/null +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/PrivateEndpointSummary.java @@ -0,0 +1,524 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.objectstorage.model; + +/** + * To use any of the API operations, you must be authorized in an IAM policy. If you are not + * authorized, talk to an administrator. If you are an administrator who needs to write policies to + * give users access, see [Getting Started with + * Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.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: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PrivateEndpointSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PrivateEndpointSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "namespace", + "compartmentId", + "createdBy", + "timeCreated", + "timeModified", + "prefix", + "fqdns", + "etag", + "lifecycleState" + }) + public PrivateEndpointSummary( + String name, + String namespace, + String compartmentId, + String createdBy, + java.util.Date timeCreated, + java.util.Date timeModified, + String prefix, + Fqdns fqdns, + String etag, + PrivateEndpoint.LifecycleState lifecycleState) { + super(); + this.name = name; + this.namespace = namespace; + this.compartmentId = compartmentId; + this.createdBy = createdBy; + this.timeCreated = timeCreated; + this.timeModified = timeModified; + this.prefix = prefix; + this.fqdns = fqdns; + this.etag = etag; + this.lifecycleState = lifecycleState; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name given to the Private Endpoint. Avoid entering confidential information. Example: + * my-new-pe1 + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name given to the Private Endpoint. Avoid entering confidential information. Example: + * my-new-pe1 + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** The Object Storage namespace with which the Private Endpoint is associated. */ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private String namespace; + + /** + * The Object Storage namespace with which the Private Endpoint is associated. + * + * @param namespace the value to set + * @return this builder + */ + public Builder namespace(String namespace) { + this.namespace = namespace; + this.__explicitlySet__.add("namespace"); + return this; + } + /** The compartment ID in which the Private Endpoint is authorized. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The compartment ID in which the Private Endpoint is authorized. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * user who created the Private Endpoint. + */ + @com.fasterxml.jackson.annotation.JsonProperty("createdBy") + private String createdBy; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * user who created the Private Endpoint. + * + * @param createdBy the value to set + * @return this builder + */ + public Builder createdBy(String createdBy) { + this.createdBy = createdBy; + this.__explicitlySet__.add("createdBy"); + return this; + } + /** + * The date and time the Private Endpoint was created, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.29). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the Private Endpoint was created, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.29). + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The date and time the Private Endpoint was updated, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.29). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeModified") + private java.util.Date timeModified; + + /** + * The date and time the Private Endpoint was updated, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.29). + * + * @param timeModified the value to set + * @return this builder + */ + public Builder timeModified(java.util.Date timeModified) { + this.timeModified = timeModified; + this.__explicitlySet__.add("timeModified"); + return this; + } + /** + * A prefix to use for the private endpoint. The customer VCN's DNS records are updated with + * this prefix. The prefix input from the customer will be the first sub-domain in the + * endpointFqdn. Example: If the prefix chosen is "abc", then the endpointFqdn will be + * 'abc.private.objectstorage..oraclecloud.com' + */ + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + private String prefix; + + /** + * A prefix to use for the private endpoint. The customer VCN's DNS records are updated with + * this prefix. The prefix input from the customer will be the first sub-domain in the + * endpointFqdn. Example: If the prefix chosen is "abc", then the endpointFqdn will be + * 'abc.private.objectstorage..oraclecloud.com' + * + * @param prefix the value to set + * @return this builder + */ + public Builder prefix(String prefix) { + this.prefix = prefix; + this.__explicitlySet__.add("prefix"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("fqdns") + private Fqdns fqdns; + + public Builder fqdns(Fqdns fqdns) { + this.fqdns = fqdns; + this.__explicitlySet__.add("fqdns"); + return this; + } + /** The entity tag for the Private Endpoint. */ + @com.fasterxml.jackson.annotation.JsonProperty("etag") + private String etag; + + /** + * The entity tag for the Private Endpoint. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + this.__explicitlySet__.add("etag"); + return this; + } + /** The summaries of Private Endpoints' lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private PrivateEndpoint.LifecycleState lifecycleState; + + /** + * The summaries of Private Endpoints' lifecycle state. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(PrivateEndpoint.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PrivateEndpointSummary build() { + PrivateEndpointSummary model = + new PrivateEndpointSummary( + this.name, + this.namespace, + this.compartmentId, + this.createdBy, + this.timeCreated, + this.timeModified, + this.prefix, + this.fqdns, + this.etag, + this.lifecycleState); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PrivateEndpointSummary model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("namespace")) { + this.namespace(model.getNamespace()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("createdBy")) { + this.createdBy(model.getCreatedBy()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeModified")) { + this.timeModified(model.getTimeModified()); + } + if (model.wasPropertyExplicitlySet("prefix")) { + this.prefix(model.getPrefix()); + } + if (model.wasPropertyExplicitlySet("fqdns")) { + this.fqdns(model.getFqdns()); + } + if (model.wasPropertyExplicitlySet("etag")) { + this.etag(model.getEtag()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The name given to the Private Endpoint. Avoid entering confidential information. Example: + * my-new-pe1 + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name given to the Private Endpoint. Avoid entering confidential information. Example: + * my-new-pe1 + * + * @return the value + */ + public String getName() { + return name; + } + + /** The Object Storage namespace with which the Private Endpoint is associated. */ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private final String namespace; + + /** + * The Object Storage namespace with which the Private Endpoint is associated. + * + * @return the value + */ + public String getNamespace() { + return namespace; + } + + /** The compartment ID in which the Private Endpoint is authorized. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The compartment ID in which the Private Endpoint is authorized. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * user who created the Private Endpoint. + */ + @com.fasterxml.jackson.annotation.JsonProperty("createdBy") + private final String createdBy; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * user who created the Private Endpoint. + * + * @return the value + */ + public String getCreatedBy() { + return createdBy; + } + + /** + * The date and time the Private Endpoint was created, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.29). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the Private Endpoint was created, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.29). + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The date and time the Private Endpoint was updated, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.29). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeModified") + private final java.util.Date timeModified; + + /** + * The date and time the Private Endpoint was updated, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.29). + * + * @return the value + */ + public java.util.Date getTimeModified() { + return timeModified; + } + + /** + * A prefix to use for the private endpoint. The customer VCN's DNS records are updated with + * this prefix. The prefix input from the customer will be the first sub-domain in the + * endpointFqdn. Example: If the prefix chosen is "abc", then the endpointFqdn will be + * 'abc.private.objectstorage..oraclecloud.com' + */ + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + private final String prefix; + + /** + * A prefix to use for the private endpoint. The customer VCN's DNS records are updated with + * this prefix. The prefix input from the customer will be the first sub-domain in the + * endpointFqdn. Example: If the prefix chosen is "abc", then the endpointFqdn will be + * 'abc.private.objectstorage..oraclecloud.com' + * + * @return the value + */ + public String getPrefix() { + return prefix; + } + + @com.fasterxml.jackson.annotation.JsonProperty("fqdns") + private final Fqdns fqdns; + + public Fqdns getFqdns() { + return fqdns; + } + + /** The entity tag for the Private Endpoint. */ + @com.fasterxml.jackson.annotation.JsonProperty("etag") + private final String etag; + + /** + * The entity tag for the Private Endpoint. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** The summaries of Private Endpoints' lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final PrivateEndpoint.LifecycleState lifecycleState; + + /** + * The summaries of Private Endpoints' lifecycle state. + * + * @return the value + */ + public PrivateEndpoint.LifecycleState getLifecycleState() { + return lifecycleState; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PrivateEndpointSummary("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", namespace=").append(String.valueOf(this.namespace)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", createdBy=").append(String.valueOf(this.createdBy)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeModified=").append(String.valueOf(this.timeModified)); + sb.append(", prefix=").append(String.valueOf(this.prefix)); + sb.append(", fqdns=").append(String.valueOf(this.fqdns)); + sb.append(", etag=").append(String.valueOf(this.etag)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PrivateEndpointSummary)) { + return false; + } + + PrivateEndpointSummary other = (PrivateEndpointSummary) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.namespace, other.namespace) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.createdBy, other.createdBy) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeModified, other.timeModified) + && java.util.Objects.equals(this.prefix, other.prefix) + && java.util.Objects.equals(this.fqdns, other.fqdns) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.namespace == null ? 43 : this.namespace.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.createdBy == null ? 43 : this.createdBy.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeModified == null ? 43 : this.timeModified.hashCode()); + result = (result * PRIME) + (this.prefix == null ? 43 : this.prefix.hashCode()); + result = (result * PRIME) + (this.fqdns == null ? 43 : this.fqdns.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/UpdatePrivateEndpointDetails.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/UpdatePrivateEndpointDetails.java new file mode 100644 index 00000000000..ec4bd0d9e0a --- /dev/null +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/UpdatePrivateEndpointDetails.java @@ -0,0 +1,334 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.objectstorage.model; + +/** + * Information that can be updated for a private endpoint.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdatePrivateEndpointDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdatePrivateEndpointDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "namespace", + "accessTargets", + "freeformTags", + "definedTags" + }) + public UpdatePrivateEndpointDetails( + String name, + String namespace, + java.util.List accessTargets, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.name = name; + this.namespace = namespace; + this.accessTargets = accessTargets; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * This name associated with the endpoint. Valid characters are uppercase or lowercase + * letters, numbers, hyphens, underscores, and periods. Example: my-new-private-endpoint1 + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * This name associated with the endpoint. Valid characters are uppercase or lowercase + * letters, numbers, hyphens, underscores, and periods. Example: my-new-private-endpoint1 + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** The Object Storage namespace which will associated with the private endpoint. */ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private String namespace; + + /** + * The Object Storage namespace which will associated with the private endpoint. + * + * @param namespace the value to set + * @return this builder + */ + public Builder namespace(String namespace) { + this.namespace = namespace; + this.__explicitlySet__.add("namespace"); + return this; + } + /** A list of targets that can be accessed by the private endpoint. */ + @com.fasterxml.jackson.annotation.JsonProperty("accessTargets") + private java.util.List accessTargets; + + /** + * A list of targets that can be accessed by the private endpoint. + * + * @param accessTargets the value to set + * @return this builder + */ + public Builder accessTargets(java.util.List accessTargets) { + this.accessTargets = accessTargets; + this.__explicitlySet__.add("accessTargets"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Department": "Finance"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Operations": {"CostCenter": "42"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdatePrivateEndpointDetails build() { + UpdatePrivateEndpointDetails model = + new UpdatePrivateEndpointDetails( + this.name, + this.namespace, + this.accessTargets, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdatePrivateEndpointDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("namespace")) { + this.namespace(model.getNamespace()); + } + if (model.wasPropertyExplicitlySet("accessTargets")) { + this.accessTargets(model.getAccessTargets()); + } + 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 name associated with the endpoint. Valid characters are uppercase or lowercase letters, + * numbers, hyphens, underscores, and periods. Example: my-new-private-endpoint1 + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * This name associated with the endpoint. Valid characters are uppercase or lowercase letters, + * numbers, hyphens, underscores, and periods. Example: my-new-private-endpoint1 + * + * @return the value + */ + public String getName() { + return name; + } + + /** The Object Storage namespace which will associated with the private endpoint. */ + @com.fasterxml.jackson.annotation.JsonProperty("namespace") + private final String namespace; + + /** + * The Object Storage namespace which will associated with the private endpoint. + * + * @return the value + */ + public String getNamespace() { + return namespace; + } + + /** A list of targets that can be accessed by the private endpoint. */ + @com.fasterxml.jackson.annotation.JsonProperty("accessTargets") + private final java.util.List accessTargets; + + /** + * A list of targets that can be accessed by the private endpoint. + * + * @return the value + */ + public java.util.List getAccessTargets() { + return accessTargets; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Department": "Finance"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Operations": {"CostCenter": "42"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). Example: + * {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdatePrivateEndpointDetails("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", namespace=").append(String.valueOf(this.namespace)); + sb.append(", accessTargets=").append(String.valueOf(this.accessTargets)); + 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 UpdatePrivateEndpointDetails)) { + return false; + } + + UpdatePrivateEndpointDetails other = (UpdatePrivateEndpointDetails) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.namespace, other.namespace) + && java.util.Objects.equals(this.accessTargets, other.accessTargets) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.namespace == null ? 43 : this.namespace.hashCode()); + result = + (result * PRIME) + + (this.accessTargets == null ? 43 : this.accessTargets.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-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/WorkRequest.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/WorkRequest.java index b8288a346c7..6c530576898 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/WorkRequest.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/WorkRequest.java @@ -281,6 +281,9 @@ public Builder toBuilder() { public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { CopyObject("COPY_OBJECT"), Reencrypt("REENCRYPT"), + PrivateEndpointCreate("PRIVATE_ENDPOINT_CREATE"), + PrivateEndpointUpdate("PRIVATE_ENDPOINT_UPDATE"), + PrivateEndpointDelete("PRIVATE_ENDPOINT_DELETE"), /** * This value is used if a service returns a value for this enum that is not recognized by diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/WorkRequestResourceMetadataKey.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/WorkRequestResourceMetadataKey.java index 16da61074c8..8ef0c372f45 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/WorkRequestResourceMetadataKey.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/WorkRequestResourceMetadataKey.java @@ -11,6 +11,7 @@ public enum WorkRequestResourceMetadataKey implements com.oracle.bmc.http.intern Namespace("NAMESPACE"), Bucket("BUCKET"), Object("OBJECT"), + PrivateEndpointName("PRIVATE_ENDPOINT_NAME"), ; private final String value; diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/WorkRequestSummary.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/WorkRequestSummary.java index 71e6d5c6073..ebf5974186c 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/WorkRequestSummary.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/WorkRequestSummary.java @@ -283,6 +283,9 @@ public Builder toBuilder() { public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { CopyObject("COPY_OBJECT"), Reencrypt("REENCRYPT"), + PrivateEndpointCreate("PRIVATE_ENDPOINT_CREATE"), + PrivateEndpointUpdate("PRIVATE_ENDPOINT_UPDATE"), + PrivateEndpointDelete("PRIVATE_ENDPOINT_DELETE"), /** * This value is used if a service returns a value for this enum that is not recognized by diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/CreatePrivateEndpointRequest.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/CreatePrivateEndpointRequest.java new file mode 100644 index 00000000000..aed209c306b --- /dev/null +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/CreatePrivateEndpointRequest.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.objectstorage.requests; + +import com.oracle.bmc.objectstorage.model.*; +/** + * Example: Click here to see how to use + * CreatePrivateEndpointRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class CreatePrivateEndpointRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.objectstorage.model.CreatePrivateEndpointDetails> { + + /** The Object Storage namespace used for the request. */ + private String namespaceName; + + /** The Object Storage namespace used for the request. */ + public String getNamespaceName() { + return namespaceName; + } + /** Details to create a private endpoint. */ + private com.oracle.bmc.objectstorage.model.CreatePrivateEndpointDetails + createPrivateEndpointDetails; + + /** Details to create a private endpoint. */ + public com.oracle.bmc.objectstorage.model.CreatePrivateEndpointDetails + getCreatePrivateEndpointDetails() { + return createPrivateEndpointDetails; + } + /** The client request ID for tracing. */ + private String opcClientRequestId; + + /** The client request ID for tracing. */ + public String getOpcClientRequestId() { + return opcClientRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.objectstorage.model.CreatePrivateEndpointDetails getBody$() { + return createPrivateEndpointDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreatePrivateEndpointRequest, + com.oracle.bmc.objectstorage.model.CreatePrivateEndpointDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The Object Storage namespace used for the request. */ + private String namespaceName = null; + + /** + * The Object Storage namespace used for the request. + * + * @param namespaceName the value to set + * @return this builder instance + */ + public Builder namespaceName(String namespaceName) { + this.namespaceName = namespaceName; + return this; + } + + /** Details to create a private endpoint. */ + private com.oracle.bmc.objectstorage.model.CreatePrivateEndpointDetails + createPrivateEndpointDetails = null; + + /** + * Details to create a private endpoint. + * + * @param createPrivateEndpointDetails the value to set + * @return this builder instance + */ + public Builder createPrivateEndpointDetails( + com.oracle.bmc.objectstorage.model.CreatePrivateEndpointDetails + createPrivateEndpointDetails) { + this.createPrivateEndpointDetails = createPrivateEndpointDetails; + return this; + } + + /** The client request ID for tracing. */ + private String opcClientRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcClientRequestId the value to set + * @return this builder instance + */ + public Builder opcClientRequestId(String opcClientRequestId) { + this.opcClientRequestId = opcClientRequestId; + 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(CreatePrivateEndpointRequest o) { + namespaceName(o.getNamespaceName()); + createPrivateEndpointDetails(o.getCreatePrivateEndpointDetails()); + opcClientRequestId(o.getOpcClientRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreatePrivateEndpointRequest 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 CreatePrivateEndpointRequest + */ + public CreatePrivateEndpointRequest build() { + CreatePrivateEndpointRequest 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.objectstorage.model.CreatePrivateEndpointDetails body) { + createPrivateEndpointDetails(body); + return this; + } + + /** + * Build the instance of CreatePrivateEndpointRequest 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 CreatePrivateEndpointRequest + */ + public CreatePrivateEndpointRequest buildWithoutInvocationCallback() { + CreatePrivateEndpointRequest request = new CreatePrivateEndpointRequest(); + request.namespaceName = namespaceName; + request.createPrivateEndpointDetails = createPrivateEndpointDetails; + request.opcClientRequestId = opcClientRequestId; + return request; + // new CreatePrivateEndpointRequest(namespaceName, createPrivateEndpointDetails, + // opcClientRequestId); + } + } + + /** + * 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() + .namespaceName(namespaceName) + .createPrivateEndpointDetails(createPrivateEndpointDetails) + .opcClientRequestId(opcClientRequestId); + } + + /** + * 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(",namespaceName=").append(String.valueOf(this.namespaceName)); + sb.append(",createPrivateEndpointDetails=") + .append(String.valueOf(this.createPrivateEndpointDetails)); + sb.append(",opcClientRequestId=").append(String.valueOf(this.opcClientRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreatePrivateEndpointRequest)) { + return false; + } + + CreatePrivateEndpointRequest other = (CreatePrivateEndpointRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.namespaceName, other.namespaceName) + && java.util.Objects.equals( + this.createPrivateEndpointDetails, other.createPrivateEndpointDetails) + && java.util.Objects.equals(this.opcClientRequestId, other.opcClientRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.namespaceName == null ? 43 : this.namespaceName.hashCode()); + result = + (result * PRIME) + + (this.createPrivateEndpointDetails == null + ? 43 + : this.createPrivateEndpointDetails.hashCode()); + result = + (result * PRIME) + + (this.opcClientRequestId == null + ? 43 + : this.opcClientRequestId.hashCode()); + return result; + } +} diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/DeletePrivateEndpointRequest.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/DeletePrivateEndpointRequest.java new file mode 100644 index 00000000000..cb642a00a67 --- /dev/null +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/DeletePrivateEndpointRequest.java @@ -0,0 +1,278 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.objectstorage.requests; + +import com.oracle.bmc.objectstorage.model.*; +/** + * Example: Click here to see how to use + * DeletePrivateEndpointRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class DeletePrivateEndpointRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The Object Storage namespace used for the request. */ + private String namespaceName; + + /** The Object Storage namespace used for the request. */ + public String getNamespaceName() { + return namespaceName; + } + /** + * The name of the private endpoint. Avoid entering confidential information. Example: {@code + * my-new-pe-1} + */ + private String peName; + + /** + * The name of the private endpoint. Avoid entering confidential information. Example: {@code + * my-new-pe-1} + */ + public String getPeName() { + return peName; + } + /** + * The entity tag (ETag) to match with the ETag of an existing resource. If the specified ETag + * matches the ETag of the existing resource, GET and HEAD requests will return the resource and + * PUT and POST requests will upload the resource. + */ + private String ifMatch; + + /** + * The entity tag (ETag) to match with the ETag of an existing resource. If the specified ETag + * matches the ETag of the existing resource, GET and HEAD requests will return the resource and + * PUT and POST requests will upload the resource. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcClientRequestId; + + /** The client request ID for tracing. */ + public String getOpcClientRequestId() { + return opcClientRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeletePrivateEndpointRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The Object Storage namespace used for the request. */ + private String namespaceName = null; + + /** + * The Object Storage namespace used for the request. + * + * @param namespaceName the value to set + * @return this builder instance + */ + public Builder namespaceName(String namespaceName) { + this.namespaceName = namespaceName; + return this; + } + + /** + * The name of the private endpoint. Avoid entering confidential information. Example: + * {@code my-new-pe-1} + */ + private String peName = null; + + /** + * The name of the private endpoint. Avoid entering confidential information. Example: + * {@code my-new-pe-1} + * + * @param peName the value to set + * @return this builder instance + */ + public Builder peName(String peName) { + this.peName = peName; + return this; + } + + /** + * The entity tag (ETag) to match with the ETag of an existing resource. If the specified + * ETag matches the ETag of the existing resource, GET and HEAD requests will return the + * resource and PUT and POST requests will upload the resource. + */ + private String ifMatch = null; + + /** + * The entity tag (ETag) to match with the ETag of an existing resource. If the specified + * ETag matches the ETag of the existing resource, GET and HEAD requests will return the + * resource and PUT and POST requests will upload the resource. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcClientRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcClientRequestId the value to set + * @return this builder instance + */ + public Builder opcClientRequestId(String opcClientRequestId) { + this.opcClientRequestId = opcClientRequestId; + 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(DeletePrivateEndpointRequest o) { + namespaceName(o.getNamespaceName()); + peName(o.getPeName()); + ifMatch(o.getIfMatch()); + opcClientRequestId(o.getOpcClientRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeletePrivateEndpointRequest 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 DeletePrivateEndpointRequest + */ + public DeletePrivateEndpointRequest build() { + DeletePrivateEndpointRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeletePrivateEndpointRequest 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 DeletePrivateEndpointRequest + */ + public DeletePrivateEndpointRequest buildWithoutInvocationCallback() { + DeletePrivateEndpointRequest request = new DeletePrivateEndpointRequest(); + request.namespaceName = namespaceName; + request.peName = peName; + request.ifMatch = ifMatch; + request.opcClientRequestId = opcClientRequestId; + return request; + // new DeletePrivateEndpointRequest(namespaceName, peName, ifMatch, opcClientRequestId); + } + } + + /** + * 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() + .namespaceName(namespaceName) + .peName(peName) + .ifMatch(ifMatch) + .opcClientRequestId(opcClientRequestId); + } + + /** + * 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(",namespaceName=").append(String.valueOf(this.namespaceName)); + sb.append(",peName=").append(String.valueOf(this.peName)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcClientRequestId=").append(String.valueOf(this.opcClientRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeletePrivateEndpointRequest)) { + return false; + } + + DeletePrivateEndpointRequest other = (DeletePrivateEndpointRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.namespaceName, other.namespaceName) + && java.util.Objects.equals(this.peName, other.peName) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcClientRequestId, other.opcClientRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.namespaceName == null ? 43 : this.namespaceName.hashCode()); + result = (result * PRIME) + (this.peName == null ? 43 : this.peName.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcClientRequestId == null + ? 43 + : this.opcClientRequestId.hashCode()); + return result; + } +} diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/GetPrivateEndpointRequest.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/GetPrivateEndpointRequest.java new file mode 100644 index 00000000000..0861c395b65 --- /dev/null +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/GetPrivateEndpointRequest.java @@ -0,0 +1,322 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.objectstorage.requests; + +import com.oracle.bmc.objectstorage.model.*; +/** + * Example: Click here to see how to use GetPrivateEndpointRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class GetPrivateEndpointRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The Object Storage namespace used for the request. */ + private String namespaceName; + + /** The Object Storage namespace used for the request. */ + public String getNamespaceName() { + return namespaceName; + } + /** + * The name of the private endpoint. Avoid entering confidential information. Example: {@code + * my-new-pe-1} + */ + private String peName; + + /** + * The name of the private endpoint. Avoid entering confidential information. Example: {@code + * my-new-pe-1} + */ + public String getPeName() { + return peName; + } + /** + * The entity tag (ETag) to match with the ETag of an existing resource. If the specified ETag + * matches the ETag of the existing resource, GET and HEAD requests will return the resource and + * PUT and POST requests will upload the resource. + */ + private String ifMatch; + + /** + * The entity tag (ETag) to match with the ETag of an existing resource. If the specified ETag + * matches the ETag of the existing resource, GET and HEAD requests will return the resource and + * PUT and POST requests will upload the resource. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The entity tag (ETag) to avoid matching. Wildcards ('*') are not allowed. If the specified + * ETag does not match the ETag of the existing resource, the request returns the expected + * response. If the ETag matches the ETag of the existing resource, the request returns an HTTP + * 304 status without a response body. + */ + private String ifNoneMatch; + + /** + * The entity tag (ETag) to avoid matching. Wildcards ('*') are not allowed. If the specified + * ETag does not match the ETag of the existing resource, the request returns the expected + * response. If the ETag matches the ETag of the existing resource, the request returns an HTTP + * 304 status without a response body. + */ + public String getIfNoneMatch() { + return ifNoneMatch; + } + /** The client request ID for tracing. */ + private String opcClientRequestId; + + /** The client request ID for tracing. */ + public String getOpcClientRequestId() { + return opcClientRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetPrivateEndpointRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The Object Storage namespace used for the request. */ + private String namespaceName = null; + + /** + * The Object Storage namespace used for the request. + * + * @param namespaceName the value to set + * @return this builder instance + */ + public Builder namespaceName(String namespaceName) { + this.namespaceName = namespaceName; + return this; + } + + /** + * The name of the private endpoint. Avoid entering confidential information. Example: + * {@code my-new-pe-1} + */ + private String peName = null; + + /** + * The name of the private endpoint. Avoid entering confidential information. Example: + * {@code my-new-pe-1} + * + * @param peName the value to set + * @return this builder instance + */ + public Builder peName(String peName) { + this.peName = peName; + return this; + } + + /** + * The entity tag (ETag) to match with the ETag of an existing resource. If the specified + * ETag matches the ETag of the existing resource, GET and HEAD requests will return the + * resource and PUT and POST requests will upload the resource. + */ + private String ifMatch = null; + + /** + * The entity tag (ETag) to match with the ETag of an existing resource. If the specified + * ETag matches the ETag of the existing resource, GET and HEAD requests will return the + * resource and PUT and POST requests will upload the resource. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The entity tag (ETag) to avoid matching. Wildcards ('*') are not allowed. If the + * specified ETag does not match the ETag of the existing resource, the request returns the + * expected response. If the ETag matches the ETag of the existing resource, the request + * returns an HTTP 304 status without a response body. + */ + private String ifNoneMatch = null; + + /** + * The entity tag (ETag) to avoid matching. Wildcards ('*') are not allowed. If the + * specified ETag does not match the ETag of the existing resource, the request returns the + * expected response. If the ETag matches the ETag of the existing resource, the request + * returns an HTTP 304 status without a response body. + * + * @param ifNoneMatch the value to set + * @return this builder instance + */ + public Builder ifNoneMatch(String ifNoneMatch) { + this.ifNoneMatch = ifNoneMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcClientRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcClientRequestId the value to set + * @return this builder instance + */ + public Builder opcClientRequestId(String opcClientRequestId) { + this.opcClientRequestId = opcClientRequestId; + 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(GetPrivateEndpointRequest o) { + namespaceName(o.getNamespaceName()); + peName(o.getPeName()); + ifMatch(o.getIfMatch()); + ifNoneMatch(o.getIfNoneMatch()); + opcClientRequestId(o.getOpcClientRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetPrivateEndpointRequest 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 GetPrivateEndpointRequest + */ + public GetPrivateEndpointRequest build() { + GetPrivateEndpointRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetPrivateEndpointRequest 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 GetPrivateEndpointRequest + */ + public GetPrivateEndpointRequest buildWithoutInvocationCallback() { + GetPrivateEndpointRequest request = new GetPrivateEndpointRequest(); + request.namespaceName = namespaceName; + request.peName = peName; + request.ifMatch = ifMatch; + request.ifNoneMatch = ifNoneMatch; + request.opcClientRequestId = opcClientRequestId; + return request; + // new GetPrivateEndpointRequest(namespaceName, peName, ifMatch, ifNoneMatch, + // opcClientRequestId); + } + } + + /** + * 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() + .namespaceName(namespaceName) + .peName(peName) + .ifMatch(ifMatch) + .ifNoneMatch(ifNoneMatch) + .opcClientRequestId(opcClientRequestId); + } + + /** + * 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(",namespaceName=").append(String.valueOf(this.namespaceName)); + sb.append(",peName=").append(String.valueOf(this.peName)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",ifNoneMatch=").append(String.valueOf(this.ifNoneMatch)); + sb.append(",opcClientRequestId=").append(String.valueOf(this.opcClientRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetPrivateEndpointRequest)) { + return false; + } + + GetPrivateEndpointRequest other = (GetPrivateEndpointRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.namespaceName, other.namespaceName) + && java.util.Objects.equals(this.peName, other.peName) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.ifNoneMatch, other.ifNoneMatch) + && java.util.Objects.equals(this.opcClientRequestId, other.opcClientRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.namespaceName == null ? 43 : this.namespaceName.hashCode()); + result = (result * PRIME) + (this.peName == null ? 43 : this.peName.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.ifNoneMatch == null ? 43 : this.ifNoneMatch.hashCode()); + result = + (result * PRIME) + + (this.opcClientRequestId == null + ? 43 + : this.opcClientRequestId.hashCode()); + return result; + } +} diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/ListObjectVersionsRequest.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/ListObjectVersionsRequest.java index 9984313d231..d74dac7642c 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/ListObjectVersionsRequest.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/ListObjectVersionsRequest.java @@ -40,17 +40,17 @@ public String getBucketName() { public String getPrefix() { return prefix; } - /** Object names returned by a list query must be greater or equal to this parameter. */ + /** Returns object names which are lexicographically greater than or equal to this parameter. */ private String start; - /** Object names returned by a list query must be greater or equal to this parameter. */ + /** Returns object names which are lexicographically greater than or equal to this parameter. */ public String getStart() { return start; } - /** Object names returned by a list query must be strictly less than this parameter. */ + /** Returns object names which are lexicographically strictly less than this parameter. */ private String end; - /** Object names returned by a list query must be strictly less than this parameter. */ + /** Returns object names which are lexicographically strictly less than this parameter. */ public String getEnd() { return end; } @@ -114,10 +114,10 @@ public String getFields() { public String getOpcClientRequestId() { return opcClientRequestId; } - /** Object names returned by a list query must be greater than this parameter. */ + /** Returns object names which are lexicographically strictly greater than this parameter. */ private String startAfter; - /** Object names returned by a list query must be greater than this parameter. */ + /** Returns object names which are lexicographically strictly greater than this parameter. */ public String getStartAfter() { return startAfter; } @@ -189,11 +189,13 @@ public Builder prefix(String prefix) { return this; } - /** Object names returned by a list query must be greater or equal to this parameter. */ + /** + * Returns object names which are lexicographically greater than or equal to this parameter. + */ private String start = null; /** - * Object names returned by a list query must be greater or equal to this parameter. + * Returns object names which are lexicographically greater than or equal to this parameter. * * @param start the value to set * @return this builder instance @@ -203,11 +205,11 @@ public Builder start(String start) { return this; } - /** Object names returned by a list query must be strictly less than this parameter. */ + /** Returns object names which are lexicographically strictly less than this parameter. */ private String end = null; /** - * Object names returned by a list query must be strictly less than this parameter. + * Returns object names which are lexicographically strictly less than this parameter. * * @param end the value to set * @return this builder instance @@ -301,11 +303,13 @@ public Builder opcClientRequestId(String opcClientRequestId) { return this; } - /** Object names returned by a list query must be greater than this parameter. */ + /** + * Returns object names which are lexicographically strictly greater than this parameter. + */ private String startAfter = null; /** - * Object names returned by a list query must be greater than this parameter. + * Returns object names which are lexicographically strictly greater than this parameter. * * @param startAfter the value to set * @return this builder instance diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/ListObjectsRequest.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/ListObjectsRequest.java index 1906000bbb9..eb617c9d169 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/ListObjectsRequest.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/ListObjectsRequest.java @@ -40,17 +40,17 @@ public String getBucketName() { public String getPrefix() { return prefix; } - /** Object names returned by a list query must be greater or equal to this parameter. */ + /** Returns object names which are lexicographically greater than or equal to this parameter. */ private String start; - /** Object names returned by a list query must be greater or equal to this parameter. */ + /** Returns object names which are lexicographically greater than or equal to this parameter. */ public String getStart() { return start; } - /** Object names returned by a list query must be strictly less than this parameter. */ + /** Returns object names which are lexicographically strictly less than this parameter. */ private String end; - /** Object names returned by a list query must be strictly less than this parameter. */ + /** Returns object names which are lexicographically strictly less than this parameter. */ public String getEnd() { return end; } @@ -114,10 +114,10 @@ public String getFields() { public String getOpcClientRequestId() { return opcClientRequestId; } - /** Object names returned by a list query must be greater than this parameter. */ + /** Returns object names which are lexicographically strictly greater than this parameter. */ private String startAfter; - /** Object names returned by a list query must be greater than this parameter. */ + /** Returns object names which are lexicographically strictly greater than this parameter. */ public String getStartAfter() { return startAfter; } @@ -174,11 +174,13 @@ public Builder prefix(String prefix) { return this; } - /** Object names returned by a list query must be greater or equal to this parameter. */ + /** + * Returns object names which are lexicographically greater than or equal to this parameter. + */ private String start = null; /** - * Object names returned by a list query must be greater or equal to this parameter. + * Returns object names which are lexicographically greater than or equal to this parameter. * * @param start the value to set * @return this builder instance @@ -188,11 +190,11 @@ public Builder start(String start) { return this; } - /** Object names returned by a list query must be strictly less than this parameter. */ + /** Returns object names which are lexicographically strictly less than this parameter. */ private String end = null; /** - * Object names returned by a list query must be strictly less than this parameter. + * Returns object names which are lexicographically strictly less than this parameter. * * @param end the value to set * @return this builder instance @@ -286,11 +288,13 @@ public Builder opcClientRequestId(String opcClientRequestId) { return this; } - /** Object names returned by a list query must be greater than this parameter. */ + /** + * Returns object names which are lexicographically strictly greater than this parameter. + */ private String startAfter = null; /** - * Object names returned by a list query must be greater than this parameter. + * Returns object names which are lexicographically strictly greater than this parameter. * * @param startAfter the value to set * @return this builder instance diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/ListPrivateEndpointsRequest.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/ListPrivateEndpointsRequest.java new file mode 100644 index 00000000000..7efaec4e17e --- /dev/null +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/ListPrivateEndpointsRequest.java @@ -0,0 +1,438 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.objectstorage.requests; + +import com.oracle.bmc.objectstorage.model.*; +/** + * Example: Click here to see how to use ListPrivateEndpointsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListPrivateEndpointsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The Object Storage namespace used for the request. */ + private String namespaceName; + + /** The Object Storage namespace used for the request. */ + public String getNamespaceName() { + return namespaceName; + } + /** The ID of the compartment in which to list buckets. */ + private String compartmentId; + + /** The ID of the compartment in which to list buckets. */ + 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; + } + /** + * For list pagination. The value of the {@code opc-next-page} response header from the previous + * "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page; + + /** + * For list pagination. The value of the {@code 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; + } + /** + * PrivateEndpoint summary in list of PrivateEndpoints includes the 'namespace', 'name', + * 'compartmentId', 'createdBy', 'timeCreated', 'timeModified' and 'etag' fields. This parameter + * can also include 'tags' (freeformTags and definedTags). The only supported value of this + * parameter is 'tags' for now. Example 'tags'. + */ + private java.util.List fields; + + /** + * PrivateEndpoint summary in list of PrivateEndpoints includes the 'namespace', 'name', + * 'compartmentId', 'createdBy', 'timeCreated', 'timeModified' and 'etag' fields. This parameter + * can also include 'tags' (freeformTags and definedTags). The only supported value of this + * parameter is 'tags' for now. Example 'tags'. + */ + public enum Fields implements com.oracle.bmc.http.internal.BmcEnum { + Tags("tags"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fields v : Fields.values()) { + map.put(v.getValue(), v); + } + } + + Fields(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fields create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Fields: " + key); + } + }; + + /** + * PrivateEndpoint summary in list of PrivateEndpoints includes the 'namespace', 'name', + * 'compartmentId', 'createdBy', 'timeCreated', 'timeModified' and 'etag' fields. This parameter + * can also include 'tags' (freeformTags and definedTags). The only supported value of this + * parameter is 'tags' for now. Example 'tags'. + */ + public java.util.List getFields() { + return fields; + } + /** The client request ID for tracing. */ + private String opcClientRequestId; + + /** The client request ID for tracing. */ + public String getOpcClientRequestId() { + return opcClientRequestId; + } + /** The lifecycle state of the Private Endpoint */ + private com.oracle.bmc.objectstorage.model.PrivateEndpoint.LifecycleState lifecycleState; + + /** The lifecycle state of the Private Endpoint */ + public com.oracle.bmc.objectstorage.model.PrivateEndpoint.LifecycleState getLifecycleState() { + return lifecycleState; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListPrivateEndpointsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The Object Storage namespace used for the request. */ + private String namespaceName = null; + + /** + * The Object Storage namespace used for the request. + * + * @param namespaceName the value to set + * @return this builder instance + */ + public Builder namespaceName(String namespaceName) { + this.namespaceName = namespaceName; + return this; + } + + /** The ID of the compartment in which to list buckets. */ + private String compartmentId = null; + + /** + * The ID of the compartment in which to list buckets. + * + * @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; + } + + /** + * For list pagination. The value of the {@code opc-next-page} response header from the + * previous "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page = null; + + /** + * For list pagination. The value of the {@code 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; + } + + /** + * PrivateEndpoint summary in list of PrivateEndpoints includes the 'namespace', 'name', + * 'compartmentId', 'createdBy', 'timeCreated', 'timeModified' and 'etag' fields. This + * parameter can also include 'tags' (freeformTags and definedTags). The only supported + * value of this parameter is 'tags' for now. Example 'tags'. + */ + private java.util.List fields = null; + + /** + * PrivateEndpoint summary in list of PrivateEndpoints includes the 'namespace', 'name', + * 'compartmentId', 'createdBy', 'timeCreated', 'timeModified' and 'etag' fields. This + * parameter can also include 'tags' (freeformTags and definedTags). The only supported + * value of this parameter is 'tags' for now. Example 'tags'. + * + * @param fields the value to set + * @return this builder instance + */ + public Builder fields(java.util.List fields) { + this.fields = fields; + return this; + } + + /** + * Singular setter. PrivateEndpoint summary in list of PrivateEndpoints includes the + * 'namespace', 'name', 'compartmentId', 'createdBy', 'timeCreated', 'timeModified' and + * 'etag' fields. This parameter can also include 'tags' (freeformTags and definedTags). The + * only supported value of this parameter is 'tags' for now. Example 'tags'. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder fields(Fields singularValue) { + return this.fields(java.util.Arrays.asList(singularValue)); + } + + /** The client request ID for tracing. */ + private String opcClientRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcClientRequestId the value to set + * @return this builder instance + */ + public Builder opcClientRequestId(String opcClientRequestId) { + this.opcClientRequestId = opcClientRequestId; + return this; + } + + /** The lifecycle state of the Private Endpoint */ + private com.oracle.bmc.objectstorage.model.PrivateEndpoint.LifecycleState lifecycleState = + null; + + /** + * The lifecycle state of the Private Endpoint + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.objectstorage.model.PrivateEndpoint.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + 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(ListPrivateEndpointsRequest o) { + namespaceName(o.getNamespaceName()); + compartmentId(o.getCompartmentId()); + limit(o.getLimit()); + page(o.getPage()); + fields(o.getFields()); + opcClientRequestId(o.getOpcClientRequestId()); + lifecycleState(o.getLifecycleState()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListPrivateEndpointsRequest 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 ListPrivateEndpointsRequest + */ + public ListPrivateEndpointsRequest build() { + ListPrivateEndpointsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListPrivateEndpointsRequest 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 ListPrivateEndpointsRequest + */ + public ListPrivateEndpointsRequest buildWithoutInvocationCallback() { + ListPrivateEndpointsRequest request = new ListPrivateEndpointsRequest(); + request.namespaceName = namespaceName; + request.compartmentId = compartmentId; + request.limit = limit; + request.page = page; + request.fields = fields; + request.opcClientRequestId = opcClientRequestId; + request.lifecycleState = lifecycleState; + return request; + // new ListPrivateEndpointsRequest(namespaceName, compartmentId, limit, page, fields, + // opcClientRequestId, lifecycleState); + } + } + + /** + * 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() + .namespaceName(namespaceName) + .compartmentId(compartmentId) + .limit(limit) + .page(page) + .fields(fields) + .opcClientRequestId(opcClientRequestId) + .lifecycleState(lifecycleState); + } + + /** + * 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(",namespaceName=").append(String.valueOf(this.namespaceName)); + 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(",fields=").append(String.valueOf(this.fields)); + sb.append(",opcClientRequestId=").append(String.valueOf(this.opcClientRequestId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListPrivateEndpointsRequest)) { + return false; + } + + ListPrivateEndpointsRequest other = (ListPrivateEndpointsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.namespaceName, other.namespaceName) + && 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.fields, other.fields) + && java.util.Objects.equals(this.opcClientRequestId, other.opcClientRequestId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.namespaceName == null ? 43 : this.namespaceName.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.fields == null ? 43 : this.fields.hashCode()); + result = + (result * PRIME) + + (this.opcClientRequestId == null + ? 43 + : this.opcClientRequestId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + return result; + } +} diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/ListWorkRequestsRequest.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/ListWorkRequestsRequest.java index c5cf02cba85..a5987c2e259 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/ListWorkRequestsRequest.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/ListWorkRequestsRequest.java @@ -20,6 +20,13 @@ public class ListWorkRequestsRequest extends com.oracle.bmc.requests.BmcRequest< public String getCompartmentId() { return compartmentId; } + /** The name of the privateEndpoint for which to list work requests. */ + private String privateEndpointName; + + /** The name of the privateEndpoint for which to list work requests. */ + public String getPrivateEndpointName() { + return privateEndpointName; + } /** The client request ID for tracing. */ private String opcClientRequestId; @@ -78,6 +85,20 @@ public Builder compartmentId(String compartmentId) { return this; } + /** The name of the privateEndpoint for which to list work requests. */ + private String privateEndpointName = null; + + /** + * The name of the privateEndpoint for which to list work requests. + * + * @param privateEndpointName the value to set + * @return this builder instance + */ + public Builder privateEndpointName(String privateEndpointName) { + this.privateEndpointName = privateEndpointName; + return this; + } + /** The client request ID for tracing. */ private String opcClientRequestId = null; @@ -163,6 +184,7 @@ public Builder retryConfiguration( */ public Builder copy(ListWorkRequestsRequest o) { compartmentId(o.getCompartmentId()); + privateEndpointName(o.getPrivateEndpointName()); opcClientRequestId(o.getOpcClientRequestId()); page(o.getPage()); limit(o.getLimit()); @@ -201,11 +223,13 @@ public ListWorkRequestsRequest build() { public ListWorkRequestsRequest buildWithoutInvocationCallback() { ListWorkRequestsRequest request = new ListWorkRequestsRequest(); request.compartmentId = compartmentId; + request.privateEndpointName = privateEndpointName; request.opcClientRequestId = opcClientRequestId; request.page = page; request.limit = limit; return request; - // new ListWorkRequestsRequest(compartmentId, opcClientRequestId, page, limit); + // new ListWorkRequestsRequest(compartmentId, privateEndpointName, opcClientRequestId, + // page, limit); } } @@ -217,6 +241,7 @@ public ListWorkRequestsRequest buildWithoutInvocationCallback() { public Builder toBuilder() { return new Builder() .compartmentId(compartmentId) + .privateEndpointName(privateEndpointName) .opcClientRequestId(opcClientRequestId) .page(page) .limit(limit); @@ -237,6 +262,7 @@ public String toString() { sb.append("("); sb.append("super=").append(super.toString()); sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",privateEndpointName=").append(String.valueOf(this.privateEndpointName)); sb.append(",opcClientRequestId=").append(String.valueOf(this.opcClientRequestId)); sb.append(",page=").append(String.valueOf(this.page)); sb.append(",limit=").append(String.valueOf(this.limit)); @@ -256,6 +282,7 @@ public boolean equals(Object o) { ListWorkRequestsRequest other = (ListWorkRequestsRequest) o; return super.equals(o) && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.privateEndpointName, other.privateEndpointName) && java.util.Objects.equals(this.opcClientRequestId, other.opcClientRequestId) && java.util.Objects.equals(this.page, other.page) && java.util.Objects.equals(this.limit, other.limit); @@ -268,6 +295,11 @@ public int hashCode() { result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.privateEndpointName == null + ? 43 + : this.privateEndpointName.hashCode()); result = (result * PRIME) + (this.opcClientRequestId == null diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/PutObjectRequest.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/PutObjectRequest.java index 700f23056bc..cba25d077b9 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/PutObjectRequest.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/PutObjectRequest.java @@ -116,7 +116,7 @@ public String getExpect() { return expect; } /** - * The optional base-64 header that defines the encoded MD5 hash of the body. If the optional + * The optional header that defines the base64-encoded MD5 hash of the body. If the optional * Content-MD5 header is present, Object Storage performs an integrity check on the body of the * HTTP request by computing the MD5 hash for the body and comparing it to the MD5 hash supplied * in the header. If the two hashes do not match, the object is rejected and an HTTP-400 @@ -128,7 +128,7 @@ public String getExpect() { private String contentMD5; /** - * The optional base-64 header that defines the encoded MD5 hash of the body. If the optional + * The optional header that defines the base64-encoded MD5 hash of the body. If the optional * Content-MD5 header is present, Object Storage performs an integrity check on the body of the * HTTP request by computing the MD5 hash for the body and comparing it to the MD5 hash supplied * in the header. If the two hashes do not match, the object is rejected and an HTTP-400 @@ -493,11 +493,11 @@ public Builder expect(String expect) { } /** - * The optional base-64 header that defines the encoded MD5 hash of the body. If the - * optional Content-MD5 header is present, Object Storage performs an integrity check on the - * body of the HTTP request by computing the MD5 hash for the body and comparing it to the - * MD5 hash supplied in the header. If the two hashes do not match, the object is rejected - * and an HTTP-400 Unmatched Content MD5 error is returned with the message: + * The optional header that defines the base64-encoded MD5 hash of the body. If the optional + * Content-MD5 header is present, Object Storage performs an integrity check on the body of + * the HTTP request by computing the MD5 hash for the body and comparing it to the MD5 hash + * supplied in the header. If the two hashes do not match, the object is rejected and an + * HTTP-400 Unmatched Content MD5 error is returned with the message: * *

"The computed MD5 of the request body (ACTUAL_MD5) does not match the Content-MD5 * header (HEADER_MD5)" @@ -505,11 +505,11 @@ public Builder expect(String expect) { private String contentMD5 = null; /** - * The optional base-64 header that defines the encoded MD5 hash of the body. If the - * optional Content-MD5 header is present, Object Storage performs an integrity check on the - * body of the HTTP request by computing the MD5 hash for the body and comparing it to the - * MD5 hash supplied in the header. If the two hashes do not match, the object is rejected - * and an HTTP-400 Unmatched Content MD5 error is returned with the message: + * The optional header that defines the base64-encoded MD5 hash of the body. If the optional + * Content-MD5 header is present, Object Storage performs an integrity check on the body of + * the HTTP request by computing the MD5 hash for the body and comparing it to the MD5 hash + * supplied in the header. If the two hashes do not match, the object is rejected and an + * HTTP-400 Unmatched Content MD5 error is returned with the message: * *

"The computed MD5 of the request body (ACTUAL_MD5) does not match the Content-MD5 * header (HEADER_MD5)" diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/RestoreObjectsRequest.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/RestoreObjectsRequest.java index db75e016862..1d6c031717f 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/RestoreObjectsRequest.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/RestoreObjectsRequest.java @@ -35,10 +35,10 @@ public String getNamespaceName() { public String getBucketName() { return bucketName; } - /** Request to restore objects. */ + /** Request to restore object. */ private com.oracle.bmc.objectstorage.model.RestoreObjectsDetails restoreObjectsDetails; - /** Request to restore objects. */ + /** Request to restore object. */ public com.oracle.bmc.objectstorage.model.RestoreObjectsDetails getRestoreObjectsDetails() { return restoreObjectsDetails; } @@ -100,12 +100,12 @@ public Builder bucketName(String bucketName) { return this; } - /** Request to restore objects. */ + /** Request to restore object. */ private com.oracle.bmc.objectstorage.model.RestoreObjectsDetails restoreObjectsDetails = null; /** - * Request to restore objects. + * Request to restore object. * * @param restoreObjectsDetails the value to set * @return this builder instance diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/UpdatePrivateEndpointRequest.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/UpdatePrivateEndpointRequest.java new file mode 100644 index 00000000000..83eb22b4ea2 --- /dev/null +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/UpdatePrivateEndpointRequest.java @@ -0,0 +1,342 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.objectstorage.requests; + +import com.oracle.bmc.objectstorage.model.*; +/** + * Example: Click here to see how to use + * UpdatePrivateEndpointRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class UpdatePrivateEndpointRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.objectstorage.model.UpdatePrivateEndpointDetails> { + + /** The Object Storage namespace used for the request. */ + private String namespaceName; + + /** The Object Storage namespace used for the request. */ + public String getNamespaceName() { + return namespaceName; + } + /** + * The name of the private endpoint. Avoid entering confidential information. Example: {@code + * my-new-pe-1} + */ + private String peName; + + /** + * The name of the private endpoint. Avoid entering confidential information. Example: {@code + * my-new-pe-1} + */ + public String getPeName() { + return peName; + } + /** Request object for updating the Private Endpoint. */ + private com.oracle.bmc.objectstorage.model.UpdatePrivateEndpointDetails + updatePrivateEndpointDetails; + + /** Request object for updating the Private Endpoint. */ + public com.oracle.bmc.objectstorage.model.UpdatePrivateEndpointDetails + getUpdatePrivateEndpointDetails() { + return updatePrivateEndpointDetails; + } + /** The client request ID for tracing. */ + private String opcClientRequestId; + + /** The client request ID for tracing. */ + public String getOpcClientRequestId() { + return opcClientRequestId; + } + /** + * The entity tag (ETag) to match with the ETag of an existing resource. If the specified ETag + * matches the ETag of the existing resource, GET and HEAD requests will return the resource and + * PUT and POST requests will upload the resource. + */ + private String ifMatch; + + /** + * The entity tag (ETag) to match with the ETag of an existing resource. If the specified ETag + * matches the ETag of the existing resource, GET and HEAD requests will return the resource and + * PUT and POST requests will upload the resource. + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.objectstorage.model.UpdatePrivateEndpointDetails getBody$() { + return updatePrivateEndpointDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdatePrivateEndpointRequest, + com.oracle.bmc.objectstorage.model.UpdatePrivateEndpointDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The Object Storage namespace used for the request. */ + private String namespaceName = null; + + /** + * The Object Storage namespace used for the request. + * + * @param namespaceName the value to set + * @return this builder instance + */ + public Builder namespaceName(String namespaceName) { + this.namespaceName = namespaceName; + return this; + } + + /** + * The name of the private endpoint. Avoid entering confidential information. Example: + * {@code my-new-pe-1} + */ + private String peName = null; + + /** + * The name of the private endpoint. Avoid entering confidential information. Example: + * {@code my-new-pe-1} + * + * @param peName the value to set + * @return this builder instance + */ + public Builder peName(String peName) { + this.peName = peName; + return this; + } + + /** Request object for updating the Private Endpoint. */ + private com.oracle.bmc.objectstorage.model.UpdatePrivateEndpointDetails + updatePrivateEndpointDetails = null; + + /** + * Request object for updating the Private Endpoint. + * + * @param updatePrivateEndpointDetails the value to set + * @return this builder instance + */ + public Builder updatePrivateEndpointDetails( + com.oracle.bmc.objectstorage.model.UpdatePrivateEndpointDetails + updatePrivateEndpointDetails) { + this.updatePrivateEndpointDetails = updatePrivateEndpointDetails; + return this; + } + + /** The client request ID for tracing. */ + private String opcClientRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcClientRequestId the value to set + * @return this builder instance + */ + public Builder opcClientRequestId(String opcClientRequestId) { + this.opcClientRequestId = opcClientRequestId; + return this; + } + + /** + * The entity tag (ETag) to match with the ETag of an existing resource. If the specified + * ETag matches the ETag of the existing resource, GET and HEAD requests will return the + * resource and PUT and POST requests will upload the resource. + */ + private String ifMatch = null; + + /** + * The entity tag (ETag) to match with the ETag of an existing resource. If the specified + * ETag matches the ETag of the existing resource, GET and HEAD requests will return the + * resource and PUT and POST requests will upload the resource. + * + * @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(UpdatePrivateEndpointRequest o) { + namespaceName(o.getNamespaceName()); + peName(o.getPeName()); + updatePrivateEndpointDetails(o.getUpdatePrivateEndpointDetails()); + opcClientRequestId(o.getOpcClientRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdatePrivateEndpointRequest 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 UpdatePrivateEndpointRequest + */ + public UpdatePrivateEndpointRequest build() { + UpdatePrivateEndpointRequest 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.objectstorage.model.UpdatePrivateEndpointDetails body) { + updatePrivateEndpointDetails(body); + return this; + } + + /** + * Build the instance of UpdatePrivateEndpointRequest 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 UpdatePrivateEndpointRequest + */ + public UpdatePrivateEndpointRequest buildWithoutInvocationCallback() { + UpdatePrivateEndpointRequest request = new UpdatePrivateEndpointRequest(); + request.namespaceName = namespaceName; + request.peName = peName; + request.updatePrivateEndpointDetails = updatePrivateEndpointDetails; + request.opcClientRequestId = opcClientRequestId; + request.ifMatch = ifMatch; + return request; + // new UpdatePrivateEndpointRequest(namespaceName, peName, updatePrivateEndpointDetails, + // opcClientRequestId, 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() + .namespaceName(namespaceName) + .peName(peName) + .updatePrivateEndpointDetails(updatePrivateEndpointDetails) + .opcClientRequestId(opcClientRequestId) + .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(",namespaceName=").append(String.valueOf(this.namespaceName)); + sb.append(",peName=").append(String.valueOf(this.peName)); + sb.append(",updatePrivateEndpointDetails=") + .append(String.valueOf(this.updatePrivateEndpointDetails)); + sb.append(",opcClientRequestId=").append(String.valueOf(this.opcClientRequestId)); + 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 UpdatePrivateEndpointRequest)) { + return false; + } + + UpdatePrivateEndpointRequest other = (UpdatePrivateEndpointRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.namespaceName, other.namespaceName) + && java.util.Objects.equals(this.peName, other.peName) + && java.util.Objects.equals( + this.updatePrivateEndpointDetails, other.updatePrivateEndpointDetails) + && java.util.Objects.equals(this.opcClientRequestId, other.opcClientRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.namespaceName == null ? 43 : this.namespaceName.hashCode()); + result = (result * PRIME) + (this.peName == null ? 43 : this.peName.hashCode()); + result = + (result * PRIME) + + (this.updatePrivateEndpointDetails == null + ? 43 + : this.updatePrivateEndpointDetails.hashCode()); + result = + (result * PRIME) + + (this.opcClientRequestId == null + ? 43 + : this.opcClientRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/UploadPartRequest.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/UploadPartRequest.java index 53503fa3171..8379bc4412d 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/UploadPartRequest.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/UploadPartRequest.java @@ -130,7 +130,7 @@ public String getExpect() { return expect; } /** - * The optional base-64 header that defines the encoded MD5 hash of the body. If the optional + * The optional header that defines the base64-encoded MD5 hash of the body. If the optional * Content-MD5 header is present, Object Storage performs an integrity check on the body of the * HTTP request by computing the MD5 hash for the body and comparing it to the MD5 hash supplied * in the header. If the two hashes do not match, the object is rejected and an HTTP-400 @@ -142,7 +142,7 @@ public String getExpect() { private String contentMD5; /** - * The optional base-64 header that defines the encoded MD5 hash of the body. If the optional + * The optional header that defines the base64-encoded MD5 hash of the body. If the optional * Content-MD5 header is present, Object Storage performs an integrity check on the body of the * HTTP request by computing the MD5 hash for the body and comparing it to the MD5 hash supplied * in the header. If the two hashes do not match, the object is rejected and an HTTP-400 @@ -422,11 +422,11 @@ public Builder expect(String expect) { } /** - * The optional base-64 header that defines the encoded MD5 hash of the body. If the - * optional Content-MD5 header is present, Object Storage performs an integrity check on the - * body of the HTTP request by computing the MD5 hash for the body and comparing it to the - * MD5 hash supplied in the header. If the two hashes do not match, the object is rejected - * and an HTTP-400 Unmatched Content MD5 error is returned with the message: + * The optional header that defines the base64-encoded MD5 hash of the body. If the optional + * Content-MD5 header is present, Object Storage performs an integrity check on the body of + * the HTTP request by computing the MD5 hash for the body and comparing it to the MD5 hash + * supplied in the header. If the two hashes do not match, the object is rejected and an + * HTTP-400 Unmatched Content MD5 error is returned with the message: * *

"The computed MD5 of the request body (ACTUAL_MD5) does not match the Content-MD5 * header (HEADER_MD5)" @@ -434,11 +434,11 @@ public Builder expect(String expect) { private String contentMD5 = null; /** - * The optional base-64 header that defines the encoded MD5 hash of the body. If the - * optional Content-MD5 header is present, Object Storage performs an integrity check on the - * body of the HTTP request by computing the MD5 hash for the body and comparing it to the - * MD5 hash supplied in the header. If the two hashes do not match, the object is rejected - * and an HTTP-400 Unmatched Content MD5 error is returned with the message: + * The optional header that defines the base64-encoded MD5 hash of the body. If the optional + * Content-MD5 header is present, Object Storage performs an integrity check on the body of + * the HTTP request by computing the MD5 hash for the body and comparing it to the MD5 hash + * supplied in the header. If the two hashes do not match, the object is rejected and an + * HTTP-400 Unmatched Content MD5 error is returned with the message: * *

"The computed MD5 of the request body (ACTUAL_MD5) does not match the Content-MD5 * header (HEADER_MD5)" diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/CommitMultipartUploadResponse.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/CommitMultipartUploadResponse.java index 6e3307cc892..578e2c3cec5 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/CommitMultipartUploadResponse.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/CommitMultipartUploadResponse.java @@ -41,20 +41,20 @@ public String getOpcRequestId() { } /** - * Base-64 representation of the multipart object hash. The multipart object hash is calculated - * by taking the MD5 hashes of the parts passed to this call, concatenating the binary - * representation of those hashes in order of their part numbers, and then calculating the MD5 - * hash of the concatenated values. The multipart object hash is followed by a hyphen and the - * total number of parts (for example, '-6'). + * Base-64 representation of the multipart object MD5 hash. The multipart object hash is + * calculated by taking the MD5 hashes of the parts passed to this call, concatenating the + * binary representation of those hashes in order of their part numbers, and then calculating + * the MD5 hash of the concatenated values. The multipart object hash is followed by a hyphen + * and the total number of parts (for example, '-6'). */ private String opcMultipartMd5; /** - * Base-64 representation of the multipart object hash. The multipart object hash is calculated - * by taking the MD5 hashes of the parts passed to this call, concatenating the binary - * representation of those hashes in order of their part numbers, and then calculating the MD5 - * hash of the concatenated values. The multipart object hash is followed by a hyphen and the - * total number of parts (for example, '-6'). + * Base-64 representation of the multipart object MD5 hash. The multipart object hash is + * calculated by taking the MD5 hashes of the parts passed to this call, concatenating the + * binary representation of those hashes in order of their part numbers, and then calculating + * the MD5 hash of the concatenated values. The multipart object hash is followed by a hyphen + * and the total number of parts (for example, '-6'). * * @return the value */ @@ -185,7 +185,7 @@ public Builder opcRequestId(String opcRequestId) { } /** - * Base-64 representation of the multipart object hash. The multipart object hash is + * Base-64 representation of the multipart object MD5 hash. The multipart object hash is * calculated by taking the MD5 hashes of the parts passed to this call, concatenating the * binary representation of those hashes in order of their part numbers, and then * calculating the MD5 hash of the concatenated values. The multipart object hash is @@ -194,7 +194,7 @@ public Builder opcRequestId(String opcRequestId) { private String opcMultipartMd5; /** - * Base-64 representation of the multipart object hash. The multipart object hash is + * Base-64 representation of the multipart object MD5 hash. The multipart object hash is * calculated by taking the MD5 hashes of the parts passed to this call, concatenating the * binary representation of those hashes in order of their part numbers, and then * calculating the MD5 hash of the concatenated values. The multipart object hash is diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/CreatePrivateEndpointResponse.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/CreatePrivateEndpointResponse.java new file mode 100644 index 00000000000..8c1b23f7682 --- /dev/null +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/CreatePrivateEndpointResponse.java @@ -0,0 +1,234 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.objectstorage.responses; + +import com.oracle.bmc.objectstorage.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class CreatePrivateEndpointResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous request. If you need to contact Oracle + * about a particular request, provide this request ID. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. If you need to contact Oracle + * about a particular request, provide this request ID. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide this request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Echoes back the value passed in the opc-client-request-id header, for use by clients when + * debugging. + */ + private String opcClientRequestId; + + /** + * Echoes back the value passed in the opc-client-request-id header, for use by clients when + * debugging. + * + * @return the value + */ + public String getOpcClientRequestId() { + return opcClientRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId", + "opcClientRequestId" + }) + private CreatePrivateEndpointResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId, + String opcClientRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.opcClientRequestId = opcClientRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. If you need to contact + * Oracle about a particular request, provide this request ID. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. If you need to contact + * Oracle about a particular request, provide this request ID. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide this request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Echoes back the value passed in the opc-client-request-id header, for use by clients when + * debugging. + */ + private String opcClientRequestId; + + /** + * Echoes back the value passed in the opc-client-request-id header, for use by clients when + * debugging. + * + * @param opcClientRequestId the value to set + * @return this builder + */ + public Builder opcClientRequestId(String opcClientRequestId) { + this.opcClientRequestId = opcClientRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreatePrivateEndpointResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + opcClientRequestId(o.getOpcClientRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreatePrivateEndpointResponse build() { + return new CreatePrivateEndpointResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + opcRequestId, + opcClientRequestId); + } + } + + /** + * 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(",opcClientRequestId=").append(String.valueOf(opcClientRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreatePrivateEndpointResponse)) { + return false; + } + + CreatePrivateEndpointResponse other = (CreatePrivateEndpointResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcClientRequestId, other.opcClientRequestId); + } + + @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()); + result = + (result * PRIME) + + (this.opcClientRequestId == null + ? 43 + : this.opcClientRequestId.hashCode()); + return result; + } +} diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/DeletePrivateEndpointResponse.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/DeletePrivateEndpointResponse.java new file mode 100644 index 00000000000..f10c59ee521 --- /dev/null +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/DeletePrivateEndpointResponse.java @@ -0,0 +1,234 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.objectstorage.responses; + +import com.oracle.bmc.objectstorage.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class DeletePrivateEndpointResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous request. If you need to contact Oracle + * about a particular request, provide this request ID. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. If you need to contact Oracle + * about a particular request, provide this request ID. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Echoes back the value passed in the opc-client-request-id header, for use by clients when + * debugging. + */ + private String opcClientRequestId; + + /** + * Echoes back the value passed in the opc-client-request-id header, for use by clients when + * debugging. + * + * @return the value + */ + public String getOpcClientRequestId() { + return opcClientRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide this request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcClientRequestId", + "opcRequestId" + }) + private DeletePrivateEndpointResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcClientRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcClientRequestId = opcClientRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. If you need to contact + * Oracle about a particular request, provide this request ID. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. If you need to contact + * Oracle about a particular request, provide this request ID. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Echoes back the value passed in the opc-client-request-id header, for use by clients when + * debugging. + */ + private String opcClientRequestId; + + /** + * Echoes back the value passed in the opc-client-request-id header, for use by clients when + * debugging. + * + * @param opcClientRequestId the value to set + * @return this builder + */ + public Builder opcClientRequestId(String opcClientRequestId) { + this.opcClientRequestId = opcClientRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide this 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(DeletePrivateEndpointResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcClientRequestId(o.getOpcClientRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DeletePrivateEndpointResponse build() { + return new DeletePrivateEndpointResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + opcClientRequestId, + 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(",opcClientRequestId=").append(String.valueOf(opcClientRequestId)); + 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 DeletePrivateEndpointResponse)) { + return false; + } + + DeletePrivateEndpointResponse other = (DeletePrivateEndpointResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcClientRequestId, other.opcClientRequestId) + && 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.opcClientRequestId == null + ? 43 + : this.opcClientRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/GetPrivateEndpointResponse.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/GetPrivateEndpointResponse.java new file mode 100644 index 00000000000..fe36ced2794 --- /dev/null +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/GetPrivateEndpointResponse.java @@ -0,0 +1,307 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.objectstorage.responses; + +import com.oracle.bmc.objectstorage.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class GetPrivateEndpointResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Echoes back the value passed in the opc-client-request-id header, for use by clients when + * debugging. + */ + private String opcClientRequestId; + + /** + * Echoes back the value passed in the opc-client-request-id header, for use by clients when + * debugging. + * + * @return the value + */ + public String getOpcClientRequestId() { + return opcClientRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide this request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The entity tag (ETag) for the Private Endpoint. */ + private String eTag; + + /** + * The entity tag (ETag) for the Private Endpoint. + * + * @return the value + */ + public String getETag() { + return eTag; + } + + /** The returned PrivateEndpoint instance, or null if {@link #isNotModified()} is true. */ + private com.oracle.bmc.objectstorage.model.PrivateEndpoint privateEndpoint; + + /** + * The returned PrivateEndpoint instance, or null if {@link #isNotModified()} is true. + * + * @return the value + */ + public com.oracle.bmc.objectstorage.model.PrivateEndpoint getPrivateEndpoint() { + return privateEndpoint; + } + + /** + * Flag to indicate whether or not the object was modified. If this is true, the getter for the + * object itself will return null. Callers should check this if they specified one of the + * request params that might result in a conditional response (like 'if-match'/'if-none-match'). + */ + private boolean isNotModified; + + /** + * Flag to indicate whether or not the object was modified. If this is true, the getter for the + * object itself will return null. Callers should check this if they specified one of the + * request params that might result in a conditional response (like 'if-match'/'if-none-match'). + * + * @param true if the object was not modified + */ + public boolean isNotModified() { + return isNotModified; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcClientRequestId", + "opcRequestId", + "eTag", + "privateEndpoint", + "isNotModified" + }) + private GetPrivateEndpointResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcClientRequestId, + String opcRequestId, + String eTag, + com.oracle.bmc.objectstorage.model.PrivateEndpoint privateEndpoint, + boolean isNotModified) { + super(__httpStatusCode__, headers); + this.opcClientRequestId = opcClientRequestId; + this.opcRequestId = opcRequestId; + this.eTag = eTag; + this.privateEndpoint = privateEndpoint; + this.isNotModified = isNotModified; + } + + 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; + } + + /** + * Echoes back the value passed in the opc-client-request-id header, for use by clients when + * debugging. + */ + private String opcClientRequestId; + + /** + * Echoes back the value passed in the opc-client-request-id header, for use by clients when + * debugging. + * + * @param opcClientRequestId the value to set + * @return this builder + */ + public Builder opcClientRequestId(String opcClientRequestId) { + this.opcClientRequestId = opcClientRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide this request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The entity tag (ETag) for the Private Endpoint. */ + private String eTag; + + /** + * The entity tag (ETag) for the Private Endpoint. + * + * @param eTag the value to set + * @return this builder + */ + public Builder eTag(String eTag) { + this.eTag = eTag; + return this; + } + + /** The returned PrivateEndpoint instance, or null if {@link #isNotModified()} is true. */ + private com.oracle.bmc.objectstorage.model.PrivateEndpoint privateEndpoint; + + /** + * The returned PrivateEndpoint instance, or null if {@link #isNotModified()} is true. + * + * @param privateEndpoint the value to set + * @return this builder + */ + public Builder privateEndpoint( + com.oracle.bmc.objectstorage.model.PrivateEndpoint privateEndpoint) { + this.privateEndpoint = privateEndpoint; + return this; + } + + /** + * Flag to indicate whether or not the object was modified. If this is true, the getter for + * the object itself will return null. Callers should check this if they specified one of + * the request params that might result in a conditional response (like + * 'if-match'/'if-none-match'). + */ + private boolean isNotModified; + + /** + * Flag to indicate whether or not the object was modified. If this is true, the getter for + * the object itself will return null. Callers should check this if they specified one of + * the request params that might result in a conditional response (like + * 'if-match'/'if-none-match'). + * + * @param true if the object was not modified + */ + public Builder isNotModified(boolean isNotModified) { + this.isNotModified = isNotModified; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetPrivateEndpointResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcClientRequestId(o.getOpcClientRequestId()); + opcRequestId(o.getOpcRequestId()); + eTag(o.getETag()); + privateEndpoint(o.getPrivateEndpoint()); + isNotModified(o.isNotModified()); + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetPrivateEndpointResponse build() { + return new GetPrivateEndpointResponse( + __httpStatusCode__, + headers, + opcClientRequestId, + opcRequestId, + eTag, + privateEndpoint, + isNotModified); + } + } + + /** + * 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(",opcClientRequestId=").append(String.valueOf(opcClientRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",eTag=").append(String.valueOf(eTag)); + sb.append(",privateEndpoint=").append(String.valueOf(privateEndpoint)); + sb.append(",isNotModified=").append(isNotModified); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetPrivateEndpointResponse)) { + return false; + } + + GetPrivateEndpointResponse other = (GetPrivateEndpointResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcClientRequestId, other.opcClientRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.eTag, other.eTag) + && java.util.Objects.equals(this.privateEndpoint, other.privateEndpoint) + && this.isNotModified == other.isNotModified; + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcClientRequestId == null + ? 43 + : this.opcClientRequestId.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.privateEndpoint == null ? 43 : this.privateEndpoint.hashCode()); + result = (result * PRIME) + (this.isNotModified ? 79 : 97); + return result; + } +} diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListPrivateEndpointsResponse.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListPrivateEndpointsResponse.java new file mode 100644 index 00000000000..445617d7408 --- /dev/null +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListPrivateEndpointsResponse.java @@ -0,0 +1,295 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.objectstorage.responses; + +import com.oracle.bmc.objectstorage.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListPrivateEndpointsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Echoes back the value passed in the opc-client-request-id header, for use by clients when + * debugging. + */ + private String opcClientRequestId; + + /** + * Echoes back the value passed in the opc-client-request-id header, for use by clients when + * debugging. + * + * @return the value + */ + public String getOpcClientRequestId() { + return opcClientRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide this request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For paginating a list of PEs. In the GET request, set the limit to the number of Private + * Endpoint items that you want returned in the response. If the {@code opc-next-page} header + * appears in the response, then this is a partial list and there are additional Private + * Endpoint's to get. Include the header's value as the {@code page} parameter in the subsequent + * GET request to get the next batch of PEs. Repeat this process to retrieve the entire list of + * Private Endpoint's. By default, the page limit is set to 25 Private Endpoint's per page, but + * you can specify a value from 1 to 1000. For more details about how pagination works, see + * [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For paginating a list of PEs. In the GET request, set the limit to the number of Private + * Endpoint items that you want returned in the response. If the {@code opc-next-page} header + * appears in the response, then this is a partial list and there are additional Private + * Endpoint's to get. Include the header's value as the {@code page} parameter in the subsequent + * GET request to get the next batch of PEs. Repeat this process to retrieve the entire list of + * Private Endpoint's. By default, the page limit is set to 25 Private Endpoint's per page, but + * you can specify a value from 1 to 1000. For more 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; + } + + /** A list of {@code com.oracle.bmc.objectstorage.model.PrivateEndpointSummary} instances. */ + private java.util.List items; + + /** + * A list of {@code com.oracle.bmc.objectstorage.model.PrivateEndpointSummary} instances. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcClientRequestId", + "opcRequestId", + "opcNextPage", + "items" + }) + private ListPrivateEndpointsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcClientRequestId, + String opcRequestId, + String opcNextPage, + java.util.List items) { + super(__httpStatusCode__, headers); + this.opcClientRequestId = opcClientRequestId; + 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; + } + + /** + * Echoes back the value passed in the opc-client-request-id header, for use by clients when + * debugging. + */ + private String opcClientRequestId; + + /** + * Echoes back the value passed in the opc-client-request-id header, for use by clients when + * debugging. + * + * @param opcClientRequestId the value to set + * @return this builder + */ + public Builder opcClientRequestId(String opcClientRequestId) { + this.opcClientRequestId = opcClientRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular 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 paginating a list of PEs. In the GET request, set the limit to the number of Private + * Endpoint items that you want returned in the response. If the {@code opc-next-page} + * header appears in the response, then this is a partial list and there are additional + * Private Endpoint's to get. Include the header's value as the {@code page} parameter in + * the subsequent GET request to get the next batch of PEs. Repeat this process to retrieve + * the entire list of Private Endpoint's. By default, the page limit is set to 25 Private + * Endpoint's per page, but you can specify a value from 1 to 1000. For more details about + * how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For paginating a list of PEs. In the GET request, set the limit to the number of Private + * Endpoint items that you want returned in the response. If the {@code opc-next-page} + * header appears in the response, then this is a partial list and there are additional + * Private Endpoint's to get. Include the header's value as the {@code page} parameter in + * the subsequent GET request to get the next batch of PEs. Repeat this process to retrieve + * the entire list of Private Endpoint's. By default, the page limit is set to 25 Private + * Endpoint's per page, but you can specify a value from 1 to 1000. For more 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; + } + + /** + * A list of {@code com.oracle.bmc.objectstorage.model.PrivateEndpointSummary} instances. + */ + private java.util.List items; + + /** + * A list of {@code com.oracle.bmc.objectstorage.model.PrivateEndpointSummary} 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(ListPrivateEndpointsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcClientRequestId(o.getOpcClientRequestId()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + items(o.getItems()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListPrivateEndpointsResponse build() { + return new ListPrivateEndpointsResponse( + __httpStatusCode__, + headers, + opcClientRequestId, + 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(",opcClientRequestId=").append(String.valueOf(opcClientRequestId)); + 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 ListPrivateEndpointsResponse)) { + return false; + } + + ListPrivateEndpointsResponse other = (ListPrivateEndpointsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcClientRequestId, other.opcClientRequestId) + && 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.opcClientRequestId == null + ? 43 + : this.opcClientRequestId.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-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/PutObjectResponse.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/PutObjectResponse.java index 90fa6660c05..1bdf61415b5 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/PutObjectResponse.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/PutObjectResponse.java @@ -40,11 +40,11 @@ public String getOpcRequestId() { return opcRequestId; } - /** The base-64 encoded MD5 hash of the request body as computed by the server. */ + /** The base64-encoded MD5 hash of the request body as computed by the server. */ private String opcContentMd5; /** - * The base-64 encoded MD5 hash of the request body as computed by the server. + * The base64-encoded MD5 hash of the request body as computed by the server. * * @return the value */ @@ -174,11 +174,11 @@ public Builder opcRequestId(String opcRequestId) { return this; } - /** The base-64 encoded MD5 hash of the request body as computed by the server. */ + /** The base64-encoded MD5 hash of the request body as computed by the server. */ private String opcContentMd5; /** - * The base-64 encoded MD5 hash of the request body as computed by the server. + * The base64-encoded MD5 hash of the request body as computed by the server. * * @param opcContentMd5 the value to set * @return this builder diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/UpdatePrivateEndpointResponse.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/UpdatePrivateEndpointResponse.java new file mode 100644 index 00000000000..d5b57aefa9d --- /dev/null +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/UpdatePrivateEndpointResponse.java @@ -0,0 +1,234 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.objectstorage.responses; + +import com.oracle.bmc.objectstorage.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class UpdatePrivateEndpointResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous request. If you need to contact Oracle + * about a particular request, provide this request ID. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. If you need to contact Oracle + * about a particular request, provide this request ID. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Echoes back the value passed in the opc-client-request-id header, for use by clients when + * debugging. + */ + private String opcClientRequestId; + + /** + * Echoes back the value passed in the opc-client-request-id header, for use by clients when + * debugging. + * + * @return the value + */ + public String getOpcClientRequestId() { + return opcClientRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide this request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcClientRequestId", + "opcRequestId" + }) + private UpdatePrivateEndpointResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcClientRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcClientRequestId = opcClientRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. If you need to contact + * Oracle about a particular request, provide this request ID. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. If you need to contact + * Oracle about a particular request, provide this request ID. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Echoes back the value passed in the opc-client-request-id header, for use by clients when + * debugging. + */ + private String opcClientRequestId; + + /** + * Echoes back the value passed in the opc-client-request-id header, for use by clients when + * debugging. + * + * @param opcClientRequestId the value to set + * @return this builder + */ + public Builder opcClientRequestId(String opcClientRequestId) { + this.opcClientRequestId = opcClientRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide this 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(UpdatePrivateEndpointResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcClientRequestId(o.getOpcClientRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdatePrivateEndpointResponse build() { + return new UpdatePrivateEndpointResponse( + __httpStatusCode__, + headers, + opcWorkRequestId, + opcClientRequestId, + 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(",opcClientRequestId=").append(String.valueOf(opcClientRequestId)); + 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 UpdatePrivateEndpointResponse)) { + return false; + } + + UpdatePrivateEndpointResponse other = (UpdatePrivateEndpointResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcClientRequestId, other.opcClientRequestId) + && 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.opcClientRequestId == null + ? 43 + : this.opcClientRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-objectstorage/reflect-config.json b/bmc-objectstorage/bmc-objectstorage-generated/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-objectstorage/reflect-config.json index c049cf24fa0..9a276b5a85f 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-objectstorage/reflect-config.json +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-objectstorage/reflect-config.json @@ -1,4 +1,18 @@ [ + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.objectstorage.model.AccessTargetDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.objectstorage.model.AccessTargetDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.objectstorage.model.ArchivalState", @@ -165,6 +179,20 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.objectstorage.model.CreatePrivateEndpointDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.objectstorage.model.CreatePrivateEndpointDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.objectstorage.model.CreateReplicationPolicyDetails", @@ -213,6 +241,20 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.objectstorage.model.Fqdns", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.objectstorage.model.Fqdns$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.objectstorage.model.ListObjects", @@ -419,6 +461,54 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.objectstorage.model.PrefixFqdns", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.objectstorage.model.PrefixFqdns$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.objectstorage.model.PrivateEndpoint", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.objectstorage.model.PrivateEndpoint$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.objectstorage.model.PrivateEndpoint$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.objectstorage.model.PrivateEndpointSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.objectstorage.model.PrivateEndpointSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.objectstorage.model.PutObjectLifecyclePolicyDetails", @@ -665,6 +755,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.objectstorage.model.UpdatePrivateEndpointDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.objectstorage.model.UpdatePrivateEndpointDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.objectstorage.model.UpdateRetentionRuleDetails", diff --git a/bmc-objectstorage/pom.xml b/bmc-objectstorage/pom.xml index 5076c5410d8..6b288d25efb 100644 --- a/bmc-objectstorage/pom.xml +++ b/bmc-objectstorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml diff --git a/bmc-oce/pom.xml b/bmc-oce/pom.xml index c0c6aa943f1..d0d1937671e 100644 --- a/bmc-oce/pom.xml +++ b/bmc-oce/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-oce @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-ocicontrolcenter/pom.xml b/bmc-ocicontrolcenter/pom.xml index 8de840121f7..1dfd4e2ac1d 100644 --- a/bmc-ocicontrolcenter/pom.xml +++ b/bmc-ocicontrolcenter/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-ocicontrolcenter @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-ocvp/pom.xml b/bmc-ocvp/pom.xml index c34c5306898..0700f7775ff 100644 --- a/bmc-ocvp/pom.xml +++ b/bmc-ocvp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-ocvp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcAsyncClient.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcAsyncClient.java index ff4bb960ca5..e96bb1c96b3 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcAsyncClient.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcAsyncClient.java @@ -413,6 +413,7 @@ public java.util.concurrent.Future listSupporte .appendQueryParam("page", request.getPage()) .appendQueryParam("version", request.getVersion()) .appendQueryParam("hostShapeName", request.getHostShapeName()) + .appendQueryParam("versionToUpgrade", request.getVersionToUpgrade()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcClient.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcClient.java index d3c1593b804..8a312cdaf4c 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcClient.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcClient.java @@ -416,6 +416,7 @@ public ListSupportedVmwareSoftwareVersionsResponse listSupportedVmwareSoftwareVe .appendQueryParam("page", request.getPage()) .appendQueryParam("version", request.getVersion()) .appendQueryParam("hostShapeName", request.getHostShapeName()) + .appendQueryParam("versionToUpgrade", request.getVersionToUpgrade()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .operationUsesDefaultRetries() diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/Cluster.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/Cluster.java index 2cc458bde99..aeb2ceffcd8 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/Cluster.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/Cluster.java @@ -55,7 +55,8 @@ public final class Cluster extends com.oracle.bmc.http.client.internal.Explicitl "datastores", "vsphereType", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public Cluster( String id, @@ -82,7 +83,8 @@ public Cluster( java.util.List datastores, VsphereTypes vsphereType, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.computeAvailabilityDomain = computeAvailabilityDomain; @@ -109,6 +111,7 @@ public Cluster( this.vsphereType = vsphereType; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -630,6 +633,25 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {orcl-cloud: {free-tier-retain: true}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {orcl-cloud: {free-tier-retain: 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(); @@ -661,7 +683,8 @@ public Cluster build() { this.datastores, this.vsphereType, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -745,6 +768,9 @@ public Builder copy(Cluster model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -1221,6 +1247,23 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {orcl-cloud: {free-tier-retain: true}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {orcl-cloud: {free-tier-retain: true}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + @Override public String toString() { return this.toString(true); @@ -1264,6 +1307,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", vsphereType=").append(String.valueOf(this.vsphereType)); 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(); } @@ -1306,6 +1350,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.vsphereType, other.vsphereType) && 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); } @@ -1392,6 +1437,7 @@ public int hashCode() { result = (result * PRIME) + (this.vsphereType == null ? 43 : this.vsphereType.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-ocvp/src/main/java/com/oracle/bmc/ocvp/model/ClusterSummary.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/ClusterSummary.java index 370935fbd60..59433a9205d 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/ClusterSummary.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/ClusterSummary.java @@ -38,7 +38,8 @@ public final class ClusterSummary "initialHostOcpuCount", "vsphereType", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public ClusterSummary( String id, @@ -56,7 +57,8 @@ public ClusterSummary( Float initialHostOcpuCount, VsphereTypes vsphereType, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.computeAvailabilityDomain = computeAvailabilityDomain; @@ -74,6 +76,7 @@ public ClusterSummary( this.vsphereType = vsphereType; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -407,6 +410,25 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {orcl-cloud: {free-tier-retain: true}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {orcl-cloud: {free-tier-retain: 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(); @@ -429,7 +451,8 @@ public ClusterSummary build() { this.initialHostOcpuCount, this.vsphereType, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -486,6 +509,9 @@ public Builder copy(ClusterSummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -795,6 +821,23 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {orcl-cloud: {free-tier-retain: true}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {orcl-cloud: {free-tier-retain: true}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + @Override public String toString() { return this.toString(true); @@ -828,6 +871,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", vsphereType=").append(String.valueOf(this.vsphereType)); 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(); } @@ -860,6 +904,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.vsphereType, other.vsphereType) && 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); } @@ -909,6 +954,7 @@ public int hashCode() { result = (result * PRIME) + (this.vsphereType == null ? 43 : this.vsphereType.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-ocvp/src/main/java/com/oracle/bmc/ocvp/model/DatastoreClusterTypes.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/DatastoreClusterTypes.java new file mode 100644 index 00000000000..1a54a629d98 --- /dev/null +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/DatastoreClusterTypes.java @@ -0,0 +1,40 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.ocvp.model; + +/** Possible datastore cluster types. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230701") +public enum DatastoreClusterTypes implements com.oracle.bmc.http.internal.BmcEnum { + Management("MANAGEMENT"), + Workload("WORKLOAD"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DatastoreClusterTypes v : DatastoreClusterTypes.values()) { + map.put(v.getValue(), v); + } + } + + DatastoreClusterTypes(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatastoreClusterTypes create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid DatastoreClusterTypes: " + key); + } +} diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/DatastoreDetails.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/DatastoreDetails.java index 6b2fdf587a6..1cbc501b930 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/DatastoreDetails.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/DatastoreDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.ocvp.model; /** - * Datastore summary for a getting an Sddc.
+ * Datastore details for a getting an Sddc.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/EsxiHost.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/EsxiHost.java index 40c03475582..4a1282701b4 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/EsxiHost.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/EsxiHost.java @@ -57,7 +57,8 @@ public final class EsxiHost extends com.oracle.bmc.http.client.internal.Explicit "hostOcpuCount", "capacityReservationId", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public EsxiHost( String id, @@ -88,7 +89,8 @@ public EsxiHost( Float hostOcpuCount, String capacityReservationId, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.displayName = displayName; @@ -119,6 +121,7 @@ public EsxiHost( this.capacityReservationId = capacityReservationId; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -683,6 +686,25 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {orcl-cloud: {free-tier-retain: true}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {orcl-cloud: {free-tier-retain: 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(); @@ -718,7 +740,8 @@ public EsxiHost build() { this.hostOcpuCount, this.capacityReservationId, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -814,6 +837,9 @@ public Builder copy(EsxiHost model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -1324,6 +1350,23 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {orcl-cloud: {free-tier-retain: true}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {orcl-cloud: {free-tier-retain: true}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + @Override public String toString() { return this.toString(true); @@ -1372,6 +1415,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", capacityReservationId=").append(String.valueOf(this.capacityReservationId)); 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(); } @@ -1420,6 +1464,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.capacityReservationId, other.capacityReservationId) && 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); } @@ -1522,6 +1567,7 @@ public int hashCode() { : this.capacityReservationId.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-ocvp/src/main/java/com/oracle/bmc/ocvp/model/EsxiHostSummary.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/EsxiHostSummary.java index 5f027b37081..ed73ad71dd4 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/EsxiHostSummary.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/EsxiHostSummary.java @@ -49,7 +49,8 @@ public final class EsxiHostSummary "isBillingContinuationInProgress", "isBillingSwappingInProgress", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public EsxiHostSummary( String id, @@ -78,7 +79,8 @@ public EsxiHostSummary( Boolean isBillingContinuationInProgress, Boolean isBillingSwappingInProgress, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.displayName = displayName; @@ -107,6 +109,7 @@ public EsxiHostSummary( this.isBillingSwappingInProgress = isBillingSwappingInProgress; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -633,6 +636,25 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {orcl-cloud: {free-tier-retain: true}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {orcl-cloud: {free-tier-retain: 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(); @@ -666,7 +688,8 @@ public EsxiHostSummary build() { this.isBillingContinuationInProgress, this.isBillingSwappingInProgress, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -756,6 +779,9 @@ public Builder copy(EsxiHostSummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -1234,6 +1260,23 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {orcl-cloud: {free-tier-retain: true}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {orcl-cloud: {free-tier-retain: true}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + @Override public String toString() { return this.toString(true); @@ -1280,6 +1323,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.isBillingSwappingInProgress)); 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(); } @@ -1326,6 +1370,7 @@ public boolean equals(Object o) { this.isBillingSwappingInProgress, other.isBillingSwappingInProgress) && 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); } @@ -1418,6 +1463,7 @@ public int hashCode() { : this.isBillingSwappingInProgress.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-ocvp/src/main/java/com/oracle/bmc/ocvp/model/OperationTypes.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/OperationTypes.java index 72646ea9138..067b7a85463 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/OperationTypes.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/OperationTypes.java @@ -20,6 +20,19 @@ public enum OperationTypes implements com.oracle.bmc.http.internal.BmcEnum { SwapBilling("SWAP_BILLING"), ReplaceHost("REPLACE_HOST"), InPlaceUpgrade("IN_PLACE_UPGRADE"), + CreateDatastore("CREATE_DATASTORE"), + UpdateDatastore("UPDATE_DATASTORE"), + AddBlockVolumeToDatastore("ADD_BLOCK_VOLUME_TO_DATASTORE"), + DeleteDatastore("DELETE_DATASTORE"), + CreateDatastoreCluster("CREATE_DATASTORE_CLUSTER"), + UpdateDatastoreCluster("UPDATE_DATASTORE_CLUSTER"), + AttachDatastoreClusterToEsxiHost("ATTACH_DATASTORE_CLUSTER_TO_ESXI_HOST"), + AttachDatastoreClusterToCluster("ATTACH_DATASTORE_CLUSTER_TO_CLUSTER"), + DetachDatastoreClusterFromEsxiHost("DETACH_DATASTORE_CLUSTER_FROM_ESXI_HOST"), + DetachDatastoreClusterFromCluster("DETACH_DATASTORE_CLUSTER_FROM_CLUSTER"), + DeleteDatastoreCluster("DELETE_DATASTORE_CLUSTER"), + AddDatastoreToDatastoreCluster("ADD_DATASTORE_TO_DATASTORE_CLUSTER"), + RemoveDatastoreFromDatastoreCluster("REMOVE_DATASTORE_FROM_DATASTORE_CLUSTER"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/Sddc.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/Sddc.java index 1fd3802dfd4..ed909b63419 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/Sddc.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/Sddc.java @@ -58,7 +58,8 @@ public final class Sddc extends com.oracle.bmc.http.client.internal.ExplicitlySe "timeUpdated", "lifecycleState", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public Sddc( String id, @@ -88,7 +89,8 @@ public Sddc( java.util.Date timeUpdated, LifecycleStates lifecycleState, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.displayName = displayName; @@ -118,6 +120,7 @@ public Sddc( this.lifecycleState = lifecycleState; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -745,6 +748,25 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {orcl-cloud: {free-tier-retain: true}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {orcl-cloud: {free-tier-retain: 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(); @@ -779,7 +801,8 @@ public Sddc build() { this.timeUpdated, this.lifecycleState, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -872,6 +895,9 @@ public Builder copy(Sddc model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -1443,6 +1469,23 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {orcl-cloud: {free-tier-retain: true}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {orcl-cloud: {free-tier-retain: true}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + @Override public String toString() { return this.toString(true); @@ -1487,6 +1530,7 @@ public String toString(boolean includeByteArrayContents) { 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(); } @@ -1531,6 +1575,7 @@ public boolean equals(Object o) { && 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); } @@ -1622,6 +1667,7 @@ public int hashCode() { + (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-ocvp/src/main/java/com/oracle/bmc/ocvp/model/SddcSummary.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/SddcSummary.java index 1e460addc21..2b93f068eac 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/SddcSummary.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/SddcSummary.java @@ -36,7 +36,8 @@ public final class SddcSummary extends com.oracle.bmc.http.client.internal.Expli "lifecycleState", "isSingleHostSddc", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public SddcSummary( String id, @@ -53,7 +54,8 @@ public SddcSummary( LifecycleStates lifecycleState, Boolean isSingleHostSddc, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.displayName = displayName; @@ -70,6 +72,7 @@ public SddcSummary( this.isSingleHostSddc = isSingleHostSddc; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -388,6 +391,25 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {orcl-cloud: {free-tier-retain: true}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {orcl-cloud: {free-tier-retain: 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(); @@ -409,7 +431,8 @@ public SddcSummary build() { this.lifecycleState, this.isSingleHostSddc, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -463,6 +486,9 @@ public Builder copy(SddcSummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -757,6 +783,23 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {orcl-cloud: {free-tier-retain: true}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {orcl-cloud: {free-tier-retain: true}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + @Override public String toString() { return this.toString(true); @@ -787,6 +830,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", isSingleHostSddc=").append(String.valueOf(this.isSingleHostSddc)); 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(); } @@ -816,6 +860,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.isSingleHostSddc, other.isSingleHostSddc) && 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); } @@ -852,6 +897,7 @@ public int hashCode() { + (this.isSingleHostSddc == null ? 43 : this.isSingleHostSddc.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-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/DeleteClusterRequest.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/DeleteClusterRequest.java index abfc1eba58a..92915e80c6e 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/DeleteClusterRequest.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/DeleteClusterRequest.java @@ -15,13 +15,13 @@ public class DeleteClusterRequest extends com.oracle.bmc.requests.BmcRequest com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-oda @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-onesubscription/pom.xml b/bmc-onesubscription/pom.xml index 7373bdd2b1a..f7b0118a8d6 100644 --- a/bmc-onesubscription/pom.xml +++ b/bmc-onesubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-onesubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-ons/pom.xml b/bmc-ons/pom.xml index 9d935d05262..b10c67984a6 100644 --- a/bmc-ons/pom.xml +++ b/bmc-ons/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-ons @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-opa/pom.xml b/bmc-opa/pom.xml index 1ed7b20066b..7af844efbab 100644 --- a/bmc-opa/pom.xml +++ b/bmc-opa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-opa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-opensearch/pom.xml b/bmc-opensearch/pom.xml index a01c28ce16d..a34b31f0d1b 100644 --- a/bmc-opensearch/pom.xml +++ b/bmc-opensearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-opensearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-operatoraccesscontrol/pom.xml b/bmc-operatoraccesscontrol/pom.xml index f9ce68c23ce..21f657a4d40 100644 --- a/bmc-operatoraccesscontrol/pom.xml +++ b/bmc-operatoraccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-operatoraccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-opsi/pom.xml b/bmc-opsi/pom.xml index 6869e908810..81f67a3f68c 100644 --- a/bmc-opsi/pom.xml +++ b/bmc-opsi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-opsi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-optimizer/pom.xml b/bmc-optimizer/pom.xml index f6416fed8dc..f779697c6b3 100644 --- a/bmc-optimizer/pom.xml +++ b/bmc-optimizer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-optimizer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-osmanagement/pom.xml b/bmc-osmanagement/pom.xml index b8dd16f483a..36f58c5886d 100644 --- a/bmc-osmanagement/pom.xml +++ b/bmc-osmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-osmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-osmanagementhub/pom.xml b/bmc-osmanagementhub/pom.xml index 484e444938d..65c84592c3a 100644 --- a/bmc-osmanagementhub/pom.xml +++ b/bmc-osmanagementhub/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-osmanagementhub @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-ospgateway/pom.xml b/bmc-ospgateway/pom.xml index 68db69e97d5..6b72b905716 100644 --- a/bmc-ospgateway/pom.xml +++ b/bmc-ospgateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-ospgateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-osubbillingschedule/pom.xml b/bmc-osubbillingschedule/pom.xml index 535796efb8d..3a21146e8f2 100644 --- a/bmc-osubbillingschedule/pom.xml +++ b/bmc-osubbillingschedule/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-osubbillingschedule @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-osuborganizationsubscription/pom.xml b/bmc-osuborganizationsubscription/pom.xml index 666aa50e4fc..f55baaef127 100644 --- a/bmc-osuborganizationsubscription/pom.xml +++ b/bmc-osuborganizationsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-osuborganizationsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-osubsubscription/pom.xml b/bmc-osubsubscription/pom.xml index 053ffa4522d..2a2fc113b37 100644 --- a/bmc-osubsubscription/pom.xml +++ b/bmc-osubsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-osubsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-osubusage/pom.xml b/bmc-osubusage/pom.xml index f8189bbf115..ef23e529af0 100644 --- a/bmc-osubusage/pom.xml +++ b/bmc-osubusage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-osubusage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-other-examples/bmc-jersey-examples/pom.xml b/bmc-other-examples/bmc-jersey-examples/pom.xml index 8ce0d617630..a68723d5245 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.47.0 + 3.48.0 Oracle Cloud Infrastructure SDK - Examples using Jersey 2 HTTP client This project contains the examples on how to use the SDK used for Oracle Cloud Infrastructure with the Jersey 2 HTTP client https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm @@ -58,7 +58,7 @@ com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.47.0 + 3.48.0 false @@ -95,14 +95,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.47.0 + 3.48.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.47.0 + 3.48.0 pom import diff --git a/bmc-other-examples/bmc-jersey3-examples/pom.xml b/bmc-other-examples/bmc-jersey3-examples/pom.xml index bb3862a6d45..184b5f73492 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.47.0 + 3.48.0 Oracle Cloud Infrastructure SDK - Examples using Jersey 3 HTTP client This project contains the examples on how to use the SDK used for Oracle Cloud Infrastructure with the Jersey 3 HTTP client https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm @@ -58,7 +58,7 @@ com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.47.0 + 3.48.0 false @@ -95,14 +95,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.47.0 + 3.48.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.47.0 + 3.48.0 pom import diff --git a/bmc-other-examples/native-maven-example/pom.xml b/bmc-other-examples/native-maven-example/pom.xml index 27d1573b80d..c8fbbe7e9c5 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.47.0 + 3.48.0 Oracle Cloud Infrastructure SDK - Native Example This project contains an example on how to use the SDK used for Oracle Cloud Infrastructure in a native executable https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm @@ -98,14 +98,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.47.0 + 3.48.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.47.0 + 3.48.0 pom import diff --git a/bmc-other-examples/pom.xml b/bmc-other-examples/pom.xml index 176979b7586..34436996df1 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.47.0 + 3.48.0 ../pom.xml diff --git a/bmc-psql/pom.xml b/bmc-psql/pom.xml index ea4f9424936..ab431e90d70 100644 --- a/bmc-psql/pom.xml +++ b/bmc-psql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-psql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-queue/pom.xml b/bmc-queue/pom.xml index 182c1b67f18..f894571e814 100644 --- a/bmc-queue/pom.xml +++ b/bmc-queue/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-queue @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-recovery/pom.xml b/bmc-recovery/pom.xml index 2f6d988b9cc..367814d841d 100644 --- a/bmc-recovery/pom.xml +++ b/bmc-recovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-recovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecovery.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecovery.java index 8ba6b7329f0..257fbaa663d 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecovery.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecovery.java @@ -100,6 +100,24 @@ CancelProtectedDatabaseDeletionResponse cancelProtectedDatabaseDeletion( ChangeProtectedDatabaseCompartmentResponse changeProtectedDatabaseCompartment( ChangeProtectedDatabaseCompartmentRequest request); + /** + * Associates the protected database with a new cloud service environment, such as Microsoft + * Azure. + * + * @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 + * ChangeProtectedDatabaseSubscription API. + */ + ChangeProtectedDatabaseSubscriptionResponse changeProtectedDatabaseSubscription( + ChangeProtectedDatabaseSubscriptionRequest request); + /** * Moves a protection policy resource from the existing compartment to the specified * compartment. When provided, If-Match is checked against ETag values of the resource. diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryAsync.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryAsync.java index 193ef3a483d..e5aaccb30cc 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryAsync.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryAsync.java @@ -98,6 +98,25 @@ public interface DatabaseRecoveryAsync extends AutoCloseable { ChangeProtectedDatabaseCompartmentResponse> handler); + /** + * Associates the protected database with a new cloud service environment, such as Microsoft + * Azure. + * + * @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 + changeProtectedDatabaseSubscription( + ChangeProtectedDatabaseSubscriptionRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeProtectedDatabaseSubscriptionRequest, + ChangeProtectedDatabaseSubscriptionResponse> + handler); + /** * Moves a protection policy resource from the existing compartment to the specified * compartment. When provided, If-Match is checked against ETag values of the resource. diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryAsyncClient.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryAsyncClient.java index 96a96034fa0..c1142f16344 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryAsyncClient.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryAsyncClient.java @@ -197,6 +197,47 @@ public void setRegion(String regionId) { .callAsync(handler); } + @Override + public java.util.concurrent.Future + changeProtectedDatabaseSubscription( + ChangeProtectedDatabaseSubscriptionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeProtectedDatabaseSubscriptionRequest, + ChangeProtectedDatabaseSubscriptionResponse> + handler) { + + Validate.notBlank( + request.getProtectedDatabaseId(), "protectedDatabaseId must not be blank"); + Objects.requireNonNull( + request.getChangeProtectedDatabaseSubscriptionDetails(), + "changeProtectedDatabaseSubscriptionDetails is required"); + + return clientCall(request, ChangeProtectedDatabaseSubscriptionResponse::builder) + .logger(LOG, "changeProtectedDatabaseSubscription") + .serviceDetails( + "DatabaseRecovery", + "ChangeProtectedDatabaseSubscription", + "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/ProtectedDatabase/ChangeProtectedDatabaseSubscription") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeProtectedDatabaseSubscriptionRequest::builder) + .basePath("/20210216") + .appendPathParam("protectedDatabases") + .appendPathParam(request.getProtectedDatabaseId()) + .appendPathParam("actions") + .appendPathParam("changeSubscription") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ChangeProtectedDatabaseSubscriptionResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ChangeProtectedDatabaseSubscriptionResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future changeProtectionPolicyCompartment( diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryClient.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryClient.java index ef907d29483..5b8add57b56 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryClient.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryClient.java @@ -215,6 +215,43 @@ public ChangeProtectedDatabaseCompartmentResponse changeProtectedDatabaseCompart .callSync(); } + @Override + public ChangeProtectedDatabaseSubscriptionResponse changeProtectedDatabaseSubscription( + ChangeProtectedDatabaseSubscriptionRequest request) { + + Validate.notBlank( + request.getProtectedDatabaseId(), "protectedDatabaseId must not be blank"); + Objects.requireNonNull( + request.getChangeProtectedDatabaseSubscriptionDetails(), + "changeProtectedDatabaseSubscriptionDetails is required"); + + return clientCall(request, ChangeProtectedDatabaseSubscriptionResponse::builder) + .logger(LOG, "changeProtectedDatabaseSubscription") + .serviceDetails( + "DatabaseRecovery", + "ChangeProtectedDatabaseSubscription", + "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/ProtectedDatabase/ChangeProtectedDatabaseSubscription") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeProtectedDatabaseSubscriptionRequest::builder) + .basePath("/20210216") + .appendPathParam("protectedDatabases") + .appendPathParam(request.getProtectedDatabaseId()) + .appendPathParam("actions") + .appendPathParam("changeSubscription") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ChangeProtectedDatabaseSubscriptionResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ChangeProtectedDatabaseSubscriptionResponse.Builder::opcRequestId) + .callSync(); + } + @Override public ChangeProtectionPolicyCompartmentResponse changeProtectionPolicyCompartment( ChangeProtectionPolicyCompartmentRequest request) { diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ChangeProtectedDatabaseSubscriptionDetails.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ChangeProtectedDatabaseSubscriptionDetails.java new file mode 100644 index 00000000000..309efde0a9b --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ChangeProtectedDatabaseSubscriptionDetails.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.recovery.model; + +/** + * Subscription details of the new cloud service environment, such as Microsoft Azure, where the + * protected database will be provisioned.
+ * 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: 20210216") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeProtectedDatabaseSubscriptionDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ChangeProtectedDatabaseSubscriptionDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"subscriptionId", "isDefault"}) + public ChangeProtectedDatabaseSubscriptionDetails(String subscriptionId, Boolean isDefault) { + super(); + this.subscriptionId = subscriptionId; + this.isDefault = isDefault; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the new cloud service subscription to which you want to link the protected + * database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") + private String subscriptionId; + + /** + * The OCID of the new cloud service subscription to which you want to link the protected + * database. + * + * @param subscriptionId the value to set + * @return this builder + */ + public Builder subscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + this.__explicitlySet__.add("subscriptionId"); + return this; + } + /** Indicates whether it is a Universal Credit Model (UCM) subscription. */ + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") + private Boolean isDefault; + + /** + * Indicates whether it is a Universal Credit Model (UCM) subscription. + * + * @param isDefault the value to set + * @return this builder + */ + public Builder isDefault(Boolean isDefault) { + this.isDefault = isDefault; + this.__explicitlySet__.add("isDefault"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChangeProtectedDatabaseSubscriptionDetails build() { + ChangeProtectedDatabaseSubscriptionDetails model = + new ChangeProtectedDatabaseSubscriptionDetails( + this.subscriptionId, this.isDefault); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeProtectedDatabaseSubscriptionDetails model) { + if (model.wasPropertyExplicitlySet("subscriptionId")) { + this.subscriptionId(model.getSubscriptionId()); + } + if (model.wasPropertyExplicitlySet("isDefault")) { + this.isDefault(model.getIsDefault()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The OCID of the new cloud service subscription to which you want to link the protected + * database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") + private final String subscriptionId; + + /** + * The OCID of the new cloud service subscription to which you want to link the protected + * database. + * + * @return the value + */ + public String getSubscriptionId() { + return subscriptionId; + } + + /** Indicates whether it is a Universal Credit Model (UCM) subscription. */ + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") + private final Boolean isDefault; + + /** + * Indicates whether it is a Universal Credit Model (UCM) subscription. + * + * @return the value + */ + public Boolean getIsDefault() { + return isDefault; + } + + @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("ChangeProtectedDatabaseSubscriptionDetails("); + sb.append("super=").append(super.toString()); + sb.append("subscriptionId=").append(String.valueOf(this.subscriptionId)); + sb.append(", isDefault=").append(String.valueOf(this.isDefault)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeProtectedDatabaseSubscriptionDetails)) { + return false; + } + + ChangeProtectedDatabaseSubscriptionDetails other = + (ChangeProtectedDatabaseSubscriptionDetails) o; + return java.util.Objects.equals(this.subscriptionId, other.subscriptionId) + && java.util.Objects.equals(this.isDefault, other.isDefault) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.subscriptionId == null ? 43 : this.subscriptionId.hashCode()); + result = (result * PRIME) + (this.isDefault == null ? 43 : this.isDefault.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/CreateProtectedDatabaseDetails.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/CreateProtectedDatabaseDetails.java index 3a768bd9d21..b0664b0d895 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/CreateProtectedDatabaseDetails.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/CreateProtectedDatabaseDetails.java @@ -36,6 +36,7 @@ public final class CreateProtectedDatabaseDetails "changeRate", "compressionRatio", "isRedoLogsShipped", + "subscriptionId", "freeformTags", "definedTags" }) @@ -52,6 +53,7 @@ public CreateProtectedDatabaseDetails( Double changeRate, Double compressionRatio, Boolean isRedoLogsShipped, + String subscriptionId, java.util.Map freeformTags, java.util.Map> definedTags) { super(); @@ -67,6 +69,7 @@ public CreateProtectedDatabaseDetails( this.changeRate = changeRate; this.compressionRatio = compressionRatio; this.isRedoLogsShipped = isRedoLogsShipped; + this.subscriptionId = subscriptionId; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -290,6 +293,27 @@ public Builder isRedoLogsShipped(Boolean isRedoLogsShipped) { this.__explicitlySet__.add("isRedoLogsShipped"); return this; } + /** + * The OCID of the cloud service subscription to which you want to link the protected + * database. For example, specify the Microsoft Azure subscription ID if you want to + * provision the protected database in Azure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") + private String subscriptionId; + + /** + * The OCID of the cloud service subscription to which you want to link the protected + * database. For example, specify the Microsoft Azure subscription ID if you want to + * provision the protected database in Azure. + * + * @param subscriptionId the value to set + * @return this builder + */ + public Builder subscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + this.__explicitlySet__.add("subscriptionId"); + return this; + } /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists * for cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -352,6 +376,7 @@ public CreateProtectedDatabaseDetails build() { this.changeRate, this.compressionRatio, this.isRedoLogsShipped, + this.subscriptionId, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -398,6 +423,9 @@ public Builder copy(CreateProtectedDatabaseDetails model) { if (model.wasPropertyExplicitlySet("isRedoLogsShipped")) { this.isRedoLogsShipped(model.getIsRedoLogsShipped()); } + if (model.wasPropertyExplicitlySet("subscriptionId")) { + this.subscriptionId(model.getSubscriptionId()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -609,6 +637,25 @@ public Boolean getIsRedoLogsShipped() { return isRedoLogsShipped; } + /** + * The OCID of the cloud service subscription to which you want to link the protected database. + * For example, specify the Microsoft Azure subscription ID if you want to provision the + * protected database in Azure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") + private final String subscriptionId; + + /** + * The OCID of the cloud service subscription to which you want to link the protected database. + * For example, specify the Microsoft Azure subscription ID if you want to provision the + * protected database in Azure. + * + * @return the value + */ + public String getSubscriptionId() { + return subscriptionId; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for * cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -672,6 +719,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", changeRate=").append(String.valueOf(this.changeRate)); sb.append(", compressionRatio=").append(String.valueOf(this.compressionRatio)); sb.append(", isRedoLogsShipped=").append(String.valueOf(this.isRedoLogsShipped)); + sb.append(", subscriptionId=").append(String.valueOf(this.subscriptionId)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -701,6 +749,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.changeRate, other.changeRate) && java.util.Objects.equals(this.compressionRatio, other.compressionRatio) && java.util.Objects.equals(this.isRedoLogsShipped, other.isRedoLogsShipped) + && java.util.Objects.equals(this.subscriptionId, other.subscriptionId) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -738,6 +787,9 @@ public int hashCode() { result = (result * PRIME) + (this.isRedoLogsShipped == null ? 43 : this.isRedoLogsShipped.hashCode()); + result = + (result * PRIME) + + (this.subscriptionId == null ? 43 : this.subscriptionId.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/CreateProtectionPolicyDetails.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/CreateProtectionPolicyDetails.java index dc1a4f2b21c..7929aed230c 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/CreateProtectionPolicyDetails.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/CreateProtectionPolicyDetails.java @@ -27,6 +27,7 @@ public final class CreateProtectionPolicyDetails "displayName", "backupRetentionPeriodInDays", "compartmentId", + "mustEnforceCloudLocality", "policyLockedDateTime", "freeformTags", "definedTags" @@ -35,6 +36,7 @@ public CreateProtectionPolicyDetails( String displayName, Integer backupRetentionPeriodInDays, String compartmentId, + Boolean mustEnforceCloudLocality, String policyLockedDateTime, java.util.Map freeformTags, java.util.Map> definedTags) { @@ -42,6 +44,7 @@ public CreateProtectionPolicyDetails( this.displayName = displayName; this.backupRetentionPeriodInDays = backupRetentionPeriodInDays; this.compartmentId = compartmentId; + this.mustEnforceCloudLocality = mustEnforceCloudLocality; this.policyLockedDateTime = policyLockedDateTime; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -98,6 +101,39 @@ public Builder compartmentId(String compartmentId) { this.__explicitlySet__.add("compartmentId"); return this; } + /** + * Indicates whether the protection policy enforces Recovery Service to retain backups in + * the same cloud service environment where your Oracle Database is provisioned. This + * parameter is applicable if your Oracle Database runs in a different cloud service + * environment, such as Microsoft Azure. If you set the mustEnforceCloudLocality parameter + * to TRUE, then Recovery Service stores the database backups locally in the same cloud + * service environment where the database resides. For example, if your Oracle Database is + * provisioned on Microsoft Azure, then Recovery Service stores the database backups in + * Azure. Note: You cannot change the mustEnforceCloudLocality setting for a protection + * policy after you create it. + */ + @com.fasterxml.jackson.annotation.JsonProperty("mustEnforceCloudLocality") + private Boolean mustEnforceCloudLocality; + + /** + * Indicates whether the protection policy enforces Recovery Service to retain backups in + * the same cloud service environment where your Oracle Database is provisioned. This + * parameter is applicable if your Oracle Database runs in a different cloud service + * environment, such as Microsoft Azure. If you set the mustEnforceCloudLocality parameter + * to TRUE, then Recovery Service stores the database backups locally in the same cloud + * service environment where the database resides. For example, if your Oracle Database is + * provisioned on Microsoft Azure, then Recovery Service stores the database backups in + * Azure. Note: You cannot change the mustEnforceCloudLocality setting for a protection + * policy after you create it. + * + * @param mustEnforceCloudLocality the value to set + * @return this builder + */ + public Builder mustEnforceCloudLocality(Boolean mustEnforceCloudLocality) { + this.mustEnforceCloudLocality = mustEnforceCloudLocality; + this.__explicitlySet__.add("mustEnforceCloudLocality"); + return this; + } /** * An RFC3339 formatted datetime string that specifies the exact date and time for the * retention lock to take effect and permanently lock the retention period defined in the @@ -196,6 +232,7 @@ public CreateProtectionPolicyDetails build() { this.displayName, this.backupRetentionPeriodInDays, this.compartmentId, + this.mustEnforceCloudLocality, this.policyLockedDateTime, this.freeformTags, this.definedTags); @@ -216,6 +253,9 @@ public Builder copy(CreateProtectionPolicyDetails model) { if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } + if (model.wasPropertyExplicitlySet("mustEnforceCloudLocality")) { + this.mustEnforceCloudLocality(model.getMustEnforceCloudLocality()); + } if (model.wasPropertyExplicitlySet("policyLockedDateTime")) { this.policyLockedDateTime(model.getPolicyLockedDateTime()); } @@ -281,6 +321,35 @@ public String getCompartmentId() { return compartmentId; } + /** + * Indicates whether the protection policy enforces Recovery Service to retain backups in the + * same cloud service environment where your Oracle Database is provisioned. This parameter is + * applicable if your Oracle Database runs in a different cloud service environment, such as + * Microsoft Azure. If you set the mustEnforceCloudLocality parameter to TRUE, then Recovery + * Service stores the database backups locally in the same cloud service environment where the + * database resides. For example, if your Oracle Database is provisioned on Microsoft Azure, + * then Recovery Service stores the database backups in Azure. Note: You cannot change the + * mustEnforceCloudLocality setting for a protection policy after you create it. + */ + @com.fasterxml.jackson.annotation.JsonProperty("mustEnforceCloudLocality") + private final Boolean mustEnforceCloudLocality; + + /** + * Indicates whether the protection policy enforces Recovery Service to retain backups in the + * same cloud service environment where your Oracle Database is provisioned. This parameter is + * applicable if your Oracle Database runs in a different cloud service environment, such as + * Microsoft Azure. If you set the mustEnforceCloudLocality parameter to TRUE, then Recovery + * Service stores the database backups locally in the same cloud service environment where the + * database resides. For example, if your Oracle Database is provisioned on Microsoft Azure, + * then Recovery Service stores the database backups in Azure. Note: You cannot change the + * mustEnforceCloudLocality setting for a protection policy after you create it. + * + * @return the value + */ + public Boolean getMustEnforceCloudLocality() { + return mustEnforceCloudLocality; + } + /** * An RFC3339 formatted datetime string that specifies the exact date and time for the retention * lock to take effect and permanently lock the retention period defined in the policy. @@ -377,6 +446,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", backupRetentionPeriodInDays=") .append(String.valueOf(this.backupRetentionPeriodInDays)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", mustEnforceCloudLocality=") + .append(String.valueOf(this.mustEnforceCloudLocality)); sb.append(", policyLockedDateTime=").append(String.valueOf(this.policyLockedDateTime)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); @@ -398,6 +469,8 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.backupRetentionPeriodInDays, other.backupRetentionPeriodInDays) && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals( + this.mustEnforceCloudLocality, other.mustEnforceCloudLocality) && java.util.Objects.equals(this.policyLockedDateTime, other.policyLockedDateTime) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) @@ -417,6 +490,11 @@ public int hashCode() { result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.mustEnforceCloudLocality == null + ? 43 + : this.mustEnforceCloudLocality.hashCode()); result = (result * PRIME) + (this.policyLockedDateTime == null diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectedDatabase.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectedDatabase.java index c1a99ea64b3..59533e8d3c9 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectedDatabase.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectedDatabase.java @@ -49,6 +49,7 @@ public final class ProtectedDatabase "lifecycleDetails", "healthDetails", "metrics", + "subscriptionId", "freeformTags", "definedTags", "systemTags" @@ -76,6 +77,7 @@ public ProtectedDatabase( String lifecycleDetails, String healthDetails, Metrics metrics, + String subscriptionId, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -102,6 +104,7 @@ public ProtectedDatabase( this.lifecycleDetails = lifecycleDetails; this.healthDetails = healthDetails; this.metrics = metrics; + this.subscriptionId = subscriptionId; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -538,6 +541,21 @@ public Builder metrics(Metrics metrics) { this.__explicitlySet__.add("metrics"); return this; } + /** The OCID of the cloud service subscription to which the protected database is linked. */ + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") + private String subscriptionId; + + /** + * The OCID of the cloud service subscription to which the protected database is linked. + * + * @param subscriptionId the value to set + * @return this builder + */ + public Builder subscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + this.__explicitlySet__.add("subscriptionId"); + return this; + } /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists * for cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -631,6 +649,7 @@ public ProtectedDatabase build() { this.lifecycleDetails, this.healthDetails, this.metrics, + this.subscriptionId, this.freeformTags, this.definedTags, this.systemTags); @@ -708,6 +727,9 @@ public Builder copy(ProtectedDatabase model) { if (model.wasPropertyExplicitlySet("metrics")) { this.metrics(model.getMetrics()); } + if (model.wasPropertyExplicitlySet("subscriptionId")) { + this.subscriptionId(model.getSubscriptionId()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -1108,6 +1130,19 @@ public Metrics getMetrics() { return metrics; } + /** The OCID of the cloud service subscription to which the protected database is linked. */ + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") + private final String subscriptionId; + + /** + * The OCID of the cloud service subscription to which the protected database is linked. + * + * @return the value + */ + public String getSubscriptionId() { + return subscriptionId; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for * cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -1200,6 +1235,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); sb.append(", healthDetails=").append(String.valueOf(this.healthDetails)); sb.append(", metrics=").append(String.valueOf(this.metrics)); + sb.append(", subscriptionId=").append(String.valueOf(this.subscriptionId)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -1240,6 +1276,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) && java.util.Objects.equals(this.healthDetails, other.healthDetails) && java.util.Objects.equals(this.metrics, other.metrics) + && java.util.Objects.equals(this.subscriptionId, other.subscriptionId) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -1302,6 +1339,9 @@ public int hashCode() { (result * PRIME) + (this.healthDetails == null ? 43 : this.healthDetails.hashCode()); result = (result * PRIME) + (this.metrics == null ? 43 : this.metrics.hashCode()); + result = + (result * PRIME) + + (this.subscriptionId == null ? 43 : this.subscriptionId.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()); diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectedDatabaseSummary.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectedDatabaseSummary.java index 25c8e1f721a..bd87977b3e2 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectedDatabaseSummary.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectedDatabaseSummary.java @@ -53,6 +53,7 @@ public final class ProtectedDatabaseSummary "healthDetails", "isReadOnlyResource", "metrics", + "subscriptionId", "freeformTags", "definedTags", "systemTags" @@ -76,6 +77,7 @@ public ProtectedDatabaseSummary( String healthDetails, Boolean isReadOnlyResource, MetricsSummary metrics, + String subscriptionId, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -98,6 +100,7 @@ public ProtectedDatabaseSummary( this.healthDetails = healthDetails; this.isReadOnlyResource = isReadOnlyResource; this.metrics = metrics; + this.subscriptionId = subscriptionId; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -428,6 +431,21 @@ public Builder metrics(MetricsSummary metrics) { this.__explicitlySet__.add("metrics"); return this; } + /** The OCID of the cloud service subscription to which the protected database is linked. */ + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") + private String subscriptionId; + + /** + * The OCID of the cloud service subscription to which the protected database is linked. + * + * @param subscriptionId the value to set + * @return this builder + */ + public Builder subscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + this.__explicitlySet__.add("subscriptionId"); + return this; + } /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists * for cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -517,6 +535,7 @@ public ProtectedDatabaseSummary build() { this.healthDetails, this.isReadOnlyResource, this.metrics, + this.subscriptionId, this.freeformTags, this.definedTags, this.systemTags); @@ -582,6 +601,9 @@ public Builder copy(ProtectedDatabaseSummary model) { if (model.wasPropertyExplicitlySet("metrics")) { this.metrics(model.getMetrics()); } + if (model.wasPropertyExplicitlySet("subscriptionId")) { + this.subscriptionId(model.getSubscriptionId()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -884,6 +906,19 @@ public MetricsSummary getMetrics() { return metrics; } + /** The OCID of the cloud service subscription to which the protected database is linked. */ + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") + private final String subscriptionId; + + /** + * The OCID of the cloud service subscription to which the protected database is linked. + * + * @return the value + */ + public String getSubscriptionId() { + return subscriptionId; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for * cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -972,6 +1007,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", healthDetails=").append(String.valueOf(this.healthDetails)); sb.append(", isReadOnlyResource=").append(String.valueOf(this.isReadOnlyResource)); sb.append(", metrics=").append(String.valueOf(this.metrics)); + sb.append(", subscriptionId=").append(String.valueOf(this.subscriptionId)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -1008,6 +1044,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.healthDetails, other.healthDetails) && java.util.Objects.equals(this.isReadOnlyResource, other.isReadOnlyResource) && java.util.Objects.equals(this.metrics, other.metrics) + && java.util.Objects.equals(this.subscriptionId, other.subscriptionId) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -1060,6 +1097,9 @@ public int hashCode() { ? 43 : this.isReadOnlyResource.hashCode()); result = (result * PRIME) + (this.metrics == null ? 43 : this.metrics.hashCode()); + result = + (result * PRIME) + + (this.subscriptionId == null ? 43 : this.subscriptionId.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()); diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectionPolicy.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectionPolicy.java index 53f77401a21..4136ee0022b 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectionPolicy.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectionPolicy.java @@ -32,6 +32,7 @@ public final class ProtectionPolicy "backupRetentionPeriodInDays", "isPredefinedPolicy", "policyLockedDateTime", + "mustEnforceCloudLocality", "timeCreated", "timeUpdated", "lifecycleState", @@ -47,6 +48,7 @@ public ProtectionPolicy( Integer backupRetentionPeriodInDays, Boolean isPredefinedPolicy, String policyLockedDateTime, + Boolean mustEnforceCloudLocality, java.util.Date timeCreated, java.util.Date timeUpdated, LifecycleState lifecycleState, @@ -61,6 +63,7 @@ public ProtectionPolicy( this.backupRetentionPeriodInDays = backupRetentionPeriodInDays; this.isPredefinedPolicy = isPredefinedPolicy; this.policyLockedDateTime = policyLockedDateTime; + this.mustEnforceCloudLocality = mustEnforceCloudLocality; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.lifecycleState = lifecycleState; @@ -178,6 +181,25 @@ public Builder policyLockedDateTime(String policyLockedDateTime) { this.__explicitlySet__.add("policyLockedDateTime"); return this; } + /** + * Indicates whether the protection policy enforces Recovery Service to retain backups in + * the same cloud service environment where your Oracle Database is provisioned. + */ + @com.fasterxml.jackson.annotation.JsonProperty("mustEnforceCloudLocality") + private Boolean mustEnforceCloudLocality; + + /** + * Indicates whether the protection policy enforces Recovery Service to retain backups in + * the same cloud service environment where your Oracle Database is provisioned. + * + * @param mustEnforceCloudLocality the value to set + * @return this builder + */ + public Builder mustEnforceCloudLocality(Boolean mustEnforceCloudLocality) { + this.mustEnforceCloudLocality = mustEnforceCloudLocality; + this.__explicitlySet__.add("mustEnforceCloudLocality"); + return this; + } /** * An RFC3339 formatted datetime string that indicates the created time for the protection * policy. For example: '2020-05-22T21:10:29.600Z'. @@ -329,6 +351,7 @@ public ProtectionPolicy build() { this.backupRetentionPeriodInDays, this.isPredefinedPolicy, this.policyLockedDateTime, + this.mustEnforceCloudLocality, this.timeCreated, this.timeUpdated, this.lifecycleState, @@ -362,6 +385,9 @@ public Builder copy(ProtectionPolicy model) { if (model.wasPropertyExplicitlySet("policyLockedDateTime")) { this.policyLockedDateTime(model.getPolicyLockedDateTime()); } + if (model.wasPropertyExplicitlySet("mustEnforceCloudLocality")) { + this.mustEnforceCloudLocality(model.getMustEnforceCloudLocality()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -488,6 +514,23 @@ public String getPolicyLockedDateTime() { return policyLockedDateTime; } + /** + * Indicates whether the protection policy enforces Recovery Service to retain backups in the + * same cloud service environment where your Oracle Database is provisioned. + */ + @com.fasterxml.jackson.annotation.JsonProperty("mustEnforceCloudLocality") + private final Boolean mustEnforceCloudLocality; + + /** + * Indicates whether the protection policy enforces Recovery Service to retain backups in the + * same cloud service environment where your Oracle Database is provisioned. + * + * @return the value + */ + public Boolean getMustEnforceCloudLocality() { + return mustEnforceCloudLocality; + } + /** * An RFC3339 formatted datetime string that indicates the created time for the protection * policy. For example: '2020-05-22T21:10:29.600Z'. @@ -629,6 +672,8 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.backupRetentionPeriodInDays)); sb.append(", isPredefinedPolicy=").append(String.valueOf(this.isPredefinedPolicy)); sb.append(", policyLockedDateTime=").append(String.valueOf(this.policyLockedDateTime)); + sb.append(", mustEnforceCloudLocality=") + .append(String.valueOf(this.mustEnforceCloudLocality)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); @@ -657,6 +702,8 @@ public boolean equals(Object o) { this.backupRetentionPeriodInDays, other.backupRetentionPeriodInDays) && java.util.Objects.equals(this.isPredefinedPolicy, other.isPredefinedPolicy) && java.util.Objects.equals(this.policyLockedDateTime, other.policyLockedDateTime) + && java.util.Objects.equals( + this.mustEnforceCloudLocality, other.mustEnforceCloudLocality) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) @@ -691,6 +738,11 @@ public int hashCode() { + (this.policyLockedDateTime == null ? 43 : this.policyLockedDateTime.hashCode()); + result = + (result * PRIME) + + (this.mustEnforceCloudLocality == null + ? 43 + : this.mustEnforceCloudLocality.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); result = diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectionPolicySummary.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectionPolicySummary.java index c630d086f2d..18c49e90b91 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectionPolicySummary.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectionPolicySummary.java @@ -38,6 +38,7 @@ public final class ProtectionPolicySummary "backupRetentionPeriodInDays", "isPredefinedPolicy", "policyLockedDateTime", + "mustEnforceCloudLocality", "timeCreated", "timeUpdated", "lifecycleState", @@ -53,6 +54,7 @@ public ProtectionPolicySummary( Integer backupRetentionPeriodInDays, Boolean isPredefinedPolicy, String policyLockedDateTime, + Boolean mustEnforceCloudLocality, java.util.Date timeCreated, java.util.Date timeUpdated, LifecycleState lifecycleState, @@ -67,6 +69,7 @@ public ProtectionPolicySummary( this.backupRetentionPeriodInDays = backupRetentionPeriodInDays; this.isPredefinedPolicy = isPredefinedPolicy; this.policyLockedDateTime = policyLockedDateTime; + this.mustEnforceCloudLocality = mustEnforceCloudLocality; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.lifecycleState = lifecycleState; @@ -178,6 +181,25 @@ public Builder policyLockedDateTime(String policyLockedDateTime) { this.__explicitlySet__.add("policyLockedDateTime"); return this; } + /** + * Indicates whether the protection policy enforces Recovery Service to retain backups in + * the same cloud service environment where your Oracle Database is provisioned. + */ + @com.fasterxml.jackson.annotation.JsonProperty("mustEnforceCloudLocality") + private Boolean mustEnforceCloudLocality; + + /** + * Indicates whether the protection policy enforces Recovery Service to retain backups in + * the same cloud service environment where your Oracle Database is provisioned. + * + * @param mustEnforceCloudLocality the value to set + * @return this builder + */ + public Builder mustEnforceCloudLocality(Boolean mustEnforceCloudLocality) { + this.mustEnforceCloudLocality = mustEnforceCloudLocality; + this.__explicitlySet__.add("mustEnforceCloudLocality"); + return this; + } /** The time the Protection Policy was created. An RFC3339 formatted datetime string */ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private java.util.Date timeCreated; @@ -321,6 +343,7 @@ public ProtectionPolicySummary build() { this.backupRetentionPeriodInDays, this.isPredefinedPolicy, this.policyLockedDateTime, + this.mustEnforceCloudLocality, this.timeCreated, this.timeUpdated, this.lifecycleState, @@ -354,6 +377,9 @@ public Builder copy(ProtectionPolicySummary model) { if (model.wasPropertyExplicitlySet("policyLockedDateTime")) { this.policyLockedDateTime(model.getPolicyLockedDateTime()); } + if (model.wasPropertyExplicitlySet("mustEnforceCloudLocality")) { + this.mustEnforceCloudLocality(model.getMustEnforceCloudLocality()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -474,6 +500,23 @@ public String getPolicyLockedDateTime() { return policyLockedDateTime; } + /** + * Indicates whether the protection policy enforces Recovery Service to retain backups in the + * same cloud service environment where your Oracle Database is provisioned. + */ + @com.fasterxml.jackson.annotation.JsonProperty("mustEnforceCloudLocality") + private final Boolean mustEnforceCloudLocality; + + /** + * Indicates whether the protection policy enforces Recovery Service to retain backups in the + * same cloud service environment where your Oracle Database is provisioned. + * + * @return the value + */ + public Boolean getMustEnforceCloudLocality() { + return mustEnforceCloudLocality; + } + /** The time the Protection Policy was created. An RFC3339 formatted datetime string */ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private final java.util.Date timeCreated; @@ -607,6 +650,8 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.backupRetentionPeriodInDays)); sb.append(", isPredefinedPolicy=").append(String.valueOf(this.isPredefinedPolicy)); sb.append(", policyLockedDateTime=").append(String.valueOf(this.policyLockedDateTime)); + sb.append(", mustEnforceCloudLocality=") + .append(String.valueOf(this.mustEnforceCloudLocality)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); @@ -635,6 +680,8 @@ public boolean equals(Object o) { this.backupRetentionPeriodInDays, other.backupRetentionPeriodInDays) && java.util.Objects.equals(this.isPredefinedPolicy, other.isPredefinedPolicy) && java.util.Objects.equals(this.policyLockedDateTime, other.policyLockedDateTime) + && java.util.Objects.equals( + this.mustEnforceCloudLocality, other.mustEnforceCloudLocality) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) @@ -669,6 +716,11 @@ public int hashCode() { + (this.policyLockedDateTime == null ? 43 : this.policyLockedDateTime.hashCode()); + result = + (result * PRIME) + + (this.mustEnforceCloudLocality == null + ? 43 + : this.mustEnforceCloudLocality.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); result = diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ChangeProtectedDatabaseSubscriptionRequest.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ChangeProtectedDatabaseSubscriptionRequest.java new file mode 100644 index 00000000000..fd8f42d5b6f --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ChangeProtectedDatabaseSubscriptionRequest.java @@ -0,0 +1,317 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.recovery.requests; + +import com.oracle.bmc.recovery.model.*; +/** + * Example: Click here to see how to use + * ChangeProtectedDatabaseSubscriptionRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public class ChangeProtectedDatabaseSubscriptionRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.recovery.model.ChangeProtectedDatabaseSubscriptionDetails> { + + /** The protected database OCID. */ + private String protectedDatabaseId; + + /** The protected database OCID. */ + public String getProtectedDatabaseId() { + return protectedDatabaseId; + } + /** Associate a protected database with a different subscription. */ + private com.oracle.bmc.recovery.model.ChangeProtectedDatabaseSubscriptionDetails + changeProtectedDatabaseSubscriptionDetails; + + /** Associate a protected database with a different subscription. */ + public com.oracle.bmc.recovery.model.ChangeProtectedDatabaseSubscriptionDetails + getChangeProtectedDatabaseSubscriptionDetails() { + return changeProtectedDatabaseSubscriptionDetails; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + 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; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.recovery.model.ChangeProtectedDatabaseSubscriptionDetails getBody$() { + return changeProtectedDatabaseSubscriptionDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeProtectedDatabaseSubscriptionRequest, + com.oracle.bmc.recovery.model.ChangeProtectedDatabaseSubscriptionDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The protected database OCID. */ + private String protectedDatabaseId = null; + + /** + * The protected database OCID. + * + * @param protectedDatabaseId the value to set + * @return this builder instance + */ + public Builder protectedDatabaseId(String protectedDatabaseId) { + this.protectedDatabaseId = protectedDatabaseId; + return this; + } + + /** Associate a protected database with a different subscription. */ + private com.oracle.bmc.recovery.model.ChangeProtectedDatabaseSubscriptionDetails + changeProtectedDatabaseSubscriptionDetails = null; + + /** + * Associate a protected database with a different subscription. + * + * @param changeProtectedDatabaseSubscriptionDetails the value to set + * @return this builder instance + */ + public Builder changeProtectedDatabaseSubscriptionDetails( + com.oracle.bmc.recovery.model.ChangeProtectedDatabaseSubscriptionDetails + changeProtectedDatabaseSubscriptionDetails) { + this.changeProtectedDatabaseSubscriptionDetails = + changeProtectedDatabaseSubscriptionDetails; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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(ChangeProtectedDatabaseSubscriptionRequest o) { + protectedDatabaseId(o.getProtectedDatabaseId()); + changeProtectedDatabaseSubscriptionDetails( + o.getChangeProtectedDatabaseSubscriptionDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeProtectedDatabaseSubscriptionRequest 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 ChangeProtectedDatabaseSubscriptionRequest + */ + public ChangeProtectedDatabaseSubscriptionRequest build() { + ChangeProtectedDatabaseSubscriptionRequest 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.recovery.model.ChangeProtectedDatabaseSubscriptionDetails body) { + changeProtectedDatabaseSubscriptionDetails(body); + return this; + } + + /** + * Build the instance of ChangeProtectedDatabaseSubscriptionRequest 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 ChangeProtectedDatabaseSubscriptionRequest + */ + public ChangeProtectedDatabaseSubscriptionRequest buildWithoutInvocationCallback() { + ChangeProtectedDatabaseSubscriptionRequest request = + new ChangeProtectedDatabaseSubscriptionRequest(); + request.protectedDatabaseId = protectedDatabaseId; + request.changeProtectedDatabaseSubscriptionDetails = + changeProtectedDatabaseSubscriptionDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new ChangeProtectedDatabaseSubscriptionRequest(protectedDatabaseId, + // changeProtectedDatabaseSubscriptionDetails, 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() + .protectedDatabaseId(protectedDatabaseId) + .changeProtectedDatabaseSubscriptionDetails( + changeProtectedDatabaseSubscriptionDetails) + .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(",protectedDatabaseId=").append(String.valueOf(this.protectedDatabaseId)); + sb.append(",changeProtectedDatabaseSubscriptionDetails=") + .append(String.valueOf(this.changeProtectedDatabaseSubscriptionDetails)); + 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 ChangeProtectedDatabaseSubscriptionRequest)) { + return false; + } + + ChangeProtectedDatabaseSubscriptionRequest other = + (ChangeProtectedDatabaseSubscriptionRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.protectedDatabaseId, other.protectedDatabaseId) + && java.util.Objects.equals( + this.changeProtectedDatabaseSubscriptionDetails, + other.changeProtectedDatabaseSubscriptionDetails) + && 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.protectedDatabaseId == null + ? 43 + : this.protectedDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.changeProtectedDatabaseSubscriptionDetails == null + ? 43 + : this.changeProtectedDatabaseSubscriptionDetails.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-recovery/src/main/java/com/oracle/bmc/recovery/responses/ChangeProtectedDatabaseSubscriptionResponse.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/ChangeProtectedDatabaseSubscriptionResponse.java new file mode 100644 index 00000000000..7bde075c08a --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/ChangeProtectedDatabaseSubscriptionResponse.java @@ -0,0 +1,180 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.recovery.responses; + +import com.oracle.bmc.recovery.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public class ChangeProtectedDatabaseSubscriptionResponse + extends com.oracle.bmc.responses.BmcResponse { + /** Unique Oracle-assigned identifier of the work request. */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier of the work request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ChangeProtectedDatabaseSubscriptionResponse( + 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< + ChangeProtectedDatabaseSubscriptionResponse> { + 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 of the work request. */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier of the work request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ChangeProtectedDatabaseSubscriptionResponse 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 ChangeProtectedDatabaseSubscriptionResponse build() { + return new ChangeProtectedDatabaseSubscriptionResponse( + __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 ChangeProtectedDatabaseSubscriptionResponse)) { + return false; + } + + ChangeProtectedDatabaseSubscriptionResponse other = + (ChangeProtectedDatabaseSubscriptionResponse) 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-recovery/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-recovery/reflect-config.json b/bmc-recovery/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-recovery/reflect-config.json index 8c9e78e5483..f28b94dbd7e 100644 --- a/bmc-recovery/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-recovery/reflect-config.json +++ b/bmc-recovery/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-recovery/reflect-config.json @@ -19,6 +19,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.recovery.model.ChangeProtectedDatabaseSubscriptionDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.recovery.model.ChangeProtectedDatabaseSubscriptionDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.recovery.model.ChangeProtectionPolicyCompartmentDetails", diff --git a/bmc-redis/pom.xml b/bmc-redis/pom.xml index 478ef4e3d17..9c032619393 100644 --- a/bmc-redis/pom.xml +++ b/bmc-redis/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-redis @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-resourcemanager/pom.xml b/bmc-resourcemanager/pom.xml index 6ccf60c796e..5831b1f7573 100644 --- a/bmc-resourcemanager/pom.xml +++ b/bmc-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-resourcemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-resourcescheduler/pom.xml b/bmc-resourcescheduler/pom.xml index 4f1803d14a7..dd7a0c3c997 100644 --- a/bmc-resourcescheduler/pom.xml +++ b/bmc-resourcescheduler/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-resourcescheduler @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-resourcesearch/pom.xml b/bmc-resourcesearch/pom.xml index f94181b07fa..524a913a32d 100644 --- a/bmc-resourcesearch/pom.xml +++ b/bmc-resourcesearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-resourcesearch @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-rover/pom.xml b/bmc-rover/pom.xml index df21dd4f9a6..2118650f756 100644 --- a/bmc-rover/pom.xml +++ b/bmc-rover/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-rover @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-sch/pom.xml b/bmc-sch/pom.xml index 9203e4d4d8e..dc7775cd4b8 100644 --- a/bmc-sch/pom.xml +++ b/bmc-sch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-sch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-secrets/pom.xml b/bmc-secrets/pom.xml index 9583d8341e4..506813c78fc 100644 --- a/bmc-secrets/pom.xml +++ b/bmc-secrets/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-secrets @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-servicecatalog/pom.xml b/bmc-servicecatalog/pom.xml index fd6d620d228..dc0de26c64d 100644 --- a/bmc-servicecatalog/pom.xml +++ b/bmc-servicecatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-servicecatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-servicemanagerproxy/pom.xml b/bmc-servicemanagerproxy/pom.xml index e48e1298299..24f38d58c2c 100644 --- a/bmc-servicemanagerproxy/pom.xml +++ b/bmc-servicemanagerproxy/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-servicemanagerproxy @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-servicemesh/pom.xml b/bmc-servicemesh/pom.xml index cdb5c63bc8b..0ad5f9bb238 100644 --- a/bmc-servicemesh/pom.xml +++ b/bmc-servicemesh/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-servicemesh @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-shaded/bmc-shaded-full/pom.xml b/bmc-shaded/bmc-shaded-full/pom.xml index 476b6dce051..cecdc598ba4 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.47.0 + 3.48.0 ../pom.xml oci-java-sdk-shaded-full diff --git a/bmc-shaded/pom.xml b/bmc-shaded/pom.xml index bdb87cf7fcc..49fa5de8c0a 100644 --- a/bmc-shaded/pom.xml +++ b/bmc-shaded/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml diff --git a/bmc-stackmonitoring/pom.xml b/bmc-stackmonitoring/pom.xml index 297c2256865..eadf2822846 100644 --- a/bmc-stackmonitoring/pom.xml +++ b/bmc-stackmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-stackmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-streaming/pom.xml b/bmc-streaming/pom.xml index f694200642e..dd62ecd60c4 100644 --- a/bmc-streaming/pom.xml +++ b/bmc-streaming/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-streaming @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-tenantmanagercontrolplane/pom.xml b/bmc-tenantmanagercontrolplane/pom.xml index 099a94ac70b..4a9b105fb33 100644 --- a/bmc-tenantmanagercontrolplane/pom.xml +++ b/bmc-tenantmanagercontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-tenantmanagercontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-threatintelligence/pom.xml b/bmc-threatintelligence/pom.xml index 1708a8210b2..5596abca550 100644 --- a/bmc-threatintelligence/pom.xml +++ b/bmc-threatintelligence/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-threatintelligence @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-usage/pom.xml b/bmc-usage/pom.xml index 1d568ac5a7c..dc7d0899ca2 100644 --- a/bmc-usage/pom.xml +++ b/bmc-usage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-usage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-usageapi/pom.xml b/bmc-usageapi/pom.xml index 9c01a6400a4..ec7a767f1ee 100644 --- a/bmc-usageapi/pom.xml +++ b/bmc-usageapi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-usageapi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-vault/pom.xml b/bmc-vault/pom.xml index 8d4f6312315..32e4be7ff74 100644 --- a/bmc-vault/pom.xml +++ b/bmc-vault/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-vault @@ -15,12 +15,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.47.0 + 3.48.0 diff --git a/bmc-vbsinst/pom.xml b/bmc-vbsinst/pom.xml index deff56dd2d7..e4aad156b4a 100644 --- a/bmc-vbsinst/pom.xml +++ b/bmc-vbsinst/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-vbsinst @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-visualbuilder/pom.xml b/bmc-visualbuilder/pom.xml index 0c9512419a8..286c102a264 100644 --- a/bmc-visualbuilder/pom.xml +++ b/bmc-visualbuilder/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-visualbuilder @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-vnmonitoring/pom.xml b/bmc-vnmonitoring/pom.xml index 35ae7dc6730..1f9ab0c2d62 100644 --- a/bmc-vnmonitoring/pom.xml +++ b/bmc-vnmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-vnmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-vulnerabilityscanning/pom.xml b/bmc-vulnerabilityscanning/pom.xml index 71b157d22b4..b18ce2a1e3f 100644 --- a/bmc-vulnerabilityscanning/pom.xml +++ b/bmc-vulnerabilityscanning/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-vulnerabilityscanning @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-waa/pom.xml b/bmc-waa/pom.xml index 55a80f295c6..e7c4e539120 100644 --- a/bmc-waa/pom.xml +++ b/bmc-waa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-waa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-waas/pom.xml b/bmc-waas/pom.xml index 55b16b5bcd5..d698b214897 100644 --- a/bmc-waas/pom.xml +++ b/bmc-waas/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-waas @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/bmc-waf/pom.xml b/bmc-waf/pom.xml index b38232545c0..68d713ddfff 100644 --- a/bmc-waf/pom.xml +++ b/bmc-waf/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-waf @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 \ No newline at end of file diff --git a/bmc-waf/src/main/java/com/oracle/bmc/waf/model/DynamicHttpResponseBody.java b/bmc-waf/src/main/java/com/oracle/bmc/waf/model/DynamicHttpResponseBody.java new file mode 100644 index 00000000000..962557f5641 --- /dev/null +++ b/bmc-waf/src/main/java/com/oracle/bmc/waf/model/DynamicHttpResponseBody.java @@ -0,0 +1,147 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.waf.model; + +/** + * Allows returning dynamically generated HTTP response body based on the provided template. The + * template allows variable interpolation by specifying variable name between the '${' and '}' + * delimiters. Escape sequences using '\\' are supported to allow usage of '\\\\' and '\\${' in the + * template to return '\\' and '\\${' in final response. + * + *

The following variables are supported: + * + *

http.request.id - the HTTP request ID. For example: "d5fa953f75ef417e4c8008ef9336d779". + * + *

Example: { "type": "DYNAMIC", "template": "{\ \\"code\\": 403,\ + * \\"message\\":\\"Unauthorised\\",\ \\"incidentId\\": \\"${http.request.id}\\"\ }" } + * + *

Example with escape sequence: { "type": "DYNAMIC", "template": "\\\\${Returned as plain text}" + * }
+ * 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: 20210930") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DynamicHttpResponseBody.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DynamicHttpResponseBody extends HttpResponseBody { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Dynamic response body */ + @com.fasterxml.jackson.annotation.JsonProperty("template") + private String template; + + /** + * Dynamic response body + * + * @param template the value to set + * @return this builder + */ + public Builder template(String template) { + this.template = template; + this.__explicitlySet__.add("template"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DynamicHttpResponseBody build() { + DynamicHttpResponseBody model = new DynamicHttpResponseBody(this.template); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DynamicHttpResponseBody model) { + if (model.wasPropertyExplicitlySet("template")) { + this.template(model.getTemplate()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DynamicHttpResponseBody(String template) { + super(); + this.template = template; + } + + /** Dynamic response body */ + @com.fasterxml.jackson.annotation.JsonProperty("template") + private final String template; + + /** + * Dynamic response body + * + * @return the value + */ + public String getTemplate() { + return template; + } + + @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("DynamicHttpResponseBody("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", template=").append(String.valueOf(this.template)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DynamicHttpResponseBody)) { + return false; + } + + DynamicHttpResponseBody other = (DynamicHttpResponseBody) o; + return java.util.Objects.equals(this.template, other.template) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.template == null ? 43 : this.template.hashCode()); + return result; + } +} diff --git a/bmc-waf/src/main/java/com/oracle/bmc/waf/model/HttpResponseBody.java b/bmc-waf/src/main/java/com/oracle/bmc/waf/model/HttpResponseBody.java index cbad8739a0a..c67c4e2f7cc 100644 --- a/bmc-waf/src/main/java/com/oracle/bmc/waf/model/HttpResponseBody.java +++ b/bmc-waf/src/main/java/com/oracle/bmc/waf/model/HttpResponseBody.java @@ -22,6 +22,9 @@ property = "type", defaultImpl = HttpResponseBody.class) @com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DynamicHttpResponseBody.class, + name = "DYNAMIC"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = StaticTextHttpResponseBody.class, name = "STATIC_TEXT") @@ -78,6 +81,7 @@ public int hashCode() { /** Type of HttpResponseBody. */ public enum Type implements com.oracle.bmc.http.internal.BmcEnum { StaticText("STATIC_TEXT"), + Dynamic("DYNAMIC"), /** * This value is used if a service returns a value for this enum that is not recognized by diff --git a/bmc-waf/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-waf/reflect-config.json b/bmc-waf/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-waf/reflect-config.json index ca01cac7888..9e180c289e2 100644 --- a/bmc-waf/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-waf/reflect-config.json +++ b/bmc-waf/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-waf/reflect-config.json @@ -220,6 +220,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.waf.model.DynamicHttpResponseBody", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.waf.model.DynamicHttpResponseBody$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.waf.model.HttpResponseBody", diff --git a/bmc-workrequests/pom.xml b/bmc-workrequests/pom.xml index d2ecfc76ca6..c051230f424 100644 --- a/bmc-workrequests/pom.xml +++ b/bmc-workrequests/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 ../pom.xml oci-java-sdk-workrequests @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.47.0 + 3.48.0 diff --git a/pom.xml b/pom.xml index 72d6466739d..9ad74f87c12 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk - 3.47.0 + 3.48.0 pom Oracle Cloud Infrastructure SDK This project contains the SDK used for Oracle Cloud Infrastructure @@ -796,5 +796,6 @@ bmc-resourcescheduler bmc-demandsignal bmc-fleetappsmanagement + bmc-delegateaccesscontrol \ No newline at end of file